/* ==========================================================================
   NebulaCLUB · 白日梦俱乐部
   Editorial White + International Klein Blue (#002FA7)
   Inspired by Magma.build's 12-col hairline grid, high-contrast serif display,
   atmospheric glow, and Swiss editorial restraint.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9ff;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.78);

  --klein: #002fa7;
  --klein-deep: #001f73;
  --klein-vivid: #1447e6;
  --klein-tint: rgba(0, 47, 167, 0.06);
  --klein-tint-strong: rgba(0, 47, 167, 0.12);
  --klein-border: rgba(0, 47, 167, 0.15);

  --ink: #0a1024;
  --ink-muted: #525c78;
  --ink-subtle: #8b95b0;
  --hairline: rgba(0, 47, 167, 0.09);
  --hairline-strong: rgba(0, 47, 167, 0.22);

  --font-serif: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --container-max: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

/* Continuous 12-column vertical hairline grid (signature Magma rhythm) */
.grid-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
}

.grid-backdrop__inner {
  width: 100%;
  max-width: var(--container-max);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  height: 100%;
  border-left: 1px solid var(--hairline);
}

.grid-backdrop__inner span {
  border-right: 1px solid var(--hairline);
  height: 100%;
}

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

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--container-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==========================================================================
   HEADER (96px non-sticky editorial bar)
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 10;
  height: 96px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: -0.02em;
}

.brand-en {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--klein);
}

.brand-en sup {
  font-size: 11px;
  margin-left: 1px;
}

.brand-sep {
  color: var(--hairline-strong);
  font-weight: 300;
}

.brand-zh {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-link:hover {
  color: var(--klein);
}

.nav-studio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--klein);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-studio-btn:hover {
  background: var(--klein-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 47, 167, 0.22);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.nav-tag {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

/* ==========================================================================
   HERO SECTION (Atmospheric Klein Blue pigment bloom on alabaster white)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 96px);
  min-height: min(820px, calc(100vh - 96px));
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-bloom {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 56% 52% at 72% 38%, rgba(0, 47, 167, 0.14) 0%, rgba(20, 71, 230, 0.05) 45%, transparent 74%),
    radial-gradient(ellipse 40% 44% at 18% 72%, rgba(0, 47, 167, 0.08) 0%, transparent 70%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 48px;
  padding-bottom: 52px;
  gap: 48px;
}

.hero-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  border: 1px solid var(--klein-border);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--klein);
  font-weight: 500;
}

.pill-spark {
  font-size: 12px;
}

.hero-coords {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}

.hero-display-wrap {
  margin: auto 0;
  padding: 20px 0;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-title-zh {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(48px, 7.6vw, 118px);
  color: var(--ink);
}

.hero-title-en {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(54px, 8.8vw, 136px);
  color: var(--klein);
  letter-spacing: -0.04em;
}

.hero-title-en em {
  font-style: italic;
  font-weight: 400;
}

.hero-bottom-split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 24px;
}

.scroll-cue {
  grid-column: span 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}

.scroll-cue:hover {
  color: var(--klein);
}

.arrow-down {
  display: inline-block;
  color: var(--klein);
  animation: floatDown 2.2s ease-in-out infinite;
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.hero-lead-block {
  grid-column: 7 / span 6;
}

.hero-slogan-zh {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.hero-slogan-en {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

/* Magma-style inline underlined editorial CTA */
.editorial-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.editorial-cta .cta-arrow {
  transition: transform 0.25s var(--ease);
}

.editorial-cta:hover {
  color: var(--klein);
  border-bottom-color: var(--klein);
}

.editorial-cta:hover .cta-arrow {
  transform: translateX(4px);
}

.editorial-cta--accent {
  color: var(--klein);
  border-bottom-color: var(--klein);
}

/* ==========================================================================
   COMMON SECTIONS & ASYMMETRIC HEADERS
   ========================================================================== */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 9vw, 128px) 0;
  border-bottom: 1px solid var(--hairline);
}

.section-header-asymmetric {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 56px;
}

.section-header-left {
  grid-column: span 6;
}

.section-header-right {
  grid-column: 7 / span 6;
}

