/* ==========================================================================
   ZFL ARCHIVE — a private collection on a wall
   ========================================================================== */

:root {
  --bg: #05060a;
  --bg-soft: #090b12;
  --bg-deep: #030408;
  --ink: #f4f0e7;
  --ink-dim: #c9c3b8;
  --muted: #8d8995;
  --muted-2: #6d6a75;
  --gold: #d8b678;
  --gold-2: #f1dba9;
  --gold-deep: #9d7a43;
  --violet: #a78bfa;
  --cyan: #67e8f9;
  --rose: #f2a7c7;
  --line: rgba(216, 182, 120, 0.18);
  --line-soft: rgba(255, 255, 255, 0.075);
  --glass: rgba(11, 13, 20, 0.62);
  --font-display: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, "Songti SC", serif;
  --font-cn: "ZCOOL XiaoWei", "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", "SimSun", serif;
  --font-round: "YouYuan", "幼圆", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-ui: "Manrope", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 0.68, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #4d412c #08090e;
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading { overflow: hidden; }
body.no-scroll { overflow: hidden; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 10%, transparent 40%, rgba(0, 0, 0, 0.28) 100%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(216, 182, 120, 0.85); color: #1a150c; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

[hidden], .is-hidden { display: none !important; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--xs { width: 14px; height: 14px; }

.container {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 72px);
}

.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.sec-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
}
.sec-label span { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.sec-label i { width: 40px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.sec-title {
  margin: 18px 0 0;
  font-family: var(--font-cn);
  font-size: clamp(46px, 6.6vw, 98px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.sec-title em {
  display: inline-block;
  margin-left: 0.16em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff8e8 0%, #e9cfa0 42%, #b58b4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-title--light { color: var(--ink); }

.pulse {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 0 rgba(216, 182, 120, 0.6);
  animation: pulse 2.6s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 182, 120, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(216, 182, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 182, 120, 0); }
}

/* ---------------------------------------------------------------- canvas -- */

.bg-canvas,
.trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bg-canvas { z-index: 0; opacity: 0.9; }
.trail-canvas { z-index: 9990; }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("/img/noise.png");
  background-size: 220px;
  mix-blend-mode: overlay;
  animation: grain 8s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

/* ---------------------------------------------------------------- cursor -- */

.cursor { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.cursor__dot {
  position: absolute;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 12px rgba(241, 219, 169, 0.8);
  transition: transform 0.18s var(--ease);
}
.cursor__ring {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(216, 182, 120, 0.45);
  border-radius: 50%;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease),
    background 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.2s;
}
.cursor__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #1a1409;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s, transform 0.25s;
}
body.cursor-hover .cursor__ring {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(216, 182, 120, 0.92);
  border-color: transparent;
}
body.cursor-hover .cursor__label { opacity: 1; transform: scale(1); }
body.cursor-hover .cursor__dot { transform: scale(0); }
body.cursor-down .cursor__ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; }

@media (hover: none), (pointer: coarse) {
  .cursor, .trail-canvas { display: none !important; }
}

/* --------------------------------------------------------------- opening -- */

.opening {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f1ece3;
  color: #2b2823;
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 1.25s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.9s 0.25s;
}
.opening.is-leaving { clip-path: circle(0% at 50% 50%); }
.opening.is-gone { display: none; }

.opening__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.3;
  background-image: url("/img/noise.png");
  background-size: 180px;
  mix-blend-mode: multiply;
  animation: grain 9s steps(7) infinite;
}
.opening__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.65;
  animation: float 14s ease-in-out infinite;
}
.opening__orb--1 { width: 52vw; height: 52vw; left: -12vw; top: -16vw; background: radial-gradient(circle, #f6d4bd 0%, rgba(246, 212, 189, 0) 68%); }
.opening__orb--2 { width: 46vw; height: 46vw; right: -10vw; top: 8vh; background: radial-gradient(circle, #dfe6d6 0%, rgba(223, 230, 214, 0) 68%); animation-delay: -5s; }
.opening__orb--3 { width: 60vw; height: 42vw; left: 22vw; bottom: -26vw; background: radial-gradient(circle, #e4dcf0 0%, rgba(228, 220, 240, 0) 70%); animation-delay: -9s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3vw, -2vh) scale(1.06); }
}

.opening__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  margin-top: -4vh;
}
.opening__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 34px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: #8b8172;
  opacity: 0;
  animation: fadeUp 1s 0.25s var(--ease-out) forwards;
}
.opening__eyebrow span { width: 34px; height: 1px; background: rgba(43, 40, 35, 0.25); }

.opening__title {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  font-weight: 400;
  line-height: 1;
}
.opening__zfl {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(64px, 9vw, 118px);
  color: #a8854f;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(26px);
  animation: fadeUp 1.1s 0.42s var(--ease-out) forwards;
}
.opening__cn {
  display: inline-flex;
  font-family: var(--font-round);
  font-size: clamp(38px, 5.4vw, 74px);
  letter-spacing: 0.06em;
  color: #2f2b25;
}
.opening__cn span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(2deg);
  animation: charIn 0.9s var(--ease-out) forwards;
}
.opening__cn span:nth-child(1) { animation-delay: 0.58s; }
.opening__cn span:nth-child(2) { animation-delay: 0.65s; }
.opening__cn span:nth-child(3) { animation-delay: 0.72s; }
.opening__cn span:nth-child(4) { animation-delay: 0.79s; }
.opening__cn span:nth-child(5) { animation-delay: 0.86s; }
.opening__cn span:nth-child(6) { animation-delay: 0.93s; }
.opening__cn span:nth-child(7) { animation-delay: 1s; }

.opening__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 38px auto 28px;
  width: min(420px, 70vw);
  opacity: 0;
  animation: fadeIn 1.2s 1.05s forwards;
}
.opening__rule i { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(168, 133, 79, 0.55)); }
.opening__rule i:last-child { background: linear-gradient(90deg, rgba(168, 133, 79, 0.55), transparent); }
.opening__rule b { color: #a8854f; display: flex; }
.opening__rule .icon { width: 13px; height: 13px; }

.opening__sub {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: #8b8172;
  opacity: 0;
  animation: fadeUp 1.1s 1.15s var(--ease-out) forwards;
}

.opening__meta {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  bottom: clamp(28px, 5vh, 52px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: #918777;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}
.opening__meta-label { font-weight: 600; }
.opening__count { display: flex; align-items: baseline; gap: 4px; color: #2b2823; }
.opening__count b { font-family: var(--font-display); font-size: 34px; font-weight: 400; line-height: 1; letter-spacing: 0.02em; }
.opening__count i { font-style: normal; font-size: 10px; letter-spacing: 0.1em; color: #9a9081; }

.opening__skip {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(28px, 5vh, 52px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #6f6659;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
  transition: color 0.3s, gap 0.3s;
}
.opening__skip:hover { color: #2b2823; gap: 16px; }
.opening__skip .icon { width: 15px; height: 15px; }

.opening__dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.opening__dust i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(120, 103, 76, 0.35);
  animation: dust linear infinite;
}
@keyframes dust {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  15% { opacity: 0.7; }
  85% { opacity: 0.5; }
  100% { transform: translate3d(4vw, -40vh, 0); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes charIn {
  from { opacity: 0; transform: translateY(0.5em) rotate(2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ------------------------------------------------------------------- nav -- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 56px);
  transition: transform 0.55s var(--ease), background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line-soft);
}
.nav.is-hidden { transform: translateY(-105%); }
.nav.is-open { background: rgba(5, 6, 10, 0.92); }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--gold-2);
  border: 1px solid var(--line);
  transform: rotate(45deg);
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.brand__mark::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(216, 182, 120, 0.14); }
.brand > .brand__mark { font-size: 0; }
.brand > .brand__mark::after { content: "Z"; font-size: 19px; transform: rotate(-45deg); }
.brand:hover .brand__mark { transform: rotate(135deg); border-color: var(--gold); background: rgba(216, 182, 120, 0.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text b { font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: 0.28em; color: var(--ink); }
.brand__text i { margin-top: 5px; font-style: normal; font-size: 8px; letter-spacing: 0.42em; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--gold-2); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link--btn { font: inherit; font-size: 12px; letter-spacing: 0.12em; color: var(--ink-dim); }
.nav__link .icon { opacity: 0.6; transition: transform 0.3s; }
.nav__item:hover .nav__link .icon { transform: rotate(180deg); }

.nav__item { position: relative; }
.nav__menu {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  width: 380px;
  transform: translate(-50%, 12px);
  padding: 20px;
  background: rgba(8, 10, 16, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s;
}
.nav__menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #0a0c13;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__item.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav__menu-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.nav__menu-head span:first-child { color: var(--gold); }
.nav__menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.nav__menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-dim);
  text-align: left;
  transition: background 0.25s, color 0.25s;
}
.nav__menu-item:hover { background: rgba(216, 182, 120, 0.07); color: var(--gold-2); }
.nav__menu-item i {
  width: 22px;
  height: 30px;
  flex: none;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(216, 182, 120, 0.25);
}
.nav__menu-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__menu-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.nav__right { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 10px;
  color: var(--ink-dim);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.icon-btn:hover { color: var(--gold-2); border-color: var(--line); background: rgba(216, 182, 120, 0.04); }
.icon-btn__kbd { font-size: 9px; letter-spacing: 0.08em; color: var(--muted-2); border: 1px solid var(--line-soft); border-radius: 4px; padding: 2px 5px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.35s, background 0.35s, border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.btn .icon { width: 16px; height: 16px; }
.btn--solid {
  color: #1c160c;
  background: linear-gradient(120deg, #f0d8a3 0%, #d8b678 48%, #b98f52 100%);
  border: 1px solid rgba(255, 240, 205, 0.4);
  box-shadow: 0 10px 30px -12px rgba(216, 182, 120, 0.5);
}
.btn--solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.55) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn--solid:hover::before { transform: translateX(120%); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(216, 182, 120, 0.6); }
.btn--ghost {
  color: var(--ink-dim);
  border: 1px solid rgba(216, 182, 120, 0.28);
  background: rgba(216, 182, 120, 0.02);
}
.btn--ghost:hover { color: var(--gold-2); border-color: var(--gold); background: rgba(216, 182, 120, 0.08); transform: translateY(-2px); }
.btn--text { padding: 13px 4px; color: var(--ink-dim); border-bottom: 1px solid transparent; border-radius: 0; }
.btn--text span { color: var(--gold); transition: transform 0.3s; }
.btn--text:hover { color: var(--gold-2); }
.btn--text:hover span { transform: translate(3px, -3px); }
.btn--sm { padding: 9px 16px; font-size: 11px; }
.btn--lg { padding: 16px 30px; font-size: 13px; }
.btn--wide { width: 100%; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 12px 0 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(216, 182, 120, 0.04);
  transition: border-color 0.3s, background 0.3s;
}
.user-chip:hover { border-color: var(--gold); background: rgba(216, 182, 120, 0.08); }
.user-chip__avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #d8b678, #7d5f34);
  color: #171106;
  font-family: var(--font-cn);
  font-size: 12px;
}
.user-chip__meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.user-chip__meta b { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); }
.user-chip__meta i { font-style: normal; font-size: 7px; letter-spacing: 0.2em; color: var(--muted); }
.user-chip .icon { color: var(--muted); }

.nav__burger { display: none; }
.nav__progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: transparent; }
.nav__progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 10px rgba(216, 182, 120, 0.5); }

/* ------------------------------------------------------------ mobile menu -- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: #05060a;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu__inner { padding: 120px clamp(24px, 7vw, 60px) 60px; display: flex; flex-direction: column; min-height: 100%; }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-cn);
  font-size: clamp(28px, 8vw, 44px);
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s var(--ease);
}
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu__link span { font-family: var(--font-display); font-size: 12px; color: var(--gold); }
.mobile-menu__link em { margin-left: auto; font-style: normal; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.16em; color: var(--muted); }
.mobile-menu__login { margin-top: 32px; align-self: flex-start; }
.mobile-menu__foot { margin-top: auto; padding-top: 50px; font-size: 10px; letter-spacing: 0.18em; line-height: 1.9; color: var(--muted); }

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  min-height: max(700px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 clamp(20px, 6vw, 90px) clamp(60px, 11vh, 120px);
  isolation: isolate;
}
.hero__media { position: absolute; inset: -4%; z-index: -4; will-change: transform; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  filter: saturate(0.92) brightness(0.72) contrast(1.05);
  transform: scale(1.06);
  animation: kenburns 42s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-1.5%, -1.2%, 0); }
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.62) 0%, rgba(5, 6, 10, 0.05) 32%, rgba(5, 6, 10, 0.42) 66%, #05060a 98%),
    linear-gradient(90deg, rgba(5, 6, 10, 0.86) 0%, rgba(5, 6, 10, 0.35) 42%, rgba(5, 6, 10, 0) 70%),
    radial-gradient(ellipse at 75% 45%, transparent 0%, rgba(3, 4, 8, 0.55) 100%);
}
.hero__glow { position: absolute; z-index: -2; pointer-events: none; border-radius: 50%; filter: blur(60px); opacity: 0.5; mix-blend-mode: screen; }
.hero__glow--gold { width: 46vw; height: 46vw; left: 28vw; top: 16vh; background: radial-gradient(circle, rgba(216, 182, 120, 0.42), transparent 66%); animation: float 18s ease-in-out infinite; }
.hero__glow--violet { width: 38vw; height: 38vw; right: -6vw; top: 6vh; background: radial-gradient(circle, rgba(139, 92, 246, 0.32), transparent 66%); animation: float 22s ease-in-out infinite reverse; }
.hero__frame-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__frame-lines i { position: absolute; background: linear-gradient(180deg, transparent, rgba(216, 182, 120, 0.16), transparent); width: 1px; height: 30vh; }
.hero__frame-lines i:nth-child(1) { left: 7vw; top: 22vh; }
.hero__frame-lines i:nth-child(2) { right: 7vw; top: 18vh; height: 42vh; }
.hero__frame-lines i:nth-child(3) { left: 36vw; top: 10vh; height: 18vh; opacity: 0.6; }
.hero__frame-lines i:nth-child(4) { right: 28vw; bottom: 18vh; height: 22vh; opacity: 0.5; }

.hero__content { position: relative; z-index: 4; max-width: 1050px; }
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--gold-2);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s 0.4s, transform 1s 0.4s var(--ease-out);
}
body.is-ready .hero__kicker { opacity: 1; transform: none; }
.hero__title { margin: 0; font-weight: 400; line-height: 0.82; }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line > span { display: inline-block; transform: translateY(112%); transition: transform 1.25s var(--ease-out); }
body.is-ready .hero__line > span { transform: translateY(0); }
body.is-ready .hero__line:nth-child(1) > span { transition-delay: 0.18s; }
body.is-ready .hero__line:nth-child(2) > span { transition-delay: 0.3s; }
.hero__cn {
  font-family: var(--font-cn);
  font-size: clamp(78px, 13.5vw, 190px);
  letter-spacing: 0.05em;
  color: var(--ink);
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.6);
}
.hero__line--en { display: flex; align-items: flex-end; gap: 26px; }
.hero__en {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(58px, 10.5vw, 152px);
  letter-spacing: 0.015em;
  line-height: 0.84;
  background: linear-gradient(180deg, #fff8e7 0%, #e5c894 40%, #a87f45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.45));
}
.hero__year {
  margin-bottom: 0.9em;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1s 0.9s;
}
body.is-ready .hero__year { opacity: 1; }

.hero__desc {
  max-width: 430px;
  margin: 30px 0 0;
  font-size: 14px;
  line-height: 2;
  color: #b9b4aa;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s 0.75s, transform 1s 0.75s var(--ease-out);
}
body.is-ready .hero__desc { opacity: 1; transform: none; }
.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s 0.9s, transform 1s 0.9s var(--ease-out);
}
body.is-ready .hero__actions { opacity: 1; transform: none; }

.hero__stats {
  position: absolute;
  right: clamp(20px, 4vw, 60px);
  bottom: clamp(60px, 11vh, 120px);
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 38px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
  opacity: 0;
  transition: opacity 1.2s 1.1s;
}
body.is-ready .hero__stats { opacity: 1; }
.stat { display: flex; flex-direction: column; }
.stat b {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold-2);
}
.stat span { margin-top: 8px; font-size: 9px; line-height: 1.6; letter-spacing: 0.14em; color: var(--muted); }
.stat span i { font-style: normal; font-size: 7px; letter-spacing: 0.2em; color: var(--muted-2); }

.hero__aside {
  position: absolute;
  right: clamp(14px, 2.2vw, 30px);
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 8px;
  letter-spacing: 0.34em;
  color: var(--muted-2);
  writing-mode: vertical-rl;
}
.hero__aside span:first-child { color: var(--gold); }
.hero__aside i { width: 1px; height: 60px; background: linear-gradient(180deg, var(--gold), transparent); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--muted);
  transition: color 0.3s;
}
.hero__scroll:hover { color: var(--gold); }
.hero__scroll-line { width: 1px; height: 42px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.hero__scroll-line i { display: block; width: 100%; height: 50%; background: var(--gold); animation: scrollLine 2.4s ease-in-out infinite; }
@keyframes scrollLine {
  0% { transform: translateY(-110%); }
  60%, 100% { transform: translateY(220%); }
}
.hero__corner {
  position: absolute;
  left: clamp(20px, 4vw, 54px);
  top: calc(var(--nav-h) + 26px);
  z-index: 4;
  font-size: 8px;
  line-height: 2;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ wall -- */

.wall {
  position: relative;
  height: 380vh;
  background: var(--bg);
}
.wall__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 660px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(86, 106, 104, 0.16), transparent 55%),
    linear-gradient(180deg, #05060a 0%, #08110f 32%, #07100e 62%, #05060a 100%);
  isolation: isolate;
}
.wall__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.wall__ceiling {
  position: absolute;
  inset: 0 0 auto;
  height: 26vh;
  background:
    radial-gradient(ellipse 22% 120% at 16% 0%, rgba(255, 219, 154, 0.18), transparent 70%),
    radial-gradient(ellipse 22% 120% at 44% 0%, rgba(255, 219, 154, 0.12), transparent 70%),
    radial-gradient(ellipse 22% 120% at 72% 0%, rgba(255, 219, 154, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(9, 18, 17, 0.9), transparent);
}
.wall__panels {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 40%, rgba(0, 0, 0, 0.55));
  background-size: 18vw 100%, 100% 100%;
}
.wall__floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -6vh;
  height: 30vh;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0) 0%, rgba(4, 10, 9, 0.9) 40%, #040707 100%),
    repeating-linear-gradient(90deg, rgba(216, 182, 120, 0.07) 0 1px, transparent 1px 12vw);
  transform: perspective(600px) rotateX(58deg);
  transform-origin: 50% 0;
  filter: blur(0.4px);
}
.wall__floor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(216, 182, 120, 0.12), transparent 60%);
}

.wall__head {
  position: absolute;
  top: clamp(100px, 13vh, 130px);
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  z-index: 6;
  pointer-events: none;
}
.wall__head .sec-label { pointer-events: auto; }
.wall__head-row { display: flex; align-items: flex-end; gap: 40px; }
.wall__head-row .sec-title { font-size: clamp(40px, 5.2vw, 76px); }
.wall__lede {
  max-width: 350px;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--muted);
  pointer-events: auto;
}
.wall__tools { display: flex; gap: 8px; margin-left: auto; margin-bottom: 4px; pointer-events: auto; }
.wall__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 182, 120, 0.22);
  border-radius: 50%;
  color: var(--ink-dim);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s;
}
.wall__arrow:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(216, 182, 120, 0.08); transform: scale(1.05); }
.wall__arrow:disabled { opacity: 0.25; pointer-events: none; }

