/* 彝·织 — 夜幕剧场 + 纸白档案
   Design tokens, layout, motion */

:root {
  --ink: #12100e;
  --ink-soft: #1a1613;
  --ink-deep: #0b0a09;
  --gold: #c9a227;
  --gold-soft: #dcc48c;
  --gold-dim: rgba(201, 162, 39, 0.32);
  --red: #a83a30;
  --indigo: #1e3557;
  --indigo-deep: #162942;
  --paper: #f3ebdd;
  --paper-deep: #e7dac6;
  --muted: #8b8378;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --latin: "Cormorant Garamond", "Times New Roman", serif;
  --yi: "Microsoft Yi Baiti", "Nuosu SIL", "Noto Sans Yi", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --pad: clamp(20px, 6vw, 96px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--gold); color: var(--ink); }

/* ---------- texture & cursor ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  z-index: 95;
  pointer-events: none;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  mix-blend-mode: difference;
}
.cursor.is-hover {
  width: 58px;
  height: 58px;
  background: rgba(201, 162, 39, 0.16);
  border-color: transparent;
}
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-soft);
  transform: translate3d(-50%, -50%, 0);
  z-index: 96;
  pointer-events: none;
}

@media (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* ---------- thread progress ---------- */

.thread-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 80;
  background: transparent;
}
.thread-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.5);
}

/* ---------- preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ink-deep);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-inner { display: grid; justify-items: center; gap: 22px; }
.preloader-logo { width: 82px; filter: drop-shadow(0 0 22px rgba(201, 162, 39, 0.22)); animation: breathe 2.4s ease-in-out infinite; }
.preloader-count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--gold-soft); }
.preloader-line { width: 140px; height: 1px; background: rgba(243, 235, 221, 0.14); overflow: hidden; }
.preloader-line i { display: block; height: 100%; width: 0; background: var(--gold); }
.preloader-curtain { position: fixed; inset: 0; z-index: 199; pointer-events: none; display: flex; }
.preloader-curtain i { flex: 1; background: var(--ink-deep); transition: transform 0.9s var(--ease); }
.preloader.is-done + .preloader-curtain i:first-child { transform: translateY(-100%); }
.preloader.is-done + .preloader-curtain i:last-child { transform: translateY(100%); }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  color: var(--paper);
  transition: color 0.5s var(--ease), background 0.5s var(--ease), padding 0.4s var(--ease);
}
.site-head.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(11, 10, 9, 0.52);
  backdrop-filter: blur(14px);
}
body[data-theme="light"] .site-head.is-scrolled {
  background: rgba(243, 235, 221, 0.72);
  color: var(--ink);
}
body[data-theme="light"] .site-head { color: var(--ink); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: auto; }
.brand-text {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.brand-text em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.34em;
  opacity: 0.6;
  margin-top: 2px;
}

.nav { display: flex; gap: clamp(18px, 2.4vw, 38px); font-size: 12px; letter-spacing: 0.16em; }
.nav a { position: relative; padding: 6px 0; opacity: 0.72; transition: opacity 0.3s; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { opacity: 1; }

.head-right { display: flex; align-items: center; gap: 20px; }
.head-index { font-family: var(--yi); font-size: 13px; letter-spacing: 0.2em; opacity: 0.5; }
.menu-btn { display: none; font-size: 12px; letter-spacing: 0.16em; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 69;
  background: var(--ink-deep);
  color: var(--paper);
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 0 var(--pad);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--serif);
  font-size: clamp(32px, 9vw, 48px);
  font-weight: 600;
  line-height: 1.3;
  border-bottom: 1px solid rgba(243, 235, 221, 0.1);
  padding: 10px 0;
}
.mobile-nav small { font-family: var(--mono); color: var(--gold); margin-right: 12px; font-size: 11px; }

/* ---------- chapter rail ---------- */