.section-index {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--klein);
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-title em {
  font-style: italic;
  color: var(--klein);
  font-weight: 400;
}

.section-desc {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 540px;
}

/* ==========================================================================
   SECTION 01: FEATURED POSTERS CAROUSEL (Primary Showcase)
   ========================================================================== */
.carousel-controls-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.carousel-counter {
  font-family: var(--font-serif);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.counter-sep {
  color: var(--ink-subtle);
  margin: 0 4px;
}

.carousel-btns {
  display: flex;
  gap: 10px;
}

.circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--klein);
  color: #ffffff;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.circle-btn:hover:not(:disabled) {
  background: var(--klein-deep);
  transform: scale(1.05);
}

.circle-btn:disabled {
  background: var(--klein-tint-strong);
  color: var(--klein);
  opacity: 0.45;
  cursor: not-allowed;
}

.text-action-btn {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--klein);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--klein-border);
  background: var(--bg-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.text-action-btn:hover {
  background: var(--klein);
  color: #ffffff;
}

.poster-carousel-viewport {
  overflow: hidden;
  margin: 0 calc(var(--gutter) * -0.25);
  padding: 4px calc(var(--gutter) * 0.25) 12px;
}

.poster-carousel-track {
  display: flex;
  gap: 28px;
  transition: transform 0.65s var(--ease);
  will-change: transform;
}

.poster-feature-card {
  flex: 0 0 calc((100% - 56px) / 3);
  min-width: 310px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  group: poster;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
  margin-bottom: 18px;
  transition: transform 0.45s var(--ease), border-color 0.3s var(--ease), box-shadow 0.45s var(--ease);
}

.poster-feature-card:hover .poster-frame {
  transform: translateY(-6px);
  border-color: var(--klein);
  box-shadow: 0 24px 48px rgba(0, 47, 167, 0.14);
}

.poster-frame img,
.poster-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.poster-feature-card:hover .poster-frame img,
.poster-feature-card:hover .poster-frame svg {
  transform: scale(1.03);
}

.poster-frame-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--klein);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.poster-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.poster-card-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--klein);
}

.poster-card-date {
  font-size: 12px;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}

.poster-card-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.poster-feature-card:hover .poster-card-title {
  color: var(--klein);
}

.poster-card-copy {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--klein-border);
  color: var(--klein);
  background: var(--bg-soft);
}

/* ==========================================================================
   KINETIC EDITORIAL MARQUEE
   ========================================================================== */
.marquee-section {
  position: relative;
  z-index: 2;
  padding: 44px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background: var(--klein);
  color: #ffffff;
}

.marquee-row {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-row + .marquee-row {
  margin-top: 8px;
}

.marquee-track {
  display: inline-flex;
  align-items: baseline;
  gap: 28px;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  padding-right: 28px;
  animation: marqueeLeft 34s linear infinite;
}

.marquee-row--reverse .marquee-track {
  animation: marqueeRight 38s linear infinite;
  opacity: 0.88;
}

.marquee-track em {
  font-style: italic;
  opacity: 0.82;
}

.m-dash {
  opacity: 0.35;
  font-weight: 300;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ==========================================================================
   SECTION 02: MULTI-MEDIA TABBED ARCHIVE
   ========================================================================== */
.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--hairline-strong);
}

.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}

.archive-tab:hover {
  color: var(--klein);
  background: var(--klein-tint);
}

.archive-tab.is-active {
  background: var(--klein);
  color: #ffffff;
}

.tab-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(0, 47, 167, 0.08);
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.archive-tab.is-active .tab-count {
  background: rgba(255, 255, 255, 0.22);
}

.archive-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--klein-border);
  background: var(--surface);
  min-width: 220px;
}

.search-icon {
  color: var(--klein);
  font-size: 14px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
  font-family: inherit;
}

.view-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--klein-border);
  background: var(--bg-soft);
}

.view-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--ink-muted);
  transition: all 0.2s var(--ease);
}

.view-btn.is-active {
  background: var(--klein);
  color: #ffffff;
}

/* Grid View */
.archive-content.view-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}

.archive-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.25s var(--ease), box-shadow 0.35s var(--ease);
  cursor: pointer;
}