.wall__viewport {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(240px, 30vh, 310px);
  bottom: clamp(74px, 9vh, 100px);
  z-index: 3;
  overflow: hidden;
  cursor: grab;
  perspective: 1600px;
  perspective-origin: 50% 46%;
  touch-action: pan-y;
}
.wall__viewport.is-dragging { cursor: grabbing; }
.wall__track {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(44px, 6vw, 100px);
  height: 100%;
  width: max-content;
  padding: 0 max(10vw, calc(50vw - 820px));
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.frame {
  position: relative;
  flex: none;
  width: clamp(220px, 21vw, 315px);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  background: none;
  padding: 0;
  isolation: isolate;
}
.frame:nth-child(3n + 1) { transform: rotateY(5deg); }
.frame:nth-child(3n + 3) { transform: rotateY(-5deg); }
.frame:hover, .frame:focus-visible { transform: rotateY(0deg) translateY(-14px) translateZ(40px); z-index: 5; outline: none; }
.frame__light {
  position: absolute;
  left: 50%;
  top: -34%;
  width: 190%;
  height: 170%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 42% 40% at 50% 0%, rgba(255, 222, 162, 0.26), rgba(255, 210, 140, 0.06) 45%, transparent 70%);
  filter: blur(6px);
  opacity: 0.75;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: -1;
}
.frame:hover .frame__light { opacity: 1.2; }
.frame__mat {
  position: relative;
  padding: 9px;
  background: linear-gradient(135deg, #6d5128 0%, #caa568 16%, #f3e0b0 33%, #9c773d 52%, #e4c78f 72%, #6b4f27 100%);
  border-radius: 3px;
  box-shadow:
    0 30px 60px -18px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 236, 193, 0.18),
    inset 0 0 0 1px rgba(60, 40, 15, 0.5),
    inset 0 0 24px rgba(90, 60, 20, 0.35);
  transition: box-shadow 0.5s;
}
.frame:hover .frame__mat {
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 40px -6px rgba(216, 182, 120, 0.28),
    0 0 0 1px rgba(255, 236, 193, 0.34),
    inset 0 0 0 1px rgba(60, 40, 15, 0.5);
}
.frame__mat::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(52, 34, 12, 0.55);
  border-radius: 1px;
  pointer-events: none;
  z-index: 2;
}
.frame__art {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #050505;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}
.frame__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.9);
  transition: transform 1.2s var(--ease), filter 0.7s;
}
.frame:hover .frame__art img { transform: scale(1.06); filter: saturate(1.05) brightness(1.02); }
.frame__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%, transparent 70%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.frame__index {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 246, 224, 0.82);
  text-shadow: 0 1px 8px #000;
}
.frame__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #fff5dd;
  background: rgba(5, 6, 8, 0.55);
  border: 1px solid rgba(255, 236, 193, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.frame__badge .icon { width: 11px; height: 11px; }
.frame__plaque {
  display: block;
  width: fit-content;
  max-width: 88%;
  margin: 16px auto 0;
  padding: 7px 15px 8px;
  background: linear-gradient(180deg, #15130e, #0b0a08);
  border: 1px solid rgba(216, 182, 120, 0.28);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 235, 190, 0.12);
  transition: border-color 0.4s;
}
.frame:hover .frame__plaque { border-color: rgba(216, 182, 120, 0.65); }
.frame__plaque b {
  display: block;
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #e7dcc5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame__plaque i {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 7px;
  letter-spacing: 0.26em;
  color: #8a7a5d;
}
.frame__glowline {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -26px;
  height: 26px;
  background: radial-gradient(ellipse at 50% 0, rgba(216, 182, 120, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.frame:hover .frame__glowline { opacity: 1; }

.frame--add .frame__mat {
  background: none;
  border: 1px dashed rgba(216, 182, 120, 0.35);
  box-shadow: none;
  padding: 0;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  transition: border-color 0.4s, background 0.4s;
}
.frame--add:hover .frame__mat { border-color: var(--gold); background: rgba(216, 182, 120, 0.05); box-shadow: 0 0 60px -20px rgba(216, 182, 120, 0.4); }
.frame--add .frame__mat::before { display: none; }
.frame-add__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--gold); padding: 20px; }
.frame-add__inner .icon { width: 34px; height: 34px; stroke-width: 1; }
.frame-add__inner b { font-family: var(--font-cn); font-size: 15px; letter-spacing: 0.14em; }
.frame-add__inner span { font-size: 9px; letter-spacing: 0.16em; color: var(--muted); }
.frame--add .frame__plaque b { color: #8a7a5d; }

.wall__foot {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: clamp(22px, 4vh, 42px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 24px;
}
.wall__hint { display: flex; align-items: center; gap: 10px; font-size: 9px; letter-spacing: 0.2em; color: var(--muted); }
.wall__hint-drag { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; color: var(--gold); }
.wall__count { margin-left: auto; display: flex; align-items: baseline; gap: 4px; font-family: var(--font-display); color: var(--gold-2); }
.wall__count b { font-size: 26px; font-weight: 400; }
.wall__count i { color: var(--muted-2); font-size: 12px; }
.wall__count span { font-size: 12px; color: var(--muted); }
.wall__bar { width: min(240px, 20vw); height: 1px; background: rgba(255, 255, 255, 0.1); }
.wall__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 8px rgba(216, 182, 120, 0.6); }

/* ------------------------------------------------------------- catalogue -- */

.catalogue {
  position: relative;
  padding: clamp(90px, 13vh, 150px) 0 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(139, 92, 246, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(216, 182, 120, 0.06), transparent 60%),
    linear-gradient(180deg, #05060a, #07080e 50%, #05060a);
  overflow: hidden;
}
.cat-head { position: relative; z-index: 2; }
.cat-head__row { display: flex; align-items: flex-end; gap: 48px; margin-top: 6px; }
.cat-head__lede { max-width: 380px; margin: 0 0 10px; font-size: 12px; line-height: 1.95; letter-spacing: 0.04em; color: var(--muted); }
.cat-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cat-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  flex: 0 1 320px;
  color: var(--muted);
}
.cat-search .icon { width: 16px; height: 16px; }
.cat-search input {
  width: 100%;
  padding: 8px 0;
  background: none;
  border: 0;
  outline: 0;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.cat-search input::placeholder { color: var(--muted-2); }
.cat-search__count { font-size: 9px; letter-spacing: 0.1em; white-space: nowrap; color: var(--muted-2); }
.cat-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-filter {
  padding: 7px 14px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  transition: all 0.3s;
}
.cat-filter:hover { color: var(--gold-2); border-color: var(--line); }
.cat-filter.is-active { color: #1b150a; background: var(--gold); border-color: var(--gold); }
.cat-sort { position: relative; display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 10px; color: var(--muted); white-space: nowrap; }
.cat-sort select {
  appearance: none;
  padding: 7px 26px 7px 10px;
  font-size: 10px;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  outline: 0;
  cursor: pointer;
}
.cat-sort .icon { position: absolute; right: 8px; pointer-events: none; color: var(--muted); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
  margin-top: 46px;
  position: relative;
  z-index: 2;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: transform 0.55s var(--ease), border-color 0.4s;
  opacity: 0;
  transform: translateY(30px);
}
.cat-card.is-in { opacity: 1; transform: translateY(0); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), border-color 0.4s; }
.cat-card:hover { transform: translateY(-8px); }
.cat-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0a0b10;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85) saturate(0.9); transition: transform 1.1s var(--ease), filter 0.6s; }
.cat-card:hover .cat-card__media img { transform: scale(1.05); filter: brightness(1) saturate(1.02); }
.cat-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), transparent 40%, rgba(5, 6, 10, 0.75));
}
.cat-card__num { position: absolute; top: 12px; left: 14px; z-index: 2; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.1em; color: rgba(255, 245, 220, 0.7); }
.cat-card__private { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; font-size: 8px; letter-spacing: 0.1em; color: #f0d9a8; background: rgba(5, 6, 10, 0.6); border: 1px solid rgba(216, 182, 120, 0.35); border-radius: 999px; backdrop-filter: blur(6px); }
.cat-card__private .icon { width: 10px; height: 10px; }
.cat-card__hover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold-2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
}
.cat-card:hover .cat-card__hover { opacity: 1; transform: none; }
.cat-card__hover span { display: inline-flex; align-items: center; gap: 6px; }
.cat-card__info { padding: 16px 4px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-top: 1px solid transparent; }
.cat-card__title { font-family: var(--font-cn); font-size: 19px; font-weight: 400; letter-spacing: 0.06em; color: var(--ink); line-height: 1.3; }
.cat-card__sub { display: block; margin-top: 4px; font-size: 8px; letter-spacing: 0.22em; color: var(--muted-2); }
.cat-card__meta { text-align: right; font-size: 9px; line-height: 1.7; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.cat-card__meta b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 400; color: var(--gold-2); }

