/* ============================================================
   煌阁门窗 · HUANG GE ATELIER
   Aesthetic: Dark OLED Luxury × Eastern Craft
   Type:      Fraunces (display) · Noto Serif SC (中文衬线) ·
              Cormorant Garamond (en accent) · Noto Sans SC (body)
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Ink palette — deep black + warm darks */
  --ink:        #0A0908;
  --ink-2:      #131210;
  --ink-3:      #1C1A16;
  --ink-4:      #28241D;

  /* Gold — the signature accent */
  --gold:       #C9A961;
  --gold-soft:  #B89A55;
  --gold-bright:#E8C77E;
  --gold-deep:  #8C7A4A;
  --gold-glow:  rgba(232, 199, 126, 0.22);

  /* Ivory — copy color */
  --ivory:      #F5F1E8;
  --ivory-dim:  #C7C0AE;
  --ivory-mute: #8C8678;

  /* Lines */
  --line:        rgba(245, 241, 232, 0.10);
  --line-strong: rgba(201, 169, 97, 0.32);
  --line-gold:   rgba(232, 199, 126, 0.55);

  /* Type stacks */
  --f-display:  'Fraunces', 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --f-cn-serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --f-cn-sans:  'Noto Sans SC', 'PingFang SC', sans-serif;
  --f-en:       'Cormorant Garamond', 'Fraunces', serif;

  /* Layout */
  --gut:        clamp(20px, 4.5vw, 88px);
  --container:  min(1480px, 92vw);
  --rail-w:     clamp(64px, 10vw, 160px);

  /* Motion */
  --ease:       cubic-bezier(.2, .7, .15, 1);
  --ease-soft:  cubic-bezier(.4, 0, .2, 1);
  --t-fast:     .35s;
  --t-slow:     .9s;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--f-cn-sans);
  font-weight: 300;
  line-height: 1.65;
  font-size: clamp(14px, 0.95vw, 16px);
  overflow-x: hidden;
  cursor: none;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
em { font-style: italic; color: var(--gold-bright); font-family: var(--f-display); font-weight: 400; }

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

/* Focus */
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* ---------- 3. Signature: film grain overlay ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 1.6 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  animation: grain 6s steps(4) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -1%); }
  75% { transform: translate(-1%, -3%); }
}

/* ---------- 4. Signature: custom golden cursor ---------- */
.cursor-ring,
.cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  transition: transform .25s var(--ease), width .25s var(--ease), height .25s var(--ease), border-color .25s;
  mix-blend-mode: difference;
  opacity: .95;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold-bright);
  box-shadow: 0 0 14px var(--gold-glow);
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: var(--gold-bright);
}

/* ---------- 5. Scroll thread (right edge gold thread) ---------- */
.scroll-thread {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
  z-index: 100;
  pointer-events: none;
}
.scroll-thread span {
  display: block;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--gold-bright));
  height: var(--p, 0%);
  box-shadow: 0 0 10px var(--gold-glow);
  transition: height .15s linear;
}

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gut);
  z-index: 200;
  transition: background var(--t-fast), backdrop-filter var(--t-fast), padding var(--t-fast), border-color var(--t-fast);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding: 14px var(--gut);
  border-bottom-color: var(--line);
}
.nav__brand {
  display: flex; align-items: baseline; gap: 12px;
}
.nav__brand-cn {
  font-family: var(--f-cn-serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .12em;
  color: var(--ivory);
}
.nav__brand-en {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--gold);
  opacity: .85;
}