.archive-card:hover {
  transform: translateY(-4px);
  border-color: var(--klein);
  box-shadow: 0 20px 40px rgba(0, 47, 167, 0.1);
}

.archive-card-media {
  position: relative;
  background: var(--bg-soft);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.archive-card--poster .archive-card-media {
  aspect-ratio: 3 / 4;
}

.archive-card--photo .archive-card-media {
  aspect-ratio: 4 / 3;
}

.archive-card--video .archive-card-media {
  aspect-ratio: 16 / 10;
  background: var(--klein-deep);
}

.archive-card-media img,
.archive-card-media video,
.archive-card-media svg,
.archive-card-media canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--klein);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Note / Tweet Card Styling (Editorial Quote Block) */
.archive-card--note {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  padding: 28px;
  justify-content: space-between;
}

.note-quote-mark {
  font-family: var(--font-serif);
  font-size: 52px;
  line-height: 0.7;
  color: var(--klein);
  opacity: 0.28;
  margin-bottom: 12px;
}

.note-body-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 20px;
  white-space: pre-line;
}

.archive-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.archive-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.type-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--klein);
  text-transform: uppercase;
}

.date-label {
  font-size: 12px;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}

.archive-card-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.archive-card-excerpt {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Index / List View (Editorial Directory) */
.archive-content.view-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline-strong);
}

.index-row {
  display: grid;
  grid-template-columns: 80px 100px 1.2fr 1.6fr 120px;
  align-items: center;
  gap: 20px;
  padding: 20px 12px;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.index-row:hover {
  background: var(--klein);
  color: #ffffff;
}

.index-row:hover .index-num,
.index-row:hover .index-type,
.index-row:hover .index-copy,
.index-row:hover .index-date {
  color: rgba(255, 255, 255, 0.9);
}

.index-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--klein);
}

.index-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--klein);
  text-transform: uppercase;
}

.index-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
}

.index-copy {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index-date {
  text-align: right;
  font-size: 12px;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}

.empty-state {
  text-align: center;
  padding: 72px 24px;
  border: 1px dashed var(--klein-border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.empty-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 26px;
}

.empty-sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ==========================================================================
   SECTION 03: MANIFESTO (Magma 2-column numbered steps split)
   ========================================================================== */
.manifesto-split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: start;
}

.manifesto-left {
  grid-column: span 5;
  position: sticky;
  top: 40px;
}

.manifesto-lead {
  margin: 24px 0 32px;
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.manifesto-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.manifesto-right {
  grid-column: 7 / span 6;
  display: flex;
  flex-direction: column;
}

.principle-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline-strong);
}

.principle-item:last-child {
  border-bottom: 1px solid var(--hairline-strong);
}

.principle-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-style: italic;
  line-height: 1;
  color: var(--klein);
}

.principle-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.principle-body p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ==========================================================================
   FOOTER (Magma-inspired watermark + clean bar)
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 72px 0 40px;
  overflow: hidden;
}

.footer-watermark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(44px, 8.6vw, 132px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(0, 47, 167, 0.08);
  text-align: center;
  user-select: none;
  margin-bottom: 40px;
}

.footer-rule {
  height: 1px;
  background: var(--hairline-strong);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand {
  font-weight: 600;
  color: var(--klein);
}

.footer-link-btn {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-link-btn:hover {
  color: var(--klein);
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.solid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  background: var(--klein);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.solid-btn:hover {
  background: var(--klein-deep);
  transform: translateY(-1px);
}

.ghost-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--klein-border);
  font-size: 13px;
  color: var(--ink);
  transition: all 0.2s var(--ease);
}

.ghost-btn:hover {
  border-color: var(--klein);
  color: var(--klein);
}

.ghost-btn--danger:hover {
  border-color: #d92d20;
  color: #d92d20;
}

.icon-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--klein-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink);
  transition: all 0.2s var(--ease);
}

.icon-close-btn:hover {
  background: var(--klein);
  color: #ffffff;
  border-color: var(--klein);
}

