/* ═══════════════════════════════════════════════════════════════
   OpenClaw 101 · Underground V1 (Xerox) — Draft
   Foundation + Xerox overrides + site-specific sections
   Black base · cream sheets · blood #74070D · forest #1e3a2b
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600;1,700&family=IBM+Plex+Mono:wght@400;500;600;700&family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&family=Special+Elite&family=Caveat:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --ink: #0a0a0a;
  --black: #1a1a1a;
  --paper: #efece4;
  --cream: #e8e3d4;
  --cream-bright: #f5f2e8;
  --blood: #74070D;
  --blood-bright: #9a1a1a;
  --forest: #1e3a2b;
  --gray: #8a8a8a;
}

body {
  background: var(--black);
  color: var(--paper);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

/* zh / mono helpers */
.zh { font-family: 'Noto Serif SC', 'Cormorant Garamond', serif; }
.mono { font-family: 'IBM Plex Mono', monospace; }
.type { font-family: 'Special Elite', 'IBM Plex Mono', monospace; letter-spacing: 0.04em; }
.hand { font-family: 'Caveat', cursive; color: var(--blood); transform: rotate(-1.5deg); }

a { color: inherit; }

/* lang toggle — body.zh hides .en, shows .zh-txt */
[data-lang="zh"] { display: none; }
body.zh [data-lang="en"] { display: none; }
body.zh [data-lang="zh"] { display: initial; }
body.zh h1[data-lang="zh"],
body.zh h2[data-lang="zh"],
body.zh h3[data-lang="zh"],
body.zh h4[data-lang="zh"] { display: block; }

/* ═══════════════ MARQUEE ═══════════════ */
.mq { overflow: hidden; white-space: nowrap; }
.mq-track { display: inline-flex; white-space: nowrap; animation: mq 40s linear infinite; }
.mq-track > span { padding-right: 3em; }
.mq-slow .mq-track { animation-duration: 80s; }
.mq-fast .mq-track { animation-duration: 20s; }
.mq-reverse .mq-track { animation-direction: reverse; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.mq-raw {
  background: var(--blood);
  color: var(--cream);
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  font-family: 'Special Elite', monospace;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 0;
}
.mq-raw-paper { background: var(--cream); color: #0a0a0a; border-color: var(--blood); }

/* ═══════════════ NOISE OVERLAY ═══════════════ */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.6;
}

/* ═══════════════ SCANLINE OVERLAY (CRT/film feel) ═══════════════ */
body::after {
  content: '';
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════════ STAMPS / LABELS ═══════════════ */
.stamp-red {
  display: inline-block;
  padding: 8px 16px;
  border: 3px solid var(--blood);
  color: var(--blood);
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-blend-mode: screen;
  background-color: transparent;
}

.sec {
  display: inline-block;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
}
.sec-red { background: var(--blood); }
.sec-forest { background: var(--forest); color: var(--paper); }

.blown {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.05), -1px -1px 0 rgba(116,7,13,0.35);
}

/* ═══════════════ MASTHEAD ═══════════════ */
.mast { margin-bottom: 24px; }

.mast-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 7px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  border-bottom: 1px solid #2a2a2a;
}
.mast-strip-c { color: var(--blood-bright); }

.wordmark-wrap {
  background: var(--ink);
  padding: 22px 24px 14px;
  border-left: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  position: relative;
}
.wordmark-link { text-decoration: none; color: var(--paper); display: block; }
.wordmark-row {
  display: flex; align-items: baseline; gap: 0.25em;
  white-space: nowrap; overflow: hidden;
}
.wordmark-main {
  font-family: 'Special Elite', monospace;
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-shadow: 2px 2px 0 var(--blood);
}
.wordmark-101 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 6rem);
  color: var(--blood-bright);
  margin-left: 0.25em;
}
.wordmark-sub {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 10px;
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  gap: 16px; flex-wrap: wrap;
  opacity: 0.85;
}
.wordmark-sub-r { color: var(--blood-bright); opacity: 1; }

.raw-nav {
  display: flex;
  gap: 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  background: #0a0a0a;
  color: var(--cream);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  overflow-x: auto;
}
.raw-nav a {
  flex: 1;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--cream);
  border-right: 1px solid #2a2a2a;
  white-space: nowrap;
  display: flex; gap: 10px; align-items: baseline;
  transition: all 0.15s;
}
.raw-nav a:hover { background: var(--blood); color: var(--paper); }
.raw-nav a:last-child { border-right: 0; }
.raw-nav .idx { color: var(--blood-bright); font-weight: 600; }
.raw-nav a:hover .idx { color: var(--cream); }
.raw-nav .nav-zh { margin-left: auto; font-size: 11px; opacity: 0.55; color: #888; }

.lang-toggle {
  background: var(--blood);
  color: var(--paper);
  border: 0;
  padding: 6px 12px;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  cursor: pointer;
  text-transform: uppercase;
}
.mast-strip .lang-toggle { margin-left: 12px; }

/* ═══════════════ MAGAZINE COVER NAV (Black) ═══════════════ */
.mag-nav {
  background: var(--black);
  color: var(--paper);
  margin-bottom: 20px;
  border: 0;
}

.mag-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 7px 18px;
  background: var(--black);
  color: var(--paper);
  font-family: 'Special Elite', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  border-bottom: 1px solid #2a2a2a;
}
.mag-strip-c { color: var(--blood-bright); }

.mag-mast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #2a2a2a;
}
.mag-mast-l,
.mag-mast-r {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Special Elite', monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.95;
}
.mag-mast-r { text-align: right; align-items: flex-end; }
.mag-mast-sub {
  font-family: 'Noto Serif SC', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--paper);
  opacity: 0.7;
  text-transform: none;
}

.mag-wordmark {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  color: var(--paper);
  white-space: nowrap;
}
.mag-wordmark img {
  height: clamp(4.2rem, 9vw, 6.4rem);
  width: auto;
  display: block;
}
.mag-wordmark-main {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.mag-wordmark-101 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: var(--blood-bright);
}