.cat-empty { padding: 80px 0; text-align: center; color: var(--muted); }
.cat-empty .icon { width: 30px; height: 30px; color: var(--gold); opacity: 0.6; }
.cat-empty h3 { margin: 18px 0 6px; font-family: var(--font-cn); font-weight: 400; font-size: 24px; color: var(--ink); }
.cat-empty p { margin: 0 0 22px; font-size: 12px; }

.cat-marquee { margin-top: clamp(80px, 12vh, 130px); padding: 22px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.cat-marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.cat-marquee span {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 182, 120, 0.24);
  white-space: nowrap;
}
.cat-marquee i { font-style: normal; font-size: 14px; color: rgba(216, 182, 120, 0.4); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- atlas -- */

.atlas {
  position: relative;
  padding: clamp(90px, 13vh, 150px) 0;
  background:
    radial-gradient(ellipse 50% 60% at 78% 40%, rgba(30, 64, 110, 0.2), transparent 65%),
    radial-gradient(ellipse 40% 50% at 8% 70%, rgba(216, 182, 120, 0.05), transparent 60%),
    linear-gradient(180deg, #05060a, #04060c 45%, #05060a);
  overflow: hidden;
}
.atlas__glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  right: -10vw;
  top: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 120, 200, 0.12), transparent 62%);
  filter: blur(40px);
  pointer-events: none;
}
.atlas__inner { position: relative; display: grid; grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.4fr); gap: clamp(30px, 4vw, 70px); align-items: center; }
.atlas__intro { position: relative; z-index: 3; }
.atlas__lede { margin: 24px 0 0; font-size: 13px; line-height: 2; letter-spacing: 0.03em; color: var(--muted); }
.atlas__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; max-width: 460px; }
.atlas__chips button {
  padding: 7px 13px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  transition: all 0.35s;
}
.atlas__chips button:hover, .atlas__chips button.is-active { color: var(--gold-2); border-color: var(--line); background: rgba(216, 182, 120, 0.07); }
.atlas__facts { display: flex; flex-wrap: wrap; gap: 22px 34px; margin: 38px 0 0; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.atlas__facts div { display: flex; flex-direction: column; gap: 5px; }
.atlas__facts dt { font-size: 8px; letter-spacing: 0.2em; color: var(--muted-2); }
.atlas__facts dd { margin: 0; font-size: 10px; letter-spacing: 0.06em; color: var(--ink-dim); }
.atlas__hint { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 10px; letter-spacing: 0.18em; color: var(--gold); }

.atlas__stage {
  position: relative;
  height: min(76vh, 760px);
  min-height: 480px;
  border-radius: 50%;
  isolation: isolate;
}
.atlas__orbit { position: absolute; inset: 8% 6%; border: 1px solid rgba(120, 160, 220, 0.1); border-radius: 50%; pointer-events: none; animation: orbit 80s linear infinite; }
.atlas__orbit::before { content: ""; position: absolute; inset: 7%; border: 1px dashed rgba(216, 182, 120, 0.1); border-radius: 50%; }
.atlas__orbit i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.atlas__orbit i:nth-child(1) { top: -2px; left: 50%; }
.atlas__orbit i:nth-child(2) { bottom: 12%; left: 4%; background: var(--cyan); }
.atlas__orbit i:nth-child(3) { top: 18%; right: 3%; background: var(--violet); }
@keyframes orbit { to { transform: rotate(360deg); } }
#globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#globe-canvas:active { cursor: grabbing; }
.atlas__stage::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 100, 170, 0.16), transparent 68%);
  filter: blur(30px);
  z-index: -1;
}