.nav__menu {
  display: flex; gap: clamp(18px, 2.6vw, 44px);
}
.nav__menu a {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--f-cn-sans);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ivory-dim);
  position: relative;
  padding: 4px 0;
  transition: color var(--t-fast);
}
.nav__menu a i {
  font-style: normal;
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--gold);
  opacity: .85;
}
.nav__menu a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 1px;
  background: var(--gold);
  transition: right .35s var(--ease);
}
.nav__menu a:hover { color: var(--ivory); }
.nav__menu a:hover::after { right: 0; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 300;
  position: relative;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.nav__toggle:hover { border-color: var(--gold); }
.nav__toggle span {
  display: block;
  width: 16px; height: 1px;
  background: var(--gold);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 880px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 9, 8, 0.96);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 80px var(--gut);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-fast), visibility var(--t-fast);
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; }
  .nav__menu a {
    font-size: 22px;
    gap: 14px;
    padding: 8px 0;
  }
  .nav__menu a i { font-size: 12px; }
}

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 12px; letter-spacing: .25em;
  border-radius: 999px;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.nav__cta:hover { background: var(--gold); color: var(--ink); transform: translateX(2px); }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  overflow: clip;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.hero__media picture { position: absolute; inset: 0; display: block; }
/* 客厅效果图 cover 铺满,横向 40% 偏移让窗外景观居中可见 */
.hero__img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: brightness(0.92) contrast(1.05) saturate(0.95);
}
/* 手机端聚焦窗外景观核心区域 */
@media (max-width: 768px) {
  .hero__img { object-position: 55% 50%; }
}
/* Bottom mask — 渐变过渡到深色,让 hero meta 数字可读 */
.hero__media::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background:
    linear-gradient(180deg,
      rgba(10, 9, 8, 0) 0%,
      rgba(10, 9, 8, 0.15) 25%,
      rgba(10, 9, 8, 0.55) 60%,
      rgba(10, 9, 8, 0.9) 88%,
      var(--ink) 100%);
  pointer-events: none;
  z-index: 1;
}
/* 顶部+左侧加强遮罩,让"煌阁"主标题和导航文字保持高可读性 */
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.55) 0%, rgba(10, 9, 8, 0.20) 18%, rgba(10, 9, 8, 0) 35%, rgba(10, 9, 8, 0) 100%),
    linear-gradient(90deg, rgba(10, 9, 8, 0.45) 0%, rgba(10, 9, 8, 0.10) 35%, rgba(10, 9, 8, 0) 60%);
  pointer-events: none;
}
@media (max-width: 768px) {
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(10, 9, 8, 0.42) 0%, rgba(10, 9, 8, 0.18) 28%, rgba(10, 9, 8, 0.10) 50%, rgba(10, 9, 8, 0.30) 100%);
  }
}
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% 32%, rgba(232, 199, 126, 0.05) 0%, transparent 75%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Decorative hero corner brackets */
.hero__frame {
  position: absolute; inset: clamp(20px, 4vw, 56px);
  pointer-events: none;
  z-index: 1;
}
.hero__corner {
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--gold);
  opacity: .6;
}
.hero__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
@media (max-width: 640px) {
  .hero__frame { inset: 14px; }
  .hero__corner { width: 18px; height: 18px; opacity: .5; }
}

.hero__content {
  align-self: center;
  padding: 140px var(--gut) 60px;
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
  position: relative;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: .42em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-glow);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.hero__title {
  font-family: var(--f-cn-serif);
  font-weight: 900;
  font-size: clamp(120px, 22vw, 360px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ivory);
  display: flex;
  gap: clamp(20px, 4vw, 80px);
  flex-wrap: wrap;
}
.hero__title .line {
  position: relative;
  display: inline-block;
  padding: 0.08em 0.04em;
}
.hero__title .ch {
  display: inline-block;
  background: linear-gradient(180deg, #f5e3a8 0%, #e8c77e 45%, #b89243 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 50px rgba(232, 199, 126, 0.55))
    drop-shadow(0 0 120px rgba(201, 169, 97, 0.32));
}
.hero__title .line:first-child .ch { animation: rise 1.4s var(--ease) .2s both; }
.hero__title .line:last-child .ch  { animation: rise 1.4s var(--ease) .35s both; }

@media (max-width: 640px) {
  .hero__content { padding: 110px var(--gut) 40px; gap: 16px; }
  .hero__title {
    flex-direction: column;
    gap: 0;
    font-size: clamp(140px, 36vw, 220px);
  }
  .hero__lede { font-size: 18px; letter-spacing: .22em; }
  .hero__desc { font-size: 13px; }
  .hero__actions .btn { padding: 12px 22px; font-size: 12px; }
  .hero__eyebrow { font-size: 10px; letter-spacing: .3em; }
  .hero__eyebrow span:last-child { font-size: 10px; }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40%);
    filter: blur(8px) drop-shadow(0 0 40px rgba(232, 199, 126, 0.15));
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter:
      drop-shadow(0 0 50px rgba(232, 199, 126, 0.55))
      drop-shadow(0 0 120px rgba(201, 169, 97, 0.32));
  }
}