.chapter-rail {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 68;
  display: grid;
  gap: 4px;
  padding: 12px 14px 12px 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--paper);
  background: rgba(9, 8, 7, 0.62);
  border: 1px solid rgba(201, 162, 39, 0.22);
  backdrop-filter: blur(10px);
  transition: color 0.5s, background 0.5s, border-color 0.5s;
}
body[data-theme="light"] .chapter-rail {
  color: var(--ink);
  background: rgba(243, 235, 221, 0.78);
  border-color: rgba(18, 16, 14, 0.16);
}
.chapter-rail a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.chapter-rail a:hover, .chapter-rail a.is-active { opacity: 1; }
.chapter-rail i {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transition: width 0.4s var(--ease), opacity 0.4s, background 0.4s;
}
.chapter-rail a.is-active i { width: 34px; opacity: 1; background: var(--gold); }
.chapter-rail span {
  font-size: 9px;
  font-weight: 500;
  color: currentColor;
  opacity: 0.55;
  transition: opacity 0.3s, color 0.3s;
  -webkit-text-stroke: 0.4px rgba(11, 10, 9, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
body[data-theme="light"] .chapter-rail span {
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
.chapter-rail a:hover span, .chapter-rail a.is-active span { opacity: 1; }
.chapter-rail a.is-active span { color: var(--gold); }
body[data-theme="light"] .chapter-rail a.is-active span { color: var(--red); }

@media (max-width: 900px) { .chapter-rail { display: none; } }

/* ---------- shared type ---------- */

.kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin: 0;
}
body[data-theme="light"] .kicker { color: var(--red); }

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}

.section-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(20px, 5vw, 80px);
  align-items: end;
  padding: clamp(70px, 11vh, 130px) var(--pad) clamp(30px, 5vh, 60px);
}
.section-head::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), rgba(201, 162, 39, 0.06) 60%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease) 0.1s;
}
.section-head.in::after { transform: scaleX(1); }
.section-head .kicker { grid-column: 1 / -1; margin-bottom: -6px; }
.section-head h2 { max-width: 13em; }
.section-head .head-note {
  font-size: 13px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 30em;
  margin: 0;
  justify-self: end;
  text-wrap: pretty;
}
body[data-theme="light"] .section-head .head-note { color: #6c6459; }

/* ---------- buttons ---------- */

.btn-enter {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--gold-dim);
  padding: 0 0 12px;
  transition: gap 0.4s var(--ease), border-color 0.4s;
}
.btn-enter svg { width: 30px; transition: transform 0.4s var(--ease); }
.btn-enter:hover { gap: 26px; border-color: var(--gold); }
.btn-enter:hover svg { transform: translateX(4px); }

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--gold-dim);
  font-size: 11px;
  letter-spacing: 0.18em;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.btn-line:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

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

.hero {
  position: relative;
  min-height: 100svh;
  padding: 0 var(--pad) 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 42% 62% at 66% 44%, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.03) 52%, transparent 72%),
    radial-gradient(ellipse 60% 40% at 66% 100%, rgba(168, 58, 48, 0.1), transparent 70%),
    var(--ink-deep);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 17.9%, rgba(201, 162, 39, 0.12) 18%, transparent 18.08%),
    linear-gradient(90deg, transparent 81.9%, rgba(201, 162, 39, 0.12) 82%, transparent 82.08%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  background: linear-gradient(transparent, rgba(11, 10, 9, 0.86));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-top: clamp(120px, 20vh, 210px);
  max-width: 62%;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(26px, 4vh, 46px);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--gold-soft);
  opacity: 0.85;
}
.eyebrow-line { display: block; width: 46px; height: 1px; background: var(--gold); }

.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(4.2rem, 9.4vw, 9.6rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  margin: 0;
}
.hero-title .line { display: block; }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 162, 39, 0.8);
  text-stroke: 1px rgba(201, 162, 39, 0.8);
}
.hero-sub {
  margin: clamp(24px, 4vh, 40px) 0 0;
  font-family: var(--serif);
  font-size: clamp(14px, 1.3vw, 19px);
  letter-spacing: 0.14em;
  color: var(--paper);
  opacity: 0.85;
}
.hero-desc {
  margin: 18px 0 clamp(28px, 4vh, 44px);
  font-size: 12px;
  line-height: 2;
  color: rgba(243, 235, 221, 0.55);
  max-width: 33em;
}

.hero-figure {
  position: absolute;
  right: clamp(4%, 7vw, 10%);
  bottom: 82px;
  z-index: 2;
  width: clamp(300px, 32vw, 520px);
  margin: 0;
}
.figure-inner {
  position: relative;
  aspect-ratio: 3 / 4.05;
  border-radius: 300px 300px 0 0;
  padding: 10px;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.06), transparent 40%);
}
.figure-inner::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 290px 290px 0 0;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.figure-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  border-radius: 290px 290px 0 0;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.6));
  will-change: transform;
}
.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(243, 235, 221, 0.5);
}

.hero-stats {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  padding: 22px 0 26px;
}
.hero-stats div { display: grid; gap: 6px; }
.hero-stats b {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}
.hero-stats span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(243, 235, 221, 0.42);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 4;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(243, 235, 221, 0.4);
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- looks ---------- */

.looks {
  position: relative;
  background: var(--ink);
  padding-bottom: clamp(60px, 9vh, 110px);
}
.looks .section-head { padding-top: clamp(76px, 11vh, 130px); padding-bottom: clamp(20px, 3.2vh, 38px); }
.looks::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: 60vw;
  height: 60vw;
  max-width: 860px;
  max-height: 860px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201, 162, 39, 0.1), transparent 62%);
  pointer-events: none;
}

.looks-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(26px, 3.6vw, 58px) clamp(30px, 4vw, 66px);
  align-items: center;
  padding: 0 var(--pad);
}