.atlas__hud { position: absolute; left: 6%; right: 6%; bottom: 4%; display: flex; align-items: flex-end; justify-content: space-between; pointer-events: none; }
.atlas__coords { display: flex; align-items: center; gap: 12px; font-size: 9px; letter-spacing: 0.16em; color: rgba(200, 210, 225, 0.55); }
.atlas__coords i { width: 18px; height: 1px; background: rgba(255, 255, 255, 0.2); }
.atlas__zoom { display: flex; flex-direction: column; gap: 6px; pointer-events: auto; }
.atlas__zoom button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--ink-dim);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(5, 6, 10, 0.4);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.atlas__zoom button:hover { color: var(--gold-2); border-color: var(--line); background: rgba(216, 182, 120, 0.08); }
.atlas__zoom .icon { width: 14px; height: 14px; }

.atlas__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--muted);
  transition: opacity 0.8s;
  pointer-events: none;
}
.atlas__loading span { width: 46px; height: 46px; border: 1px solid rgba(216, 182, 120, 0.2); border-top-color: var(--gold); border-radius: 50%; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.atlas__loading.is-gone { opacity: 0; }

.atlas__panel {
  position: absolute;
  right: -2%;
  bottom: 6%;
  width: min(330px, 82%);
  z-index: 5;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(10, 13, 21, 0.92), rgba(6, 8, 13, 0.95));
  backdrop-filter: blur(22px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transition: opacity 0.5s, transform 0.5s var(--ease);
}
.atlas-panel__empty { padding: 30px 26px; }
.atlas-panel__empty h3 { margin: 14px 0 12px; font-family: var(--font-cn); font-size: 27px; font-weight: 400; line-height: 1.3; letter-spacing: 0.05em; }
.atlas-panel__empty p:not(.eyebrow) { margin: 0; font-size: 11px; line-height: 1.9; color: var(--muted); }
.atlas-panel__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 9px; color: var(--muted-2); }
.atlas-panel__legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.dot--gold { background: var(--gold); }
.dot--blue { background: #5b9bd5; }
.dot--line { background: var(--violet); }

.atlas-panel__data { animation: panelIn 0.6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.atlas-panel__top { position: absolute; top: 12px; left: 14px; right: 12px; z-index: 3; display: flex; align-items: center; justify-content: space-between; }
.atlas-panel__region { padding: 5px 10px; font-size: 8px; letter-spacing: 0.16em; color: #1b1408; background: var(--gold); border-radius: 999px; text-transform: uppercase; }
.atlas-panel__close { width: 26px; height: 26px; display: grid; place-items: center; color: #fff; background: rgba(5, 6, 10, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; backdrop-filter: blur(8px); }
.atlas-panel__close .icon { width: 12px; height: 12px; }
.atlas-panel__figure { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #0a1018; }
.atlas-panel__figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.05); transition: opacity 0.5s; }
.atlas-panel__figure img.is-loading { opacity: 0.2; }
.atlas-panel__scan { position: absolute; left: 0; right: 0; height: 1px; top: 0; background: linear-gradient(90deg, transparent, rgba(216, 182, 120, 0.7), transparent); animation: scan 4.5s ease-in-out infinite; opacity: 0.6; }
@keyframes scan { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }
.atlas-panel__figure figcaption { position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: 7px; letter-spacing: 0.16em; color: rgba(255, 245, 220, 0.65); text-shadow: 0 1px 6px #000; }
.atlas-panel__body { padding: 18px 22px 22px; }
.atlas-panel__body h3 { margin: 0; font-family: var(--font-cn); font-size: 22px; font-weight: 400; letter-spacing: 0.05em; line-height: 1.3; color: var(--ink); }
.atlas-panel__body > p { margin: 5px 0 0; font-size: 10px; letter-spacing: 0.06em; color: var(--muted); }
.atlas-panel__coords { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.atlas-panel__coords span { display: flex; flex-direction: column; gap: 4px; }
.atlas-panel__coords i { font-style: normal; font-size: 7px; letter-spacing: 0.18em; color: var(--muted-2); }
.atlas-panel__coords b { font-family: var(--font-display); font-size: 14px; font-weight: 400; letter-spacing: 0.02em; color: var(--gold-2); }
.atlas-panel__profile { margin-top: 14px; }
.atlas-panel__profile-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 7px; letter-spacing: 0.14em; color: var(--muted-2); }
.atlas-panel__profile canvas { width: 100%; height: 64px; display: block; }
.atlas-panel__link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 9px; letter-spacing: 0.1em; color: var(--gold); }
.atlas-panel__link:hover { color: var(--gold-2); }

/* ----------------------------------------------------------------- story -- */

.story {
  position: relative;
  padding: clamp(90px, 13vh, 150px) 0 0;
  background:
    radial-gradient(ellipse 50% 30% at 20% 10%, rgba(216, 182, 120, 0.06), transparent 60%),
    linear-gradient(180deg, #05060a, #07070c 40%, #05060a);
  overflow: clip;
}
.story__head { position: relative; z-index: 2; }
.story__head-row { display: flex; align-items: flex-end; gap: 48px; }
.story__head-row > p { max-width: 330px; margin: 0 0 12px; font-family: var(--font-cn); font-size: 15px; letter-spacing: 0.08em; line-height: 1.8; color: var(--muted); }
.story__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 100px); margin-top: clamp(50px, 8vh, 90px); position: relative; }
.story__left { position: relative; }
.story__visual { position: sticky; top: 12vh; height: 70vh; min-height: 420px; }
.story__mask {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #08090d;
  clip-path: inset(var(--mask-top, 16%) var(--mask-x, 18%) var(--mask-bottom, 16%) var(--mask-x, 18%) round 2px);
  transition: clip-path 0.2s linear;
  box-shadow: 0 40px 100px -30px #000;
}
.story__mask img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8) saturate(0.9); transform: scale(var(--mask-scale, 1.12)); transition: transform 0.2s linear, filter 0.8s; }
.story__visual-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 10, 0.1), transparent 40%, rgba(4, 5, 8, 0.9)); }
.story__visual-text { position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 4vh, 44px); right: 30px; display: flex; flex-direction: column; gap: 10px; }
.story__visual-text span { font-size: 8px; letter-spacing: 0.3em; color: var(--gold); }
.story__visual-text b { font-family: var(--font-cn); font-size: clamp(22px, 2.4vw, 36px); font-weight: 400; line-height: 1.5; letter-spacing: 0.1em; color: var(--ink); }
.story__stamp {
  position: absolute;
  right: -22px;
  top: -26px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(8, 9, 14, 0.9);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.story__stamp span { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--gold); }
.story__stamp i { font-style: normal; font-size: 7px; line-height: 1.6; letter-spacing: 0.2em; color: var(--muted); }
.story__meta { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 8px; letter-spacing: 0.2em; color: var(--muted-2); }
.story__meta i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.story__meta span:first-child { color: var(--gold); }