.hero__lede {
  font-family: var(--f-cn-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 36px);
  letter-spacing: .35em;
  color: var(--ivory);
}
.hero__lede em { font-size: 1.1em; }

.hero__desc {
  font-family: var(--f-cn-sans);
  font-weight: 300;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.85;
  color: var(--ivory-dim);
  max-width: 36ch;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 32px);
  padding: 30px var(--gut) 36px;
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.hero__meta-item { display: grid; gap: 6px; }
.hero__meta-item .num {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 56px);
  letter-spacing: -0.02em;
  color: var(--ivory);
  font-variation-settings: 'opsz' 144;
  line-height: 1;
}
.hero__meta-item .num sup {
  font-family: var(--f-display);
  font-size: 0.4em;
  color: var(--gold);
  margin-left: 4px;
  vertical-align: super;
}
.hero__meta-item .lab {
  font-family: var(--f-cn-sans);
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--ivory-mute);
}
@media (max-width: 600px) { .hero__meta { grid-template-columns: 1fr; } }

.hero__scroll {
  position: absolute;
  right: var(--gut); bottom: 130px;
  display: grid;
  justify-items: center;
  gap: 14px;
  z-index: 2;
  font-family: var(--f-display);
  font-size: 10px;
  font-style: italic;
  letter-spacing: .4em;
  color: var(--gold);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__scroll span {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  position: relative; overflow: hidden;
}
.hero__scroll span::after {
  content: '';
  position: absolute; left: 0; right: 0; top: -50%;
  height: 50%;
  background: var(--gold-bright);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }
@media (max-width: 880px) { .hero__scroll { display: none; } }

.hero__sidetext {
  position: absolute;
  left: 28px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-family: var(--f-display);
  font-size: 10px;
  font-style: italic;
  letter-spacing: .5em;
  color: var(--ivory-mute);
  opacity: .55;
  white-space: nowrap;
}
@media (max-width: 1080px) { .hero__sidetext { display: none; } }

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px;
  font-family: var(--f-cn-sans);
  font-size: 13px;
  letter-spacing: .2em;
  border-radius: 999px;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 24px rgba(201, 169, 97, 0.18);
}
.btn--primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 199, 126, 0.32);
}
.btn--ghost {
  border: 1px solid var(--ivory-dim);
  color: var(--ivory);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn--lg { padding: 18px 36px; font-size: 14px; }

/* ---------- 9. General Section Layout ---------- */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 180px) var(--gut) clamp(80px, 12vw, 180px);
  max-width: var(--container);
  margin-inline: auto;
}
.section__rail {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section__num {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  font-variation-settings: 'opsz' 144;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.section__name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .45em;
  color: var(--ivory-mute);
  text-transform: uppercase;
}
.section__head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); }
.section__head--split {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}
@media (max-width: 800px) { .section__head--split { grid-template-columns: 1fr; } }

/* Display heading shared */
.display {
  font-family: var(--f-cn-serif);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 110px);
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--ivory);
}
.display em {
  font-style: normal;
  color: var(--gold-bright);
  font-family: var(--f-cn-serif);
  font-weight: 700;
  position: relative;
}
.display em::after {
  content: '';
  position: absolute; left: 6%; right: 6%; bottom: -6px;
  height: 2px;
  background: var(--gold);
  opacity: .6;
}
.display i {
  font-style: normal;
  color: var(--ivory-dim);
  font-weight: 300;
}
.display--lg { font-size: clamp(48px, 7.6vw, 130px); }
.display--xl { font-size: clamp(54px, 8.5vw, 150px); }
.display__sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: .12em;
  color: var(--gold);
  font-weight: 300;
}

