/* Agency Genesis — philosophical/cinematic editorial */
:root {
  /* light (default) — bone paper */
  --bg: #f1ece1;
  --bg-deep: #e6dfce;
  --bg-elev: #f8f3e6;
  --surface: #fcf8ec;
  --surface-2: #f4eede;
  --paper: #fcf8ec;
  --ink: #161311;
  --ink-soft: #463e36;
  --ink-mute: #847a6e;
  --hairline: #16131110;
  --hairline-strong: #16131124;
  --rule: #1613113c;
  --terracotta: #b8543a;
  --terracotta-deep: #8c3e2a;
  --moss: #5b7b56;
  --tobacco: #a87836;
  --indigo: #2f3d6b;
  --plum: #6c4d6b;
  --shadow: 0 1px 0 #fff inset, 0 2px 8px #16131108;
  --radius: 0;
  --max: 1280px;
  --font-display: "Bodoni Moda", "Source Han Serif SC", Georgia, serif;
  --font-body: "Lora", "PingFang SC", "Hiragino Sans GB", system-ui, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

html[data-theme="dark"] {
  --bg: #100d0a;
  --bg-deep: #08070a;
  --bg-elev: #1a1612;
  --surface: #221d18;
  --surface-2: #2c2620;
  --paper: #f1ece1;
  --ink: #f1ece1;
  --ink-soft: #c5beb1;
  --ink-mute: #807a72;
  --hairline: #ffffff0e;
  --hairline-strong: #ffffff1e;
  --rule: #ffffff34;
  --terracotta: #d97a5e;
  --terracotta-deep: #b85a40;
  --moss: #92b08a;
  --tobacco: #c89858;
  --indigo: #8090c8;
  --plum: #b08aa8;
  --shadow: 0 1px 0 #ffffff05 inset, 0 8px 28px #0007;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga", "dlig";
  transition: background .25s, color .25s;
}

a { color: var(--terracotta); text-decoration: none; border-bottom: 1px solid var(--rule); transition: color .15s, border-color .15s; }
a:hover { color: var(--moss); border-bottom-color: var(--moss); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 36px; }

/* ----- Topbar ----- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--hairline-strong);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 36px; max-width: var(--max); margin: 0 auto;
}
.brand {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 28px; letter-spacing: -.01em; line-height: 1;
  color: var(--ink); border: 0;
}
.brand em { font-style: italic; color: var(--terracotta); }
.brand .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: .04em;
  border-left: 1px solid var(--hairline-strong); padding-left: 12px; margin-left: 4px;
  font-style: normal; font-weight: 400;
}
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a {
  font-size: 12px; color: var(--ink-soft); border: 0;
  font-weight: 500; font-family: var(--font-mono);
  letter-spacing: .02em;
}
.nav a:hover { color: var(--terracotta); }

.toolbar { display: flex; gap: 10px; align-items: center; }
.lang-toggle, .theme-toggle {
  display: inline-flex; border: 1px solid var(--hairline-strong);
  overflow: hidden; background: var(--surface);
}
.lang-toggle button, .theme-toggle button {
  background: transparent; border: 0; color: var(--ink-soft);
  padding: 6px 12px; cursor: pointer; font: inherit;
  letter-spacing: .04em;
  font-family: var(--font-mono); font-size: 11px;
}
.lang-toggle button.active, .theme-toggle button.active {
  background: var(--ink); color: var(--bg);
}

/* ----- Hero ----- */
.hero {
  padding: 90px 0 80px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hero-marker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--terracotta); text-transform: uppercase; margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.hero-marker::before { content: ""; width: 24px; height: 1px; background: var(--terracotta); }
.hero-marker::after  { content: ""; flex: 1; height: 1px; background: var(--hairline-strong); max-width: 280px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(50px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -.025em;
  margin: 0 0 36px;
}
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero h1 .alt { font-style: italic; color: var(--moss); }

.hero-thesis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  margin: 56px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 36px 0;
}
.hero-thesis .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--ink-mute); text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-thesis blockquote {
  margin: 0;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.35; color: var(--ink);
  letter-spacing: -.005em;
}
.hero-thesis blockquote em { font-style: normal; color: var(--terracotta); }