.mag-num-nav {
  display: flex;
  align-items: stretch;
  background: var(--black);
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  overflow-x: auto;
}
.mag-num-nav a {
  flex: 1;
  padding: 13px 16px;
  text-decoration: none;
  color: var(--paper);
  border-right: 1px solid #2a2a2a;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 10px;
  transition: background 0.15s, color 0.15s;
}
.mag-num-nav a:hover { background: var(--blood); color: var(--paper); }
.mag-num-nav .mag-idx {
  color: var(--blood-bright);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.mag-num-nav a:hover .mag-idx { color: var(--paper); }
.mag-num-nav .mag-nav-zh {
  margin-left: auto;
  font-family: 'Noto Serif SC', serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.55;
  color: #9a9a9a;
}
.mag-num-nav .lang-toggle {
  margin: 0;
  border-left: 1px solid #1e1e1e;
  border-radius: 0;
  padding: 13px 18px;
}

@media (max-width: 820px) {
  .mag-mast { grid-template-columns: 1fr; text-align: center; }
  .mag-mast-r { text-align: center; align-items: center; }
  .mag-mast-l { align-items: center; }
  .mag-num-nav .mag-nav-zh { display: none; }
  .mag-strip { font-size: 9.5px; padding: 6px 12px; gap: 10px; }
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 44px 36px 40px;
  margin-top: 0;
  overflow: hidden;
}
/* Xerox halftone grain overlay — restored, stronger */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(10,10,10,0.22) 1px, transparent 1.2px),
    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='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.75'/%3E%3C/svg%3E");
  background-size: 4px 4px, 220px 220px;
  mix-blend-mode: multiply;
  opacity: 0.62;
  pointer-events: none;
  z-index: 1;
}
.hero > * { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
  position: relative;
}
.hero-l { position: relative; }
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 18px 0 12px;
  position: relative;
  color: var(--ink);
}
.hero-title span { color: var(--blood-bright); font-style: italic; display: block; }
.hero-rule {
  width: 50px; height: 1px; background: var(--blood);
  margin: 18px 0 22px;
}
.hero-title-zh {
  font-family: 'Noto Serif SC', serif;
  font-weight: 500;
  font-size: 22px;
  color: #2a2a2a;
  letter-spacing: 0.25em;
  margin-bottom: 32px;
}
.hero-lede { font-size: 17px; line-height: 1.65; max-width: 520px; margin: 0 0 12px; }
.hero-lede-zh { font-family: 'Noto Serif SC', serif; font-size: 15px; line-height: 1.9; color: #333; margin: 0 0 28px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--blood);
  color: var(--cream);
  padding: 13px 24px;
  font-family: 'Space Grotesk', 'Special Elite', sans-serif;
  font-size: 13.5px; letter-spacing: 0.04em; font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(116, 7, 13, 0.4);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-primary:hover {
  background: #8d0d14;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(116, 7, 13, 0.5);
}
.btn-secondary {
  background: transparent; color: var(--cream);
  padding: 13px 24px;
  font-family: 'Space Grotesk', 'Special Elite', sans-serif;
  font-size: 13.5px; letter-spacing: 0.04em; font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(239, 236, 228, 0.35);
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-secondary:hover {
  border-color: var(--blood-bright);
  color: var(--blood-bright);
  background: rgba(116, 7, 13, 0.08);
}
/* Hero / cream sheets — secondary needs dark variant there */
.hero .btn-secondary,
.evt-card .btn-secondary,
.sec-naked .btn-secondary,
.sheet:not(.sheet-dark) .btn-secondary {
  color: var(--ink);
  border-color: rgba(10, 10, 10, 0.45);
}
.hero .btn-secondary:hover,
.evt-card .btn-secondary:hover,
.sec-naked .btn-secondary:hover,
.sheet:not(.sheet-dark) .btn-secondary:hover {
  color: var(--blood);
  border-color: var(--blood);
  background: rgba(116, 7, 13, 0.06);
}

.hero-r { padding-top: 8px; position: relative; }
.poster-wrap { position: relative; transform: rotate(2deg); }
.tape {
  position: absolute;
  width: 100px; height: 24px;
  background: rgba(249, 221, 74, 0.85);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 0 10px rgba(255,255,255,0.3);
  mix-blend-mode: multiply;
  z-index: 4;
}
.poster {
  position: relative;
  background: var(--cream-bright);
  padding: 14px;
  box-shadow: 0 2px 0 #000, 8px 10px 0 rgba(0,0,0,0.4), 0 22px 40px rgba(0,0,0,0.3);
  margin: 0;
}
.poster-inner {
  aspect-ratio: 4/5;
  background: linear-gradient(180deg, #2a2a2a, #0a0a0a);
  color: var(--paper);
  padding: 20px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E"), linear-gradient(180deg, #2a2a2a, #0a0a0a);
  background-blend-mode: overlay;
  overflow: hidden;
}
.poster-lobster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  pointer-events: none;
}
.poster-lobster img {
  width: 80%;
  filter: brightness(0) invert(1) opacity(0.75);
}
.poster-meta {
  display: flex; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--paper); opacity: 0.75;
  text-transform: uppercase;
  position: relative; z-index: 2;
}
.poster-big {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.88; letter-spacing: -0.035em;
  color: var(--paper);
  position: relative; z-index: 2;
}
.poster-big span { color: var(--blood); }
.poster-foot {
  display: flex; justify-content: space-between;
  font-family: 'Special Elite', monospace;
  font-size: 10px; color: var(--paper); opacity: 0.75;
  text-transform: uppercase; letter-spacing: 0.15em;
  position: relative; z-index: 2;
}

.stamp-abs { position: absolute; z-index: 3; }

.hero-stats {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.hero-stat {
  padding: 18px 16px;
  border-right: 1px solid var(--ink);
  text-align: left;
}
.hero-stat:last-child { border-right: 0; }
.hero-stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 700;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1; color: var(--ink);
  letter-spacing: -0.03em;
}
.hero-stat-l {
  font-family: 'Special Elite', monospace;
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--blood); text-transform: uppercase;
  margin-top: 6px;
}