/* ---------- 10. Philosophy ---------- */
.philosophy__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
@media (max-width: 880px) { .philosophy__grid { grid-template-columns: 1fr; } }

.kicker {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
}
.kicker__cn {
  font-family: var(--f-cn-serif);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 78px);
  letter-spacing: .08em;
  color: var(--ivory);
  line-height: 1.1;
}
.kicker__en {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 26px);
  color: var(--gold);
  letter-spacing: .04em;
}

.philosophy__quote {
  font-family: var(--f-cn-serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 56px);
  line-height: 1.4;
  color: var(--ivory);
  position: relative;
  padding: 28px 0;
}
.philosophy__quote em {
  color: var(--gold-bright);
  font-family: var(--f-cn-serif);
  font-style: italic;
  font-weight: 700;
}
.quote-mark {
  font-family: var(--f-cn-serif);
  font-size: 1.4em;
  color: var(--gold);
  opacity: .8;
}

.philosophy__right p {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.95;
  color: var(--ivory-dim);
  margin-bottom: 1.4em;
}
.philosophy__right .lead {
  font-family: var(--f-cn-serif);
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--ivory);
  margin-bottom: 1.5em;
  border-left: 1px solid var(--gold);
  padding-left: 22px;
}
.philosophy__right em {
  color: var(--gold-bright);
  font-family: var(--f-cn-serif);
  font-style: italic;
}

.seal {
  margin-top: 50px;
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--gold);
}
.seal svg { width: 64px; height: 64px; }
.seal span {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--ivory-mute);
}

/* ---------- 11. Collections (Series) ---------- */
.series {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 1000px) { .series { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .series { grid-template-columns: 1fr; } }

.series__item {
  position: relative;
  padding: clamp(36px, 4vw, 60px) clamp(24px, 2.6vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, transparent);
  transition: background var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  display: grid;
  gap: 14px;
  align-content: start;
  cursor: none;
  overflow: hidden;
}
.series__item::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}
.series__item:hover {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}
.series__item:hover::before { transform: scaleX(1); }
.series__item:nth-child(3n) { border-right: 0; }
@media (max-width: 1000px) {
  .series__item { border-right: 1px solid var(--line); }
  .series__item:nth-child(3n) { border-right: 1px solid var(--line); }
  .series__item:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) {
  .series__item, .series__item:nth-child(3n) { border-right: 0; }
}

.series__idx {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .35em;
  color: var(--gold);
  text-transform: uppercase;
}
.series__cn {
  font-family: var(--f-cn-serif);
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 38px);
  color: var(--ivory);
  letter-spacing: .04em;
  line-height: 1.2;
}
.series__en {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: .15em;
  color: var(--ivory-mute);
  margin-top: -8px;
}
.series__desc {
  font-family: var(--f-cn-sans);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ivory-dim);
  margin-top: 8px;
}
.series__more {
  margin-top: 14px;
  font-family: var(--f-cn-sans);
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.series__item:hover .series__more { opacity: 1; transform: translateX(0); }

/* ---------- 12. Craft ---------- */
.craft__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.craft__row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(20px, 3vw, 50px);
  align-items: center;
  padding: clamp(28px, 3vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background var(--t-fast);
}
.craft__row::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-slow) var(--ease);
}
.craft__row:hover::before { transform: scaleX(1); }
.craft__row:hover .craft__no { color: var(--gold-bright); transform: translateX(8px); }

.craft__no {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 56px);
  color: var(--gold);
  letter-spacing: -0.02em;
  transition: color var(--t-fast), transform var(--t-fast);
}
.craft__main h3 {
  font-family: var(--f-cn-serif);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 30px);
  color: var(--ivory);
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.craft__main p {
  font-family: var(--f-cn-sans);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ivory-dim);
  max-width: 60ch;
}
.craft__tag {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: .4em;
  color: var(--ivory-mute);
  border: 1px solid var(--line-strong);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .craft__row { grid-template-columns: 50px 1fr; }
  .craft__tag { display: none; }
}