.hero-lede {
  font-size: 19px; line-height: 1.6; color: var(--ink-soft);
  max-width: 720px; margin: 0 0 36px;
  font-family: var(--font-body);
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .15s;
  font-family: var(--font-mono); letter-spacing: .06em;
  text-transform: uppercase; border: 1px solid var(--ink);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--terracotta); color: var(--bg); border-color: var(--terracotta); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
a.btn { border-style: solid; }

/* Hero radial conditioning diagram */
.radial-wrap {
  border: 1px solid var(--rule); padding: 32px;
  background: var(--surface);
}
.radial-head {
  display: flex; justify-content: space-between; align-items: end;
  border-bottom: 1px solid var(--hairline-strong); padding-bottom: 14px; margin-bottom: 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase;
}
.radial-head .id { color: var(--terracotta); }
.radial-head .ttl { color: var(--ink); font-weight: 500; font-family: var(--font-display); font-style: italic; font-size: 18px; letter-spacing: -.005em; text-transform: none; }
.radial-head .rev { color: var(--ink-mute); }
.radial-svg { width: 100%; aspect-ratio: 2.0; max-height: 480px; }

/* ----- Section ----- */
.section { padding: 130px 0; border-bottom: 1px solid var(--rule); position: relative; }
.section.alt { background: var(--bg-elev); }

.section-head {
  display: grid; grid-template-columns: 280px 1fr; gap: 60px;
  margin-bottom: 64px; align-items: start;
}
.section-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute);
  letter-spacing: .14em; font-weight: 500;
  border-top: 1px solid var(--ink); padding-top: 16px;
}
.section-num .big {
  font-family: var(--font-display); font-style: italic; font-size: 56px;
  font-weight: 400; color: var(--terracotta); line-height: 1;
  display: block; margin-top: 12px; letter-spacing: -.02em;
}
.section-num .desc {
  display: block; color: var(--ink-mute); margin-top: 14px;
  font-weight: 400; letter-spacing: .04em; line-height: 1.5;
  font-family: var(--font-body); font-size: 13px;
}
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px); line-height: 0.98;
  letter-spacing: -.025em; margin: 0 0 20px;
}
.section-title em { font-style: italic; color: var(--terracotta); }
.section-title .alt { font-style: italic; color: var(--moss); }
.section-lede {
  font-size: 18px; color: var(--ink-soft); max-width: 700px; line-height: 1.6;
  font-family: var(--font-body);
}
.section-lede em { color: var(--ink); font-style: italic; }

/* ----- Module 1 — Conditioning Map ----- */
.cmap-shell { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }

.cmap-card { border: 1px solid var(--rule); padding: 36px; background: var(--surface); box-shadow: var(--shadow); }
.cmap-card h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 28px; margin: 0 0 4px; letter-spacing: -.01em; }
.cmap-card .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; margin-bottom: 22px; text-transform: uppercase; }
.cmap-svg { width: 100%; aspect-ratio: 1.05; }

.forces-list { display: flex; flex-direction: column; gap: 14px; }
.force-item {
  border-left: 2px solid var(--rule); padding: 8px 0 8px 22px;
  transition: border-color .15s, padding-left .15s;
}
.force-item:hover { border-left-color: var(--terracotta); padding-left: 26px; }
.force-item .id {
  font-family: var(--font-mono); font-size: 11px; color: var(--terracotta);
  letter-spacing: .08em; margin-bottom: 6px; text-transform: uppercase; font-weight: 500;
}
.force-item h4 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 24px; margin: 0 0 6px; letter-spacing: -.005em; line-height: 1.15; }
.force-item p { color: var(--ink-soft); font-size: 14.5px; margin: 0; line-height: 1.6; font-family: var(--font-body); }
.force-item p em { color: var(--ink); font-style: italic; }