/* ═══════════════ SHEET (recurring container) ═══════════════ */
.sheet {
  margin-top: 48px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 48px 40px;
  position: relative;
}
.sheet-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--blood);
}
.sheet-forest {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--ink);
}

/* ═══════════════ NAKED SECTION (black base, no frame) ═══════════════ */
.sec-naked {
  margin-top: 72px;
  padding: 0 6px;
  color: var(--paper);
  position: relative;
}
.sec-naked .sheet-head {
  border-bottom-color: #3a3a3a;
}
.sec-naked .sheet-head .type { color: var(--blood-bright) !important; }
.sec-naked .sheet-title { color: var(--paper); }
.sec-naked .sheet-title span { color: var(--blood-bright); }
.sec-naked .sheet-lede { color: #c8c2b4; }
.sec-naked .sheet-title-zh { color: #8a8a8a; }

/* naked section — invert child text colors to work on black */
.sec-naked .about-pull { color: var(--paper); border-left-color: var(--blood-bright); }
.sec-naked .about-story { color: #d0cbbc; }
.sec-naked .about-story strong { color: var(--blood-bright); }
.sec-naked .about-stats { border-top-color: #3a3a3a; border-bottom-color: #3a3a3a; }
.sec-naked .about-stat { border-right-color: #3a3a3a; }
.sec-naked .stat-value { color: var(--paper); }
.sec-naked .stat-label { color: #9a9a9a; }
.sec-naked .pillar { background: rgba(239,236,228,0.04); border-color: #4a4a4a; }
.sec-naked .pillar h3 { color: var(--paper); }
.sec-naked .pillar p { color: #c8c2b4; }
.sec-naked .pillar-num { color: var(--blood-bright); }

.sec-naked .faq-list { border-top-color: #3a3a3a; }
.sec-naked .faq-item { border-bottom-color: #3a3a3a; }
.sec-naked .faq-q { color: var(--paper); }
.sec-naked .faq-a { color: #c8c2b4; opacity: 1; }
.sec-naked .faq-q::after { color: var(--blood-bright); }

.sheet-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
  border-bottom: 2px solid currentColor;
  padding-bottom: 14px;
}

.sheet-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 16px 0 4px;
}
.sheet-title span { color: var(--blood); display: inline; }
.sheet-title-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: #8a8a8a;
  letter-spacing: 0.25em;
  margin: 6px 0 24px;
}
.sheet-lede {
  font-size: 16px;
  line-height: 1.65;
  color: inherit; opacity: 0.88;
  max-width: 640px;
  margin-bottom: 24px;
}

/* ═══════════════ EVENT CARDS ═══════════════ */
.evt-list { display: grid; gap: 22px; margin-top: 28px; }
.evt-card {
  border: 3px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  padding: 28px 28px 24px;
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  gap: 28px;
  align-items: flex-start;
}
.evt-poster-link {
  flex: 0 0 200px;
  display: block;
  line-height: 0;
  text-decoration: none;
  width: 200px;
  height: 200px;
  border: 2px solid var(--ink);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.evt-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.95);
}
.evt-card.evt-upcoming .evt-poster-link:hover {
  border-color: var(--blood);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--blood);
}
.evt-card.evt-past .evt-poster-link:hover {
  border-color: var(--forest);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--forest);
}
.evt-body {
  flex: 1;
  min-width: 0;
}
@media (max-width: 720px) {
  .evt-card { flex-direction: column; gap: 18px; }
  .evt-poster-link { width: 100%; max-width: 280px; height: auto; aspect-ratio: 1 / 1; flex-basis: auto; }
  .evt-poster { width: 100%; height: 100%; }
}
.evt-card.evt-upcoming { background: var(--cream-bright); }
.evt-card.evt-past { background: var(--paper); opacity: 0.95; }
.evt-badge {
  display: inline-block;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--blood);
  color: var(--paper);
  margin-bottom: 14px;
}
.evt-badge.past { background: var(--forest); color: var(--paper); }
.evt-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.evt-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #666;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.evt-meta {
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blood);
  margin-bottom: 18px;
  border-top: 1px dashed var(--ink);
  border-bottom: 1px dashed var(--ink);
  padding: 12px 0;
}
/* ═══════════════ SCHEDULE (on black via .sec-naked) ═══════════════ */
.sched-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #3a3a3a;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
}
.sched-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 36px 4px;
  border-bottom: 1px solid #3a3a3a;
  position: relative;
  align-items: start;
}
.sched-n {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 700;
  font-size: 84px; color: var(--blood-bright);
  line-height: 0.85;
  letter-spacing: -0.045em;
  display: block;
}
.sched-n::after {
  content: "SESSION";
  display: block;
  font-family: 'Special Elite', monospace;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: #8a8a8a;
  border-top: 1px dashed #3a3a3a;
  padding-top: 10px;
  margin-top: 14px;
  width: 100%;
}
.sched-body {}
.sched-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 30px; line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.sched-title-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: #8a8a8a;
  letter-spacing: 0.12em;
  margin-top: 4px;
}
.sched-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #c8c2b4;
  margin-top: 12px;
  max-width: 640px;
}
@media (max-width: 960px) {
  .sched-list { grid-template-columns: 1fr; column-gap: 0; }
}
@media (max-width: 720px) {
  .sched-item { grid-template-columns: 1fr; gap: 10px; }
  .sched-n { font-size: 64px; }
}