.dh-stage {
  position: relative;
  height: min(52vh, 480px);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.2);
  background:
    radial-gradient(52% 42% at 50% 26%, rgba(201, 162, 39, 0.22), transparent 72%),
    radial-gradient(72% 54% at 50% 96%, rgba(30, 53, 87, 0.5), transparent 70%),
    linear-gradient(180deg, #15110e 0%, #0c0a09 62%, #0a0807 100%);
}
.dh-stage::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(243, 235, 221, 0.055);
  pointer-events: none;
}
.dh-arch {
  position: absolute;
  left: 50%;
  top: 7%;
  width: min(76%, 440px);
  height: 86%;
  transform: translateX(-50%);
  border: 1px solid rgba(201, 162, 39, 0.17);
  border-radius: 50% 50% 0 0 / 32% 32% 0 0;
  pointer-events: none;
}
.dh-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.62));
  animation: dhIn 0.8s var(--ease) both;
}
@keyframes dhIn {
  from { opacity: 0; transform: translateY(14px) scale(1.015); }
  to { opacity: 1; transform: none; }
}
.dh-floor {
  position: absolute;
  left: 50%;
  bottom: 3.2%;
  width: 44%;
  height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.3), rgba(201, 162, 39, 0.06) 55%, transparent 74%);
  filter: blur(8px);
  pointer-events: none;
}
.dh-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(243, 235, 221, 0.68);
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(11, 10, 9, 0.5);
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}
.dh-count {
  position: absolute;
  right: 20px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(243, 235, 221, 0.4);
}
.dh-count em {
  font-family: var(--serif);
  font-style: normal;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-right: 4px;
}

.dh-rail {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(56px, 5.4vw, 80px);
  gap: 10px;
  margin-top: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.dh-rail::-webkit-scrollbar { display: none; }
.dh-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.16);
  background: linear-gradient(180deg, #14110e, #0b0908);
  transition: border-color 0.35s, background 0.35s;
}
.dh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  opacity: 0.5;
  filter: saturate(0.8);
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease), transform 0.6s var(--ease);
}
.dh-thumb .n {
  position: absolute;
  top: 5px;
  left: 7px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(243, 235, 221, 0.42);
}
.dh-thumb:hover img { opacity: 0.8; }
.dh-thumb.is-active {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.1), #0b0908);
}
.dh-thumb.is-active img { opacity: 1; filter: none; transform: translateY(-2px); }
.dh-thumb.is-active .n { color: var(--gold); }

.look-detail { display: grid; gap: 16px; align-content: center; max-width: 450px; }
.look-detail .series-en { font-family: var(--mono); font-size: 9px; letter-spacing: 0.24em; color: var(--gold); }
.look-detail h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  margin: 0;
  line-height: 1.32;
  letter-spacing: 0.03em;
  text-wrap: balance;
}
.look-detail p { margin: 0; font-size: 12px; line-height: 2; color: rgba(243, 235, 221, 0.55); }
.look-nav { display: flex; align-items: center; gap: 10px; }
.look-nav button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--gold-soft);
  font-size: 13px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.look-nav button:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.1); color: var(--paper); }
.look-nav span { font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; color: rgba(243, 235, 221, 0.32); margin-left: 4px; }
.spec { display: grid; gap: 0; margin: 4px 0 0; border-top: 1px solid rgba(243, 235, 221, 0.1); }
.spec div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(243, 235, 221, 0.08);
  font-size: 11px;
}
.spec dt { color: rgba(243, 235, 221, 0.35); letter-spacing: 0.1em; }
.spec dd { margin: 0; color: rgba(243, 235, 221, 0.78); }
.look-detail .note {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(243, 235, 221, 0.28);
  line-height: 1.9;
}

/* ---------- atlas (paper) ---------- */

.atlas {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding-bottom: clamp(70px, 10vh, 130px);
  overflow: hidden;
}
.atlas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/leaf-pattern.png");
  background-size: 520px;
  opacity: 0.055;
  pointer-events: none;
}
.atlas::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 252, 244, 0.85), transparent 70%);
  pointer-events: none;
}
.atlas > * { position: relative; z-index: 2; }

.atlas .section-head .head-note { color: #6f6559; }

.motifs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding: 0 var(--pad);
  margin-bottom: clamp(50px, 8vh, 90px);
}
.motif { display: grid; gap: 16px; }
.motif-img {
  position: relative;
  aspect-ratio: 10 / 9;
  overflow: hidden;
  background: #17130f;
}
.motif-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.8s;
  filter: saturate(0.9) contrast(1.02);
}
.motif:hover .motif-img img { transform: scale(1.06); filter: saturate(1.08) contrast(1.04); }
.motif h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 600;
  margin: 0;
}
.motif h3 em { font-family: var(--mono); font-style: normal; font-size: 8px; letter-spacing: 0.18em; color: var(--red); }
.motif p { margin: 0; font-size: 12px; line-height: 1.95; color: #6c6256; }

.wall-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
  margin-bottom: 22px;
  border-top: 1px solid rgba(18, 16, 14, 0.12);
  padding-top: 26px;
}
.wall-head h3 { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; margin: 0; }
.wall-head p { margin: 0; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: #8a7f70; }

.wall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding: 0 var(--pad);
}
.wall figure {
  position: relative;
  margin: 0;
  aspect-ratio: 10 / 9;
  overflow: hidden;
  background: #16120f;
}
.wall img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: saturate(0.72) brightness(0.92);
  transition: transform 0.7s var(--ease), filter 0.6s;
}
.wall figure:hover img { transform: scale(1.04); filter: saturate(1.1) brightness(1.02); }
.wall-note {
  padding: 20px var(--pad) 0;
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #8a7f70;
}