/* ----- Module 2 — Awareness ----- */
.aware-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.observers-card { border: 1px solid var(--rule); padding: 36px; background: var(--surface); }
.observers-card h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 28px; margin: 0 0 4px; letter-spacing: -.01em; }
.observers-card .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; margin-bottom: 22px; text-transform: uppercase; }
.observer {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 16px; padding: 18px 0;
  border-top: 1px solid var(--hairline-strong);
}
.observer:first-of-type { border-top: 0; padding-top: 6px; }
.observer .pos {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 30px; color: var(--terracotta); padding-top: 4px; line-height: 1;
}
.observer h5 { font-family: var(--font-display); font-style: normal; font-weight: 500; font-size: 19px; margin: 0 0 6px; letter-spacing: -.005em; }
.observer p { color: var(--ink-soft); font-size: 14.5px; margin: 0; line-height: 1.6; font-family: var(--font-body); }

.journal-card { border: 1px solid var(--rule); padding: 36px; background: var(--surface); display: flex; flex-direction: column; }
.journal-card h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 28px; margin: 0 0 4px; letter-spacing: -.01em; }
.journal-card .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; margin-bottom: 22px; text-transform: uppercase; }

.prompt-pane {
  background: var(--bg-elev); border: 1px solid var(--hairline-strong);
  padding: 32px; min-height: 200px; flex: 1;
  display: flex; flex-direction: column; gap: 14px; position: relative;
}
.prompt-num {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute);
  letter-spacing: .08em;
}
.prompt-text {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 24px; line-height: 1.35; color: var(--ink); flex: 1;
  letter-spacing: -.005em;
}
.prompt-text em { font-style: normal; color: var(--terracotta); }
.prompt-meta { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 10.5px; }
.prompt-meta .pip {
  padding: 3px 10px; background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--hairline-strong); letter-spacing: .04em; text-transform: uppercase;
}
.shuffle-row { display: flex; gap: 10px; margin-top: 18px; }
.shuffle-btn {
  background: transparent; border: 1px solid var(--ink); padding: 11px 18px;
  font: inherit; font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--ink); cursor: pointer; letter-spacing: .06em; text-transform: uppercase;
  transition: all .15s;
}
.shuffle-btn:hover { background: var(--ink); color: var(--bg); }
.shuffle-btn.solid { background: var(--ink); color: var(--bg); }
.shuffle-btn.solid:hover { background: var(--terracotta); border-color: var(--terracotta); }

/* ----- Module 3 — Attention ----- */
.attn-shell { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.dop-card { border: 1px solid var(--rule); padding: 36px; background: var(--surface); }
.dop-card h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 28px; margin: 0 0 4px; letter-spacing: -.01em; }
.dop-card .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; margin-bottom: 22px; text-transform: uppercase; }
.dop-svg { width: 100%; aspect-ratio: 1.5; }

.compulsion-card { border: 1px solid var(--rule); padding: 36px; background: var(--surface); }
.compulsion-card h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; }
.compulsion-card .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; margin-bottom: 22px; text-transform: uppercase; }
.gate {
  display: grid; grid-template-columns: 50px 1fr; gap: 16px;
  padding: 14px 0; border-top: 1px dashed var(--hairline-strong);
}
.gate:first-of-type { border-top: 0; padding-top: 4px; }
.gate .num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--terracotta); padding-top: 5px; letter-spacing: .04em;
}
.gate h5 { font-family: var(--font-display); font-style: normal; font-weight: 500; font-size: 18px; margin: 0 0 4px; letter-spacing: -.005em; }
.gate p { color: var(--ink-soft); font-size: 14px; margin: 0; line-height: 1.6; font-family: var(--font-body); }