/* ═══════════════ SPEAKERS — V1 People You'll Meet, 2-col ═══════════════ */
/* V1 Cover People — initials black cards */
.sp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.sp-card {
  margin: 0;
  background: #141414;
  border: 1px solid #2a2a2a;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3/4;
  position: relative;
  transition: border-color 0.2s;
}
.sp-card:hover { border-color: var(--blood-bright); }
.sp-frame {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.28em;
  color: var(--blood-bright);
  text-transform: uppercase;
}
.sp-initials {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: clamp(88px, 14vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin: auto 0;
  text-align: left;
}
.sp-photo {
  margin: 12px 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  position: relative;
}
.sp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.95);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.4s ease;
}
.sp-card:hover .sp-photo img { transform: scale(1.06); filter: contrast(1.1) saturate(1.05); }
.sp-cap {
  padding: 0;
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px dashed #3a3a3a;
  padding-top: 14px;
  margin-top: 10px;
}
.sp-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 20px; letter-spacing: -0.015em;
  color: var(--paper);
  line-height: 1.05;
}
.sp-name-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px; color: #999;
  letter-spacing: 0.18em;
}
.sp-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #bbb;
  letter-spacing: 0.1em;
  margin-top: 6px;
  text-transform: uppercase;
}
.sp-org {
  font-family: 'Special Elite', monospace;
  font-size: 11px; color: var(--blood-bright);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 2px;
}
@media (max-width: 1024px) {
  .sp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; grid-auto-rows: 1fr; }
  .sp-card { padding: 16px 14px 14px; aspect-ratio: auto; height: 100%; }
  .sp-initials { font-size: 96px; }
  .sp-name { font-size: 22px; }
}

/* ═══════════════ BLOG ═══════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  text-decoration: none;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.15s;
}
.blog-card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--blood); }
.blog-cover {
  aspect-ratio: 1.91 / 1;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
}
.blog-cover img { width: 100%; height: 100%; object-fit: contain; background: var(--ink); filter: contrast(1.05); transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.4s ease; }
.blog-card:hover .blog-cover img { transform: scale(1.05); filter: contrast(1.1); }
.blog-body { padding: 14px 14px 16px; }
.blog-tag {
  font-family: 'Special Elite', monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--blood);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 6px;
}
.blog-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #666;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.blog-link {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blood);
  text-decoration: none;
  border-top: 1px dashed var(--ink);
  padding-top: 8px;
  display: inline-block;
}

/* ═══════════════ PARTNERS — i/ii pillar frames, black base ═══════════════ */
.partner-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 20px;
}
.partner-pillar {
  background: transparent;
  border: 2px solid #4a4a4a;
  padding: 22px 22px 24px;
  position: relative;
}
.partner-pillar h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 22px; margin: 0 0 18px;
  letter-spacing: -0.01em;
  color: var(--paper);
  display: flex; align-items: baseline; gap: 10px;
}
.partner-pillar .pillar-num {
  font-family: 'Special Elite', monospace;
  font-style: normal;
  color: var(--blood-bright);
  font-size: 14px;
  letter-spacing: 0.15em;
}
.partner-pillar .pillar-sub {
  font-family: 'Noto Serif SC', serif;
  font-style: normal;
  font-size: 13px; color: #8a8a8a;
  letter-spacing: 0.18em;
  margin-left: 8px;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px 18px;
  align-items: center;
}
.partner-card {
  background: transparent;
  border: 0;
  padding: 8px 6px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  min-height: 80px;
  color: var(--cream);
}
.partner-card:hover .partner-logo { opacity: 1; filter: grayscale(1) brightness(2.6) contrast(1.1); }
.partner-logo {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1) brightness(2.4) contrast(1.05);
  opacity: 0.92;
  transition: opacity 0.2s, filter 0.2s;
}
.partner-name {
  font-family: 'Special Elite', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #bdb8aa;
  text-align: center;
  text-transform: uppercase;
}