/* ---------- journey ---------- */

.journey {
  position: relative;
  background:
    radial-gradient(ellipse 50% 50% at 20% 40%, rgba(255, 252, 245, 0.6), transparent 70%),
    var(--paper-deep);
  color: var(--ink);
  padding: clamp(28px, 3.6vh, 46px) 0 clamp(58px, 8vh, 96px);
}
.journey-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 0 var(--pad) clamp(14px, 2vh, 22px);
}
.journey-head h2 { font-size: clamp(1.8rem, 2.8vw, 2.8rem); margin-top: 8px; }
.journey-ctrl { display: flex; align-items: center; gap: 10px; }
.journey-ctrl button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 16, 14, 0.22);
  font-size: 15px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.journey-ctrl button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.journey-ctrl button:disabled { opacity: 0.32; cursor: default; transform: none; background: none; color: inherit; border-color: rgba(18, 16, 14, 0.18); }
.journey-head .count { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--red); min-width: 58px; text-align: right; }

.journey-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.journey-track::-webkit-scrollbar { display: none; }
.journey-track.is-drag { scroll-snap-type: none; cursor: grabbing; scroll-behavior: auto; }
.journey-track.is-drag .j-media img { pointer-events: none; }
.journey-track:focus-visible { outline: 1px solid var(--red); outline-offset: -1px; }

.j-step {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
  padding: clamp(18px, 2.6vh, 30px) var(--pad) clamp(24px, 3.2vh, 38px);
}
.j-step:nth-child(even) .j-media { order: 2; }
.j-step:nth-child(even) .j-copy { order: 1; }

.j-media {
  position: relative;
  height: min(46vh, 440px);
  overflow: hidden;
  border: 1px solid rgba(243, 235, 221, 0.14);
  background:
    radial-gradient(circle at 50% 45%, rgba(201, 162, 39, 0.09), transparent 68%),
    #16120f;
}
.j-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.92) contrast(1.02);
  transition: clip-path 1.1s var(--ease), transform 1.3s var(--ease), filter 0.8s;
}
.j-media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(243, 235, 221, 0.1);
  pointer-events: none;
}
.j-copy { display: grid; gap: 20px; max-width: 34em; }
.j-copy .step-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--red); }
.j-copy h3 { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 42px); font-weight: 600; margin: 0; line-height: 1.2; max-width: 12em; text-wrap: balance; }
.j-copy p { margin: 0; font-size: 13px; line-height: 2.1; color: #64594d; }
.j-copy .tag {
  justify-self: start;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  border: 1px solid rgba(18, 16, 14, 0.18);
  padding: 7px 11px;
  color: #7a6f60;
}

.journey-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: clamp(28px, 4vh, 46px) var(--pad) 0;
  border-top: 1px solid rgba(18, 16, 14, 0.16);
}
.journey-progress button {
  position: relative;
  padding: 13px 0 0;
  text-align: left;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #988b7a;
  transition: color 0.3s;
}
.journey-progress button::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width 0.35s var(--ease);
}
.journey-progress button:hover { color: #5f5449; }
.journey-progress button.is-active { color: var(--ink); }
.journey-progress button.is-active::before { width: 100%; }

/* ---------- hands ---------- */

.hands {
  position: relative;
  background:
    radial-gradient(ellipse 50% 60% at 78% 30%, rgba(201, 162, 39, 0.12), transparent 65%),
    var(--indigo-deep);
  color: var(--paper);
  padding: clamp(70px, 11vh, 130px) var(--pad) clamp(70px, 10vh, 120px);
  overflow: hidden;
}
.hands::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/leaf-pattern.png");
  background-size: 640px;
  opacity: 0.05;
  filter: invert(1);
  pointer-events: none;
}
.hands > * { position: relative; z-index: 2; }

.hands-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
}
.hands-copy { max-width: 60ch; }
.hands-copy h2 { margin: 14px 0 26px; max-width: 12em; }
.hands-copy .lead { font-family: var(--serif); font-size: clamp(16px, 1.5vw, 21px); line-height: 1.9; color: var(--gold-soft); margin: 0 0 18px; }
.hands-copy p { font-size: 13px; line-height: 2.05; color: rgba(243, 235, 221, 0.6); margin: 0 0 12px; }
.hands-quote {
  margin-top: 30px;
  padding-left: 22px;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.8;
  color: var(--paper);
}
.hands-quote small { display: block; margin-top: 10px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.18em; color: rgba(243, 235, 221, 0.42); }

.hands-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: #0d1219;
}
.hands-photo img { width: 100%; height: 100%; object-fit: contain; filter: saturate(0.8) contrast(1.05) brightness(0.85); }
.hands-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(30, 53, 87, 0.35), transparent 45%, rgba(11, 10, 9, 0.5));
  pointer-events: none;
}
.hands-photo figcaption {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(243, 235, 221, 0.6);
}