/* ----- Module 4 — Identity ----- */
.id-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.id-narratives { border: 1px solid var(--rule); padding: 36px; background: var(--surface); }
.id-narratives h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 28px; margin: 0 0 4px; letter-spacing: -.01em; }
.id-narratives .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; margin-bottom: 22px; text-transform: uppercase; }
.narrative {
  padding: 18px 0; border-top: 1px solid var(--hairline-strong);
}
.narrative:first-of-type { border-top: 0; padding-top: 4px; }
.narrative .label {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--terracotta);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; font-weight: 500;
}
.narrative .from {
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 19px;
  color: var(--ink-mute); text-decoration: line-through; text-decoration-color: var(--terracotta);
  text-decoration-thickness: 1.5px; margin-bottom: 6px; line-height: 1.3; letter-spacing: -.005em;
}
.narrative .to {
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 22px;
  color: var(--ink); margin-bottom: 8px; line-height: 1.3; letter-spacing: -.01em;
}
.narrative p { color: var(--ink-soft); font-size: 13.5px; margin: 0; line-height: 1.55; font-family: var(--font-body); }

.id-process { border: 1px solid var(--rule); padding: 36px; background: var(--surface); }
.id-process h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 28px; margin: 0 0 4px; letter-spacing: -.01em; }
.id-process .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; margin-bottom: 22px; text-transform: uppercase; }
.id-svg { width: 100%; aspect-ratio: 1.1; }

/* ----- Module 5 — Emotional Maturity ----- */
.matur-shell { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.uncertainty-card { border: 1px solid var(--rule); padding: 36px; background: var(--surface); }
.uncertainty-card h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 28px; margin: 0 0 4px; letter-spacing: -.01em; }
.uncertainty-card .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; margin-bottom: 22px; text-transform: uppercase; }
.unc-svg { width: 100%; aspect-ratio: 1.05; }

.maturity-side h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 32px; margin: 0 0 6px; letter-spacing: -.015em; }
.maturity-side .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; margin-bottom: 22px; text-transform: uppercase; }
.maturity-side > p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; margin: 0 0 22px; font-family: var(--font-body); }
.maturity-side > p em { color: var(--ink); font-style: italic; }

.stage {
  display: grid; grid-template-columns: 80px 1fr; gap: 18px;
  padding: 16px 0; border-top: 1px solid var(--hairline-strong);
}
.stage:first-of-type { border-top: 0; padding-top: 4px; }
.stage .marker {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--terracotta); padding-top: 5px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
}
.stage h5 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 22px; margin: 0 0 4px; letter-spacing: -.005em; }
.stage p { color: var(--ink-soft); font-size: 14.5px; margin: 0; line-height: 1.6; font-family: var(--font-body); }

/* ----- Module 6 — Habit / Environment ----- */
.env-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--rule);
}
.env-cell {
  background: var(--surface); padding: 30px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.env-cell:nth-child(2n) { border-right: 0; }
.env-cell:nth-last-child(-n+2) { border-bottom: 0; }
.env-cell .domain {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  color: var(--ink-mute); text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.env-cell .domain::before { content: ""; width: 16px; height: 1px; background: var(--terracotta); }
.env-cell h4 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 26px; margin: 0 0 12px; letter-spacing: -.01em; line-height: 1.1; }
.env-cell h4 em { font-style: normal; color: var(--terracotta); }
.env-cell p { font-size: 15px; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.6; font-family: var(--font-body); }
.env-cell .pair {
  display: grid; grid-template-columns: 1fr 24px 1fr; gap: 12px;
  margin-top: 14px; align-items: start;
}
.env-cell .pair .from {
  text-decoration: line-through; text-decoration-color: var(--terracotta);
  text-decoration-thickness: 1.5px; color: var(--ink-mute);
  font-family: var(--font-display); font-style: italic; font-size: 16px; line-height: 1.3;
}
.env-cell .pair .to {
  color: var(--ink); font-weight: 500;
  font-family: var(--font-display); font-style: italic; font-size: 17px; line-height: 1.3;
}
.env-cell .pair .arrow {
  font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--terracotta); text-align: center; padding-top: 0;
}