/* ==========================================================================
   LIGHTBOX MODAL — EDITORIAL MONOGRAPH SPREAD (画册对页式图文融合展陈)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 14, 34, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2.4vw, 28px);
}

.modal-backdrop[hidden],
.drawer-backdrop[hidden] {
  display: none;
}

.lightbox-card {
  width: 100%;
  max-width: 1180px;
  height: min(88vh, 780px);
  max-height: 92vh;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0, 47, 167, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 36px 96px rgba(4, 14, 48, 0.36);
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.94);
  flex-shrink: 0;
}

.lightbox-meta-left,
.lightbox-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lightbox-meta-right {
  flex-shrink: 0;
}

.meta-badge {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--klein);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.meta-code {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--klein);
  font-size: 16px;
  white-space: nowrap;
}

.meta-date {
  font-size: 12px;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Open Art-Book Spread: Left Exhibition Stage + Right Curatorial Folio */
.lightbox-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.92fr);
  overflow: hidden;
}

.lightbox-media-pane {
  position: relative;
  background: #0d1326;
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  min-height: 0;
}

/* Soft atmospheric color-bleed backdrop behind the framed artwork */
.stage-ambient-bg {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(42px) saturate(1.25) brightness(0.42);
  transform: scale(1.12);
  opacity: 0.85;
  pointer-events: none;
}

.stage-ambient-wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(0, 47, 167, 0.14) 0%, rgba(8, 14, 34, 0.56) 100%);
  pointer-events: none;
}

/* Museum-matted gallery frame */
.stage-frame-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-mat {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 3px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease);
}

.stage-mat img,
.stage-mat video,
.stage-mat canvas {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 210px);
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.stage-mat svg {
  width: min(100%, 400px);
  height: auto;
  max-height: calc(88vh - 210px);
}

/* Multi-photo navigation arrows on the stage */
.stage-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--klein);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.stage-nav-btn:hover {
  background: var(--klein);
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.stage-nav-btn--prev { left: 10px; }
.stage-nav-btn--next { right: 10px; }

/* Bottom plate caption + optional multi-photo filmstrip */
.stage-footer-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.stage-plate-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.stage-filmstrip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 4px;
  scrollbar-width: none;
}

.stage-filmstrip::-webkit-scrollbar {
  display: none;
}

.filmstrip-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.52;
  padding: 0;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.filmstrip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filmstrip-thumb:hover {
  opacity: 0.88;
}

.filmstrip-thumb.is-active {
  opacity: 1;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Fullscreen image zoom overlay */
.image-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(6, 10, 24, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.image-zoom-overlay img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-note-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding: 40px 34px;
  background: var(--klein);
  color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.lightbox-note-visual p {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.55;
  margin: 0;
}

/* Right Page: Curatorial Monograph Folio */
.lightbox-info-pane {
  padding: 36px 38px 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border-left: 1px solid var(--hairline);
}

.folio-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--klein);
  font-weight: 600;
  margin-bottom: 16px;
}

.folio-eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--klein);
  display: inline-block;
}

.lightbox-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lightbox-subtitle {
  margin: 0 0 26px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--klein);
  opacity: 0.9;
}

.lightbox-copy {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid rgba(0, 47, 167, 0.22);
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink);
  white-space: pre-line;
  letter-spacing: 0.015em;
  margin-bottom: 28px;
}

.lightbox-specs {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-strong);
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.folio-colophon {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px dashed var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-subtle);
}

/* Editorial Long-Form Article Reader (for migrated WeChat articles) */
.lightbox-card.is-article {
  max-width: 920px;
  height: min(90vh, 880px);
}

.article-progress-bar {
  height: 3px;
  width: 100%;
  background: var(--hairline);
  flex-shrink: 0;
}

.article-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--klein);
  transition: width 0.1s linear;
}

.article-reader-scroll {
  overflow-y: auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 6vw, 72px) 64px;
  background: #ffffff;
}

.article-reader-inner {
  max-width: 680px;
  margin: 0 auto;
}

.article-reader-header {
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--hairline-strong);
}

.article-reader-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
}

.article-reader-lead {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--klein);
  line-height: 1.6;
}

.article-reader-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-subtle);
}

.reader-mode-bar {
  margin-top: 18px;
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--klein-border);
  background: var(--bg-soft);
}