.hands-stats {
  margin-top: clamp(50px, 8vh, 90px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  border-bottom: 1px solid rgba(201, 162, 39, 0.14);
}
.hands-stats div { padding: 28px 0 30px; display: grid; gap: 8px; }
.hands-stats b {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-soft);
}
.hands-stats b small { font-family: var(--serif); font-size: 0.4em; margin-left: 4px; }
.hands-stats span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: rgba(243, 235, 221, 0.45); }

/* ---------- atelier ---------- */

.atelier {
  position: relative;
  background: var(--ink);
  padding-bottom: clamp(70px, 10vh, 120px);
  overflow: hidden;
  transition: background 0.8s var(--ease);
}
.atelier::before {
  content: "";
  position: absolute;
  left: 18%;
  top: 10%;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--stage, rgba(201, 162, 39, 0.16)), transparent 65%);
  transition: background 0.8s var(--ease);
  pointer-events: none;
}
.atelier > * { position: relative; z-index: 2; }

/* 特展主视觉：新补大图，轻压暗角承托标题 */
.atelier-visual {
  position: relative;
  margin: 0 var(--pad) clamp(30px, 5vh, 54px);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--frame-line);
  border-radius: var(--frame-radius);
  box-shadow: var(--frame-shadow);
  background: #0b1119;
}
.atelier-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 48%;
}
.atelier-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 12, 18, 0.7), rgba(8, 12, 18, 0.12) 44%, transparent 68%);
}
.atelier-visual figcaption {
  position: absolute;
  left: clamp(18px, 4vw, 54px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 1;
  color: #f2ead9;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.atelier-visual figcaption span {
  display: block;
  margin-bottom: 6px;
  color: #d8b95c;
  font-size: 10px;
  letter-spacing: 0.24em;
}
@media (max-width: 700px) {
  .atelier-visual { aspect-ratio: 4 / 3; }
  .atelier-visual img { object-position: 62% 50%; }
}

.atelier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
  padding: 0 var(--pad);
}
.atelier-stage { height: min(70vh, 640px); }
.atelier-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(201, 162, 39, 0.16) 42%,
    rgba(243, 235, 221, 0.5) 50%,
    rgba(201, 162, 39, 0.16) 58%,
    transparent 100%
  );
  background-size: 100% 220%;
  background-position: 0 -120%;
}
.atelier-scan.is-scan { animation: scanDown 0.95s var(--ease-soft); }
@keyframes scanDown {
  0% { opacity: 0; background-position: 0 -120%; }
  12% { opacity: 1; }
  100% { opacity: 0; background-position: 0 220%; }
}

.atelier-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  padding-top: 4px;
}
.atelier-spec div { display: grid; grid-template-columns: 46px 1fr; gap: 6px; }
.atelier-spec dt { font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; color: rgba(243, 235, 221, 0.36); }
.atelier-spec dd { margin: 0; font-size: 11px; line-height: 1.6; color: rgba(243, 235, 221, 0.72); }

.atelier-panel { display: grid; gap: 26px; }
.atelier-panel h3 { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); font-weight: 600; margin: 0; }
.panel-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: var(--gold); margin: 0 0 10px; }
.swatches { display: flex; gap: 12px; }
.swatch {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(243, 235, 221, 0.24);
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.swatch::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}
.swatch:hover { transform: translateY(-3px); }
.swatch.is-active::after { border-color: var(--gold); }
.swatch[data-tone="indigo"] { background: #1e3557; }
.swatch[data-tone="red"] { background: #a83a30; }
.swatch[data-tone="ink"] { background: #12100e; }
.swatch[data-tone="moon"] { background: #e8dcc8; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 9px 13px;
  border: 1px solid rgba(243, 235, 221, 0.16);
  color: rgba(243, 235, 221, 0.62);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.chip:hover { border-color: var(--gold); color: var(--paper); }
.chip.is-active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.atelier-result {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-left: 2px solid var(--gold);
  background: rgba(201, 162, 39, 0.05);
}
.atelier-result .res-label { font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; color: rgba(243, 235, 221, 0.4); margin: 0 0 7px; }
.atelier-result .res-label span { color: rgba(243, 235, 221, 0.82); letter-spacing: 0.06em; }
.atelier-result strong { font-family: var(--serif); font-size: 18px; font-weight: 600; display: block; }
.atelier-result p { margin: 6px 0 0; font-size: 12px; line-height: 1.8; color: rgba(243, 235, 221, 0.6); }

.atelier-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.atelier-note { font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; color: rgba(243, 235, 221, 0.3); line-height: 1.9; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 120;
  transform: translate(-50%, 20px);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 12px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */

.site-foot {
  position: relative;
  background: var(--ink-deep);
  color: var(--paper);
  padding: clamp(70px, 10vh, 120px) var(--pad) 30px;
  overflow: hidden;
}
.site-foot::before {
  content: "";
  position: absolute;
  left: 50%; top: -20%;
  width: 80vw; height: 80vw;
  max-width: 1000px; max-height: 1000px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201, 162, 39, 0.08), transparent 62%);
  pointer-events: none;
}
.foot-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(30px, 6vw, 90px);
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(243, 235, 221, 0.1);
}
.foot-statement {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  letter-spacing: 0.01em;
}
.foot-statement span { color: var(--gold-soft); }
.foot-brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.foot-brand img { width: 96px; }
.foot-brand p { margin: 0; font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; color: rgba(243, 235, 221, 0.42); line-height: 2; }

.foot-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 30px;
  padding: 44px 0 50px;
}
.foot-col h4 { font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: 0.2em; color: var(--gold); margin: 0 0 14px; }
.foot-col p, .foot-col a { display: block; font-size: 11px; line-height: 2; color: rgba(243, 235, 221, 0.55); margin: 0; }
.foot-col a:hover { color: var(--paper); }
.foot-yi {
  font-family: var(--yi);
  font-size: clamp(40px, 6vw, 86px);
  line-height: 1;
  color: rgba(201, 162, 39, 0.28);
  align-self: end;
}
.foot-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 235, 221, 0.08);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(243, 235, 221, 0.28);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: rgba(243, 235, 221, 0.5); }
.to-top:hover { color: var(--gold-soft); }
.to-top svg { width: 12px; }

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