/* ----- Module 7 — Cognitive Lab ----- */
.thinking-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--rule);
}
.thinking-cell {
  background: var(--surface); padding: 28px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.thinking-cell:nth-child(3n) { border-right: 0; }
.thinking-cell:nth-last-child(-n+3) { border-bottom: 0; }
.thinking-cell .glyph {
  font-family: var(--font-display); font-style: italic; font-size: 36px;
  color: var(--terracotta); line-height: 1; margin-bottom: 16px;
}
.thinking-cell .ord {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute);
  letter-spacing: .08em; margin-bottom: 8px; text-transform: uppercase;
}
.thinking-cell h4 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 24px; margin: 0 0 6px; letter-spacing: -.005em; line-height: 1.15; }
.thinking-cell .axiom {
  font-family: var(--font-body); font-style: italic; font-size: 14px;
  color: var(--ink); padding: 8px 0 8px 14px; border-left: 2px solid var(--terracotta);
  margin: 14px 0 12px;
}
.thinking-cell p { color: var(--ink-soft); font-size: 13.5px; margin: 0; line-height: 1.6; font-family: var(--font-body); }
.thinking-cell p b { color: var(--ink); font-weight: 600; }

/* ----- Module 8 — Direction ----- */
.dir-shell { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.compass-card { border: 1px solid var(--rule); padding: 36px; background: var(--surface); }
.compass-card h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 28px; margin: 0 0 4px; letter-spacing: -.01em; }
.compass-card .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; margin-bottom: 22px; text-transform: uppercase; }
.compass-svg { width: 100%; aspect-ratio: 1.05; }

.values-side h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 32px; margin: 0 0 6px; letter-spacing: -.015em; }
.values-side .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; margin-bottom: 22px; text-transform: uppercase; }
.values-side p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin: 0 0 16px; font-family: var(--font-body); }
.values-side p em { color: var(--ink); font-style: italic; }
.value-quote {
  margin-top: 24px; padding: 22px 26px;
  border-left: 3px solid var(--terracotta);
  background: var(--surface);
  font-family: var(--font-display); font-style: italic; font-size: 22px;
  line-height: 1.4; color: var(--ink); letter-spacing: -.005em;
}

/* ----- Module 9 — Guide ----- */
.guide {
  border: 1px solid var(--rule); background: var(--surface);
  display: grid; grid-template-columns: 320px 1fr; min-height: 600px;
  box-shadow: var(--shadow);
}
.guide-side {
  background: var(--bg-elev); border-right: 1px solid var(--rule);
  padding: 28px;
}
.guide-side h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 16px; font-weight: 600;
}
.guide-pill {
  background: transparent; border: 1px solid var(--hairline-strong);
  padding: 11px 14px; font: inherit; font-size: 14px;
  cursor: pointer; width: 100%; text-align: left; margin-bottom: 8px;
  color: var(--ink-soft); transition: all .15s; line-height: 1.4;
  font-family: var(--font-body);
}
.guide-pill:hover { background: var(--surface); color: var(--ink); border-color: var(--terracotta); }
.guide-main { display: flex; flex-direction: column; }
.guide-stream { flex: 1; padding: 32px; overflow-y: auto; max-height: 600px; }
.msg { margin-bottom: 24px; max-width: 90%; }
.msg.user { margin-left: auto; }
.msg .role {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; font-weight: 600;
}
.msg .bubble {
  background: var(--bg-elev); border: 1px solid var(--hairline-strong);
  padding: 16px 20px; font-size: 15.5px; line-height: 1.65; font-family: var(--font-body);
}
.msg.user .bubble { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.msg .bubble p { margin: 0 0 10px; }
.msg .bubble p:last-child { margin-bottom: 0; }
.msg .bubble strong { color: var(--terracotta); font-weight: 600; }
.msg.user .bubble strong { color: var(--tobacco); }
.msg .bubble .question {
  margin: 8px 0 6px; padding: 6px 0 6px 14px;
  border-left: 2px solid var(--terracotta);
  font-family: var(--font-display); font-style: italic;
  font-size: 18px; line-height: 1.4; color: var(--ink-soft);
}
.guide-input {
  border-top: 1px solid var(--hairline-strong); padding: 18px;
  display: flex; gap: 10px; background: var(--bg-elev);
}
.guide-input input {
  flex: 1; border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--ink);
  padding: 12px 18px; font: inherit; font-size: 15px; font-family: var(--font-body);
}
.guide-input input:focus { outline: 2px solid var(--terracotta); outline-offset: -1px; }
.guide-input input::placeholder { color: var(--ink-mute); font-style: italic; }