.craft__pull {
  margin-top: clamp(60px, 8vw, 120px);
  text-align: center;
}
.craft__pull p {
  font-family: var(--f-cn-serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 64px);
  color: var(--ivory);
  line-height: 1.4;
  letter-spacing: .04em;
}
.craft__pull em {
  color: var(--gold-bright);
  font-family: var(--f-cn-serif);
  font-style: italic;
  font-weight: 700;
}

/* ---------- 13. Projects ---------- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}
.project { grid-column: span 2; }
.project--lg { grid-column: span 4; }
.project--wide { grid-column: span 4; }
@media (max-width: 1000px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .project, .project--lg, .project--wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .projects__grid { grid-template-columns: 1fr; }
  .project, .project--lg, .project--wide { grid-column: span 1; }
}

.project { display: grid; gap: 16px; cursor: none; }

.project__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  isolation: isolate;
}
.project--lg .project__visual { aspect-ratio: 16 / 10; }
.project--wide .project__visual { aspect-ratio: 16 / 9; }
.project--portrait .project__visual { aspect-ratio: 1280 / 1862; }

.project__shape {
  position: absolute; inset: 0;
  transition: transform var(--t-slow) var(--ease), filter var(--t-slow);
}
.project:hover .project__shape { transform: scale(1.06); filter: brightness(1.1); }

.project__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ink-2);
  transition: transform var(--t-slow) var(--ease), filter var(--t-slow);
}
.project:hover .project__video { transform: scale(1.04); filter: brightness(1.08); }

/* ---------- Bilibili iframe embed · 点击播放加载 B 站视频 ---------- */
.project__bilibili {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink-2);
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.project__bilibili:focus-visible {
  box-shadow: 0 0 0 2px var(--gold) inset;
}
.project__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) var(--ease), filter var(--t-slow);
}
.project__bilibili:hover .project__poster {
  transform: scale(1.04);
  filter: brightness(0.78);
}

.project__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(232, 199, 126, 0.95);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(232, 199, 126, 0.55);
  transition: transform var(--t-med) var(--ease), background var(--t-med);
  animation: bili-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
.project__bilibili:hover .project__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--gold);
}
.project__play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

@keyframes bili-pulse {
  0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(232, 199, 126, 0.6); }
  70% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 18px rgba(232, 199, 126, 0); }
  100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(232, 199, 126, 0); }
}

.project__bilibili-badge {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-family: var(--cn);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(245, 239, 228, 0.75);
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
}

.project__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  z-index: 2;
}
.project__bilibili.is-playing .project__poster,
.project__bilibili.is-playing .project__play,
.project__bilibili.is-playing .project__bilibili-badge {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}

/* Procedural artwork — golden architectural compositions */
.project__shape--01 {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(232, 199, 126, 0.22), transparent 60%),
    linear-gradient(135deg, var(--ink-3) 0%, var(--ink) 70%);
}
.project__shape--01::before, .project__shape--01::after {
  content: '';
  position: absolute;
}
.project__shape--01::before {
  inset: 12% 18% 20% 16%;
  background: repeating-linear-gradient(90deg, transparent 0 12%, rgba(201, 169, 97, 0.45) 12% 12.4%);
  border: 1px solid var(--gold);
}
.project__shape--01::after {
  left: 16%; right: 18%; bottom: 14%;
  height: 32%;
  background: linear-gradient(180deg, rgba(232, 199, 126, 0.15), transparent);
  border-top: 1px solid var(--gold);
}