.story__steps { display: flex; flex-direction: column; }
.story-step {
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10vh 0;
  opacity: 0.28;
  transform: translateY(20px);
  transition: opacity 0.7s, transform 0.7s var(--ease);
}
.story-step.is-active { opacity: 1; transform: none; }
.story-step__num { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.14em; color: var(--gold); }
.story-step h3 { margin: 16px 0 18px; font-family: var(--font-cn); font-size: clamp(26px, 2.8vw, 40px); font-weight: 400; line-height: 1.4; letter-spacing: 0.04em; color: var(--ink); }
.story-step p { margin: 0; font-size: 13px; line-height: 2.05; letter-spacing: 0.03em; color: var(--muted); }
.story-step__tag { margin-top: 26px; font-size: 8px; letter-spacing: 0.24em; color: var(--muted-2); }
.story-step--end { min-height: 60vh; }
.story-step--end .btn { align-self: flex-start; margin-top: 26px; }
.story__mask-band { height: 22vh; background: linear-gradient(180deg, transparent, #05060a); }

/* ----------------------------------------------------------------- about -- */

.about {
  position: relative;
  padding: clamp(90px, 13vh, 150px) 0 0;
  background:
    radial-gradient(ellipse 45% 40% at 85% 20%, rgba(216, 182, 120, 0.07), transparent 60%),
    linear-gradient(180deg, #05060a, #07080d);
  overflow: hidden;
}
.about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.about__title { margin: 20px 0 0; font-family: var(--font-cn); font-size: clamp(40px, 5.4vw, 78px); font-weight: 400; line-height: 1.25; letter-spacing: 0.04em; }
.about__title em { font-family: var(--font-display); font-style: italic; font-weight: 300; background: linear-gradient(180deg, #fff5df, #cba364); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__lede { margin: 32px 0 0; max-width: 520px; font-family: var(--font-cn); font-size: 17px; line-height: 1.95; letter-spacing: 0.04em; color: var(--ink-dim); }
.about__lede b { color: var(--gold-2); font-weight: 400; }
.about__body { margin: 20px 0 0; max-width: 520px; font-size: 13px; line-height: 2.05; letter-spacing: 0.03em; color: var(--muted); }
.about__sign { margin-top: 36px; font-family: var(--font-display); font-style: italic; font-size: 40px; color: var(--gold); }
.about__sign span { font-family: var(--font-ui); font-style: normal; font-size: 9px; letter-spacing: 0.2em; color: var(--muted-2); }
.about__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.about__figure { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(216, 182, 120, 0.16); }
.about__figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: brightness(0.82) saturate(0.9); transition: transform 1.4s var(--ease); }
.about__figure:hover img { transform: scale(1.04); }
.about__figure::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5); pointer-events: none; }
.about__figure figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; display: flex; justify-content: space-between; font-size: 8px; letter-spacing: 0.2em; color: rgba(255, 245, 225, 0.65); }
.about__figure figcaption i { font-style: normal; color: var(--gold); }

.about__card { margin-top: 22px; padding: 24px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.015); backdrop-filter: blur(10px); }
.about__card-head { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); font-size: 8px; letter-spacing: 0.2em; color: var(--muted); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; color: #8fd6a8; }
.status-dot::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #8fd6a8; box-shadow: 0 0 8px #8fd6a8; }
.about__card dl { margin: 16px 0 0; display: grid; gap: 9px; }
.about__card dl div { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; }
.about__card dt { color: var(--muted-2); letter-spacing: 0.08em; }
.about__card dd { margin: 0; color: var(--ink-dim); text-align: right; letter-spacing: 0.04em; }
.about__card dd a { color: var(--gold); }
.about__card-foot { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 7px; letter-spacing: 0.16em; color: var(--muted-2); }

.footer { margin-top: clamp(70px, 10vh, 120px); border-top: 1px solid var(--line-soft); overflow: hidden; }
.footer__marquee { display: flex; width: max-content; padding: 26px 0 10px; animation: marquee 26s linear infinite; }
.footer__marquee span {
  font-family: var(--font-display);
  font-size: clamp(60px, 9vw, 140px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 182, 120, 0.16);
  white-space: nowrap;
}
.footer__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-top: 36px; padding-bottom: 36px; border-top: 1px solid var(--line-soft); }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand .brand__mark { width: 30px; height: 30px; font-size: 0; }
.footer__brand .brand__mark::after { content: "Z"; font-size: 16px; transform: rotate(-45deg); }
.footer__brand b { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: 0.24em; color: var(--ink-dim); }
.footer__row p { margin: 0; font-size: 9px; line-height: 2; letter-spacing: 0.06em; color: var(--muted-2); }
.footer__links { display: flex; gap: 22px; font-size: 9px; letter-spacing: 0.12em; color: var(--muted); }
.footer__links a:hover, .footer__links button:hover { color: var(--gold); }

/* ----------------------------------------------------------------- modal -- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 40px);
  opacity: 1;
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(3, 4, 8, 0.76); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fadeIn 0.4s; }
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 8;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(5, 6, 10, 0.4);
  transition: all 0.3s;
}
.modal__close:hover { color: var(--gold-2); border-color: var(--gold); transform: rotate(90deg); }
.modal__close .icon { width: 16px; height: 16px; }

/* auth */
.auth-card {
  position: relative;
  width: min(460px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(216, 182, 120, 0.1), transparent 45%),
    linear-gradient(165deg, #10121b 0%, #08090f 60%, #06070c 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 60px 120px -30px #000, inset 0 1px 0 rgba(255, 240, 210, 0.08);
  animation: modalIn 0.6s var(--ease-out);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(0.98); } to { opacity: 1; transform: none; } }
.auth-card__crest { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 26px; border: 1px solid var(--line); transform: rotate(45deg); }
.auth-card__crest span { font-family: var(--font-display); font-size: 24px; color: var(--gold-2); transform: rotate(-45deg); }
.auth-card h2 { margin: 12px 0 26px; font-family: var(--font-cn); font-size: clamp(24px, 3vw, 32px); font-weight: 400; line-height: 1.45; letter-spacing: 0.05em; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--line-soft); border-radius: 999px; }
.auth-tab { flex: 1; padding: 9px; font-size: 11px; letter-spacing: 0.12em; color: var(--muted); border-radius: 999px; transition: all 0.3s; }
.auth-tab.is-active { color: #1b150a; background: var(--gold); }
.auth-note { margin: 0 0 20px; font-size: 11px; line-height: 1.9; color: var(--muted); }
.auth-note b { color: var(--gold-2); font-weight: 500; }
.auth-pane { animation: fadeIn 0.4s; }
.auth-foot { margin: 26px 0 0; text-align: center; font-size: 7px; letter-spacing: 0.26em; color: var(--muted-2); }
.auth-small { margin: 0; font-size: 10px; line-height: 1.8; color: var(--muted-2); text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted-2); font-size: 9px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field > span { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.field > span i { font-style: normal; letter-spacing: 0.06em; color: var(--muted-2); text-transform: none; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  outline: 0;
  transition: border-color 0.3s, background 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(216, 182, 120, 0.6); background: rgba(216, 182, 120, 0.04); }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.7; }
.field select { appearance: none; cursor: pointer; }
.field input[type="color"] { height: 44px; padding: 4px; cursor: pointer; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-error { margin: -4px 0 12px; min-height: 1.2em; font-size: 10px; letter-spacing: 0.04em; color: #f0a0a0; }

/* book */
.modal--book { padding: 0; }
.book-sheet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  width: min(1140px, 100%);
  height: min(88vh, 840px);
  max-height: 92vh;
  background: linear-gradient(160deg, #0c0e16 0%, #07080d 100%);
  border: 1px solid rgba(216, 182, 120, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 80px 160px -40px #000;
  animation: bookIn 0.7s var(--ease-out);
}
@keyframes bookIn { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal__close--book { top: 16px; right: 16px; background: rgba(5, 6, 10, 0.5); }
.book-sheet__cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: clamp(26px, 3vw, 44px);
  background:
    radial-gradient(ellipse 60% 40% at 50% 8%, rgba(255, 222, 160, 0.16), transparent 60%),
    linear-gradient(180deg, #0b1211, #070a09 70%, #060707);
  border-right: 1px solid var(--line-soft);
  overflow: hidden;
}
.book-sheet__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 90px);
  pointer-events: none;
}
.book-sheet__frame {
  position: relative;
  width: min(100%, 300px);
  padding: 10px;
  background: linear-gradient(135deg, #6d5128, #caa568 20%, #f3e0b0 40%, #9c773d 60%, #e4c78f 80%, #6b4f27);
  box-shadow: 0 30px 60px -20px #000, 0 0 0 1px rgba(255, 236, 193, 0.2);
  z-index: 2;
}
.book-sheet__frame::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(52, 34, 12, 0.5); z-index: 2; pointer-events: none; }
.book-sheet__frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.book-sheet__shine { position: absolute; inset: 10px; background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.14) 48%, transparent 60%); pointer-events: none; }
.book-sheet__plaque { position: relative; z-index: 2; width: min(100%, 300px); text-align: center; padding: 10px 14px; background: rgba(5, 6, 8, 0.7); border: 1px solid rgba(216, 182, 120, 0.25); }
.book-sheet__plaque span { display: block; font-size: 7px; letter-spacing: 0.22em; color: var(--gold); }
.book-sheet__plaque b { display: block; margin-top: 3px; font-family: var(--font-cn); font-weight: 400; font-size: 16px; letter-spacing: 0.1em; color: #e7dcc5; }
.book-sheet__change { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 10px; color: var(--ink-dim); border: 1px solid var(--line-soft); border-radius: 999px; transition: all 0.3s; }
.book-sheet__change:hover { color: var(--gold-2); border-color: var(--line); }

.book-sheet__main { overflow: hidden; display: flex; }
.book-sheet__scroll { width: 100%; overflow-y: auto; padding: clamp(28px, 4vw, 52px); scrollbar-width: thin; }
.book-head { position: relative; padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.book-head__title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.book-head h2 { margin: 10px 0 0; font-family: var(--font-cn); font-size: clamp(30px, 3.6vw, 46px); font-weight: 400; letter-spacing: 0.06em; line-height: 1.2; }
.book-lock { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; font-size: 8px; letter-spacing: 0.1em; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; }
.book-desc { margin: 16px 0 0; max-width: 620px; font-size: 12px; line-height: 2; letter-spacing: 0.03em; color: var(--muted); }
.book-meta { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 24px; }
.book-meta span { display: flex; flex-direction: column; gap: 5px; }
.book-meta i { font-style: normal; font-size: 7px; letter-spacing: 0.2em; color: var(--muted-2); }
.book-meta b { font-family: var(--font-display); font-size: 17px; font-weight: 400; letter-spacing: 0.03em; color: var(--gold-2); }
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.book-admin { margin-top: 24px; }
.dropzone {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px dashed rgba(216, 182, 120, 0.3);
  border-radius: 10px;
  background: rgba(216, 182, 120, 0.025);
  cursor: pointer;
  transition: all 0.3s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--gold); background: rgba(216, 182, 120, 0.07); }
.dropzone__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); }
.dropzone__text { display: flex; flex-direction: column; gap: 4px; }
.dropzone__text b { font-family: var(--font-cn); font-size: 14px; font-weight: 400; letter-spacing: 0.08em; color: var(--ink); }
.dropzone__text span { font-size: 9px; letter-spacing: 0.04em; color: var(--muted); }
.dropzone__count { margin-left: auto; font-size: 10px; color: var(--gold); white-space: nowrap; }
.upload-progress { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(0, 0, 0, 0.2); }
.upload-progress__head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 9px; letter-spacing: 0.08em; color: var(--muted); }
.upload-progress__head b { color: var(--gold-2); font-family: var(--font-display); font-size: 12px; font-weight: 400; }
.upload-progress__bar { height: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.upload-progress__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 0.25s; }