body.is-ready .hero-copy > * { animation: riseIn 1s var(--ease) both; }
body.is-ready .hero-copy .eyebrow { animation-delay: 0.05s; }
body.is-ready .hero-copy .hero-title { animation-delay: 0.14s; }
body.is-ready .hero-copy .hero-sub { animation-delay: 0.28s; }
body.is-ready .hero-copy .hero-desc { animation-delay: 0.36s; }
body.is-ready .hero-copy .btn-enter { animation-delay: 0.46s; }
body.is-ready .hero-figure { animation: figureIn 1.3s var(--ease) both 0.3s; }
body.is-ready .hero-stats { animation: riseIn 1s var(--ease) both 0.55s; }
body.is-ready .scroll-cue { animation: fadeIn 1.2s var(--ease) both 0.85s; }

@keyframes riseIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes figureIn { from { opacity: 0; transform: translateY(44px) scale(0.98); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- title split & media reveal ---------- */

.split-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.5em, 0) scale(0.94);
  filter: blur(7px);
  transition: opacity 0.5s var(--ease), transform 0.75s var(--ease), filter 0.6s var(--ease);
  transition-delay: calc(var(--i) * 34ms);
  will-change: transform, opacity, filter;
}
.in .split-title .ch,
.split-title.is-lit .ch {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.motif-img img,
.j-media img,
.hands-photo img,
.atelier-stage .dh-image {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.05);
  transition: clip-path 1.1s var(--ease), transform 1.3s var(--ease), filter 0.8s;
}
.in .motif-img img,
.j-step.in .j-media img,
.in .hands-photo img,
.atelier-stage.in .dh-image {
  clip-path: inset(0 0 0 0);
  transform: none;
}
.atelier-stage .dh-image.is-swap { animation: lookSwap 0.8s var(--ease) both; }
@keyframes lookSwap {
  0% { clip-path: inset(0 0 100% 0); opacity: 0.35; transform: scale(1.04); filter: saturate(0.4) brightness(0.8); }
  55% { opacity: 1; filter: saturate(1) brightness(1); }
  100% { clip-path: inset(0 0 0 0); opacity: 1; transform: none; filter: none; }
}
.j-step.in .j-copy { animation: copyIn 0.9s var(--ease) both; }
@keyframes copyIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* 主题切换扫光 */
.theme-scan {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 75;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--gold) 35%, rgba(243, 235, 221, 0.9) 50%, var(--gold) 65%, transparent);
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.55);
}
.theme-scan.is-run { animation: scanSweep 0.9s var(--ease-soft); }
@keyframes scanSweep {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(100vh); }
}

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