.project__shape--02 {
  background:
    radial-gradient(circle at 70% 30%, rgba(232, 199, 126, 0.28), transparent 50%),
    linear-gradient(180deg, #1a1814, var(--ink));
}
.project__shape--02::before {
  content: '';
  position: absolute;
  inset: 16%;
  border: 1px solid var(--gold);
  background: repeating-linear-gradient(0deg, transparent 0 24%, rgba(201, 169, 97, 0.3) 24% 24.5%);
}

.project__shape--03 {
  background:
    linear-gradient(115deg, var(--ink-2) 0%, var(--ink) 60%, #1a1814 100%);
}
.project__shape--03::before {
  content: '';
  position: absolute;
  left: 10%; right: 10%; top: 18%; bottom: 18%;
  background:
    repeating-linear-gradient(90deg, transparent 0 20%, rgba(201, 169, 97, 0.4) 20% 20.4%),
    repeating-linear-gradient(0deg, transparent 0 33%, rgba(201, 169, 97, 0.3) 33% 33.4%);
  border: 1px solid var(--gold-bright);
  box-shadow: inset 0 0 60px rgba(232, 199, 126, 0.08);
}

.project__shape--04 {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(232, 199, 126, 0.22), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #181612 100%);
}
.project__shape--04::before {
  content: '';
  position: absolute;
  inset: 8%;
  background:
    repeating-linear-gradient(90deg, transparent 0 8%, rgba(201, 169, 97, 0.35) 8% 8.3%),
    repeating-linear-gradient(0deg, transparent 0 16%, rgba(201, 169, 97, 0.18) 16% 16.3%);
  border: 1px solid var(--gold);
}
.project__shape--04::after {
  content: '';
  position: absolute;
  left: 30%; right: 30%; bottom: 8%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  filter: blur(2px);
}

.project__shape--05 {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(232, 199, 126, 0.3), transparent 50%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
}
.project__shape--05::before {
  content: '';
  position: absolute;
  left: 15%; right: 15%; top: 25%; bottom: 35%;
  background: repeating-linear-gradient(90deg, transparent 0 16%, rgba(201, 169, 97, 0.45) 16% 16.5%);
  border: 1px solid var(--gold);
}

.project__year {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--gold-bright);
  background: rgba(10, 9, 8, 0.6);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  z-index: 2;
}

.project__meta { display: grid; gap: 4px; }
.project__meta h3 {
  font-family: var(--f-cn-serif);
  font-weight: 600;
  font-size: clamp(16px, 1.3vw, 22px);
  color: var(--ivory);
  letter-spacing: .04em;
}
.project__meta p {
  font-family: var(--f-cn-sans);
  font-size: 13px;
  color: var(--ivory-dim);
}
.project__loc {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--gold);
  margin-top: 4px;
}

/* ---------- 14. Process ---------- */
.process__line {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.process__line::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: clamp(22px, 2vw, 30px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .4;
}
.process__line li {
  padding: clamp(48px, 4.5vw, 64px) clamp(14px, 1.4vw, 22px) clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 12px;
  position: relative;
  background: var(--ink);
  transition: background var(--t-fast);
}
.process__line li:last-child { border-right: 0; }
.process__line li:hover { background: var(--ink-2); }
.process__line li::before {
  content: '';
  position: absolute;
  left: 50%; top: clamp(22px, 2vw, 30px);
  width: 8px; height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px var(--gold);
  opacity: .85;
}

.process__line .step {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 2.6vw, 44px);
  color: var(--gold);
  letter-spacing: -0.02em;
}
.process__line h4 {
  font-family: var(--f-cn-serif);
  font-weight: 600;
  font-size: clamp(16px, 1.2vw, 20px);
  color: var(--ivory);
  letter-spacing: .04em;
}
.process__line p {
  font-family: var(--f-cn-sans);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ivory-dim);
}
@media (max-width: 1100px) { .process__line { grid-template-columns: repeat(4, 1fr); } .process__line li { border-bottom: 1px solid var(--line); } .process__line li:nth-child(4n) { border-right: 0; } }
@media (max-width: 700px)  { .process__line { grid-template-columns: repeat(2, 1fr); } .process__line li:nth-child(2n) { border-right: 0; } .process__line li:nth-child(odd) { border-right: 1px solid var(--line); } }
@media (max-width: 480px)  { .process__line { grid-template-columns: 1fr; } .process__line li, .process__line li:nth-child(odd) { border-right: 0; } }

/* ---------- 15. Visit ---------- */
.visit__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
@media (max-width: 1000px) { .visit__inner { grid-template-columns: 1fr; } }

