/* ================================================================
   components.css — spread-specific component styles
================================================================ */

/* ------ Design philosophy (spread 06.1, Michelle) ------ */
.design-phil-hero {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(56px, 6.5vw, 120px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 18ch;
  margin: 0 auto 64px auto;
  text-align: center;
}
.design-phil-hero .hl-lime {
  background: rgba(230, 255, 154, 0.22);
  padding: 0 0.2em;
  border-radius: 4px; font-family: var(--font-serif);
}
/* ---- Design philosophy v2: large logo on top, single line below ---- */
.design-phil-mark {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 1100px;
}
.design-phil-logo {
  display: block;
  margin: 0 auto;
  width: clamp(360px, 42vw, 620px);
  height: auto;
}
.design-phil-logo-dark { display: none; }
[data-theme="dark"] .design-phil-logo-light { display: none; }
[data-theme="dark"] .design-phil-logo-dark  { display: block; }

.design-phil-hero.design-phil-hero-v2 {
  max-width: none;
  margin: 0 auto 64px auto;
  font-size: clamp(48px, 5.4vw, 96px);
  line-height: 1.15;
}

/* ---- Design philosophy v3: "You are AI." top, "Authentic, not artificial." sub ---- */
/* Both lines share Source Serif 4 + the same font-size for equal visual weight. */
.design-phil-hero.design-phil-hero-v3 {
  max-width: none;
  margin: 0 auto 24px auto;
  font-size: clamp(56px, 6.5vw, 120px);
  line-height: 1.1;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.design-phil-hero.design-phil-hero-v3 .phil-u-icon-lg {
  height: 0.78em;
  width: auto;
  vertical-align: baseline;
  position: relative;
  top: 0.06em;
  left: 5px;
  margin-right: 0.05em;
}
.design-phil-subhero {
  text-align: center;
  margin: 0 auto 56px auto;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(56px, 6.5vw, 120px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg);
  font-weight: 400;
}

.design-phil-hero .phil-u-icon {
  display: inline-block;
  vertical-align: baseline;
  /* Sized to match the cap-height of the headline serif (≈ height of capital "A" in "Authentic"). */
  /* viewBox is tightened so the curl's bottom edge = SVG bottom edge, which sits exactly on the text baseline. */
  height: 0.72em;
  width: auto;
  margin-right: 0.06em;
  position: relative;
  top: 5px;  /* nudge down to optically align with text bottom */
  left: 4px; /* nudge right for optical spacing with "are" */
}
.design-phil-hero .bracket {
  font-family: var(--font-serif);
}
.design-phil-body {
  max-width: 64ch;
  margin: 64px auto 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}
.design-phil-chapter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 20px;
}
.design-phil-title {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--fg);
  margin: 0 0 28px 0;
}
.design-phil-copy {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin: 0 0 18px 0;
}
.design-phil-copy em { font-style: italic; color: var(--accent-text); }
.design-phil-quote {
  font-family: var(--font-serif); font-size: 22px;
  line-height: 1.5;
  color: var(--fg);
  border-left: 3px solid var(--accent-text);
  padding: 4px 0 4px 24px;
  margin: 32px 0 0 0;
  max-width: 52ch;
}