/* ----- Module 10 — Dashboard ----- */
.dash {
  border: 1px solid var(--rule); padding: 40px; background: var(--surface);
}
.dash-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--rule);
}
.dash-head h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 32px; margin: 0 0 4px; letter-spacing: -.015em; }
.dash-head .meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .04em; }

.dash-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border: 1px solid var(--rule); margin-bottom: 36px;
}
.dash-cell { background: var(--bg-elev); padding: 22px; border-right: 1px solid var(--rule); }
.dash-cell:last-child { border-right: 0; }
.dash-cell .k {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--ink-mute); text-transform: uppercase; font-weight: 600;
}
.dash-cell .v {
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 42px;
  margin: 8px 0 4px; letter-spacing: -.02em; line-height: 1;
}
.dash-cell .v.good { color: var(--moss); }
.dash-cell .v.warn { color: var(--tobacco); }
.dash-cell .v.alert { color: var(--terracotta); }
.dash-cell .delta { font-size: 11px; color: var(--ink-soft); font-family: var(--font-mono); }
.dash-cell svg.spark { display: block; margin-top: 10px; width: 100%; height: 30px; }

.evolution { width: 100%; aspect-ratio: 2.7; }
.evo-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.legend-dot { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot::before { content: ""; width: 14px; height: 2px; background: var(--terracotta); }
.legend-dot.b::before { background: var(--moss); }
.legend-dot.c::before { background: var(--indigo); }
.legend-dot.d::before { background: var(--plum); }
.legend-dot.e::before { background: var(--tobacco); }

/* ----- Footer ----- */
.footer {
  background: var(--ink); color: #c5beb1;
  padding: 80px 0 40px;
}
html[data-theme="dark"] .footer { background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer h5 {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--terracotta); margin: 0 0 18px; font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; font-size: 14.5px; font-family: var(--font-body); }
.footer a { color: #c5beb1; border: 0; }
.footer a:hover { color: var(--terracotta); }
.footer-brand {
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 42px;
  color: var(--bg); letter-spacing: -.02em; margin-bottom: 14px; line-height: 1;
}
.footer-brand em { font-style: normal; color: var(--terracotta); }
html[data-theme="dark"] .footer-brand { color: var(--ink); }
.footer-tag { color: #968d80; font-size: 14.5px; max-width: 360px; line-height: 1.65; font-family: var(--font-body); font-style: italic; }
.footer-bottom {
  border-top: 1px solid #ffffff14; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #968d80; font-family: var(--font-mono);
  letter-spacing: .04em;
}
.footer-bottom a { color: #968d80; border: 0; }
.footer-bottom a:hover { color: var(--terracotta); }

/* ----- i18n ----- */
html[data-lang="en"] [lang="zh"] { display: none !important; }
html[data-lang="zh"] [lang="en"] { display: none !important; }
html[data-lang="en"][lang="zh"], html[data-lang="zh"][lang="en"] { display: block !important; }

/* ----- Responsive ----- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .hero { padding: 50px 0 50px; }
  .hero-thesis { grid-template-columns: 1fr; gap: 30px; padding: 24px 0; }
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .cmap-shell, .aware-shell, .attn-shell, .id-shell, .matur-shell, .dir-shell { grid-template-columns: 1fr; gap: 24px; }
  .env-grid, .thinking-grid { grid-template-columns: 1fr; }
  .env-cell, .thinking-cell { border-right: 0 !important; }
  .env-cell:not(:last-child), .thinking-cell:not(:last-child) { border-bottom: 1px solid var(--rule) !important; }
  .guide { grid-template-columns: 1fr; min-height: 0; }
  .guide-side { border-right: 0; border-bottom: 1px solid var(--rule); }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-cell { border-right: 0; border-bottom: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .toolbar { gap: 6px; }
  .lang-toggle button, .theme-toggle button { padding: 5px 8px; font-size: 10px; }
}

/* ----- utility ----- */
.fade-in { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.fade-in.in { opacity: 1; transform: none; }