.visit__copy { display: grid; gap: 20px; }
.visit__note {
  font-family: var(--f-cn-sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.95;
  color: var(--ivory-dim);
  max-width: 50ch;
  margin-top: 20px;
}
.visit__copy .btn { margin-top: 30px; justify-self: start; }

.visit__card {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line-strong);
  padding: clamp(28px, 3.4vw, 50px);
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  position: relative;
}
.visit__card::before, .visit__card::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--gold);
}
.visit__card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.visit__card::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.visit__row {
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.visit__row:last-of-type { border-bottom: 0; }
.visit__lab {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--gold);
  text-transform: uppercase;
}
.visit__val {
  font-family: var(--f-cn-serif);
  font-weight: 500;
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--ivory);
  letter-spacing: .02em;
}
.visit__val--lg {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 40px);
  color: var(--gold-bright);
  letter-spacing: .04em;
  text-decoration: none;
  transition: color var(--t-fast);
}
a.visit__val--lg:hover { color: var(--ivory); }

.visit__qr {
  margin-top: 8px;
  display: grid;
  gap: 14px;
  justify-items: start;
}
/* QR card — pre-cropped 800x800 wechat QR */
.qr {
  width: 156px;
  height: 156px;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35), 0 0 0 1px var(--line-strong);
  position: relative;
}
.qr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.visit__qr p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--ivory-mute);
}

/* ---------- 16. Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 8vw, 120px) var(--gut) 30px;
  background: linear-gradient(180deg, var(--ink) 0%, #060503 100%);
}
.foot__top {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  padding-bottom: clamp(40px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) { .foot__top { grid-template-columns: 1fr; } }

.foot__logo {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}
.foot__logo span {
  font-family: var(--f-cn-serif);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  color: var(--gold-bright);
  letter-spacing: .12em;
}
.foot__brand p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--ivory-mute);
  margin-bottom: 6px;
}
.foot__tag {
  font-family: var(--f-cn-serif) !important;
  font-style: normal !important;
  font-size: 16px !important;
  letter-spacing: .3em !important;
  color: var(--ivory-dim) !important;
  margin-top: 14px !important;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 50px);
}
@media (max-width: 600px) { .foot__cols { grid-template-columns: 1fr; gap: 28px; } }

.foot__cols h5 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.foot__cols a {
  display: block;
  font-family: var(--f-cn-sans);
  font-size: 14px;
  color: var(--ivory-dim);
  padding: 6px 0;
  transition: color var(--t-fast), padding var(--t-fast);
  letter-spacing: .04em;
}
.foot__cols a:hover { color: var(--gold-bright); padding-left: 8px; }

.foot__bot {
  max-width: var(--container);
  margin-inline: auto;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-cn-sans);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ivory-mute);
}

/* ---------- 17. Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  body { cursor: auto; }
  .cursor-ring, .cursor-dot { display: none; }
}

/* ---------- 19. Touch devices: hide custom cursor ---------- */
@media (hover: none) {
  body { cursor: auto; }
  .cursor-ring, .cursor-dot { display: none; }
}

/* ---------- 20. Mobile fine-tuning ---------- */
@media (max-width: 640px) {
  .section { padding: clamp(64px, 14vw, 100px) var(--gut); }
  .display { font-size: clamp(34px, 8.6vw, 60px); letter-spacing: 0; }
  .kicker { margin-bottom: 24px; }
  .craft__row { padding: 24px 0; gap: 16px; }
  .craft__no { font-size: 32px; }
  .craft__main h3 { font-size: 18px; }
  .craft__main p { font-size: 13px; }
  .foot__logo span { font-size: 40px; }
  .foot__brand p { font-size: 11px; }
  .foot__cols a { font-size: 13px; padding: 8px 0; }
  .nav { padding: 16px var(--gut); }
  .nav.is-scrolled { padding: 12px var(--gut); }
  .nav__brand-cn { font-size: 20px; }
  .nav__cta { padding: 8px 14px; font-size: 11px; letter-spacing: .18em; }
  .nav__cta svg { width: 14px; height: 14px; }
  .visit__copy { gap: 16px; }
  .project__year { top: 12px; right: 12px; font-size: 11px; }
}
@media (max-width: 420px) {
  .nav__cta span { display: none; }
  .nav__cta { padding: 8px 10px; }
  .display { font-size: 30px; }
  .foot__logo span { font-size: 34px; }
}