/* ═══════════════ ABOUT ═══════════════ */
.about-pull {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  border-left: 4px solid var(--blood);
  padding: 0 0 0 22px;
  margin: 0 0 32px;
  color: var(--ink);
  max-width: 780px;
}
.about-story {
  font-size: 15.5px;
  line-height: 1.75;
  color: #222;
  max-width: 780px;
}
.about-story strong { color: var(--blood); font-weight: 700; }
.about-story-framed {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 28px 32px 24px;
  margin-top: 20px;
  box-shadow: 4px 4px 0 var(--ink);
  max-width: none;
}
.about-story-framed p { margin: 0 0 14px; }
.about-story-framed p:last-child { margin-bottom: 0; }
.sec-naked .about-story-framed { color: #222; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  margin: 40px 0;
}
.about-stat {
  padding: 18px 14px;
  border-right: 1px solid var(--ink);
  position: relative;
}
.about-stat:last-child { border-right: 0; }
.stat-icon {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: var(--blood);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #666;
  margin-top: 6px; letter-spacing: 0.03em;
}
.about-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
/* Duo variant — 0xMedia + OpenClaw 101 split on cream sheet */
.about-pillars-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 20px 0 32px;
}
.about-pillars-duo .pillar { padding: 26px 24px 28px; }
.about-pillars-duo .pillar h3 {
  font-size: 26px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--ink);
}
.about-pillars-duo .pillar p {
  font-size: 14.5px;
  line-height: 1.72;
  color: #2a2a2a;
  margin: 0 0 12px;
}
.about-pillars-duo .pillar p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .about-pillars-duo { grid-template-columns: 1fr; }
}
.pillar {
  background: transparent;
  border: 2px solid var(--ink);
  padding: 22px 20px;
  position: relative;
}
.pillar h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 22px; margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pillar-num {
  font-family: 'Special Elite', monospace;
  font-style: normal;
  color: var(--blood);
  font-size: 14px;
  letter-spacing: 0.15em;
  margin-right: 10px;
}
.pillar p { font-size: 14px; line-height: 1.65; color: #333; margin: 0; }

/* ═══════════════ RESOURCES ═══════════════ */
.res-cat { margin-bottom: 32px; }
.res-cat h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 26px;
  color: var(--paper);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.res-num {
  font-family: 'Special Elite', monospace;
  font-style: normal;
  color: var(--blood);
  font-size: 14px;
  letter-spacing: 0.15em;
  margin-right: 10px;
}
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.res-card {
  background: rgba(239, 236, 228, 0.06);
  border: 1px dashed #6a6a6a;
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}
.res-card:hover { border-color: var(--blood-bright); background: rgba(116,7,13,0.14); }
.res-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 19px; margin: 0 0 4px;
  color: var(--paper);
}
.res-card p { font-size: 14px; line-height: 1.6; color: #d0cbbc; margin: 0; }
.res-link {
  font-family: 'Special Elite', monospace;
  font-size: 11.5px; letter-spacing: 0.2em;
  color: var(--blood-bright); text-transform: uppercase;
  text-decoration: none;
}
.res-coming {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #9a9a9a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ═══════════════ SPEAKERS — WHAT YOU'LL LEARN intro ═══════════════ */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid #3a3a3a;
  border-bottom: 1px solid #3a3a3a;
  margin: 20px 0 40px;
}
.learn-item {
  padding: 22px 20px 22px 0;
  border-right: 1px dashed #3a3a3a;
  position: relative;
}
.learn-item:last-child { border-right: 0; }
.learn-item .learn-n {
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  color: var(--blood-bright);
  letter-spacing: 0.25em;
  display: block;
  margin-bottom: 10px;
}
.learn-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 22px;
  color: var(--paper);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.learn-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #c8c2b4;
  margin: 0;
}
@media (max-width: 720px) {
  .learn-item { padding: 18px 0; border-right: 0; border-bottom: 1px dashed #3a3a3a; }
  .learn-item:last-child { border-bottom: 0; }
}

/* ═══════════════ COMMUNITY (cream sheet · V1 FORM-SUBSCRIBE排法) ═══════════════ */
.subscribe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}
.subscribe-l .big-italic {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 18px;
}
.subscribe-l .big-italic span { color: var(--blood); display: block; }
.subscribe-l p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 14px;
  max-width: 380px;
}
.subscribe-l .hand-note {
  font-family: 'Caveat', cursive;
  color: var(--blood);
  font-size: 22px;
  transform: rotate(-2deg);
  display: inline-block;
  margin-top: 8px;
}
.subscribe-r {
  border: 2px dashed var(--ink);
  background: var(--cream-bright);
  padding: 22px 24px;
  position: relative;
}
.subscribe-r::before {
  content: 'FORM — SUBSCRIBE';
  position: absolute;
  top: -11px; left: 16px;
  background: var(--paper);
  padding: 0 10px;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--blood);
}
.sub-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed #8a8a8a;
}
.sub-row:last-child { border-bottom: 0; }
.sub-row .sub-label {
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-transform: uppercase;
}
.sub-row .sub-val {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  border-bottom: 1px dashed var(--ink);
}
.sub-row .sub-val a { text-decoration: none; color: var(--ink); }
.sub-row .sub-val a:hover { color: var(--blood); }
.sub-row .sub-go {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--blood);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.sub-email-form {
  display: flex;
  grid-column: 2 / -1;
  gap: 10px;
  align-items: baseline;
}
.sub-email-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--ink);
  padding: 4px 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  outline: none;
}
.sub-email-input::placeholder { color: rgba(10,10,10,0.35); font-style: italic; }
.sub-email-input:focus { border-bottom-color: var(--blood); }
.sub-go-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--blood);
  text-transform: uppercase;
  white-space: nowrap;
}
.sub-go-btn:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .subscribe-grid { grid-template-columns: 1fr; gap: 32px; }
  .sub-row { grid-template-columns: 90px 1fr; }
  .sub-row .sub-go { grid-column: 1/-1; }
  .sub-email-form { grid-column: 1/-1; flex-wrap: wrap; }
}