.book-files { margin-top: 30px; }
.book-files__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.book-files__head h3 { margin: 0; font-family: var(--font-cn); font-size: 17px; font-weight: 400; letter-spacing: 0.1em; color: var(--ink); }
.book-files__head h3 span { margin-left: 6px; font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.book-files__search { display: flex; align-items: center; gap: 7px; color: var(--muted); border-bottom: 1px solid var(--line-soft); padding-bottom: 5px; }
.book-files__search input { width: 150px; background: none; border: 0; outline: 0; font-size: 10px; color: var(--ink); }
.book-files__search input::placeholder { color: var(--muted-2); }

.file-list { list-style: none; margin: 0; padding: 0; }
.file-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.25s, padding 0.25s;
}
.file-row:hover { background: rgba(216, 182, 120, 0.035); padding-left: 12px; padding-right: 12px; }
.file-row__icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 6px; color: var(--muted); background: rgba(255, 255, 255, 0.02); }
.file-row__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.file-row__icon .icon { width: 16px; height: 16px; }
.file-row__name { min-width: 0; }
.file-row__name b { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0.02em; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row__name span { display: block; margin-top: 2px; font-size: 8px; letter-spacing: 0.06em; color: var(--muted-2); }
.file-row__size { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.02em; color: var(--muted); white-space: nowrap; }
.file-row__actions { display: flex; gap: 6px; }
.file-btn { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); border: 1px solid transparent; border-radius: 50%; transition: all 0.3s; }
.file-btn:hover { color: var(--gold-2); border-color: var(--line); background: rgba(216, 182, 120, 0.06); }
.file-btn--danger:hover { color: #f0a0a0; border-color: rgba(240, 160, 160, 0.3); }
.file-btn .icon { width: 14px; height: 14px; }

.file-empty { padding: 46px 20px; text-align: center; border: 1px dashed var(--line-soft); border-radius: 10px; }
.file-empty__frame { width: 50px; height: 50px; margin: 0 auto 14px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); transform: rotate(45deg); }
.file-empty__frame .icon { transform: rotate(-45deg); }
.file-empty p { margin: 0 0 4px; font-family: var(--font-cn); font-size: 15px; letter-spacing: 0.08em; color: var(--ink-dim); }
.file-empty span { font-size: 9px; letter-spacing: 0.08em; color: var(--muted-2); }

/* admin */
.admin-panel {
  position: relative;
  width: min(820px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #0e1018, #07080d);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 70px 140px -40px #000;
  animation: modalIn 0.6s var(--ease-out);
  overflow: hidden;
}
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 32px 36px 20px; }
.admin-head h2 { margin: 8px 0 0; font-family: var(--font-cn); font-size: 32px; font-weight: 400; letter-spacing: 0.06em; }
.admin-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 8px; letter-spacing: 0.12em; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; }
.admin-tabs { display: flex; gap: 4px; padding: 0 36px; border-bottom: 1px solid var(--line-soft); }
.admin-tabs button { padding: 12px 16px; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px; transition: all 0.3s; }
.admin-tabs button:hover { color: var(--ink-dim); }
.admin-tabs button.is-active { color: var(--gold-2); border-bottom-color: var(--gold); }
.admin-body { padding: 26px 36px 34px; overflow-y: auto; }
.admin-pane__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.admin-pane__top p { margin: 0; font-size: 11px; line-height: 1.8; color: var(--muted); }
.admin-books { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-book { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 8px; transition: border-color 0.3s, background 0.3s; }
.admin-book:hover { border-color: var(--line); background: rgba(216, 182, 120, 0.025); }
.admin-book img { width: 44px; height: 58px; object-fit: cover; border: 1px solid rgba(216, 182, 120, 0.25); }
.admin-book__info { min-width: 0; }
.admin-book__info b { display: flex; align-items: center; gap: 8px; font-family: var(--font-cn); font-size: 15px; font-weight: 400; letter-spacing: 0.06em; color: var(--ink); }
.admin-book__info b span { padding: 2px 6px; font-family: var(--font-ui); font-size: 7px; letter-spacing: 0.1em; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; }
.admin-book__info p { margin: 3px 0 0; font-size: 9px; letter-spacing: 0.04em; color: var(--muted-2); }
.admin-book__actions { display: flex; gap: 5px; }
.admin-book__actions .file-btn { width: 32px; height: 32px; }
.admin-note { margin: 0 0 18px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.form-stack { display: flex; flex-direction: column; }
.form-stack .btn { align-self: flex-start; margin-top: 6px; }
.admin-danger { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(240, 160, 160, 0.18); }
.admin-danger b { font-size: 12px; font-weight: 500; color: #f0b0b0; }
.admin-danger p { margin: 4px 0 0; font-size: 10px; color: var(--muted-2); }

/* book form */
.form-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 42px);
  background: linear-gradient(165deg, #10121b, #08090f);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 60px 120px -30px #000;
  animation: modalIn 0.6s var(--ease-out);
}
.form-card h2 { margin: 10px 0 26px; font-family: var(--font-cn); font-size: 30px; font-weight: 400; letter-spacing: 0.06em; }
.book-form-preview { margin: 4px 0 20px; width: 110px; }
.book-form-preview img { width: 110px; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); }

/* palette */
.modal--palette { align-items: start; padding-top: 12vh; }
.palette {
  position: relative;
  width: min(700px, 100%);
  background: linear-gradient(165deg, rgba(14, 16, 25, 0.98), rgba(7, 8, 13, 0.98));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 60px 120px -30px #000;
  overflow: hidden;
  animation: modalIn 0.45s var(--ease-out);
}
.palette__head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); color: var(--gold); }
.palette__head input { flex: 1; background: none; border: 0; outline: 0; font-size: 15px; letter-spacing: 0.03em; color: var(--ink); }
.palette__head input::placeholder { color: var(--muted-2); }
.palette__head kbd, .palette__foot kbd { font-family: var(--font-ui); font-size: 8px; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 4px; padding: 2px 5px; }
.palette__results { max-height: 54vh; overflow-y: auto; padding: 8px; }
.palette__group { padding: 10px 14px 6px; font-size: 8px; letter-spacing: 0.2em; color: var(--muted-2); }
.palette__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 8px; text-align: left; transition: background 0.2s; }
.palette__item:hover, .palette__item.is-active { background: rgba(216, 182, 120, 0.08); }
.palette__item img { width: 26px; height: 34px; object-fit: cover; border: 1px solid var(--line); }
.palette__item b { display: block; font-size: 12px; font-weight: 400; color: var(--ink); }
.palette__item span { display: block; margin-top: 1px; font-size: 8px; color: var(--muted-2); }
.palette__item .icon { margin-left: auto; color: var(--muted); }
.palette__empty { padding: 50px 20px; text-align: center; font-size: 12px; color: var(--muted); }
.palette__foot { display: flex; gap: 22px; padding: 10px 18px; border-top: 1px solid var(--line-soft); font-size: 8px; letter-spacing: 0.08em; color: var(--muted-2); }
.palette__foot span { display: flex; align-items: center; gap: 5px; }
.palette__foot span:last-child { margin-left: auto; }

/* lightbox */
.lightbox { position: relative; max-width: min(1100px, 94vw); max-height: 90vh; margin: 0; }
.lightbox img { max-width: 100%; max-height: 84vh; object-fit: contain; border: 1px solid var(--line); background: #05060a; }
.lightbox figcaption { margin-top: 10px; font-size: 10px; letter-spacing: 0.08em; color: var(--muted); text-align: center; }

/* toasts */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 10020; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  padding: 12px 16px;
  background: rgba(10, 12, 18, 0.95);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 40px -10px #000;
  font-size: 11px;
  color: var(--ink-dim);
  animation: toastIn 0.4s var(--ease-out);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}