.reader-mode-btn {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: all 0.2s var(--ease);
}

.reader-mode-btn.is-active {
  background: var(--klein);
  color: #ffffff;
}

/* Preserved original WeChat typesetting & font colors */
.wechat-rich-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.wechat-rich-body img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 14px auto;
}

.wechat-rich-body section,
.wechat-rich-body p {
  max-width: 100% !important;
}

.article-source-link {
  color: var(--klein);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-cover-figure {
  margin: 0 0 36px;
}

.article-cover-figure img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border: 1px solid var(--hairline-strong);
}

.article-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-p {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.article-h {
  margin: 18px 0 4px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--klein);
  line-height: 1.35;
}

.article-quote {
  margin: 8px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--klein);
  background: var(--bg-soft);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-muted);
}

.article-figure {
  margin: 12px 0;
  text-align: center;
}

.article-figure img {
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
}

.article-reader-footer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.article-badge-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--klein);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   ARTICLE COVER STYLE LIVE PREVIEW BAR & 4 DESIGN STYLES
   ========================================================================== */
.cover-style-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 12px 16px;
  margin-top: -20px;
  margin-bottom: 32px;
  border: 1px solid var(--klein-border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.cover-style-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--klein);
  white-space: nowrap;
}

.cover-style-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cover-style-pill {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  border: 1px solid var(--klein-border);
  background: #ffffff;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.cover-style-pill:hover {
  color: var(--klein);
  border-color: var(--klein);
}

.cover-style-pill.is-active {
  background: var(--klein);
  border-color: var(--klein);
  color: #ffffff;
}

/* --- Style A: Klein Blue Cyanotype Duotone (蓝晒双色调) --- */
.article-cover-duotone {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--klein);
  overflow: hidden;
}

.article-cover-duotone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.16) brightness(1.06);
  mix-blend-mode: screen;
  opacity: 0.94;
  transition: filter 0.45s var(--ease), mix-blend-mode 0.45s var(--ease), transform 0.55s var(--ease);
}

.article-cover-duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 47, 167, 0.12) 0%, rgba(0, 24, 88, 0.36) 100%);
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.archive-card:hover .article-cover-duotone img {
  filter: none;
  mix-blend-mode: normal;
  transform: scale(1.03);
}

.archive-card:hover .article-cover-duotone::after {
  opacity: 0;
}

/* --- Style B: Editorial Magazine Issue Frame (独立杂志框) --- */
.article-cover-magazine {
  width: 100%;
  height: 100%;
  background: #ffffff;
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.mag-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--klein);
  font-weight: 600;
  border-bottom: 1px solid var(--klein-border);
  padding-bottom: 6px;
}

.mag-photo-slot {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--klein-border);
  background: var(--bg-soft);
}

.mag-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.04);
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}

.archive-card:hover .mag-photo-slot img {
  transform: scale(1.04);
  filter: saturate(1);
}

.mag-bottom-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.mag-bottom-title {
  min-width: 0;
  flex: 1;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mag-bottom-code {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--klein);
  flex-shrink: 0;
}

/* --- Style C: Pure Swiss Typographic Cover (纯字标海报) --- */
.article-cover-typo {
  width: 100%;
  height: 100%;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.article-cover-typo.is-blue {
  background: var(--klein);
  color: #ffffff;
}

.article-cover-typo.is-white {
  background: linear-gradient(160deg, #ffffff 0%, #f2f6ff 100%);
  color: var(--klein);
}

.typo-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.08;
}

.typo-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.78;
}

.typo-main-title {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: auto 0;
}

.typo-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  opacity: 0.75;
  border-top: 1px solid currentColor;
  padding-top: 8px;
}

.typo-bottom-lead {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Style D: Magma Atmospheric Blur + Inset Frame (雾气画中画) --- */
.article-cover-atmo {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--klein-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 26px;
}

.atmo-bg-blur {
  position: absolute;
  inset: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  object-fit: cover;
  filter: blur(16px) saturate(1.1) brightness(0.7);
  opacity: 0.72;
}

.atmo-tint {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(0, 47, 167, 0.42), rgba(0, 24, 92, 0.72));
}