/* ---------- 21. Series clickable cue ---------- */
.series__item--clickable { cursor: pointer; }
.series__item--clickable .series__more {
  color: var(--gold);
  transition: color var(--t-fast), letter-spacing var(--t-fast);
}
.series__item--clickable:hover .series__more {
  color: var(--gold-bright);
  letter-spacing: .08em;
}

/* ---------- 22. Projects filter · 小区筛选 ---------- */
.projects__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 60px);
  padding-bottom: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.filter-chip {
  font-family: var(--f-cn-sans);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ivory-dim);
  background: transparent;
  border: 1px solid rgba(201, 169, 97, 0.22);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.filter-chip:hover {
  color: var(--ivory);
  border-color: rgba(201, 169, 97, 0.5);
  background: rgba(201, 169, 97, 0.05);
}
.filter-chip.is-active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 500;
  letter-spacing: .1em;
}
.filter-chip.is-active:hover {
  background: var(--gold-bright);
  color: var(--ink);
}

.project {
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.project[hidden] { display: none; }

.projects__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(40px, 6vw, 80px) 20px;
  color: var(--ivory-dim);
  font-family: var(--f-cn-sans);
  font-size: 14px;
  letter-spacing: .08em;
  display: none;
  border: 1px dashed rgba(201, 169, 97, 0.2);
  border-radius: 4px;
}
.projects__empty.is-shown { display: block; }
.projects__empty em {
  font-style: normal;
  color: var(--gold-bright);
  font-family: var(--f-cn-serif);
  margin: 0 4px;
}

@media (max-width: 800px) {
  .projects__filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
    margin: clamp(20px, 3vw, 32px) calc(var(--gut) * -1) clamp(24px, 4vw, 36px);
    padding-left: var(--gut);
    padding-right: var(--gut);
  }
  .projects__filter::-webkit-scrollbar { display: none; }
  .filter-chip {
    flex-shrink: 0;
    font-size: 12px;
    padding: 8px 14px;
  }
}

/* ---------- 23. Lightbox · series detail viewer ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 60px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 3, 0.86);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  cursor: zoom-out;
}
.lightbox__close {
  position: absolute;
  top: clamp(20px, 3vw, 36px);
  right: clamp(20px, 3vw, 36px);
  width: 44px;
  height: 44px;
  background: rgba(10, 9, 8, 0.6);
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-radius: 50%;
  cursor: pointer;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
  z-index: 2;
}
.lightbox__close:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 97, 0.15);
  transform: rotate(90deg);
}
.lightbox__figure {
  position: relative;
  margin: 0;
  max-width: min(92vw, 1280px);
  max-height: 88vh;
  transform: scale(0.94) translateY(8px);
  opacity: 0;
  transition: transform .55s var(--ease), opacity .45s var(--ease);
}
.lightbox.is-open .lightbox__figure {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition-delay: .08s;
}
.lightbox__img {
  display: block;
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(201, 169, 97, 0.18);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 169, 97, 0.06);
}
.lightbox__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
  opacity: .8;
  pointer-events: none;
}
.lightbox__corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.lightbox__corner--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.lightbox__corner--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.lightbox__corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* 视频模式 · 竖屏视频用 9:16 显示, 充满播放区不被压缩 */
.lightbox--video .lightbox__img {
  display: none !important;
}
.lightbox--video .lightbox__figure {
  width: min(88vw, 440px);
  aspect-ratio: 9 / 16;
  max-height: 88vh;
}
.lightbox__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 2px;
  background: #000;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 169, 97, 0.18);
}
@media (max-width: 768px) {
  .lightbox--video .lightbox__figure {
    width: 92vw;
    aspect-ratio: 9 / 16;
    max-height: 90vh;
  }
}

@media (max-width: 640px) {
  .lightbox__corner { width: 14px; height: 14px; }
  .lightbox__close { width: 38px; height: 38px; top: 16px; right: 16px; }
}