/* ------ Brand personality, slim (spread 06.2) ------ */
.bp-words {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 18px;
}
.bp-words li {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.bp-words li strong {
  color: var(--ink);
  font-weight: 700;
}
.bp-words li span {
  color: var(--ink-muted);
  font-weight: 500;
}


/* ------ Narrative table (spread 02) ------ */
.narr-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.narr-table th { text-align: left; padding: 16px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-subtle); font-weight: 500; border-bottom: 1px solid var(--rule); }
.narr-table td { padding: 24px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.narr-table td:first-child { width: 180px; }
.narr-table td.lang { font-size: 24px; letter-spacing: -0.015em; }
.narr-table td:last-child { color: var(--ink-muted); font-size: 14px; max-width: 380px; }

/* ------ HLM / BLM (spread 03) ------ */
.lm-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 32px; padding: 40px; position: relative; overflow: hidden; }
.lm-card.lm-blm { background: #10100F; color: #F5F5F4; border-color: rgba(255,255,255,0.12); }
.lm-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.lm-blm .lm-tag { color: var(--accent-text); }
.lm-sub { font-size: 14px; color: var(--ink-muted); margin-bottom: 28px; }
.lm-blm .lm-sub { color: #AAAAAA; }
.lm-list { list-style: none; padding: 0; margin: 0; counter-reset: lm; }
.lm-list li { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); gap: 16px; }
.lm-blm .lm-list li { border-color: rgba(255,255,255,0.12); }
.lm-list li:first-child { border-top: none; }
.lm-list .idx { font-family: var(--font-mono); font-size: 11px; color: var(--ink-subtle); }
.lm-list .name { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; grid-column: 2; }
.lm-list .def { grid-column: 2; font-size: 14px; color: var(--ink-muted); margin-top: 2px; }

/* Rule callout: dark ink card, pale lime accents (matches .mode-rule on Our Narrative). */
.rule-callout { margin-top: 72px; padding: 48px; background: #10100F; color: #F5F5F4; border-radius: 32px; }
.rule-callout, .rule-callout * { color: #F5F5F4 !important; }
.rule-callout .pill {
  background: var(--lime-200, #dff693) !important;
  color: #10100F !important;
}

/* Defining Test + Individuals-First washes — pale lime tint on Paper, becomes dark wash in dark mode.
   In dark mode the wash is dark-ish so light text remains readable. Force-readable for both. */
[data-theme="dark"] .cat-test,
[data-theme="dark"] .individuals-first {
  background: rgba(223, 246, 147, 0.10) !important; /* lime-200 @ 10% on ink */
  border-color: rgba(223, 246, 147, 0.35) !important;
}

/* ------ Terminology (spread 04) ------ */
.term-grid { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.term-header { display: grid; grid-template-columns: 240px 240px 1fr; padding: 18px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-subtle); border-bottom: 1px solid var(--rule); }
.term-row { display: grid; grid-template-columns: 240px 240px 1fr; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: center; gap: 24px; }
.term-row .use { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.term-row .ban { font-size: 18px; color: var(--ink-subtle); text-decoration: line-through; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.term-row .why { font-size: 14px; color: var(--ink-muted); max-width: 52ch; }
.term-row.banned-row { background: rgba(255,107,69,0.06); padding: 24px 20px; border-radius: 12px; margin-top: 12px; border: 1px solid rgba(255,107,69,0.24); }
.term-row.banned-row .ban { display: flex; flex-wrap: wrap; gap: 6px; text-decoration: none; }
.ban-chip { padding: 4px 10px; border-radius: 999px; background: #10100F; color: #FF6B45; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-decoration: line-through; text-decoration-color: #FF6B45; }

/* ------ Linter (spread 05) ------ */
.linter-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.linter-input textarea { width: 100%; min-height: 220px; padding: 24px; border-radius: 24px; border: 1px solid #10100F; background: #FBFFE0; font-family: var(--font-sans); font-size: 18px; line-height: 1.5; color: #10100F; resize: vertical; }
.linter-input textarea:focus { outline: 2px solid #10100F; outline-offset: 2px; }
.linter-actions { display: flex; gap: 8px; margin-top: 12px; }
.linter-actions .pill { cursor: pointer; }
.linter-result { padding: 24px; border-radius: 24px; background: #10100F; color: #F5F5F4; font-size: 18px; line-height: 1.5; min-height: 220px; }
.linter-result .flag { background: rgba(255,107,69,0.28); color: #FFB29B; padding: 1px 4px; border-radius: 4px; text-decoration: line-through; }
.linter-result .fix { background: rgba(230,255,154,0.22); color: var(--accent-text); padding: 1px 4px; border-radius: 4px; font-weight: 600; }
.linter-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.linter-flags .flag-chip { padding: 4px 10px; border-radius: 999px; background: #10100F; color: var(--accent-text); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }

/* ------ Voice (spread 06) ------ */
.voice-list { list-style: none; padding: 0; margin: 0; font-size: 22px; letter-spacing: -0.015em; line-height: 1.5; }
.voice-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: baseline; }
.voice-list li strong { font-weight: 600; color: var(--ink); }

.attr-grid { display: flex; flex-direction: column; gap: 12px; }
.attr { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; gap: 12px; font-size: 16px; line-height: 1.5; }
.attr-n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-subtle); }

.rules-list { display: flex; flex-direction: column; gap: 16px; }
.r-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: 17px; line-height: 1.5; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.r-num { font-size: 22px; color: var(--accent-text); line-height: 1; }
.r-item em.serif { font-style: italic; }

.ex-stack { display: flex; flex-direction: column; gap: 12px; }
.ex { padding: 20px 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; font-size: 20px; letter-spacing: -0.01em; position: relative; }
.ex-label { position: absolute; top: -9px; left: 20px; background: var(--canvas); padding: 0 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-subtle); }

/* ------ Mission / Vision / Values (spread 01) ------ */
.mvv-stack { display: grid; gap: 32px; margin-top: 32px; max-width: 1080px; }
.mvv-row { display: grid; grid-template-columns: 160px 1fr; gap: 40px; padding: 32px 0; border-top: 1px solid var(--rule); align-items: start; }
.mvv-row:first-child { border-top: none; padding-top: 8px; }
.mvv-tag { padding-top: 6px; }
.mvv-body { display: grid; gap: 8px; }
.mvv-lead { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; color: var(--ink); max-width: 32ch; }
.mvv-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-subtle); margin-top: 4px; }
.mvv-values { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: v; }
.mvv-values li { counter-increment: v; padding-left: 52px; position: relative; font-size: 17px; line-height: 1.5; color: var(--ink-muted); max-width: 52ch; }
.mvv-values li::before { content: counter(v, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--accent-text); letter-spacing: 0.08em; padding: 3px 8px; border: 1px solid var(--lime-deep); border-radius: 6px; }
.mvv-values strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .mvv-row { grid-template-columns: 1fr; gap: 16px; }
}

/* ------ Individuals-first banner (spread 02) ------ */
.individuals-first { display: block; padding: 36px 44px; background: var(--alpha-g-15); border: 1px solid var(--alpha-g-30); border-left: 4px solid var(--accent-text); border-radius: 16px; margin-bottom: 56px; }
.if-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); padding-top: 4px; }
.if-body { color: var(--fg); font-size: 20px; line-height: 1.6; max-width: none; margin: 0; }
.if-body strong { color: var(--accent-text); font-weight: 600; }

/* ------ Don't (spread 07) ------ */
.dont-layout { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.dont-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.dont { padding: 20px 24px; background: rgba(255,107,69,0.08); border: 1px solid rgba(255,107,69,0.28); border-radius: 16px; font-size: 16px; line-height: 1.5; color: #F5F5F4; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.dont .x { color: var(--orange); font-weight: 700; font-size: 18px; line-height: 1.3; }
.dont strong { color: #F5F5F4; }
@media (max-width: 1100px) {
  .dont-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ------ Logo (spread 08) ------ */
.logo-hero { text-align: center; padding-top: 32px; display: flex; flex-direction: column; align-items: center; }
.logo-big { max-width: 680px; width: 70%; display: block; margin: 0 auto; object-fit: contain; object-position: center; }
.logo-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; min-height: 220px; justify-content: center; }
.logo-card.logo-dark { background: #10100F; }
.logo-card img { max-width: 100%; max-height: 90px; object-fit: contain; }
.logo-meta { text-align: center; font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.logo-meta strong { font-weight: 600; }
.logo-meta span { color: var(--ink-subtle); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.logo-card.logo-dark .logo-meta { color: #F5F5F4; }
.logo-card.logo-dark .logo-meta span { color: #767774; }

/* ------ Color (spread 09) ------ */
.scale-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.scale-chip { aspect-ratio: 1/1.2; border-radius: 12px; padding: 10px; display: flex; align-items: flex-end; color: #10100F; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; cursor: pointer; transition: transform 140ms var(--ease-out); }
.scale-chip:hover { transform: translateY(-2px); }
.scale-chip.on { outline: 2px solid #10100F; outline-offset: 2px; }

.rules-flat { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rules-flat li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.4; }
.rules-flat li:last-child { border-bottom: none; }
.rules-flat code { font-family: var(--font-mono); font-size: 12px; background: rgba(16,16,15,0.06); padding: 2px 6px; border-radius: 4px; }
section.spread.dark .rules-flat code { background: rgba(255,255,255,0.08); }
.rules-no li { color: var(--ink-muted); }
.rules-no li::before { content: "✕ "; color: var(--orange); font-weight: 700; margin-right: 4px; }

/* ------ Type (spread 10) ------ */
.type-specimen { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 0 -40px; padding: 0 40px; }
.type-scale { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.t-row { display: grid; grid-template-columns: 100px 180px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; cursor: pointer; transition: background 140ms; }
.t-row:hover { background: rgba(16,16,15,0.04); }
.t-name { font-weight: 600; font-size: 14px; }
.t-size { font-family: var(--font-mono); font-size: 11px; color: var(--ink-subtle); }
.t-sample { color: var(--ink); }
.serif-examples { display: flex; flex-direction: column; gap: 20px; }
.serif-ex { padding: 20px 0; border-bottom: 1px solid var(--rule); }

/* ------ Icons (spread 11) ------ */
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ico { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ico .material-symbols-rounded { font-size: 36px; color: var(--ink); }
.ico em { font-family: var(--font-mono); font-style: normal; font-size: 10px; color: var(--ink-subtle); letter-spacing: 0.04em; }

.ico-sizes { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ico-sz { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ico-sz em { font-family: var(--font-mono); font-style: normal; font-size: 10px; color: var(--ink-subtle); letter-spacing: 0.04em; }
.ico-states { display: flex; flex-direction: column; gap: 10px; }
.ico-st { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ico-st em { font-family: var(--font-mono); font-style: normal; font-size: 11px; color: var(--ink-muted); letter-spacing: 0.04em; }
.ico-st .material-symbols-rounded { font-size: 24px; }
.codeblock { display: block; padding: 16px; border-radius: 12px; background: #10100F; color: var(--accent-text); font-family: var(--font-mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; }

/* ------ Motif playground (spread 12) ------ */
.motif-playground { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: stretch; }
.motif-preview { background: #10100F; border: 1px solid var(--rule); border-radius: 32px; min-height: 420px; display: grid; place-items: center; position: relative; overflow: hidden; }
.motif-preview::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 16px 16px; pointer-events: none; }
#motif-img { width: 320px; height: 320px; background-size: contain; background-repeat: no-repeat; background-position: center; transition: transform 360ms var(--ease-out), filter 200ms; filter: brightness(0) saturate(100%) invert(96%) sepia(17%) saturate(2095%) hue-rotate(14deg) brightness(103%) contrast(103%); }
#motif-img.spinning { animation: spin 2.4s linear infinite; }
.motif-controls { display: flex; flex-direction: column; gap: 24px; padding: 24px; background: var(--paper); border-radius: 24px; }
.m-group label { display: block; margin-bottom: 10px; }
.m-shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m-shape { padding: 10px 6px; background: transparent; border: 1px solid var(--rule); border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; color: #F5F5F4; }
.m-shape.on { background: var(--lime); border-color: var(--accent-text); color: #10100F; }
.m-shape em { color: inherit; }
.m-shape-thumb { width: 28px; height: 28px; background-size: contain; background-repeat: no-repeat; background-position: center; filter: brightness(0) saturate(100%) invert(100%); }
.m-shape.on .m-shape-thumb { filter: brightness(0); }
.m-shape em { font-family: var(--font-mono); font-size: 9px; font-style: normal; letter-spacing: 0.04em; }
.m-colors { display: flex; gap: 6px; }
.m-col { width: 36px; height: 36px; border-radius: 999px; border: 2px solid var(--rule); cursor: pointer; }
.m-col.on { outline: 2px solid var(--lime); outline-offset: 2px; }
.m-group input[type="range"] { width: 100%; accent-color: var(--accent-text); }
.m-export-row { display: flex; gap: 8px; flex-wrap: wrap; }
.m-export-row .pill { cursor: pointer; border: none; font-family: var(--font-sans); }
.serif-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.serif-band-item { padding: 24px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); display: flex; flex-direction: column; gap: 16px; min-height: 180px; }
.serif-band-quote { font-family: var(--font-sans); font-size: clamp(22px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); flex: 1; }
.serif-band-quote em.serif { font-family: var(--font-serif); }
.serif-band-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-subtle); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 1100px) { .serif-band { grid-template-columns: 1fr; } }

/* ------ Imagery (spread 13) ------ */
.img-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 16px; height: 380px; }
.img-slot { border-radius: 24px; overflow: hidden; position: relative; background: linear-gradient(135deg, #E7E7E6, #D6D6D6); }

/* Imagery spread — hero Be-Yourself + collage */
.imagery-hero {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 0;
}
.imagery-hero-pola {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-3deg);
  filter: drop-shadow(0 16px 28px rgba(25, 25, 24, 0.18)) drop-shadow(0 4px 8px rgba(25, 25, 24, 0.10));
  position: relative;
}
.imagery-hero-pola::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 100px;
  height: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.55) 100%);
  border-left: 1px dashed rgba(0,0,0,0.08);
  border-right: 1px dashed rgba(0,0,0,0.08);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  z-index: 2;
}
.imagery-hero-pola img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.imagery-hero-copy h3 em.serif {
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 500;
}

.imagery-collage {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
  align-items: start;
}
.imagery-collage > * {
  width: 100%;
  height: auto;
  display: block;
}
.imagery-collage img {
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(25, 25, 24, 0.14)) drop-shadow(0 2px 4px rgba(25, 25, 24, 0.08));
}
.imagery-collage .polaroid-video {
  margin: 0;
  background: #fafafa;
  padding: 6% 6% 4% 6%;
  box-shadow: 0 10px 20px rgba(25, 25, 24, 0.14), 0 2px 4px rgba(25, 25, 24, 0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.imagery-collage .polaroid-video video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #10100f;
}
.imagery-collage .polaroid-video figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 2px 2px;
  font-family: var(--font-hand);
  font-size: clamp(14px, 1.3vw, 20px);
  line-height: 1;
  color: #10100f;
}
.imagery-collage .polaroid-video figcaption .be-tag { flex: 1; text-align: left; }
.imagery-collage .polaroid-video figcaption .polaroid-logo {
  height: 10px;
  width: auto;
  opacity: 0.82;
}
.imagery-collage > *:nth-child(1) { transform: rotate(-3deg); }
.imagery-collage > *:nth-child(2) { transform: rotate(2deg); }
.imagery-collage > *:nth-child(3) { transform: rotate(-1.5deg); }
.imagery-collage > *:nth-child(4) { transform: rotate(3deg); }
.imagery-collage > *:nth-child(5) { transform: rotate(-2deg); }
.imagery-collage > *:nth-child(6) { transform: rotate(2.5deg); }
.imagery-collage > *:nth-child(7) { transform: rotate(-3deg); }

@media (max-width: 1100px) {
  .imagery-hero { grid-template-columns: 1fr; }
  .imagery-collage { grid-template-columns: repeat(4, 1fr); }
}

.img-slot .ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ink-muted); }
.img-slot .ph .material-symbols-rounded { font-size: 48px; opacity: 0.5; }
.img-slot .ph em { font-family: var(--font-mono); font-style: normal; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.img-slot.i1 { background: linear-gradient(135deg, #E6FF9A, #C2E06C); }
.img-slot.i2 { background: linear-gradient(135deg, #F4D35E, #FF6B45); }
.img-slot.i3 { background: linear-gradient(135deg, #F7A7C5, #C5A7F5); }
.img-slot.i4 { background: linear-gradient(135deg, #D0DFFF, #E6FF9A); }

/* ------ Motion (spread 14) ------ */
.motion-table { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.mo-row { display: grid; grid-template-columns: 180px 180px 200px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.mo-name { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.mo-time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-subtle); }
.mo-rule { font-size: 14px; color: var(--ink-muted); }
.mo-box { padding: 14px 20px; background: rgba(255,255,255,0.1); border-radius: 999px; text-align: center; transition: background 120ms var(--ease-out); cursor: pointer; font-size: 13px; }
.mo-box:hover { background: var(--lime); color: #10100F; }
.mo-toggle { width: 52px; height: 28px; background: rgba(255,255,255,0.2); border-radius: 999px; position: relative; cursor: pointer; transition: background 180ms var(--ease-out); }
.mo-toggle span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #F5F5F4; border-radius: 999px; transition: transform 180ms var(--ease-out); }
.mo-toggle.on { background: var(--lime); }
.mo-toggle.on span { transform: translateX(24px); }
.mo-sheet { padding: 14px 20px; background: rgba(255,255,255,0.1); border-radius: 12px; text-align: center; font-size: 13px; cursor: pointer; transition: transform 280ms var(--ease-out); }
.mo-sheet.on { transform: translateX(40px); background: var(--lime); color: #10100F; }
.mo-page { padding: 14px 20px; background: rgba(255,255,255,0.1); border-radius: 12px; text-align: center; font-size: 13px; cursor: pointer; opacity: 1; transition: all 480ms var(--ease-out); }
.mo-page.off { opacity: 0; transform: translateY(-8px); }
.mo-press { padding: 14px 20px; background: var(--lime); color: #10100F; border-radius: 999px; font-weight: 600; transition: transform 120ms var(--ease-out), filter 120ms; }
.mo-press:active { transform: scale(0.97); filter: brightness(0.9); }

/* ------ UI aesthetics (spread 15) ------ */
.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ui-demo { background: var(--paper); border: 1px solid var(--rule); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; }
.ui-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-subtle); }
.ui-note { margin-top: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-subtle); }
.ui-btn-primary { padding: 14px 22px; background: var(--lime); color: #10100F; border-radius: 999px; font-weight: 600; font-size: 15px; align-self: flex-start; }
.ui-input { padding: 14px 20px; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; font-size: 15px; color: var(--ink); }
.ui-bubble { padding: 14px 18px; background: #1F1F1E; color: #F5F5F4; border-radius: 20px; border-bottom-left-radius: 4px; font-size: 14px; max-width: 80%; }
.ui-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--canvas); border: 1px solid var(--rule); }
.ui-card strong { display: block; font-weight: 600; font-size: 14px; }
.ui-card .ui-muted { display: block; font-size: 12px; color: var(--ink-subtle); }
.ui-avatar { width: 40px; height: 40px; border-radius: 999px; background: linear-gradient(135deg, var(--lime), var(--orange)); }
.ui-chip { padding: 8px 16px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--rule); font-size: 13px; align-self: flex-start; }
.ui-chip-on { background: rgba(230,255,154,0.12); border-color: rgba(230,255,154,0.3); color: #748345; font-weight: 600; }
.ui-bar { height: 6px; background: var(--canvas); border-radius: 999px; overflow: hidden; border: 1px solid var(--rule); }
.ui-bar span { display: block; height: 100%; background: var(--lime); border-radius: 999px; }

/* ------ Audience (spread 16) ------ */
.aud-card { padding: 32px; background: var(--paper); border: 1px solid var(--rule); border-radius: 24px; }
.opener-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.opener { padding: 18px 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; display: flex; flex-direction: column; gap: 4px; }
.opener em { font-family: var(--font-mono); font-style: normal; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-subtle); }
.opener strong { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }

/* ------ Surfaces (spread 17) ------ */
.surf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.surf { padding: 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; min-height: 180px; display: flex; flex-direction: column; gap: 10px; }
.surf-tag { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.surf-tag .material-symbols-rounded { font-size: 18px; }
.surf p { font-size: 13px; line-height: 1.45; color: var(--ink-muted); margin: 0; }
.surf p strong { color: var(--ink); }
.success-box { margin-top: 32px; padding: 40px; background: var(--dark); color: #F5F5F4; border-radius: 24px; }

/* ------ Downloads (spread 18) ------ */
.dl-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--rule); border-radius: 16px; margin-bottom: 8px; background: var(--paper); min-width: 0; }
.dl-row > div:nth-child(2) { min-width: 0; overflow: hidden; }
.dl-row strong, .dl-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) {
  .dl-row { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; padding: 12px; gap: 10px 12px; }
  .dl-row .dl-ico, .dl-row img { width: 40px; height: 40px; }
  .dl-row > a, .dl-row > button { grid-column: 1 / -1; justify-self: start; }
}
/* Mono-white row keeps the same row treatment as other rows in each theme.
   The logo image itself gets a small dark thumbnail backdrop so the white mark is visible
   regardless of theme (without making the whole row dark). */
.dl-row.dark-row { /* no row-level overrides — inherits .dl-row defaults so it matches other rows */ }
.dl-row.dark-row img {
  background: #10100F;
  padding: 4px 8px;
  border-radius: 6px;
  box-sizing: border-box;
}
/* Icon-only download row — drops the text column entirely. Just icon + action button. */
.dl-row.dl-row-icon-only { grid-template-columns: 56px auto; justify-content: space-between; }
@media (max-width: 720px) {
  .dl-row.dl-row-icon-only { grid-template-columns: 40px auto; }
  .dl-row.dl-row-icon-only > a,
  .dl-row.dl-row-icon-only > button { grid-column: auto; justify-self: end; }
}
.dl-row img { width: 56px; height: 48px; object-fit: contain; }
.dl-row strong { display: block; font-weight: 600; font-size: 14px; }
.dl-row span { display: block; font-size: 11px; color: var(--ink-subtle); font-family: var(--font-mono); letter-spacing: 0.04em; }
.dl-row .pill, .dl-row button { text-decoration: none; cursor: pointer; }
.dl-ico {
  width: 56px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid var(--alpha-b-10);
  border-radius: 10px;
}
[data-theme="dark"] .dl-ico {
  background: var(--neutral-900);
  border-color: var(--alpha-w-10);
}
.dl-ico .material-symbols-rounded {
  color: var(--accent-fill);   /* dark olive in light, pale lime in dark */
  font-size: 26px;
}

.shape-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shape-dl { padding: 16px; background: var(--dark); border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #F5F5F4; text-decoration: none; }
.shape-dl .shape-thumb { width: 48px; height: 48px; background-size: contain; background-repeat: no-repeat; background-position: center; filter: brightness(0) saturate(100%) invert(96%) sepia(17%) saturate(2095%) hue-rotate(14deg) brightness(103%) contrast(103%); }
.shape-dl em { font-family: var(--font-mono); font-style: normal; font-size: 10px; letter-spacing: 0.04em; color: #AAA; }

/* ------ Responsive safety for small screens ------ */
@media (max-width: 1200px) {
  /* nested grid-4 inside grid-2 becomes 2x2 at mid widths */
  section.spread .grid-2 > div > .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .toc { position: relative; height: auto; }
  section.spread { padding: 48px 32px; }
  .grid-2, .grid-3, .grid-4, .linter-wrap, .motif-playground { grid-template-columns: 1fr; }
  .scale-row, .dont-grid, .surf-grid, .opener-grid, .ui-grid, .icon-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===============================================================
   BRAND PERSONALITY (spreads 06.1 / 06.2 / 06.3)
   =============================================================== */

/* ---- 06.1 lead + adjectives ---- */
.bp-lead {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 72px;
  margin-bottom: 56px;
  align-items: start;
}
.bp-oneline {
  font-family: var(--font-sans);
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.bp-oneline em.serif { font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
}
.bp-intention {
  border-left: 3px solid var(--lime);
  padding: 4px 0 4px 24px;
}
.bp-intention blockquote {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif; font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
}
.bp-intention .u-label { margin-bottom: 14px; }

.bp-adjectives {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.bp-adj {
  padding: 28px 20px 28px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bp-adj:last-child { border-right: none; padding-right: 0; }
.bp-adj:nth-child(n+2) { padding-left: 20px; }
.bp-adj-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}
.bp-adj-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.bp-adj p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
  text-wrap: pretty;
}
.bp-adj em { font-style: italic; font-weight: 500; color: var(--ink); }

.bp-cascaded .narr-table td:first-child { width: 220px; }

/* ---- 06.2 what we are not ---- */
.not-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.not-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  border-right: 1px solid rgba(255,255,255,0.15);
  align-items: start;
}
.not-item:nth-child(3n) { border-right: none; padding-right: 0; }
.not-item:nth-child(n+4) { padding-top: 22px; }
.not-item:nth-child(-n+3) { padding-top: 22px; }
.not-item:nth-child(n+2):nth-child(-n+3) { padding-left: 24px; }
.not-item:nth-child(3n+2), .not-item:nth-child(3n+3) { padding-left: 24px; }
.not-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  padding-top: 4px;
}
.not-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
  text-wrap: pretty;
}
.not-body strong { color: #fff; font-weight: 600; }
.not-body em { color: var(--accent-text); font-style: italic; }

/* Light variant: when .not-grid lives on a light spread (integrated into personality) */
.not-grid.not-grid-light { border-top: 1px solid var(--rule); grid-template-columns: repeat(2, 1fr); }
.not-grid.not-grid-light .not-item { border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.not-grid.not-grid-light .not-item:nth-child(3n) { border-right: 1px solid var(--rule); }
.not-grid.not-grid-light .not-item:nth-child(2n) { border-right: none; padding-right: 0; }
.not-grid.not-grid-light .not-body { color: var(--ink); }
.not-grid.not-grid-light .not-body strong { color: var(--ink); }
.not-grid.not-grid-light .not-tag { color: var(--orange); }

.voice-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 32px;
}
.vp {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245,245,244,0.82);
  padding-left: 16px;
  border-left: 2px solid var(--lime);
  text-wrap: pretty;
}
.vp strong { color: var(--accent-text); font-weight: 600; }
.vp em { color: #fff; font-style: italic; }

/* ---- 06.3 tests + vocabulary ---- */
.tests { display: flex; flex-direction: column; gap: 20px; }
.test {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.test:last-child { border-bottom: 1px solid var(--rule); }
.test-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  padding-top: 4px;
}
.test-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 6px;
}
.test p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.test em { font-style: italic; font-weight: 500; color: var(--ink); }

.ba-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
}
.ba {
  display: contents;
}
.ba-x, .ba-ok {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  height: fit-content;
  align-self: start;
  margin-top: 2px;
}
.ba-x { background: rgba(255,107,69,0.14); color: var(--orange); }
.ba-ok { background: rgba(230,255,154,0.25); color: var(--accent-text); }
.ba-line {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}

.vocab-group { margin-bottom: 22px; }
.vocab-group:last-child { margin-bottom: 0; }
.vocab-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.vocab-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vocab-list li {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}
.vocab-list li strong { font-weight: 600; color: var(--ink); }
.vocab-list li span { color: var(--ink-muted); font-size: 12px; }
.vocab-list li em { font-style: italic; color: var(--ink-subtle); }
.vocab-list.phrases li {
  font-family: 'Source Serif 4', Georgia, serif; font-size: 14px;
  color: var(--ink);
  padding-left: 14px;
  position: relative;
}
.vocab-list.phrases li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--lime-deep);
}

.nine-checks {
  list-style: none;
  counter-reset: ninecheck;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 32px;
}
.nine-checks li {
  counter-increment: ninecheck;
  position: relative;
  padding-left: 32px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.nine-checks li::before {
  content: counter(ninecheck, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}
.nine-checks li strong { color: var(--ink); font-weight: 600; }


/* ===============================================================
   NARRATIVE (spreads 06.4 / 06.5)
   =============================================================== */

/* ---- 06.4 hero ---- */
.narr-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}
.narr-hero.narr-hero-scrunched {
  display: block;
  padding-bottom: 32px;
}
.narr-hero.narr-hero-scrunched .narr-thesis {
  font-size: clamp(48px, 6.4vw, 92px);
  max-width: 100%;
}
.narr-thesis {
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--fg);
  text-wrap: balance;
}
.narr-thesis em.serif {
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 500;
}
.narr-lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0;
  text-wrap: pretty;
}
.narr-lede strong { color: var(--accent-text); font-weight: 600; }

.wedge-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.wedge-table th, .wedge-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.wedge-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-strong);
}
.wedge-table th.spot, .wedge-table td.spot { color: var(--accent-text); }
.wedge-table td { color: var(--fg-muted); }
.wedge-table td.spot { color: var(--accent-text); font-weight: 500; }
.wedge-table td:first-child {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  width: 140px;
}
.narr-punch {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--fg-muted);
  text-wrap: balance;
}
.narr-punch em {
  font-family: 'Source Serif 4', Georgia, serif; color: var(--accent-text);
  font-size: 22px;
}

.arc { display: flex; flex-direction: column; gap: 20px; }
.arc-move {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
}
.arc-move:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.arc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  padding-top: 4px;
  grid-row: 1 / span 10;
}
.arc-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 6px;
}
.arc-move p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245,245,244,0.78);
  text-wrap: pretty;
}
.arc-move p:last-child { margin-bottom: 0; }
.arc-move strong { color: var(--accent-text); font-weight: 600; }
.arc-move em { font-style: italic; color: #fff; }
.arc-aside { color: rgba(245,245,244,0.55) !important; font-size: 12.5px !important; }
.x-ref, .x-arrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px dotted var(--lime);
}
.x-arrow { border: none; }

/* ---- 06.5 modes ---- */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.mode {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
/* Mode cards lock their text color regardless of theme so dark mode stays legible. */
.mode-util { background: var(--lime); border-color: transparent; color: #10100F; }
.mode-refl { background: #10100F; color: #F5F5F4; border-color: transparent; }
.mode-asset { background: #F7F5EE; color: #10100F; }
.mode-util, .mode-asset { color: #10100F !important; }
.mode-util *, .mode-asset * { color: inherit; }
.mode-icon {
  width: 44px; height: 44px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(16,16,15,0.08);
}
.mode-util .mode-icon { background: rgba(16,16,15,0.18); }
.mode-refl .mode-icon { background: rgba(255,255,255,0.1); color: var(--accent-text); }
.mode-asset .mode-icon { background: rgba(16,16,15,0.06); }
.mode-icon .material-symbols-rounded { font-size: 24px; }
.mode-name {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-top: 4px;
}
.mode-tag {
  font-family: 'Source Serif 4', Georgia, serif; font-size: 20px;
  line-height: 1.2;
  opacity: 0.85;
}
.mode-body {
  font-size: 13px;
  line-height: 1.55;
  margin: 6px 0 0;
  text-wrap: pretty;
  opacity: 0.88;
}
.mode-body em { font-style: italic; font-weight: 500; }
.mode-refl .mode-body { color: rgba(245,245,244,0.82); }
.mode-who {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(16,16,15,0.12);
}
.mode-util .mode-who, .mode-asset .mode-who { border-color: rgba(16,16,15,0.18); }
.mode-refl .mode-who { border-color: rgba(255,255,255,0.14); }
.mode-who .u-label { margin-bottom: 6px; opacity: 0.6; }
.mode-refl .mode-who .u-label { color: var(--accent-text); opacity: 1; }
.mode-who p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.8;
  text-wrap: pretty;
}

.mode-rule {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 24px 28px;
  background: #10100F;
  color: #F5F5F4;
  border-radius: 20px;
  align-items: center;
}
/* Rule-that-binds-them sits on dark ink — lime-200 (pale lime) is the only readable accent. */
.mode-rule .u-label { color: var(--lime-200, #dff693) !important; margin: 0; }
.mode-rule p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(245,245,244,0.85);
  text-wrap: pretty;
}
.mode-rule strong { color: #fff; font-weight: 600; }
.mode-rule em.serif {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--lime-200, #dff693) !important;
}

.narr-test {
  list-style: none;
  counter-reset: ntest;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.narr-test li {
  counter-increment: ntest;
  position: relative;
  padding-left: 40px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.narr-test li::before {
  content: counter(ntest, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}
.narr-test li strong { color: var(--ink); font-weight: 600; }
.narr-test-foot {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-subtle);
}
.narr-test-foot em { font-style: italic; font-weight: 500; color: var(--orange); }

.narr-payoff {
  padding: 32px;
  background: #10100F;
  color: #F5F5F4;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.narr-payoff .u-label { color: var(--accent-text); margin-bottom: 16px; }
.narr-payoff-body {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 24px;
  color: rgba(245,245,244,0.9);
  text-wrap: balance;
}
.narr-payoff-body em.serif {
  font-family: 'Source Serif 4', Georgia, serif; color: var(--accent-text);
}
.narr-payoff-hook {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--accent-text);
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* ================================================================
   MASCOT — "Uu" (companion character)
   6 named expressions. Always filled. Never line art.
================================================================ */
.mascot-hero {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 48px;
  align-items: start;
  margin-top: 16px;
}
.mascot-hero-copy h2 {
  font-size: clamp(48px, 5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.mascot-hero-copy .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 44ch;
  margin: 0 0 24px;
}
.mascot-hero-copy .lede em {
  font-family: var(--font-serif); color: var(--fg);
}
.mascot-hero-pedestal {
  background: var(--accent-fill);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.mascot-hero-pedestal img {
  width: 100%;
  height: auto;
  display: block;
}

.mascot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.mascot-tile {
  background: var(--bg-elev-1);
  border-radius: var(--radius-lg);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
[data-theme="light"] .mascot-tile {
  background: var(--neutral-100);
}
.mascot-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-md);
}
.mascot-tile .name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin: 0;
}
.mascot-tile .caption {
  font-size: 12px;
  line-height: 1.4;
  color: var(--fg-muted);
  margin: 0;
}

.mascot-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.mascot-rule .u-label {
  color: var(--accent-text);
  margin-bottom: 10px;
}
.mascot-rule p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}

@media (max-width: 1100px) {
  .mascot-hero { grid-template-columns: 1fr; }
  .mascot-grid { grid-template-columns: repeat(3, 1fr); }
  .mascot-rules { grid-template-columns: 1fr; }
}

/* ================================================================
   LOGO — Bolt-style one-idea-per-spread
================================================================ */
.logo-hero-bolt {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}
.logo-hero-bolt .copy h2 {
  font-size: clamp(44px, 4.5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.logo-hero-bolt .copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 44ch;
  margin: 0 0 16px;
}
.logo-hero-bolt .copy p em {
  font-family: var(--font-serif); color: var(--fg);
}
.logo-hero-bolt .stage {
  background: var(--accent-fill);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}
.logo-hero-bolt .stage img {
  max-width: 70%;
  max-height: 60%;
  height: auto;
  width: auto;
  display: block;
}

.logo-color-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.logo-color-tile {
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.logo-color-tile img {
  max-width: 55%;
  max-height: 55%;
  height: auto;
  width: auto;
  display: block;
}
.logo-color-tile .tile-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 12px;
  color: var(--fg-subtle);
}
.logo-color-tile.lime { background: var(--lime-200); }
.logo-color-tile.ink  { background: var(--neutral-950); }
.logo-color-tile.paper { background: var(--neutral-100); }
.logo-color-tile.photo {
  background: center/cover no-repeat;
  background-image: linear-gradient(135deg, rgba(16,16,15,0.35), rgba(16,16,15,0.55)),
                    url("assets/polaroids/Photo-3.png");
}

.logo-rules-2col {
  display: grid;
  grid-template-columns: 0.8fr 2.4fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}
.logo-rules-2col .rules h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--fg);
}
.logo-rules-2col .rules p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0 0 24px;
  max-width: 38ch;
}
.logo-rules-2col .diagram {
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 360px;
}
[data-theme="light"] .logo-rules-2col .diagram { background: var(--neutral-200); }
.logo-rules-2col .diagram img {
  max-width: 60%;
  height: auto;
  display: block;
}
.logo-rules-2col .diagram .gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--alpha-b-10) 1px, transparent 1px),
    linear-gradient(to bottom, var(--alpha-b-10) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.logo-usage-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.logo-usage-split .panel {
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.logo-usage-split .panel.primary { background: var(--neutral-950); color: var(--neutral-100); }
.logo-usage-split .panel.secondary { background: var(--neutral-100); color: var(--neutral-950); }
[data-theme="light"] .logo-usage-split .panel.secondary { background: var(--neutral-200); }
.logo-usage-split .panel .tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
}
.logo-usage-split .panel .headline {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 16px 0;
}
.logo-usage-split .panel .logo-placement {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-top: auto;
}
.logo-usage-split .panel.primary .logo-placement img { filter: invert(1) brightness(2); max-width: 40%; }
.logo-usage-split .panel.secondary .logo-placement img { max-width: 28%; }

.logo-donts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.logo-dont {
  background: var(--neutral-100);
  border-radius: var(--radius-md);
  padding: 20px 20px 24px;
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
[data-theme="light"] .logo-dont { background: var(--neutral-200); }
.logo-dont .label {
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 11px;
  color: var(--fg-subtle);
}
.logo-dont img {
  max-width: 60%;
  max-height: 60%;
  height: auto;
  width: auto;
  display: block;
}
.logo-dont::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    transparent calc(50% - 1px),
    #e5484d calc(50% - 1px),
    #e5484d calc(50% + 1px),
    transparent calc(50% + 1px)
  );
  pointer-events: none;
  opacity: 0.85;
}
.logo-donts-hero {
  background: var(--neutral-950);
  color: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  margin-top: 32px;
}
.logo-donts-hero h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
  max-width: 28ch;
}
.logo-donts-hero h2 + h2 { margin-top: 16px; }

@media (max-width: 1100px) {
  .logo-hero-bolt { grid-template-columns: 1fr; }
  .logo-rules-2col { grid-template-columns: 1fr; }
  .logo-usage-split { grid-template-columns: 1fr; }
  .logo-donts { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   COLOR — Bolt-style, multi-spread
================================================================ */
.color-hero-copy {
  max-width: 72ch;
  margin-top: 24px;
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-muted);
}
.color-hero-copy strong { color: var(--fg); font-weight: 600; }
.color-hero-copy em {
  font-family: var(--font-serif); color: var(--fg);
}

/* Primary palette — 4-up tall swatches (Bolt page 12 riff) */
.color-primary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.color-swatch-tall {
  aspect-ratio: 3 / 5;
  border-radius: var(--radius-lg);
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}
.color-swatch-tall .sw-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.color-swatch-tall .sw-meta {
  font-size: 12px;
  line-height: 1.6;
  font-family: var(--font-mono);
  opacity: 0.72;
}
.color-swatch-tall .sw-meta div { white-space: nowrap; }
.color-swatch-tall.dark  { background: var(--neutral-950); color: var(--neutral-100); }
.color-swatch-tall.paper { background: var(--neutral-50);  color: var(--neutral-950); box-shadow: inset 0 0 0 1px var(--alpha-b-10); }
/* Uare Green primary swatch — ALWAYS pale lime (#dff693), in both light and dark modes.
   This is the single documented exception to the rule that pale lime never appears in light mode.
   The swatch documents the brand color itself — it must look like the brand color regardless of theme. */
.color-swatch-tall.lime  { background: #dff693; color: var(--neutral-950); }
[data-theme="dark"] .color-swatch-tall.lime { background: #dff693; color: var(--neutral-950); }
.color-swatch-tall.lime .sw-name,
.color-swatch-tall.lime .sw-meta,
.color-swatch-tall.lime .sw-meta div,
[data-theme="dark"] .color-swatch-tall.lime .sw-name,
[data-theme="dark"] .color-swatch-tall.lime .sw-meta,
[data-theme="dark"] .color-swatch-tall.lime .sw-meta div { color: var(--neutral-950); }
.color-swatch-tall.lime-mid { background: var(--lime-400); color: var(--neutral-950); }

/* Secondary "sparks" — 7-up horizontal */
.color-sparks {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.spark {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  padding: 18px 14px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--neutral-950);
}
.spark .sp-name {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.spark .sp-hex {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.7;
}

/* Scales — 11-step ramps */
.color-scale {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
  margin-top: 16px;
  margin-bottom: 32px;
}
.scale-step {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
}
.scale-step .sn { font-weight: 600; opacity: 0.85; }
.scale-step .sh { opacity: 0.6; white-space: nowrap; font-size: 9px; }

/* Lime temperament split (light vs dark story) */
.lime-temperament {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.temp-card {
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.temp-card.day {
  background: var(--neutral-50);
  color: var(--neutral-950);
}
.temp-card.night {
  background: var(--neutral-950);
  color: var(--neutral-100);
}
.temp-card .temp-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.55;
}
.temp-card .temp-headline {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 12px 0 28px;
  max-width: 20ch;
}
.temp-card .temp-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
}
.temp-card.day .temp-pill {
  background: var(--alpha-g-25);
  color: var(--lime-700);
}
.temp-card.night .temp-pill {
  background: var(--lime-200);
  color: var(--neutral-950);
}
.temp-card .temp-body {
  font-size: 14px;
  line-height: 1.6;
  max-width: 36ch;
  opacity: 0.72;
}

/* Pairings — 8-combo grid */
.pair-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.pairings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.pair-tile {
  aspect-ratio: 5 / 3;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Opacity system — 3 ramps */
.opacity-block {
  margin-top: 32px;
}
.opacity-block + .opacity-block { margin-top: 24px; }
.opacity-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}
.opacity-label em {
  font-weight: 400;
  color: var(--fg-muted);
  font-style: normal;
  margin-left: 8px;
}
.opacity-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.opacity-step {
  aspect-ratio: 2 / 1;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: flex-end;
  font-weight: 600;
}
.opacity-row.on-paper .opacity-step { background: var(--neutral-50); color: var(--neutral-950); }
.opacity-row.on-paper .opacity-step .fill {
  display: block; width: 100%; height: 100%; background: var(--neutral-950); border-radius: var(--radius-xs);
}
.opacity-row.on-ink .opacity-step { background: var(--neutral-950); color: var(--neutral-50); }
.opacity-row.on-ink .opacity-step .fill {
  display: block; width: 100%; height: 100%; background: #ffffff; border-radius: var(--radius-xs);
}

.opacity-rules {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.opacity-rules .orule .u-label { color: var(--accent-text); margin-bottom: 8px; }
.opacity-rules .orule p { font-size: 13px; line-height: 1.55; color: var(--fg-muted); margin: 0; }
.opacity-rules code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--alpha-b-10);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--fg);
}
[data-theme="dark"] .opacity-rules code,
.opacity-rules code { background: var(--alpha-w-10); }
[data-theme="light"] .opacity-rules code { background: var(--alpha-b-10); }

@media (max-width: 1100px) {
  .color-primary { grid-template-columns: repeat(2, 1fr); }
  .color-sparks { grid-template-columns: repeat(4, 1fr); }
  .color-scale { grid-template-columns: repeat(6, 1fr); }
  .lime-temperament { grid-template-columns: 1fr; }
  .pairings { grid-template-columns: repeat(2, 1fr); }
  .opacity-row { grid-template-columns: repeat(4, 1fr); }
  .opacity-rules { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   TYPOGRAPHY — Bolt-style, multi-spread
================================================================ */
.type-hero-specimen {
  background: var(--neutral-950);
  color: var(--neutral-100);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  margin-top: 32px;
}
.type-hero-specimen .tag {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lime-200);   /* always-dark panel — force pale lime */
  margin-bottom: 24px;
}
.type-hero-specimen .char-sample {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(100px, 14vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
}
.type-hero-specimen.display .char-sample { font-family: var(--font-display); }
.type-hero-specimen.serif .char-sample { font-family: var(--font-serif); font-weight: 500; }
.type-hero-specimen.hand .char-sample { font-family: var(--font-hand); font-weight: 600; font-size: clamp(120px, 16vw, 280px); }

.type-hero-phrase {
  background: var(--neutral-950);
  color: var(--neutral-100);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-top: 16px;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.type-hero-phrase.serif {
  font-family: var(--font-serif); font-weight: 500;
}

.type-weights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.type-weight-block {
  background: var(--neutral-950);
  color: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: 32px 32px 36px;
}
.type-weight-block .wlabel { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lime-200); margin-bottom: 16px; }
.type-weight-block .wset {
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
  word-break: break-word;
}
.type-weight-block.medium .wset { font-weight: 500; }
.type-weight-block.bold .wset { font-weight: 700; }

.type-copy-2col {
  display: grid;
  grid-template-columns: 0.9fr 2.4fr;
  gap: 48px;
  align-items: start;
  margin-top: 16px;
}
.type-copy-2col .copy p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0 0 16px;
  max-width: 36ch;
}
.type-copy-2col .copy p strong { color: var(--fg); }

/* Type hierarchy — all four tiers on one page */
.type-hierarchy {
  background: var(--neutral-50);
  color: var(--neutral-950);
  border-radius: var(--radius-xl);
  padding: 48px 56px 56px;
  margin-top: 24px;
}
[data-theme="light"] .type-hierarchy { background: var(--neutral-100); }
.type-hierarchy .th-row { margin-bottom: 32px; }
.type-hierarchy .th-row:last-child { margin-bottom: 0; }
.type-hierarchy .th-tag {
  font-size: 11px;
  color: var(--neutral-500);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
.type-hierarchy .th-tag strong { color: var(--neutral-950); font-family: var(--font-sans); font-size: 12px; }
.type-hierarchy .th-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--neutral-950);
  margin: 0;
}
.type-hierarchy .th-subline {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.25;
  color: var(--neutral-950);
  max-width: 34ch;
  margin: 0;
}
.type-hierarchy .th-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--neutral-950);
  max-width: 64ch;
  margin: 0;
}
.type-hierarchy .th-annot {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--neutral-700);
  margin: 0;
}
.type-hierarchy .th-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--neutral-950);
  color: var(--neutral-50);
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

/* Type color use cases */
.type-color-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.tc-tile {
  aspect-ratio: 5 / 2;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

@media (max-width: 1100px) {
  .type-weights { grid-template-columns: 1fr; }
  .type-copy-2col { grid-template-columns: 1fr; }
  .type-color-cases { grid-template-columns: 1fr; }
}

/* ================================================================
   SHAPE LIBRARY — 30+ named forms
================================================================ */
.shape-library {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.shape-tile {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--alpha-b-10);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px 22px;
  position: relative;
  overflow: hidden;
  gap: 8px;
}
[data-theme="dark"] .shape-tile {
  background: var(--neutral-900);
  border-color: var(--alpha-w-10);
}
.shape-tile svg {
  width: 62%;
  height: 62%;
  display: block;
  flex-shrink: 0;
  /* Theme-aware fill: dark olive in light mode, pale lime in dark mode.
     --accent-fill resolves to lime-950 (#272d1b) at :root and lime-200 (#dff693) under [data-theme="dark"]. */
  color: var(--accent-fill);
  fill: currentColor;
}
.shape-tile svg path,
.shape-tile svg circle,
.shape-tile svg rect,
.shape-tile svg ellipse,
.shape-tile svg polygon {
  fill: currentColor;
}
.shape-tile .sname {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  font-size: 10px;
  color: var(--fg-subtle);
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shape-usage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.shape-usage .panel {
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.shape-usage .panel.marketing {
  background: var(--lime-200);
  color: var(--neutral-950);
  position: relative;
  overflow: hidden;
}
.shape-usage .panel.marketing .big-shape {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 280px;
  height: 280px;
  color: var(--neutral-950);
  opacity: 0.15;
}
.shape-usage .panel.marketing .big-shape svg { width: 100%; height: 100%; }
.shape-usage .panel.product {
  background: var(--neutral-950);
  color: var(--neutral-100);
  position: relative;
  overflow: hidden;
}
.shape-usage .panel.product .mini-cluster {
  position: absolute;
  inset: 40px 40px auto auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 180px;
}
.shape-usage .panel.product .mini-cluster > svg {
  width: 100%;
  aspect-ratio: 1;
  color: var(--lime-200);
}
.shape-usage .panel .panel-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.55;
}
.shape-usage .panel .panel-title {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 16px 0 16px;
  max-width: 18ch;
}
.shape-usage .panel .panel-body {
  font-size: 14px;
  line-height: 1.6;
  max-width: 32ch;
  opacity: 0.78;
}

@media (max-width: 1100px) {
  .shape-library { grid-template-columns: repeat(5, 1fr); }
  .shape-usage { grid-template-columns: 1fr; }
}

/* ================================================================
   HYBRID LOGO — part dark, part light (ambiguous-bg treatment)
================================================================ */
.logo-color-tile.hybrid {
  padding: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.logo-color-tile.hybrid .half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.logo-color-tile.hybrid .half.dark  { background: var(--neutral-950); }
.logo-color-tile.hybrid .half.light { background: var(--neutral-100); }
.logo-color-tile.hybrid .hybrid-stack {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.logo-color-tile.hybrid .hybrid-stack img {
  position: absolute;
  max-width: 55%;
  height: auto;
}
.logo-color-tile.hybrid .hybrid-stack .h-white { clip-path: inset(0 50% 0 0); }
.logo-color-tile.hybrid .hybrid-stack .h-black { clip-path: inset(0 0 0 50%); }
.logo-color-tile.hybrid .tile-num {
  z-index: 2;
  color: var(--alpha-w-60);
}

/* Clearspace diagram using hybrid logo (for merged 07.1) */
.logo-rules-2col .diagram.hybrid {
  background: linear-gradient(to right, var(--neutral-950) 50%, var(--neutral-100) 50%);
  position: relative;
}
[data-theme="light"] .logo-rules-2col .diagram.hybrid,
.logo-rules-2col .diagram.hybrid {
  background: linear-gradient(to right, var(--neutral-950) 50%, var(--neutral-100) 50%);
}
.logo-rules-2col .diagram.hybrid .hybrid-stack {
  position: relative;
  z-index: 2;
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-rules-2col .diagram.hybrid .hybrid-stack img {
  position: absolute;
  width: 100%;
  height: auto;
}
.logo-rules-2col .diagram.hybrid .hybrid-stack .h-white { clip-path: inset(0 50% 0 0); }
.logo-rules-2col .diagram.hybrid .hybrid-stack .h-black { clip-path: inset(0 0 0 50%); }
.logo-rules-2col .diagram.hybrid .gridlines {
  border-radius: var(--radius-lg);
  mix-blend-mode: difference;
  opacity: 0.35;
}

/* ================================================================
   MASCOT ROW — Default + 4 variants in a tight 5-up strip
================================================================ */
.mascot-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 24px;
}
.mascot-row .mascot-tile {
  padding: 10px 10px 12px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  margin: 0;
}
.mascot-row .mascot-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.mascot-row .mascot-tile .name {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: var(--fg);
}
.mascot-row .mascot-tile .role {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0;
}
.mascot-row .mascot-tile.primary {
  background: var(--accent-fill);
  color: var(--neutral-950);
}
.mascot-row .mascot-tile.primary .name { color: var(--neutral-950); font-size: 15px; }
.mascot-row .mascot-tile.primary .role { color: var(--lime-800); }

@media (max-width: 1100px) {
  .mascot-row { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   SCALE STACK — 9-ramp display (slide 09)
================================================================ */
.scale-stack { display: flex; flex-direction: column; gap: 14px; }
.scale-row-wrap { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: start; }
.scale-row-wrap .scale-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg);
  padding-top: 6px;
}
.scale-row-wrap .color-scale {
  margin: 0;
  grid-template-columns: repeat(11, 1fr);
  gap: 3px;
}
.scale-row-wrap .scale-step {
  aspect-ratio: 5 / 4;
  padding: 6px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 9px;
}
.scale-row-wrap .scale-step .sn { font-weight: 600; font-size: 10px; }
.scale-row-wrap .scale-step .sh { font-size: 8px; opacity: 0.55; white-space: nowrap; }

@media (max-width: 1100px) {
  .scale-row-wrap { grid-template-columns: 1fr; }
}

/* ================================================================
   LEXICON GRID — comprehensive single-slide reference (slide 05)
================================================================ */
.lex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 28px;
  margin-top: 8px;
}
.lex-cat { display: flex; flex-direction: column; gap: 8px; }
.lex-cat-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}
.lex-item {
  display: grid;
  grid-template-rows: auto auto;
  gap: 2px;
  font-size: 13px;
  line-height: 1.4;
}
.lex-item strong { color: var(--fg); font-weight: 600; font-size: 13px; }
.lex-item span { color: var(--fg-muted); font-size: 12px; }
.lex-bans { display: flex; flex-wrap: wrap; gap: 5px; }

@media (max-width: 1100px) {
  .lex-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Source Serif 4 is NON-ITALIC — override <em class="serif"> default */
.serif, em.serif, .u-serif { font-style: normal !important; }

/* ================================================================
   CATEGORY (Human-Based AI) — slide 01
================================================================ */
.cat-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 0 0 36px;
}
.cat-lede em { font-family: var(--font-serif); color: var(--fg); }

.cat-test {
  background: var(--alpha-g-15);
  border: 1px solid var(--alpha-g-30);
  border-left: 4px solid var(--accent-text);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  margin: 0 0 36px;
}
.cat-test .u-label {
  color: var(--accent-text);
  margin-bottom: 10px;
}
.cat-test .big-q {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0 0 12px;
  max-width: none;
}
.cat-test .small {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
  max-width: 64ch;
}

.cat-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 36px;
}
.cat-principle {
  background: var(--bg-elev-2);
  border-radius: var(--radius-md);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cat-principle .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-text);
}
.cat-principle strong {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.cat-principle p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0;
}

.cat-facets {
  margin: 0 0 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}
.cat-facets .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 12px 0 14px;
}
.cat-facets .facet {
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-facets .facet strong {
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.cat-facets .facet span {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.4;
}
.cat-facets .small {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 0;
}
.cat-facets .small strong { color: var(--fg); }

.cat-excluded {
  margin: 0 0 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}
.cat-excluded ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cat-excluded li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-muted);
  padding-left: 22px;
  position: relative;
}
.cat-excluded li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange-500, #ff6b45);
  font-size: 13px;
  font-weight: 600;
}
.cat-excluded li strong { color: var(--fg); font-weight: 600; }

.cat-position {
  background: var(--accent-fill);
  color: var(--accent-fg);  /* lime-200 light, neutral-950 dark — high contrast both modes */
  border-radius: var(--radius-lg);
  padding: 36px 40px 38px;
  margin-top: 12px;
}
.cat-position .hero {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 14px;
}
.cat-position .strategic {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 72ch;
  opacity: 0.9;
}

@media (max-width: 1100px) {
  .cat-principles { grid-template-columns: repeat(2, 1fr); }
  .cat-facets .grid { grid-template-columns: repeat(2, 1fr); }
}

/* HLM solo (one card, centered, max-width readable) */
.lm-solo {
  display: flex;
  justify-content: center;
}
.lm-solo .lm-card {
  max-width: 720px;
  width: 100%;
}