.atmo-inset-frame {
  position: relative;
  z-index: 2;
  width: 78%;
  height: 78%;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  padding: 4px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 34px rgba(0, 12, 48, 0.36);
  transition: transform 0.45s var(--ease);
}

.archive-card:hover .atmo-inset-frame {
  transform: scale(1.04);
}

.atmo-inset-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atmo-stamp {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

/* ==========================================================================
   VISUAL PUBLISHING STUDIO DRAWER
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 16, 36, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: flex-end;
}

.studio-panel {
  width: min(620px, 100vw);
  height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--klein-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -20px 0 60px rgba(0, 20, 80, 0.18);
}

.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--hairline);
}

.studio-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--klein);
  font-weight: 600;
  margin-bottom: 4px;
}

.studio-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
}

.studio-tabs {
  display: flex;
  padding: 0 28px;
  border-bottom: 1px solid var(--hairline);
  gap: 24px;
}

.studio-mode-tab {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.studio-mode-tab.is-active {
  color: var(--klein);
  border-bottom-color: var(--klein);
}

.studio-form,
.studio-manage {
  padding: 24px 28px 36px;
  overflow-y: auto;
  flex: 1;
}

.form-group {
  margin-bottom: 18px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.mini-link-btn {
  font-size: 12px;
  color: var(--klein);
  font-weight: 500;
}

.mini-link-btn:hover {
  text-decoration: underline;
}

.type-pill-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
}

.type-pill {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--klein-border);
  font-size: 13px;
  color: var(--ink-muted);
  background: var(--bg-soft);
  transition: all 0.2s var(--ease);
}

.type-pill.is-active {
  background: var(--klein);
  border-color: var(--klein);
  color: #ffffff;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row-align {
  align-items: center;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--klein-border);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--klein);
  box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.1);
}

.upload-dropzone {
  border: 1.5px dashed var(--klein-border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  border-color: var(--klein);
  background: rgba(0, 47, 167, 0.05);
}

.dropzone-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--klein);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.dropzone-placeholder p {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
}

.dropzone-placeholder small {
  font-size: 12px;
  color: var(--ink-subtle);
}

.dropzone-preview img,
.dropzone-preview video,
.dropzone-preview svg {
  max-height: 220px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

.video-url-row {
  margin-top: 12px;
  margin-bottom: 0;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  padding-top: 12px;
}

.checkbox-label input {
  accent-color: var(--klein);
  width: 16px;
  height: 16px;
}

.studio-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.manage-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
}

.manage-item-info {
  min-width: 0;
}

.manage-item-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manage-item-sub {
  font-size: 12px;
  color: var(--ink-subtle);
  margin-top: 3px;
}

.manage-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--klein);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 14px 32px rgba(0, 47, 167, 0.28);
}

/* ==========================================================================
   MOBILE DOCK & SCROLL REVEAL MOTION
   ========================================================================== */
.mobile-dock {
  display: none;
}

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.65s var(--ease);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes modalSheetUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drawerSlideIn {
  from {
    opacity: 0.4;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes drawerSheetUp {
  from {
    opacity: 0.5;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-backdrop:not([hidden]) .lightbox-card {
  animation: modalSheetUp 0.34s var(--ease) both;
}

.drawer-backdrop:not([hidden]) .studio-panel {
  animation: drawerSlideIn 0.36s var(--ease) both;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .poster-feature-card {
    flex: 0 0 calc((100% - 28px) / 2);
  }
  .archive-content.view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-header-left,
  .section-header-right,
  .manifesto-left,
  .manifesto-right,
  .scroll-cue,
  .hero-lead-block {
    grid-column: span 12;
  }
  .manifesto-left {
    position: static;
  }
  .lightbox-body {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr);
  }
  .lightbox-info-pane {
    padding: 26px 26px 24px;
  }
}

@media (max-width: 760px) {
  .lightbox-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
    display: block;
  }
  .lightbox-media-pane {
    padding: 18px 14px 26px;
    min-height: 280px;
  }
  .stage-mat {
    padding: 6px;
  }
  .stage-mat img,
  .stage-mat video,
  .stage-mat canvas {
    max-height: 54vh;
  }
  .lightbox-info-pane {
    position: relative;
    z-index: 5;
    margin-top: -14px;
    border-radius: 18px 18px 0 0;
    border-left: none;
    padding: 24px 20px calc(44px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 28px rgba(8, 14, 34, 0.14);
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  /* 4-column airy hairline grid on mobile instead of cramped 12 columns */
  .grid-backdrop__inner {
    grid-template-columns: repeat(4, 1fr);
    border-left-color: rgba(0, 47, 167, 0.05);
  }
  .grid-backdrop__inner span {
    border-right-color: rgba(0, 47, 167, 0.05);
  }
  .grid-backdrop__inner span:nth-child(n + 5) {
    display: none;
  }

  /* Compact Sticky Mobile Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 60px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .brand-mark {
    gap: 7px;
  }

  .brand-en {
    font-size: 20px;
  }

  .brand-zh {
    font-size: 13px;
  }

  .site-nav {
    gap: 10px;
  }

  .nav-link,
  .nav-tag {
    display: none;
  }

  .nav-studio-btn {
    padding: 7px 13px;
    font-size: 12px;
  }

  /* Mobile Floating Bottom Dock */
  .mobile-dock {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--klein-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px rgba(0, 47, 167, 0.16);
    width: min(356px, calc(100vw - 28px));
    justify-content: space-between;
  }

  .mobile-dock-item {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 38px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
  }

  .mobile-dock-item:active {
    transform: scale(0.96);
  }

  .mobile-dock-item .dock-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--klein);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
  }

  .mobile-dock-item.is-active {
    color: var(--klein);
    background: var(--klein-tint);
  }

  .mobile-dock-item.is-active .dock-dot {
    opacity: 1;
  }

  .mobile-dock-item--cta {
    background: var(--klein);
    color: #ffffff;
    font-weight: 500;
    flex: 1.15;
  }

  /* Hero Section — Magazine Cover Proportions */
  .hero-section {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 24px;
    padding-bottom: 36px;
    gap: 28px;
  }

  .hero-top-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pill-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .hero-coords {
    font-size: 11px;
  }

  .hero-display-wrap {
    padding: 8px 0;
  }

  .hero-title {
    gap: 4px;
  }

  .hero-title-zh {
    font-size: clamp(40px, 11.5vw, 56px);
  }

  .hero-title-en {
    font-size: clamp(44px, 13vw, 64px);
  }

  .hero-bottom-split {
    gap: 18px;
  }

  .scroll-cue {
    display: none;
  }

  .hero-slogan-zh {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .hero-slogan-en {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 14px;
  }

  .editorial-cta {
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
  }

  /* Sections spacing */
  .section {
    padding: 52px 0;
  }

  .section-header-asymmetric {
    margin-bottom: 28px;
    gap: 14px;
  }

  .section-index {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .section-title {
    font-size: clamp(28px, 8.2vw, 38px);
  }

  .section-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  /* Poster Carousel — Native Touch Swipe + Snap */
  .carousel-controls-row {
    gap: 12px;
  }

  .carousel-counter {
    font-size: 20px;
  }

  .circle-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .text-action-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .poster-carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 16px;
  }

  .poster-carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .poster-carousel-track {
    transform: none !important;
    transition: none;
    gap: 16px;
  }

  .poster-feature-card {
    flex: 0 0 80vw;
    min-width: 264px;
    max-width: 320px;
    scroll-snap-align: start;
  }

  .poster-feature-card:hover .poster-frame {
    transform: none;
    box-shadow: none;
  }

  .poster-card-title {
    font-size: 21px;
  }

  .poster-card-copy {
    font-size: 13.5px;
    line-height: 1.65;
  }

  /* Marquee — gentler & tighter on mobile */
  .marquee-section {
    padding: 26px 0;
  }

  .marquee-track {
    font-size: 26px;
    gap: 18px;
    padding-right: 18px;
    animation-duration: 24s;
  }

  .marquee-row--reverse .marquee-track {
    animation-duration: 28s;
  }

  /* Archive Toolbar — Horizontal Scrollable Tabs + Compact Search */
  .archive-toolbar {
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 24px;
  }

  .archive-tabs {
    width: calc(100% + var(--gutter) * 2);
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .archive-tabs::-webkit-scrollbar {
    display: none;
  }

  .archive-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
  }

  .archive-controls {
    width: 100%;
    gap: 8px;
  }

  .cover-style-bar {
    margin-top: -10px;
    margin-bottom: 22px;
    padding: 10px 12px;
    gap: 8px;
  }

  .cover-style-pills {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .cover-style-pills::-webkit-scrollbar {
    display: none;
  }

  .search-box {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
  }

  .search-box input {
    font-size: 16px; /* Prevents iOS Safari focus zoom */
  }

  .archive-content.view-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .archive-card:hover {
    transform: none;
    box-shadow: none;
  }

  .archive-card:active {
    transform: scale(0.99);
  }

  .archive-card-body {
    padding: 16px 18px 18px;
  }

  .archive-card--note {
    padding: 22px 18px;
  }

  .archive-card-title {
    font-size: 20px;
  }

  .archive-card-excerpt,
  .note-body-text {
    font-size: 14.5px;
    line-height: 1.75;
  }

  .index-row {
    grid-template-columns: 36px 66px 1fr;
    gap: 10px;
    padding: 15px 4px;
  }

  .index-title {
    font-size: 16px;
  }

  .index-copy,
  .index-date {
    display: none;
  }

  /* Manifesto */
  .principle-item {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 22px 0;
  }

  .principle-num {
    font-size: 28px;
  }

  .principle-body h3 {
    font-size: 17px;
  }

  .principle-body p {
    font-size: 14px;
  }

  /* Footer */
  .site-footer {
    padding: 44px 0 28px;
  }

  .footer-watermark {
    font-size: clamp(32px, 11vw, 52px);
    margin-bottom: 24px;
  }

  .footer-bottom {
    font-size: 12px;
    gap: 12px;
  }

  /* Full-Screen Edge-to-Edge Mobile Lightbox & Article Reader */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .lightbox-card,
  .lightbox-card.is-article {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .lightbox-topbar {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    gap: 8px;
  }

  .lightbox-meta-left {
    gap: 8px;
    min-width: 0;
  }

  .meta-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .meta-code {
    font-size: 14px;
  }

  .meta-date {
    display: none;
  }

  .lightbox-meta-right {
    gap: 6px;
  }

  .lightbox-meta-right .ghost-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .lightbox-info-pane {
    padding: 20px 18px 36px;
    gap: 12px;
  }

  .lightbox-title {
    font-size: 24px;
  }

  .lightbox-subtitle {
    font-size: 15px;
  }

  .lightbox-copy {
    font-size: 15px;
    line-height: 1.85;
  }

  /* Mobile Long-Form Article Reader Typography */
  .article-reader-scroll {
    padding: 20px 18px calc(64px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }

  .article-reader-header {
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .article-reader-title {
    font-size: 28px;
    line-height: 1.25;
  }

  .article-reader-lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .article-reader-meta {
    gap: 8px;
    font-size: 12px;
  }

  .article-p {
    font-size: 16.5px;
    line-height: 1.92;
    letter-spacing: 0.02em;
  }

  .article-h {
    font-size: 20px;
  }

  .article-blocks {
    gap: 18px;
  }

  .wechat-rich-body {
    font-size: 16px;
    line-height: 1.9;
    overflow-x: hidden;
  }

  .wechat-rich-body img {
    border-radius: 4px;
    margin: 12px auto;
  }

  /* Mobile Full-Screen Slide-Up Studio Drawer */
  .drawer-backdrop:not([hidden]) .studio-panel {
    animation: drawerSheetUp 0.34s var(--ease) both;
  }

  .studio-panel {
    width: 100vw;
    height: 100dvh;
    border-left: none;
  }

  .studio-header {
    padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 14px;
  }

  .studio-title {
    font-size: 22px;
  }

  .studio-tabs {
    padding: 0 18px;
  }

  .studio-form,
  .studio-manage {
    padding: 18px 18px calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .type-pill-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevents iOS Safari zoom on input focus */
  }

  .toast {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 32px);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