.toast::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); flex: none; }
.toast--error::before { background: #f0a0a0; box-shadow: 0 0 8px #f0a0a0; }
.toast.is-out { animation: toastOut 0.3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

.scroll-veil { position: fixed; inset: 0; z-index: 850; background: #05060a; pointer-events: none; opacity: 0; transition: opacity 0.5s; }

.noscript { position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center; background: #05060a; color: var(--ink); font-size: 14px; padding: 30px; text-align: center; }

/* --------------------------------------------------------------- reveal --- */

[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ------------------------------------------------------------- responsive -- */

@media (max-width: 1180px) {
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 20px 26px; }
  .nav__links { gap: 18px; }
  .atlas__inner { grid-template-columns: 0.85fr 1.15fr; }
  .atlas__panel { right: 0; width: 300px; }
}

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__right > .btn { display: none; }
  .nav__right > .user-chip { display: none; }
  .icon-btn__kbd { display: none; }
  .hero__stats { display: none; }
  .hero__aside { display: none; }
  .wall__head-row { flex-wrap: wrap; gap: 18px 28px; }
  .wall__lede { order: 3; flex: 1 1 100%; max-width: 480px; }
  .wall__tools { margin-left: 0; }
  .cat-toolbar { flex-wrap: wrap; }
  .cat-search { flex: 1 1 240px; }
  .cat-sort { margin-left: 0; }
  .atlas__inner { grid-template-columns: 1fr; }
  .atlas__intro { max-width: 640px; }
  .atlas__stage { height: 68vh; min-height: 460px; margin-top: 10px; }
  .atlas__panel { right: 2%; bottom: 2%; }
  .story__inner { grid-template-columns: 1fr; gap: 30px; }
  .story__left { display: contents; }
  .story__visual { position: relative; top: 0; height: 46vh; min-height: 320px; order: 0; }
  .story__steps { order: 1; }
  .story-step { min-height: auto; padding: 8vh 0; opacity: 1; transform: none; }
  .story__meta { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__side { max-width: 640px; }
}

@media (max-width: 820px) {
  :root { --nav-h: 72px; }
  .brand__text i { display: none; }
  .hero { min-height: 92svh; padding-bottom: 80px; }
  .hero__title { line-height: 0.86; }
  .hero__cn { font-size: clamp(64px, 18vw, 120px); }
  .hero__en { font-size: clamp(48px, 14vw, 96px); }
  .hero__year { display: none; }
  .hero__desc { font-size: 12px; max-width: 320px; }
  .hero__actions { gap: 12px; }
  .hero__corner { display: none; }
  .hero__scroll { display: none; }
  .wall { height: 300vh; }
  .wall__head { top: 90px; }
  .wall__viewport { top: 215px; bottom: 90px; }
  .wall__track { padding: 0 8vw; gap: 34px; }
  .frame { width: clamp(200px, 42vw, 270px); }
  .wall__lede { display: none; }
  .wall__head-row .sec-title { font-size: clamp(38px, 9vw, 56px); }
  .wall__foot { gap: 14px; }
  .wall__bar { display: none; }
  .cat-head__row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .cat-card__title { font-size: 16px; }
  .cat-card__meta { display: none; }
  .cat-card__hover { display: none; }
  .cat-card__info { padding-top: 10px; }
  .cat-toolbar { gap: 12px; }
  .cat-filters { order: 3; flex: 1 1 100%; }
  .atlas__stage { height: 62vh; min-height: 400px; }
  .atlas__panel { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 16px; }
  .atlas__hud { bottom: 2%; }
  .story__visual { height: 40vh; min-height: 280px; }
  .story__stamp { right: 12px; top: -14px; }
  .about__figure img { aspect-ratio: 4 / 3; }
  .footer__row { flex-direction: column; gap: 22px; }
  .book-sheet { grid-template-columns: 1fr; height: min(92vh, 900px); overflow-y: auto; }
  .book-sheet__cover { flex-direction: row; align-items: center; justify-content: flex-start; padding: 22px; gap: 18px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .book-sheet__frame { width: 92px; flex: none; padding: 5px; }
  .book-sheet__plaque { width: auto; text-align: left; flex: 1; }
  .book-sheet__change { display: none; }
  .book-sheet__main { overflow: visible; display: block; }
  .book-sheet__scroll { overflow: visible; padding: 24px 22px 40px; }
  .book-head h2 { font-size: 30px; }
  .admin-head { padding: 26px 22px 16px; }
  .admin-tabs { padding: 0 22px; }
  .admin-body { padding: 22px; }
  .admin-book { grid-template-columns: 38px minmax(0, 1fr); }
  .admin-book__actions { grid-column: 1 / -1; justify-content: flex-end; }
  .modal--palette { padding-top: 8vh; }
}

@media (max-width: 560px) {
  .opening__title { flex-direction: column; align-items: center; gap: 6px; }
  .opening__zfl { font-size: 68px; }
  .opening__cn { font-size: clamp(30px, 9.4vw, 44px); }
  .opening__sub { font-size: 12px; }
  .opening__meta-label { display: none; }
  .hero { padding-inline: 20px; }
  .hero__kicker { font-size: 8px; letter-spacing: 0.22em; }
  .hero__actions .btn--text { display: none; }
  .hero__line--en { gap: 0; }
  .wall__tools { display: none; }
  .wall__hint { font-size: 8px; letter-spacing: 0.12em; }
  .wall__count b { font-size: 20px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card__media { aspect-ratio: 3 / 4; }
  .cat-card__sub { font-size: 7px; }
  .atlas__chips { gap: 5px; }
  .atlas__chips button { padding: 6px 10px; font-size: 9px; }
  .atlas__facts { display: none; }
  .atlas__stage { min-height: 350px; height: 54vh; }
  .atlas__hud { display: none; }
  .atlas__panel { width: 100%; }
  .atlas__panel .atlas-panel__figure { aspect-ratio: 2 / 1; }
  .story__head-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .story__head-row > p { max-width: 100%; }
  .story__visual { height: 34vh; min-height: 240px; }
  .story__stamp { display: none; }
  .story__visual-text b { font-size: 18px; }
  .field-row { grid-template-columns: 1fr; }
  .book-actions .btn { flex: 1 1 auto; }
  .book-meta { gap: 18px; }
  .file-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .file-row__size { display: none; }
  .admin-badge { display: none; }
  .admin-tabs button { padding: 10px 10px; font-size: 10px; }
  .modal { padding: 10px; }
  .auth-card { padding: 26px 20px; border-radius: 14px; }
  .toasts { left: 14px; right: 14px; bottom: 14px; }
  .toast { min-width: 0; }
  .atlas-panel__coords b { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero__media img { animation: none; transform: scale(1.06); }
  .cat-marquee__track, .footer__marquee { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ live patch -- */

.frame__mat { display: block; }
.wall__track { padding-left: calc(50vw - clamp(110px, 10.5vw, 157.5px)); padding-right: calc(50vw - clamp(110px, 10.5vw, 157.5px)); }
.frame.is-active .frame__mat {
  box-shadow:
    0 40px 90px -22px rgba(0, 0, 0, 0.92),
    0 0 60px -10px rgba(216, 182, 120, 0.38),
    0 0 0 1px rgba(255, 238, 200, 0.42),
    inset 0 0 0 1px rgba(60, 40, 15, 0.5);
}
.frame.is-active .frame__light { opacity: 1.2; }

.cat-card__text { display: block; min-width: 0; }
.cat-card__title { display: block; }

.file-row__name { display: flex; flex-direction: column; }
.file-row__title {
  display: block;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s;
}
.file-row__title:hover { color: var(--gold-2); }
.file-row__meta { display: block; margin-top: 2px; font-size: 8px; letter-spacing: 0.06em; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropzone.is-dragover { border-color: var(--gold); background: rgba(216, 182, 120, 0.07); }
.book-sheet__change.is-busy { opacity: 0.5; pointer-events: none; }
.btn.is-disabled { opacity: 0.35; pointer-events: none; }
.admin-empty { padding: 40px 20px; text-align: center; font-size: 11px; letter-spacing: 0.06em; color: var(--muted); border: 1px dashed var(--line-soft); border-radius: 8px; }

.opening__dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(120, 100, 70, 0.6);
  box-shadow: 0 0 6px rgba(168, 133, 79, 0.28);
  animation: dotFloat linear infinite;
}
@keyframes dotFloat {
  0% { transform: translate3d(0, 10px, 0); }
  50% { transform: translate3d(1.2vw, -18px, 0); }
  100% { transform: translate3d(0, 10px, 0); }
}

.click-ripple {
  position: fixed;
  z-index: 10050;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 1px solid rgba(216, 182, 120, 0.75);
  border-radius: 50%;
  pointer-events: none;
  animation: ripple 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
@keyframes ripple {
  from { transform: scale(0.4); opacity: 0.9; }
  to { transform: scale(5.6); opacity: 0; }
}

body.cursor-ready,
body.cursor-ready a,
body.cursor-ready button,
body.cursor-ready [role="button"],
body.cursor-ready .frame,
body.cursor-ready .cat-card,
body.cursor-ready select { cursor: none; }
body.cursor-ready input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
body.cursor-ready textarea { cursor: text; }
body.cursor-hidden .cursor,
body.cursor-hidden #trail-canvas { opacity: 0; }

@media (max-width: 820px) {
  .wall__track { padding-left: calc(50vw - clamp(96px, 24vw, 120px)); padding-right: calc(50vw - clamp(96px, 24vw, 120px)); }
}

.cat-filter__n {
  margin-left: 7px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.02em;
  opacity: 0.45;
}
.cat-filter.is-active .cat-filter__n { opacity: 0.7; }
#globe-canvas { border-radius: 50%; }

.cat-filter { display: inline-flex; align-items: center; white-space: nowrap; max-width: 100%; }
.cat-filter__n { flex: 0 0 auto; }
.admin-badge, .admin-panel__badge { margin-right: 40px; }
.admin-panel__close { right: 16px; }

@media (max-width: 820px) {
  .atlas__panel { left: 3%; right: 3%; bottom: 3%; width: auto; max-height: 72%; overflow-y: auto; }
  .atlas__panel:has(.atlas-panel__empty:not(.is-hidden)) { display: none; }
  .atlas__stage { height: clamp(340px, 58vh, 460px); }
}

.atlas-panel__figure { position: relative; background: #0a0e15; }
.atlas-panel__figure img.is-loading { opacity: 0.12; }
.atlas-panel__figure:has(img.is-loading)::after {
  content: "正在装载卫星切片…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(231, 238, 255, 0.55);
  pointer-events: none;
}

.hero__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
}
@media (max-width: 560px) { .hero__fx { opacity: 0.7; } }

/* ==========================================================================
   THE LEDGER - data records & guestbook
   ========================================================================== */

.ledger {
  position: relative;
  padding: clamp(90px, 12vh, 150px) 0 clamp(70px, 9vh, 110px);
  background:
    radial-gradient(ellipse 55% 40% at 18% 0%, rgba(216, 182, 120, 0.07), transparent 65%),
    radial-gradient(ellipse 45% 45% at 92% 70%, rgba(167, 139, 250, 0.05), transparent 70%),
    #05060a;
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
}

.ledger__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 182, 120, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 182, 120, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
  opacity: 0.7;
}

.ledger__head { position: relative; margin-bottom: clamp(34px, 5vh, 54px); }

.ledger__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.ledger__lede {
  max-width: 390px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.ledger__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.16fr 0.92fr 0.98fr;
  grid-template-rows: auto auto;
  gap: 14px;
}

.lcard {
  position: relative;
  padding: 26px 28px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(8, 9, 14, 0.72);
  overflow: hidden;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}

.lcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 182, 120, 0.55), transparent);
  opacity: 0.5;
}

.lcard:hover { border-color: var(--line); transform: translateY(-2px); }

.lcard__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.8;
}

.lcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.lcard__badge {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px 10px;
}

.lcard--days {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 32px 26px;
  background:
    radial-gradient(ellipse 70% 55% at 22% 30%, rgba(216, 182, 120, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    rgba(8, 9, 14, 0.75);
}

.lcard__days {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: clamp(18px, 3vh, 34px) 0 8px;
}

.lcard__days span {
  font-family: var(--font-display);
  font-size: clamp(88px, 10vw, 146px);
  line-height: 0.78;
  color: var(--gold-2);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 70px rgba(216, 182, 120, 0.28);
}

.lcard__days i {
  font-style: normal;
  font-family: var(--font-cn);
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.2em;
}

.lcard__sub { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.lcard__sub time { color: var(--ink-dim); }

.lcard__mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.lcard__mini div { display: flex; flex-direction: column; gap: 2px; }
.lcard__mini b {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.lcard__mini span { font-size: 10px; letter-spacing: 0.12em; color: var(--muted-2); }

.lcard--clock { display: flex; flex-direction: column; justify-content: center; }

.lclock {
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.6vw, 62px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.lclock em { font-style: normal; font-size: 0.52em; color: var(--gold); margin-left: 4px; }
.lclock__date { margin: 4px 0 0; color: var(--ink-dim); font-size: 13px; letter-spacing: 0.06em; }
.lclock__zone { margin: 6px 0 0; color: var(--muted-2); font-size: 9px; letter-spacing: 0.3em; }

.lcard--weather { display: flex; flex-direction: column; }

.lweather { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 2px; }
.lweather__icon { width: 62px; height: 62px; color: var(--gold-2); opacity: 0.9; }
.lweather__icon svg { width: 100%; height: 100%; }
.lweather__temp { display: flex; align-items: flex-start; gap: 2px; }
.lweather__temp b {
  font-family: var(--font-display);
  font-size: clamp(44px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 0.9;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.lweather__temp i { font-style: normal; font-size: 15px; color: var(--gold); margin-top: 6px; }
.lweather__desc { margin: 4px 0 0; font-family: var(--font-cn); font-size: 17px; color: var(--ink); letter-spacing: 0.04em; }
.lweather__meta { margin: 4px 0 0; color: var(--muted); font-size: 11px; letter-spacing: 0.04em; }
.lweather__city { margin: auto 0 0; padding-top: 12px; color: var(--muted-2); font-size: 9px; letter-spacing: 0.24em; }

.lcard--chart { grid-column: 2 / -1; }

.lcard__chart-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lcard__today { color: var(--muted); font-size: 11px; letter-spacing: 0.05em; }
.lcard__today b { color: var(--gold-2); font-family: var(--font-display); font-size: 15px; font-weight: 500; }

.lchart {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  align-items: end;
  gap: 5px;
  height: 92px;
  margin-top: 20px;
}

.lbar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.lbar i {
  display: block;
  width: 100%;
  min-height: 3px;
  height: var(--h, 4%);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(241, 219, 169, 0.9), rgba(216, 182, 120, 0.12));
  transform-origin: bottom;
  animation: lbarGrow 0.8s var(--ease-out) both;
  animation-delay: calc(var(--i) * 35ms);
}
.lbar:nth-child(3n) i { background: linear-gradient(180deg, rgba(216, 182, 120, 0.7), rgba(216, 182, 120, 0.08)); }
.lbar.is-today i { background: linear-gradient(180deg, #fff6e2, var(--gold)); box-shadow: 0 0 18px rgba(216, 182, 120, 0.35); }
.lbar:hover i { filter: brightness(1.25); }

@keyframes lbarGrow { from { transform: scaleY(0.02); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.lchart__axis {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 5px;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.02em;
  text-align: center;
}

.guestbook {
  position: relative;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(48px, 7vh, 76px);
  padding-top: clamp(36px, 5vh, 52px);
  border-top: 1px solid var(--line-soft);
}

.guestbook__intro .sec-label { margin-bottom: 16px; }
.guestbook__intro h3 {
  margin: 0 0 10px;
  font-family: var(--font-cn);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.guestbook__intro > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }

.gform { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 10px; letter-spacing: 0.18em; color: var(--muted-2); }
.field > span i { font-style: normal; color: rgba(216, 182, 120, 0.55); letter-spacing: 0.06em; }
.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus { border-color: rgba(216, 182, 120, 0.5); background: rgba(255, 255, 255, 0.045); }

.gform__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gform__count { color: var(--muted-2); font-size: 10px; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.gform__error { margin: 0; color: #f0a0a0; font-size: 12px; }

.guestbook__board {
  padding: 22px 28px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01));
  min-height: 360px;
}

.guestbook__board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.26em;
}
.guestbook__board-head b { color: var(--gold); font-family: var(--font-display); font-size: 14px; letter-spacing: 0.02em; }

.glist { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow-y: auto; scrollbar-width: thin; }
.glist::-webkit-scrollbar { width: 6px; }
.glist::-webkit-scrollbar-thumb { background: rgba(216, 182, 120, 0.25); border-radius: 3px; }

.gitem { position: relative; padding: 15px 0 14px; border-bottom: 1px dashed rgba(255, 255, 255, 0.07); }
.gitem:last-child { border-bottom: 0; }
.gitem__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gitem__name { font-family: var(--font-cn); font-size: 15px; color: var(--gold-2); letter-spacing: 0.04em; }
.gitem__time { color: var(--muted-2); font-size: 9px; letter-spacing: 0.16em; white-space: nowrap; }
.gitem__text { margin: 6px 0 0; color: var(--ink-dim); font-size: 13.5px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.gitem__del {
  position: absolute;
  top: 14px;
  right: -2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.gitem:hover .gitem__del { opacity: 1; }
.gitem__del:hover { color: #f0a0a0; }
.gitem__del .icon { width: 12px; height: 12px; }

.glist__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 260px; color: var(--muted-2); text-align: center; }
.glist__empty .icon { width: 26px; height: 26px; opacity: 0.6; }
.glist__empty p { margin: 0; font-size: 12px; letter-spacing: 0.08em; }

@media (max-width: 1024px) {
  .ledger__grid { grid-template-columns: 1fr 1fr; }
  .lcard--days { grid-row: auto; grid-column: 1 / -1; }
  .lcard--chart { grid-column: 1 / -1; }
  .guestbook { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ledger__grid { grid-template-columns: 1fr; }
  .lcard { padding: 22px; }
  .lcard--days { padding: 24px 22px; }
  .lcard__days span { font-size: 92px; }
  .lcard__mini b { font-size: 22px; }
  .lcard--clock, .lcard--weather, .lcard--chart { grid-column: 1 / -1; }
  .lclock { font-size: 52px; }
  .lweather__temp b { font-size: 48px; }
  .lchart { height: 72px; gap: 3px; }
  .lchart__axis { font-size: 7px; }
  .guestbook__board { padding: 18px; min-height: 300px; }
}

/* ---- atlas labels / relief ---- */
.atlas__lede { margin-top: 20px; }
.atlas__relief {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translate(-50%, 6px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(240, 208, 152, 0.9);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
}
.atlas__relief.is-on { opacity: 1; transform: translate(-50%, 0); }
.atlas__relief i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e6c586;
  box-shadow: 0 0 8px #e6c586;
}

/* ---- admin identity form ---- */
#identity-form { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line-soft); }

.admin-body { min-height: 0; }

.atlas__panel {
  touch-action: none;
  cursor: grab;
  will-change: translate;
}
.atlas__panel.is-dragging { cursor: grabbing; }
.atlas__panel.is-dragging * { cursor: grabbing !important; user-select: none; }
.atlas__panel::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 14px;
  width: 22px;
  height: 3px;
  border-top: 1px solid rgba(242, 237, 227, 0.35);
  border-bottom: 1px solid rgba(242, 237, 227, 0.35);
  pointer-events: none;
  z-index: 3;
}

/* wall: native horizontal gallery, page scroll stays normal */
.wall {
  height: auto;
  min-height: 0;
  padding: clamp(80px, 11vh, 118px) 0 clamp(44px, 7vh, 72px);
}
.wall__sticky {
  position: relative;
  top: auto;
  height: auto;
  min-height: 0;
  overflow: visible;
}
.wall__bg { position: absolute; inset: 0; }
.wall__head {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  padding: 0 clamp(20px, 5vw, 72px);
}
.wall__viewport {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  height: clamp(430px, 60vh, 600px);
  margin-top: clamp(22px, 3.4vh, 40px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  -webkit-mask-image: none;
  mask-image: none;
}
.wall__viewport::-webkit-scrollbar { display: none; }
.wall__viewport.is-dragging { cursor: grabbing; }
.wall__track {
  height: 100%;
  width: max-content;
  transform: none !important;
  padding: 0 clamp(20px, 5vw, 72px);
  align-items: flex-start;
}
.wall__foot {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin: clamp(16px, 2.4vh, 26px) clamp(20px, 5vw, 72px) 0;
}
.wall__hint-drag { display: inline-block; }
@media (max-width: 820px) {
  .wall__viewport { height: clamp(360px, 56vh, 500px); cursor: default; }
  .wall__track { padding: 0 18px; gap: 18px; }
}

/* story: horizontal reading on hover, normal page flow */
.story { padding: clamp(70px, 10vh, 110px) 0 clamp(60px, 9vh, 100px) !important; }
.story__steps {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  gap: 0;
  align-items: stretch;
}
.story__steps::-webkit-scrollbar { display: none; }
.story-step {
  flex: 0 0 100%;
  min-height: 0 !important;
  padding: 6px 0 6px clamp(0px, 4vw, 48px) !important;
  scroll-snap-align: start;
  opacity: 1 !important;
  transform: none !important;
}
.story-step:first-child { padding-left: 0 !important; }
.story-step.is-active h3 { color: var(--cream); }
.story__meta { margin-top: 14px; }
@media (max-width: 1024px) {
  .story__steps { margin-top: 26px; }
}
.story__steps { flex-direction: row; flex-wrap: nowrap; }

/* Failsafe: never let a slow module graph trap the visitor on the opening veil. */
#opening { animation: opening-failsafe 0.5s 9s forwards; }
@keyframes opening-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
body.is-loading { animation: body-unlock 0s 9s forwards; }
@keyframes body-unlock { to { overflow: auto; } }