@media (max-width: 1100px) {
  .looks-stage { grid-template-columns: 1fr; }
  .dh-stage { height: min(52vh, 460px); width: min(100%, 680px); justify-self: center; }
  .look-detail { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 16px 40px; padding-top: 20px; max-width: none; }
  .look-detail .series-en, .look-detail h3 { grid-column: 1 / -1; }
  .look-detail .note { grid-column: 1 / -1; }
  .atelier-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .head-index { display: none; }
  .hero { padding-bottom: 150px; }
  .hero-copy { max-width: 100%; padding-top: 118px; }
  .hero-figure {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(78vw, 380px);
    margin: 40px auto 0;
  }
  .hero { display: grid; }
  .hero-stats { position: relative; left: auto; right: auto; bottom: auto; margin-top: 46px; grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .scroll-cue { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .head-note { justify-self: start; }
  .dh-stage { height: 56vh; width: 100%; }
  .dh-rail { grid-auto-columns: 72px; }
  .dh-thumb { scroll-snap-align: start; }
  .look-detail { grid-template-columns: 1fr; }
  .motifs { grid-template-columns: 1fr; gap: 34px; }
  .motif-img { aspect-ratio: 10 / 9; }
  .wall { grid-template-columns: repeat(4, 1fr); }
  .journey-head { align-items: flex-start; flex-direction: column; gap: 20px; }
  .journey-ctrl { width: 100%; justify-content: flex-start; }
  .j-step { grid-template-columns: 1fr; gap: 26px; padding: 34px var(--pad) 30px; }
  .j-step:nth-child(even) .j-media { order: 0; }
  .j-step:nth-child(even) .j-copy { order: 0; }
  .j-media { height: min(38vh, 360px); }
  .j-copy h3 { max-width: none; }
  .journey-progress { margin: clamp(22px, 3vh, 34px) var(--pad) 0; }
  .journey-progress button { padding-top: 11px; font-size: 7.5px; letter-spacing: 0.08em; }
  .hands-grid { grid-template-columns: 1fr; }
  .hands-photo { width: min(100%, 420px); }
  .hands-stats { grid-template-columns: repeat(2, 1fr); }
  .hands-stats div:nth-child(odd) { border-right: 1px solid rgba(201, 162, 39, 0.12); }
  .atelier-grid { grid-template-columns: 1fr; }
  .atelier-stage { height: 56vh; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-yi { grid-column: 1 / -1; justify-self: end; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero-title { font-size: clamp(3.2rem, 15vw, 4.4rem); }
  .hero-desc br { display: none; }
  .hero-stats b { font-size: 22px; }
  .dh-stage { height: 52vh; }
  .dh-count em { font-size: 20px; }
  .wall { grid-template-columns: repeat(3, 1fr); }
  .hands-copy h2 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-figure img { transform: none !important; }
}

/* ---------- artifact cards & detail modal (step3) ---------- */
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 16px;
  padding: clamp(26px, 4vh, 46px) var(--pad) 0;
}
.artifact-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.artifact-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(18, 16, 14, 0.06);
}
.artifact-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s var(--ease), filter 0.6s;
}
.artifact-card:hover .artifact-card__media img { transform: scale(1.05); }
.artifact-card__meta { display: flex; flex-direction: column; gap: 3px; }
.artifact-card__id { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--gold); }
.artifact-card__name { font-size: 12px; line-height: 1.55; }
.artifact-card__hint { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; opacity: 0; transition: opacity 0.3s; }
.artifact-card:hover .artifact-card__hint,
.artifact-card:focus-visible .artifact-card__hint { opacity: 0.75; }
.artifact-card:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.wall .artifact-card__media { aspect-ratio: 10 / 9; background: #16120f; }
.wall .artifact-card__media img { object-fit: contain; filter: saturate(0.72) brightness(0.92); }
.wall .artifact-card:hover .artifact-card__media img { filter: saturate(1.1) brightness(1.02); }
.wall .artifact-card__meta,
.wall .artifact-card__hint { display: none; }

body.is-modal { overflow: hidden; }
.artifact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.artifact-modal[hidden] { display: none; }
.artifact-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.74);
  backdrop-filter: blur(6px);
}
.artifact-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  width: min(1060px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #12100e;
  color: #f3ebdd;
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.artifact-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #f3ebdd;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.artifact-modal__media { background: #0c0a09; display: flex; align-items: center; justify-content: center; min-height: 0; }
.artifact-modal__media img { width: 100%; height: 100%; max-height: calc(100vh - 48px); object-fit: contain; }
.artifact-modal__body {
  padding: clamp(24px, 3vw, 42px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.artifact-modal__kicker { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--gold); }
.artifact-modal__body h3 { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; }
.artifact-modal__spec { margin: 0; display: grid; gap: 10px; }
.artifact-modal__spec > div { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding-top: 9px; border-top: 1px solid rgba(243, 235, 221, 0.1); }
.artifact-modal__spec dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: rgba(243, 235, 221, 0.5); }
.artifact-modal__spec dd { margin: 0; font-size: 12px; line-height: 1.8; color: rgba(243, 235, 221, 0.86); }
@media (max-width: 760px) {
  .artifact-modal__panel { grid-template-columns: 1fr; overflow-y: auto; }
  .artifact-modal__media img { max-height: 46vh; }
  .artifact-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ---------- step4 motion ---------- */
.dh-frame,
.dh-breathe,
.dh-drag { position: absolute; inset: 0; }
.dh-frame { z-index: 1; }
.dh-breathe {
  transform-origin: 50% 88%;
  animation: dhBreath 4s ease-in-out infinite;
  will-change: transform;
}
@keyframes dhBreath {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.006) translateY(-1.6px); }
}
.dh-drag,
.dh-drag img { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.dh-drag img { pointer-events: none; }
.dh-drag {
  touch-action: pan-y;
  cursor: grab;
  will-change: transform;
}
.dh-drag.is-dragging { cursor: grabbing; }
.dh-shadow {
  position: absolute;
  left: 26%;
  right: 26%;
  bottom: 2%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 62%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.18) 58%, transparent 76%);
  filter: blur(14px);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  pointer-events: none;
}
.dh-skirt {
  position: absolute;
  inset: 0;
  background-image: var(--skirt-src, none);
  background-size: 100% 100%;
  background-position: 50% 100%;
  background-repeat: no-repeat;
  clip-path: inset(52% 0 0 0);
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  will-change: transform;
}
.dh-frame.is-long .dh-skirt { animation: dhSkirt 7s ease-in-out infinite; }
@keyframes dhSkirt {
  0%, 100% { transform: translate3d(-2px, 0, 0); }
  50% { transform: translate3d(2px, 0, 0); }
}
.dh-image--next { z-index: 2; }