/* ═══════════════ FAQ ═══════════════ */
.faq-list { border-top: 1px solid currentColor; }
.faq-item { border-bottom: 1px solid currentColor; }
.faq-q {
  padding: 20px 6px;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  color: inherit;
}
.faq-q::after {
  content: '+';
  font-family: 'Special Elite', monospace;
  color: var(--blood);
  font-size: 24px;
  font-style: normal;
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 6px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: inherit;
  opacity: 0.85;
  max-width: 780px;
}
.faq-a a { color: var(--blood); text-decoration: underline; }
.faq-item.open .faq-a { display: block; }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  margin-top: 48px;
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--blood);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 40px 28px 24px;
}
.footer-col-label {
  font-family: 'Special Elite', monospace;
  font-size: 10.5px; letter-spacing: 0.22em;
  color: var(--blood); text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-col-val {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 22px; color: var(--paper);
  margin-bottom: 6px;
}
.footer-col-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: #888; letter-spacing: 0.05em;
}
.footer-bottom {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 14px 28px;
  border-top: 1px dashed #333;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #888;
}
.footer-bottom a { color: var(--blood); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 860px) {
  .page { padding: 12px 14px 60px; }
  .mast-strip { font-size: 9.5px; padding: 6px 10px; gap: 8px; }
  .wordmark-wrap { padding: 18px 16px 10px; }
  .hero { padding: 28px 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-r { order: -1; max-width: 360px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .sheet { padding: 28px 20px; }
  .raw-nav { font-size: 10.5px; }
  .raw-nav a { padding: 10px 8px; gap: 6px; }
  .raw-nav .nav-zh { display: none; }
}

@media (max-width: 540px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: 0; border-bottom: 1px solid var(--ink); }
  .hero-stat:last-child { border-bottom: 0; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .evt-meta { font-size: 10.5px; gap: 8px 14px; }
  .footer-bottom { font-size: 9.5px; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON (sun/moon stroke icons)
   ═══════════════════════════════════════════════════════════════ */
.theme-toggle {
  background: var(--blood);
  color: var(--paper);
  border: 0;
  padding: 0;
  width: 30px;
  height: 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
body.light .theme-toggle .icon-sun { display: block; }
body.light .theme-toggle .icon-moon { display: none; }
.mast-strip .theme-toggle,
.mag-num-nav .theme-toggle { margin-left: 8px; }

/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME · Magazine — Cover palette
   paper #efece4 · paper-2 #e6e2d6 · ink #0a0a0a · blood #74070D
   Structural dark panels (masthead/footer/mag-nav) flip to paper.
   Cream highlight cards flip to paper-2 (subtle darker paper).
   ═══════════════════════════════════════════════════════════════ */
body.light {
  background: #efece4;
  color: #0a0a0a;
}
body.light::before { mix-blend-mode: multiply; opacity: 0.55; }
body.light::after { background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(10,10,10,0.025) 2px, rgba(10,10,10,0.025) 4px); }

/* Masthead strip (top ribbon) → paper with ink */
body.light .mast-strip { background: #efece4; color: #0a0a0a; border-bottom: 1px solid #0a0a0a; }
body.light .mast-strip-c { color: #74070D; }

/* Wordmark block → paper with ink */
body.light .wordmark-wrap { background: #efece4; border-left-color: #0a0a0a; border-right-color: #0a0a0a; }
body.light .wordmark-link { color: #0a0a0a; }
body.light .wordmark-main { color: #0a0a0a; text-shadow: 2px 2px 0 #74070D; }
body.light .wordmark-sub { color: #2a2a2a; }

/* Raw nav strip → paper with ink */
body.light .raw-nav { background: #efece4; color: #0a0a0a; border-top-color: #0a0a0a; border-bottom-color: #0a0a0a; }
body.light .raw-nav a { color: #0a0a0a; border-right-color: rgba(10,10,10,0.2); }
body.light .raw-nav a:hover { background: #74070D; color: #efece4; }
body.light .raw-nav a:hover .idx { color: #efece4; }
body.light .raw-nav .nav-zh { color: #525252; }

/* Magazine nav (alt nav used on some pages) → paper with ink */
body.light .mag-nav { background: #efece4; color: #0a0a0a; }
body.light .mag-strip { background: #efece4; color: #0a0a0a; border-bottom: 1px solid #0a0a0a; }
body.light .mag-num-nav { background: #efece4; }
body.light .mag-num-nav a { color: #0a0a0a; border-right-color: rgba(10,10,10,0.2); }
body.light .mag-num-nav a:hover { background: #74070D; color: #efece4; }

/* Magazine masthead (top header) → paper with ink (was paper text on dark) */
body.light .mag-mast { border-bottom-color: #0a0a0a; }
body.light .mag-mast-l,
body.light .mag-mast-r { color: #0a0a0a; }
body.light .mag-mast-sub { color: #2a2a2a; }
body.light .mag-wordmark { color: #0a0a0a; }
body.light .mag-wordmark-main { color: #0a0a0a; }
/* Logo SVG was light-on-dark; swap to dark variant for light theme */
body.light .mag-wordmark img { content: url('../assets/brand-kit/svg/Openclaw-Dark-Vertical.svg'); }

/* Sheet sections with inline dark-bg colors (Speakers / Resources)
   override only when inline style targets dark-mode color so dark mode stays untouched */
body.light .sheet-title[style*="--paper"] { color: #0a0a0a !important; }
body.light .sheet-title[style*="--paper"] span { color: #74070D !important; }
body.light .sheet-lede[style*="c8c2b4"] { color: #2a2a2a !important; }

/* Section labels on ink → keep */
body.light .sec { background: #0a0a0a; color: #efece4; }
body.light .sec-red { background: #74070D; }
body.light .sec-forest { background: #1e3a2b; color: #efece4; }

/* Hero (was cream card on dark body) → paper-2 highlight on paper body */
body.light .hero { background: #e6e2d6; color: #0a0a0a; border-color: #0a0a0a; }
body.light .hero-title-zh { color: #2a2a2a; }

/* Poster / photo cards (was cream-bright) → stay paper-ish OR flip to ink */
body.light .poster { background: #0a0a0a; }
body.light .poster-big { color: #efece4; }

/* Marquee (raw-paper variant) → invert to ink strip on paper page */
body.light .mq-raw-paper { background: #0a0a0a; color: #efece4; border-color: #0a0a0a; }

/* Sheet / generic paper container → paper-2 */
body.light .sheet { background: #e6e2d6; color: #0a0a0a; border-color: #0a0a0a; }

/* Events */
body.light .evt-card { background: #e6e2d6; color: #0a0a0a; border-color: #0a0a0a; }
body.light .evt-card.evt-upcoming { background: #efece4; }
body.light .evt-card.evt-past { background: #e6e2d6; }

/* Blog list card */
body.light .blog-card { background: #e6e2d6; color: #0a0a0a; border-color: #0a0a0a; }
body.light .blog-cover { background: #0a0a0a; }

/* About story framed */
body.light .about-story-framed { background: #e6e2d6; border-color: #0a0a0a; }

/* Subscribe form */
body.light .subscribe-r { background: #e6e2d6; border-color: #0a0a0a; }
body.light .subscribe-r::before { background: #e6e2d6; color: #74070D; }

/* Footer → flip to paper with ink, keep blood border */
body.light .footer { background: #efece4; color: #0a0a0a; border-color: #74070D; }

/* FAQ link blood stays */
body.light .faq-a a { color: #74070D; }

/* Lang toggle + theme toggle button appearance stays red */
body.light .lang-toggle,
body.light .theme-toggle { background: #74070D; color: #efece4; }

/* ───── LIGHT — paper grain overlay on body ───── */
body.light {
  background-color: #efece4;
  background-image:
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: 240px 240px;
}

/* ───── LIGHT — hero text colours ───── */
body.light .hero-title { color: #0a0a0a; }
body.light .hero-stat-n { color: #0a0a0a; }
body.light .hero-stat-l { color: #74070D; }

/* ───── LIGHT — sec-naked (schedule, speakers, partners, about, faq) ───── */
body.light .sec-naked { color: #0a0a0a; }
body.light .sec-naked .sheet-head { border-bottom-color: rgba(10,10,10,0.35); }
body.light .sec-naked .sheet-head .type { color: #74070D !important; }
body.light .sec-naked .sheet-title { color: #0a0a0a; }
body.light .sec-naked .sheet-title span { color: #74070D; }
body.light .sec-naked .sheet-lede { color: #2a2a2a; }
body.light .sec-naked .sheet-title-zh { color: #525252; }
body.light .sec-naked .about-pull { color: #0a0a0a; border-left-color: #74070D; }
body.light .sec-naked .about-story { color: #2a2a2a; }
body.light .sec-naked .about-story strong { color: #74070D; }
body.light .sec-naked .about-story-framed { color: #2a2a2a; background: #e6e2d6; border-color: #0a0a0a; }
body.light .sec-naked .about-stats { border-top-color: rgba(10,10,10,0.3); border-bottom-color: rgba(10,10,10,0.3); }
body.light .sec-naked .about-stat { border-right-color: rgba(10,10,10,0.2); }
body.light .sec-naked .stat-value { color: #0a0a0a; }
body.light .sec-naked .stat-label { color: #525252; }
body.light .sec-naked .pillar { background: rgba(10,10,10,0.03); border-color: rgba(10,10,10,0.35); }
body.light .sec-naked .pillar h3 { color: #0a0a0a; }
body.light .sec-naked .pillar p { color: #2a2a2a; }
body.light .sec-naked .pillar-num { color: #74070D; }

/* ───── LIGHT — schedule ───── */
body.light .sched-list { border-top-color: rgba(10,10,10,0.25); }
body.light .sched-item { border-bottom-color: rgba(10,10,10,0.25); }
body.light .sched-n { color: #74070D; }
body.light .sched-n::after { color: #525252; border-top-color: rgba(10,10,10,0.3); }
body.light .sched-title { color: #0a0a0a; }
body.light .sched-title-zh { color: #525252; }
body.light .sched-desc { color: #2a2a2a; }

/* ───── LIGHT — speakers ───── */
body.light .sp-card { background: #e6e2d6; border-color: rgba(10,10,10,0.25); }
body.light .sp-card:hover { border-color: #74070D; }
body.light .sp-frame { color: #74070D; }
body.light .sp-initials { color: #0a0a0a; }
body.light .sp-photo { background: #e6e2d6; border-color: rgba(10,10,10,0.25); }
body.light .sp-cap { border-top-color: rgba(10,10,10,0.3); }
body.light .sp-name { color: #0a0a0a; }
body.light .sp-name-zh { color: #525252; }
body.light .sp-role { color: #2a2a2a; }
body.light .sp-org { color: #74070D; }

/* ───── LIGHT — blog grid on landing (inside sec-naked) ───── */
body.light .sec-naked .blog-card { background: #e6e2d6; border-color: #0a0a0a; color: #0a0a0a; }
body.light .sec-naked .blog-title { color: #0a0a0a; }
body.light .sec-naked .blog-role { color: #525252; }
body.light .sec-naked .blog-tag { color: #74070D; }
body.light .sec-naked .blog-link { color: #74070D; border-top-color: #0a0a0a; }

/* ───── LIGHT — partners ───── */
body.light .partner-pillar { border-color: rgba(10,10,10,0.35); }
body.light .partner-pillar h3 { color: #0a0a0a; }
body.light .partner-pillar .pillar-sub { color: #525252; }
body.light .partner-card { color: #2a2a2a; }
body.light .partner-card:hover .partner-logo { filter: grayscale(1) brightness(0.2) contrast(1.1); opacity: 1; }
body.light .partner-logo { filter: grayscale(1) brightness(0.3) contrast(1.05); opacity: 0.85; }
body.light .partner-name { color: #525252; }

/* ───── LIGHT — what you'll learn ───── */
body.light .learn-grid { border-top-color: rgba(10,10,10,0.3); border-bottom-color: rgba(10,10,10,0.3); }
body.light .learn-item { border-right-color: rgba(10,10,10,0.25); }
body.light .learn-item .learn-n { color: #74070D; }
body.light .learn-item h4 { color: #0a0a0a; }
body.light .learn-item p { color: #2a2a2a; }

/* ───── LIGHT — resources ───── */
body.light .res-cat h3 { color: #0a0a0a; }
body.light .res-num { color: #74070D; }
body.light .res-card { background: #e6e2d6; border-color: rgba(10,10,10,0.35); color: #0a0a0a; }
body.light .res-card:hover { border-color: #74070D; background: rgba(116,7,13,0.06); }
body.light .res-card h4 { color: #0a0a0a; }
body.light .res-card p { color: #2a2a2a; }
body.light .res-link { color: #74070D; }
body.light .res-coming { color: #525252; }

/* ───── LIGHT — footer ───── */
body.light .footer-col-label { color: #74070D; }
body.light .footer-col-val { color: #0a0a0a; }
body.light .footer-col-sub { color: #525252; }
body.light .footer-bottom { color: #525252; border-top-color: rgba(10,10,10,0.2); }
body.light .footer-bottom a { color: #74070D; }

/* ───── LIGHT — FAQ ───── */
body.light .sec-naked .faq-list { border-top-color: rgba(10,10,10,0.3); }
body.light .sec-naked .faq-item { border-bottom-color: rgba(10,10,10,0.3); }
body.light .sec-naked .faq-q { color: #0a0a0a; }
body.light .sec-naked .faq-a { color: #2a2a2a; opacity: 1; }
body.light .sec-naked .faq-q::after { color: #74070D; }

/* ───── LIGHT — btn-secondary on dark-context (now paper context) ───── */
body.light .btn-secondary { color: #0a0a0a; border-color: rgba(10,10,10,0.45); }
body.light .btn-secondary:hover { color: #74070D; border-color: #74070D; background: rgba(116,7,13,0.06); }

/* ═══════════════════════════════════════════════════════════════
   DARK THEME · for blog article pages (default light → dark)
   Targets inline-defined classes in blog/*.html masthead + article
   ═══════════════════════════════════════════════════════════════ */
body.dark {
  background: #0f0f0f !important;
  color: #e8e4df !important;
}
body.dark a { color: inherit; }

/* Dark — masthead */
body.dark .mast-wrap { background: #0f0f0f !important; color: #e8e4df !important; }
body.dark .mast-ribbon { color: #b8b3a8 !important; }
body.dark .mast-ribbon-c { color: #c85a60 !important; }
body.dark .mast-rule { background: #e8e4df !important; opacity: 0.35 !important; }
body.dark .mast-rule-bold { background: #e8e4df !important; opacity: 0.75 !important; }
body.dark .mast-dateline { color: #e8e4df !important; }
body.dark .mast-dateline-r { color: #c85a60 !important; }
body.dark .mast-word { color: #e8e4df !important; }
body.dark .mast-word-101 { color: #c85a60 !important; }
body.dark .mast-section { background: #1e3a2b !important; color: #efece4 !important; }
body.dark .mast-nav { border-top-color: rgba(232,228,223,0.3) !important; }
body.dark .mast-nav a { color: #e8e4df !important; border-right-color: rgba(232,228,223,0.18) !important; }
body.dark .mast-nav-idx { color: #c85a60 !important; }
body.dark .mast-nav-zh { color: #9a948a !important; }

/* Dark — back / lang button (fixed top corners) */
body.dark .mag-back { color: #e8e4df !important; border-color: rgba(232,228,223,0.3) !important; }
body.dark .mag-back:hover { color: #c85a60 !important; border-color: #c85a60 !important; }
body.dark .mag-langbtn { background: #c85a60 !important; color: #0f0f0f !important; }

/* Dark — editorial article header */
body.dark .art-head,
body.dark .art-intro,
body.dark .art-body,
body.dark .art-foot,
body.dark .art-section,
body.dark .art-quote-wrap { background: transparent !important; }
body.dark .art-chapter-r { color: #c85a60 !important; }
body.dark .art-chapter-t { color: #e8e4df !important; }
body.dark .art-chapter-zh { color: #9a948a !important; }
body.dark .art-title { color: #e8e4df !important; }
body.dark .art-title em { color: #c85a60 !important; }
body.dark .art-title-zh { color: #9a948a !important; }
body.dark .art-title-zh em { color: #c85a60 !important; }
body.dark .art-byline { color: #b8b3a8 !important; }
body.dark .art-byline-name { color: #e8e4df !important; }
body.dark .art-byline-dot { color: #c85a60 !important; }
body.dark .art-meta { color: #9a948a !important; }

/* Dark — article body typography */
body.dark .art-body,
body.dark .art-body p,
body.dark .art-body li,
body.dark .art-body td,
body.dark .art-body th,
body.dark .prose,
body.dark .prose p,
body.dark .prose li,
body.dark article,
body.dark article p,
body.dark article li { color: #e8e4df !important; }
body.dark .art-body h2,
body.dark .art-body h3,
body.dark .art-body h4,
body.dark article h2,
body.dark article h3,
body.dark article h4 { color: #f5f2ec !important; }
body.dark .art-body em,
body.dark article em { color: #e85a5a !important; }
body.dark .art-body strong,
body.dark article strong { color: #f5f2ec !important; }
body.dark .art-body blockquote,
body.dark article blockquote { color: #d8d3cb !important; border-left-color: #74070D !important; }
body.dark .art-body hr,
body.dark article hr { border-color: rgba(232,228,223,0.25) !important; }
body.dark .art-body a,
body.dark article a { color: #c85a60 !important; }
body.dark .art-pullquote,
body.dark .pullquote { color: #e85a5a !important; border-color: rgba(232,228,223,0.25) !important; }
body.dark .keypoint,
body.dark .art-keypoint { background: rgba(232,228,223,0.05) !important; border-color: rgba(232,228,223,0.2) !important; color: #e8e4df !important; }
body.dark .keypoint-label,
body.dark .art-keypoint-label { color: #e85a5a !important; }

/* Dark — figures / tables / code */
body.dark .art-body figure,
body.dark article figure { background: rgba(232,228,223,0.04) !important; }
body.dark .art-body figcaption,
body.dark article figcaption { color: #9a948a !important; }
body.dark .art-body table,
body.dark article table { border-color: rgba(232,228,223,0.25) !important; }
body.dark .art-body th,
body.dark article th { background: rgba(232,228,223,0.08) !important; color: #f5f2ec !important; border-color: rgba(232,228,223,0.2) !important; }
body.dark .art-body td,
body.dark article td { border-color: rgba(232,228,223,0.15) !important; }
body.dark .art-body code,
body.dark article code { background: rgba(232,228,223,0.08) !important; color: #f5f2ec !important; }
body.dark .art-body pre,
body.dark article pre { background: #1a1a1a !important; color: #e8e4df !important; border-color: rgba(232,228,223,0.2) !important; }

/* Dark — article footer / previous / return */
body.dark .art-foot,
body.dark .art-prev,
body.dark .art-nav { color: #9a948a !important; border-top-color: rgba(232,228,223,0.2) !important; }
body.dark .art-prev a,
body.dark .art-nav a { color: #e8e4df !important; }
body.dark .art-prev a:hover,
body.dark .art-nav a:hover { color: #c85a60 !important; }

/* Dark — theme toggle sits on light page, keep red */
body.dark .theme-toggle,
body.dark .mag-theme-btn { background: #c85a60 !important; color: #0f0f0f !important; }