.artifact-card {
  opacity: 0;
  transform: translate3d(22px, 16px, 0);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
}
.artifact-card:nth-child(odd) { transform: translate3d(-22px, 16px, 0); }
.artifact-card.card-in { opacity: 1; transform: translate3d(0, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  .dh-breathe,
  .dh-frame.is-long .dh-skirt,
  .dh-image,
  .artifact-card { animation: none !important; transition: none !important; }
  .dh-image { opacity: 1 !important; transform: none !important; }
  .artifact-card { opacity: 1 !important; transform: none !important; }
  .dh-drag { cursor: default; }
}

/* ===== 精修补丁 2026-11-20 21:20 · 留白 / 层级 / 动效收束 =====
   只覆盖，不改原文。回滚：删掉本段，或用同目录 style.css.bak-20261120-before-refine 整份覆盖。 */

main > section {
  padding-top: clamp(110px, 13vh, 200px);
  padding-bottom: clamp(110px, 13vh, 200px);
}
.hero { padding-top: clamp(80px, 10vh, 150px); }

.section-head { max-width: 68ch; }
.section-head .head-note {
  max-width: 56ch;
  line-height: 2;
  opacity: .82;
}
.split-title { letter-spacing: .05em; }
.kicker { letter-spacing: .26em; }
.motif h3, .j-copy h3, .look-detail h3 { letter-spacing: .02em; }

/* 动效只留三种：进场轻推、悬停微放大、滚动细线。其余不加。 */
.motif-img img,
.j-media img,
.artifact-card img {
  transition: transform 1.2s var(--ease, cubic-bezier(.22,.61,.36,1));
}
.motif:hover .motif-img img,
.j-step:hover .j-media img { transform: scale(1.035); }
.artifact-card:hover img { transform: scale(1.05); }

@media (max-width: 860px) {
  main > section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .section-head { max-width: 100%; }
}

/* ---------- 非遗坐标（§06 legacy）2026-11-20 ---------- */
.legacy {
  position: relative;
  padding: clamp(110px, 13vh, 200px) var(--pad);
  background: var(--paper);
  color: var(--ink);
}
.legacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(40px, 6vh, 72px);
  background: rgba(18, 16, 14, 0.12);
}
.legacy-card {
  background: var(--paper);
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2vw, 30px);
}
.legacy-year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--red);
}
.legacy-card h3 {
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  margin: 14px 0 12px;
}
.legacy-card p {
  font-size: 13px;
  line-height: 2;
  color: rgba(18, 16, 14, 0.62);
  margin: 0;
}
.legacy-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(32px, 5vh, 56px);
  border-top: 1px solid rgba(18, 16, 14, 0.14);
}
.legacy-facts div { padding: 28px 0; display: grid; gap: 8px; }
.legacy-facts b {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1;
}
.legacy-facts b small { font-family: var(--serif); font-size: 0.38em; margin-left: 4px; }
.legacy-facts span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(18, 16, 14, 0.45);
}
/* 非遗坐标：数字登阶式显现，克制不闪烁 */
.legacy-facts { position: relative; }
.legacy-facts::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0), rgba(201, 162, 39, 0.62) 18%, rgba(201, 162, 39, 0.62) 82%, rgba(201, 162, 39, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.legacy-facts.is-revealed::before { transform: scaleX(1); }
.legacy-fact { position: relative; }
.legacy-fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.7), rgba(201, 162, 39, 0));
  transition: height 0.9s cubic-bezier(0.22, 0.8, 0.24, 1);
  transition-delay: calc(var(--i, 0) * 120ms + 220ms);
}
.legacy-facts.is-revealed .legacy-fact::before { height: 30px; }
.fact-num { font-variant-numeric: tabular-nums; }
.legacy-facts.is-armed .legacy-fact {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(3px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.legacy-facts.is-armed.is-revealed .legacy-fact { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .legacy-facts.is-armed .legacy-fact { opacity: 1; transform: none; filter: none; transition: none; }
  .legacy-facts::before { transition: none; transform: scaleX(1); }
  .legacy-fact::before { transition: none; height: 30px; }
}
.legacy-quote {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.9;
  color: var(--ink);
  margin: clamp(28px, 4vh, 44px) 0 0;
  max-width: 26em;
}
.legacy-note {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  line-height: 2;
  color: rgba(18, 16, 14, 0.36);
  margin: 22px 0 0;
  max-width: 68ch;
}
@media (max-width: 900px) {
  .legacy-grid { grid-template-columns: repeat(2, 1fr); }
  .legacy-facts { grid-template-columns: repeat(2, 1fr); }
}
