* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cp-bg);
  color: var(--cp-text);
  font-family: "Segoe UI", Aptos, Calibri, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid var(--cp-link);
  outline-offset: 3px;
}
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.skip-link {
  position: fixed;
  top: -100px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--cp-accent);
  color: var(--cp-accent-fg);
  border-radius: 0.625rem;
}
.skip-link:focus { top: 8px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--cp-border);
  background: var(--cp-overlay);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1280px, calc(100% - 40px));
  height: 72px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cp-text);
  text-decoration: none;
  line-height: 1.05;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cp-border-strong);
  border-radius: 50%;
}
.brand-mark svg { width: 24px; stroke: var(--cp-accent); }
.brand strong { display: block; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.brand small { color: var(--cp-text-muted); font-family: Georgia, "Times New Roman", serif; font-size: 13px; font-style: italic; }
.main-nav { display: flex; align-items: stretch; height: 100%; gap: 8px; }
.nav-button {
  position: relative;
  border: 0;
  padding: 0 16px;
  background: var(--cp-transparent);
  color: var(--cp-text-muted);
  cursor: pointer;
}
.nav-button::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 3px;
  background: var(--cp-accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav-button:hover, .nav-button.is-active { color: var(--cp-text); }
.nav-button.is-active::after { transform: scaleX(1); }
.icon-button {
  justify-self: end;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cp-border);
  border-radius: 50%;
  background: var(--cp-surface);
  cursor: pointer;
}
.icon-button:hover { border-color: var(--cp-accent); color: var(--cp-accent); }
.icon-button svg { width: 20px; }
main { overflow: hidden; }
.gateway {
  min-height: calc(100vh - 72px);
  padding-top: 52px;
}
.gateway-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.gateway-heading p {
  margin-bottom: 8px;
  color: var(--cp-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.gateway-heading h1 {
  margin-bottom: 12px;
  color: var(--cp-text);
  font-size: clamp(48px, 6vw, 82px);
  letter-spacing: -.035em;
}
.gateway-heading span { color: var(--cp-text-muted); font-size: 18px; }
.gateway-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.gateway-card {
  min-height: 480px;
  display: grid;
  grid-template-rows: 220px 1fr;
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--cp-surface);
  box-shadow: 0 0 2px var(--cp-border), 0 1px 2px var(--cp-border);
}
.gateway-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--cp-border);
  background: var(--cp-bg-elevated);
}
.gateway-art::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--cp-border);
  pointer-events: none;
}
.gateway-art svg { width: min(90%, 520px); }
.gateway-art .gateway-rule {
  fill: none;
  stroke: var(--cp-accent);
  stroke-dasharray: 8 9;
  stroke-width: 2.5;
  animation: flowing 12s linear infinite;
}
.gateway-art .gateway-rule.secondary { stroke: var(--cp-link); animation-duration: 16s; }
.gateway-art circle { fill: var(--cp-surface); stroke: var(--cp-accent); stroke-width: 3; }
.gateway-art circle:nth-of-type(n+3) { stroke: var(--cp-link); }
.gateway-art text {
  fill: var(--cp-text-muted);
  stroke: none;
  font: 700 10px "Segoe UI", Aptos, Calibri, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: .12em;
}
.gateway-copy { display: flex; flex-direction: column; padding: 30px; }
.gateway-copy > span {
  color: var(--cp-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gateway-copy h2 {
  margin: 9px 0 12px;
  font: 500 clamp(30px, 3vw, 42px)/1.05 Georgia, "Times New Roman", serif;
}
.gateway-copy p { max-width: 55ch; margin-bottom: 24px; color: var(--cp-text-muted); }
.gateway-button {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  border: 1px solid var(--cp-text);
  border-radius: 0.625rem;
  padding: 12px 16px;
  background: var(--cp-text);
  color: var(--cp-bg);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.gateway-button:hover {
  border-color: var(--cp-accent);
  background: var(--cp-accent);
  color: var(--cp-accent-fg);
  transform: translateY(-2px);
}
.gateway-button svg { width: 20px; flex: 0 0 auto; }
.chiasmus-preview { gap: 6px; padding: 34px 52px; }
.chiasmus-preview div {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr 32px 1fr 28px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--cp-border);
  border-radius: 0.625rem;
  padding: 6px 8px;
  background: var(--cp-surface);
  font-size: 10px;
}
.chiasmus-preview div:nth-child(2) { width: 84%; }
.chiasmus-preview div:nth-child(3) { width: 68%; }
.chiasmus-preview b {
  color: var(--cp-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  text-align: center;
}
.chiasmus-preview span:last-of-type { text-align: right; }
.chiasmus-preview i { height: 1px; background: var(--cp-accent); }
.chiasmus-preview > strong {
  border: 1px solid var(--cp-accent);
  border-radius: 0.625rem;
  padding: 7px 12px;
  background: var(--cp-accent-soft);
  color: var(--cp-accent);
  font: 500 12px Georgia, "Times New Roman", serif;
}
.gateway-note {
  margin: 24px auto 0;
  color: var(--cp-text-muted);
  font-size: 13px;
  text-align: center;
}
.gateway-note strong { color: var(--cp-text); }
.hero {
  width: min(1280px, calc(100% - 40px));
  min-height: 610px;
  margin: auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 72px;
  padding: 72px 0 56px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--cp-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 28px;
  height: 2px;
  display: inline-block;
  margin: 0 8px 3px 0;
  background: var(--cp-accent);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.8vw, 82px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .96;
}
h1 em { color: var(--cp-accent); font-weight: 400; }
.hero-lede {
  max-width: 580px;
  color: var(--cp-text-muted);
  font-size: 19px;
}
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--cp-accent);
  border-radius: 0.625rem;
  padding: 12px 18px;
  background: var(--cp-accent);
  color: var(--cp-accent-fg);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.primary-button:hover { background: var(--cp-accent-hover); transform: translateY(-2px); }
.primary-button svg { width: 20px; }
.text-button {
  border: 0;
  border-bottom: 1px solid var(--cp-border-strong);
  padding: 6px 0;
  background: var(--cp-transparent);
  cursor: pointer;
}
.text-button:hover { color: var(--cp-accent); border-color: var(--cp-accent); }
.hero-visual {
  position: relative;
  min-height: 470px;
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, var(--cp-transparent), var(--cp-transparent) 31px, var(--cp-border) 32px),
    repeating-linear-gradient(90deg, var(--cp-transparent), var(--cp-transparent) 31px, var(--cp-border) 32px),
    var(--cp-bg-elevated);
  box-shadow: 0 0 2px var(--cp-border), 0 1px 2px var(--cp-border);
}
.hero-visual::before, .hero-visual::after {
  content: "";
  position: absolute;
  background: var(--cp-accent-soft);
  border-radius: 50%;
  filter: blur(2px);
}
.hero-visual::before { width: 220px; height: 220px; top: -80px; right: -40px; }
.hero-visual::after { width: 180px; height: 180px; bottom: -80px; left: -30px; }
.hero-lines { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); overflow: visible; }
.hero-thread { stroke: var(--cp-accent); stroke-width: 2; stroke-dasharray: 7 8; opacity: .55; animation: flowing 10s linear infinite; }
.thread-two { stroke: var(--cp-link); animation-duration: 13s; }
.thread-three { stroke: var(--cp-success); animation-duration: 16s; }
.hero-node circle:first-child { fill: var(--cp-bg-elevated); stroke: var(--cp-accent); stroke-width: 2; }
.hero-node circle:last-child { fill: var(--cp-accent); stroke: none; }
.node-c circle:first-child, .node-d circle:first-child { stroke: var(--cp-link); }
.node-c circle:last-child, .node-d circle:last-child { fill: var(--cp-link); }
.node-e circle:first-child, .node-f circle:first-child { stroke: var(--cp-success); }
.node-e circle:last-child, .node-f circle:last-child { fill: var(--cp-success); }
.hero-label {
  position: absolute;
  min-width: 140px;
  border: 1px solid var(--cp-border);
  border-top: 2px solid var(--cp-accent);
  border-radius: 0.625rem;
  padding: 9px 12px;
  background: var(--cp-panel-strong);
  box-shadow: 0 0 2px var(--cp-border), 0 1px 2px var(--cp-border);
}
.hero-label small, .hero-label strong { display: block; }
.hero-label small { color: var(--cp-text-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.hero-label strong { font-family: Consolas, "Courier New", Courier, monospace; font-size: 12px; }
.label-a { top: 42px; left: 28px; }
.label-b { right: 24px; bottom: 82px; }
.label-c { top: 190px; left: 30px; border-left-color: var(--cp-link); }
.label-d { top: 100px; right: 22px; border-left-color: var(--cp-link); }
.hero-seal {
  position: absolute;
  right: 40px;
  bottom: 34px;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--cp-accent);
  border-radius: 50%;
  background: var(--cp-panel-strong);
  color: var(--cp-accent);
  transform: rotate(-7deg);
}
.hero-seal::before { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--cp-accent); border-radius: 50%; }
.hero-seal span { font-family: Georgia, "Times New Roman", serif; font-size: 35px; }
.hero-seal small { font-size: 9px; font-weight: 800; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
.dictation-context {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--cp-surface);
  box-shadow: 0 0 2px var(--cp-border), 0 1px 2px var(--cp-border);
}
.dictation-story, .composition-comparison { padding: 48px; }
.dictation-story {
  border-right: 1px solid var(--cp-border);
  background: var(--cp-bg-elevated);
}
.dictation-story h2 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
}
.dictation-story h2 em { color: var(--cp-accent); font-weight: 400; }
.dictation-lede { color: var(--cp-text-muted); font-size: 17px; }
.dictation-lede strong { color: var(--cp-text); }
.witness-quote {
  position: relative;
  margin: 32px 0 20px;
  border-top: 1px solid var(--cp-accent);
  padding: 26px 0 4px;
}
.witness-quote::before {
  content: "“";
  position: absolute;
  top: -30px;
  left: 0;
  color: var(--cp-accent-soft);
  font: 96px/1 Georgia, "Times New Roman", serif;
  pointer-events: none;
}
.witness-quote p {
  position: relative;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.55;
}
.witness-quote cite { color: var(--cp-text-muted); font-size: 12px; font-style: normal; }
.source-note, .comparison-caveat { color: var(--cp-text-muted); font-size: 12px; }
.context-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.context-sources a {
  border: 1px solid var(--cp-border);
  border-radius: 0.625rem;
  padding: 7px 10px;
  background: var(--cp-surface);
  color: var(--cp-link);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.context-sources a:hover { border-color: var(--cp-link); }
.comparison-heading { border-bottom: 1px solid var(--cp-border); padding-bottom: 24px; }
.comparison-kicker {
  color: var(--cp-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.comparison-heading h3 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}
.comparison-heading p { margin-bottom: 0; color: var(--cp-text-muted); }
.comparison-list article {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--cp-border);
  padding: 24px 0;
}
.comparison-list article:last-child { border-bottom: 0; }
.comparison-time {
  color: var(--cp-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.2;
}
.comparison-list h4 { margin: 0 0 5px; font-size: 15px; }
.comparison-list p { margin-bottom: 7px; color: var(--cp-text-muted); font-size: 13px; }
.comparison-list a { color: var(--cp-link); font-size: 12px; }
.comparison-focus .comparison-time { color: var(--cp-accent); }
.comparison-focus { background: var(--cp-accent-soft); box-shadow: 16px 0 0 var(--cp-accent-soft), -16px 0 0 var(--cp-accent-soft); }
.comparison-caveat { margin: 4px 0 0; }
.stat-strip {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--cp-border);
}
.stat-strip div { padding: 22px 30px; border-right: 1px solid var(--cp-border); }
.stat-strip div:last-child { border-right: 0; }
.stat-strip strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.stat-strip span { color: var(--cp-text-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.view-section {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 100px;
  display: none;
  scroll-margin-top: 78px;
}
.view-section.is-active { display: block; animation: fade-up .35s ease both; }
.view-section.gateway { padding-top: 52px; }
#threads .dictation-context { width: 100%; margin-top: 28px; }
.section-heading {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 40px;
}
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
}
.section-heading > p { max-width: 550px; margin: 0; color: var(--cp-text-muted); }
.thread-workspace {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 710px;
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--cp-surface);
  box-shadow: 0 0 2px var(--cp-border), 0 1px 2px var(--cp-border);
}
.thread-sidebar { border-right: 1px solid var(--cp-border); background: var(--cp-bg-elevated); }
.filter-row { display: flex; gap: 6px; padding: 16px; overflow-x: auto; border-bottom: 1px solid var(--cp-border); }
.filter-button {
  flex: 0 0 auto;
  border: 1px solid var(--cp-border);
  border-radius: 0.625rem;
  padding: 6px 10px;
  background: var(--cp-surface);
  color: var(--cp-text-muted);
  font-size: 11px;
  cursor: pointer;
}
.filter-button:hover, .filter-button.is-active { border-color: var(--cp-accent); background: var(--cp-accent-soft); color: var(--cp-accent); }
.thread-list { max-height: 660px; overflow-y: auto; }
.thread-item {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  gap: 10px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--cp-border);
  padding: 17px 16px;
  background: var(--cp-transparent);
  text-align: left;
  cursor: pointer;
}
.thread-item:hover { background: var(--cp-surface-soft); }
.thread-item.is-active { background: var(--cp-accent-soft); box-shadow: inset 3px 0 var(--cp-accent); }
.thread-number { color: var(--cp-text-soft); font: 11px Consolas, "Courier New", Courier, monospace; }
.thread-item small, .thread-item strong, .thread-item em { display: block; }
.thread-item small { color: var(--cp-accent); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.thread-item strong { margin: 2px 0; font-size: 13px; }
.thread-item em { color: var(--cp-text-muted); font: 10px Consolas, "Courier New", Courier, monospace; font-style: normal; }
.thread-item svg { width: 16px; color: var(--cp-text-soft); }
.thread-stage { min-width: 0; padding: clamp(24px, 4vw, 54px); background: var(--cp-surface); }
.stage-topline { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.category-pill { color: var(--cp-accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.distance-label { color: var(--cp-text-muted); font: 10px Consolas, "Courier New", Courier, monospace; }
.thread-stage h3 { margin-bottom: 8px; font: 500 clamp(28px, 3vw, 40px)/1.1 Georgia, "Times New Roman", serif; }
.thread-summary { max-width: 720px; color: var(--cp-text-muted); }
.connection-canvas { position: relative; display: grid; grid-template-columns: 1fr 100px 1fr; align-items: stretch; gap: 12px; margin: 40px 0 28px; }
.connection-svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#connection-shadow { fill: none; stroke: var(--cp-bg-elevated); stroke-width: 8; }
#connection-path { fill: none; stroke: var(--cp-accent); stroke-width: 3; }
#connection-path.is-drawing { stroke-dasharray: 9 7; animation: draw-path 1.35s ease-out both, flowing 12s linear 1.35s infinite; }
#arrowhead path { fill: var(--cp-accent); stroke: var(--cp-accent); }
.verse-card {
  position: relative;
  z-index: 1;
  min-height: 330px;
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  padding: 24px;
  background: var(--cp-bg-elevated);
}
.verse-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.endpoint-dot {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 4px solid var(--cp-surface);
  border-radius: 50%;
  background: var(--cp-accent);
  box-shadow: 0 0 0 2px var(--cp-accent);
}
.verse-card-head small { display: block; color: var(--cp-text-muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.reference-link {
  border: 0;
  border-bottom: 1px solid var(--cp-border-strong);
  padding: 0;
  background: var(--cp-transparent);
  color: var(--cp-link);
  font-family: Consolas, "Courier New", Courier, monospace;
  font-weight: 700;
  cursor: pointer;
}
.reference-link:hover { color: var(--cp-accent); border-color: var(--cp-accent); }
.verse-card blockquote {
  margin: 0;
  color: var(--cp-text);
  font: 18px/1.72 Georgia, "Times New Roman", serif;
}
.verse-card blockquote::before { content: "“"; float: left; margin: -18px 8px -20px -4px; color: var(--cp-accent-soft); font-size: 78px; line-height: 1; }
.chapter-distance { align-self: center; position: relative; z-index: 3; text-align: center; }
.distance-rule { width: 100%; height: 1px; display: block; background: var(--cp-border-strong); }
.chapter-distance span:last-child {
  display: inline-block;
  max-width: 96px;
  margin-top: 10px;
  color: var(--cp-text-muted);
  font: 9px/1.35 Consolas, "Courier New", Courier, monospace;
  text-transform: uppercase;
}
.thread-notes { border-top: 2px solid var(--cp-accent); padding: 12px 18px; background: var(--cp-accent-soft); }
.thread-notes strong { display: block; margin-bottom: 5px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.thread-notes p { margin: 0; color: var(--cp-text-muted); font-size: 14px; }
.chiasm-selector {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  overflow-x: auto;
}
.chiasm-select-button {
  min-height: 104px;
  border: 1px solid var(--cp-border);
  border-radius: 0.625rem;
  padding: 12px;
  background: var(--cp-surface);
  text-align: left;
  cursor: pointer;
}
.chiasm-select-button:hover, .chiasm-select-button.is-active {
  border-color: var(--cp-accent);
  background: var(--cp-accent-soft);
}
.chiasm-select-button small, .chiasm-select-button strong, .chiasm-select-button span { display: block; }
.chiasm-select-button small { color: var(--cp-accent); font: 9px Consolas, "Courier New", Courier, monospace; }
.chiasm-select-button strong { margin: 5px 0; font: 500 15px/1.2 Georgia, "Times New Roman", serif; }
.chiasm-select-button span { color: var(--cp-text-muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.chiasm-layout { display: grid; grid-template-columns: 230px 1fr 270px; gap: 24px; align-items: start; }
.chiasm-intro, .pair-inspector, .chiasm-panel {
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  background: var(--cp-surface);
  box-shadow: 0 0 2px var(--cp-border), 0 1px 2px var(--cp-border);
}
.chiasm-intro { padding: 24px; }
.chapter-badge {
  width: 76px;
  height: 88px;
  display: grid;
  place-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--cp-accent);
  color: var(--cp-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1;
  text-align: center;
}
.chapter-badge strong { font: 34px Georgia, "Times New Roman", serif; letter-spacing: normal; }
.chiasm-intro h3 { font: 500 24px/1.15 Georgia, "Times New Roman", serif; }
.chiasm-intro p { color: var(--cp-text-muted); font-size: 13px; }
.evidence-meta { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--cp-border); }
.evidence-meta span, .evidence-meta small { display: block; }
.evidence-meta span { width: max-content; border: 1px solid var(--cp-accent); border-radius: 0.625rem; padding: 3px 7px; color: var(--cp-accent); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.evidence-meta small { margin-top: 7px; color: var(--cp-text-muted); font-size: 10px; }
.chiasm-key { display: flex; align-items: center; gap: 6px; margin-top: 26px; color: var(--cp-text-soft); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.chiasm-key i { height: 1px; flex: 1; background: var(--cp-border); }
.chiasm-panel { padding: 20px; overflow: hidden; }
.chiasm-axis { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 14px; color: var(--cp-text-soft); font: 8px Consolas, "Courier New", Courier, monospace; text-align: center; }
.chiasm-axis i { width: 4px; height: 4px; border-radius: 50%; background: var(--cp-border-strong); }
.chiasm-row {
  --pair-color: var(--cp-accent);
  width: calc(100% - (var(--depth) * 7px));
  margin: 0 auto 5px;
  display: grid;
  grid-template-columns: 1fr minmax(18px, 44px) 1fr;
  align-items: center;
  border: 1px solid var(--cp-border);
  border-radius: 0.625rem;
  padding: 8px 10px;
  background: var(--cp-bg-elevated);
  cursor: pointer;
  transition: border-color .2s, transform .2s, background .2s;
}
.chiasm-row:hover, .chiasm-row.is-active, .chiasm-center:hover, .chiasm-center.is-active { border-color: var(--pair-color); background: var(--cp-highlight); transform: scale(1.012); }
.chiasm-row > i { height: 1px; background: var(--pair-color); opacity: .5; }
.chiasm-side { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 10px; }
.chiasm-side.right { justify-content: flex-end; text-align: right; }
.chiasm-side b, .chiasm-center b {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pair-color);
  color: var(--cp-accent-fg);
  font-family: Georgia, "Times New Roman", serif;
}
.chiasm-side small, .chiasm-center small { display: block; color: var(--pair-color); font: 8px Consolas, "Courier New", Courier, monospace; }
.chiasm-center {
  --pair-color: var(--cp-warning);
  width: 56%;
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--pair-color);
  border-radius: 0.625rem;
  padding: 13px;
  background: var(--cp-highlight);
  text-align: left;
  cursor: pointer;
}
.tone-accent { --pair-color: var(--cp-accent); }
.tone-link { --pair-color: var(--cp-link); }
.tone-success { --pair-color: var(--cp-success); }
.tone-warning { --pair-color: var(--cp-warning); }
.tone-danger { --pair-color: var(--cp-danger); }
.pair-inspector { position: sticky; top: 96px; padding: 24px; }
.pair-letter {
  --pair-color: var(--cp-accent);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--pair-color);
  border-radius: 50%;
  color: var(--pair-color);
  font: 26px Georgia, "Times New Roman", serif;
}
.pair-theme { font: 500 19px/1.25 Georgia, "Times New Roman", serif; }
.pair-inspector blockquote { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--cp-border); }
.pair-inspector blockquote p { margin: 8px 0 0; color: var(--cp-text-muted); font: 13px/1.6 Georgia, "Times New Roman", serif; }
.catalog-panel {
  margin-top: 28px;
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--cp-surface);
  box-shadow: 0 0 2px var(--cp-border), 0 1px 2px var(--cp-border);
}
.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding: 28px;
  border-bottom: 1px solid var(--cp-border);
}
.catalog-heading .eyebrow { margin-bottom: 10px; }
.catalog-heading h3 { margin-bottom: 8px; font: 500 clamp(27px, 3vw, 38px)/1.1 Georgia, "Times New Roman", serif; }
.catalog-heading p { max-width: 750px; margin-bottom: 0; color: var(--cp-text-muted); font-size: 13px; }
.catalog-heading > a {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--cp-border-strong);
  color: var(--cp-link);
  font-size: 12px;
  text-decoration: none;
}
.catalog-heading > a:hover { border-color: var(--cp-accent); color: var(--cp-accent); }
.catalog-controls { display: grid; grid-template-columns: 1fr 260px; gap: 12px; padding: 18px; background: var(--cp-bg-elevated); }
.catalog-controls label > span { display: block; margin-bottom: 4px; color: var(--cp-text-muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.catalog-controls input, .catalog-controls select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--cp-border);
  border-radius: 0.625rem;
  padding: 0 12px;
  background: var(--cp-surface);
  color: var(--cp-text);
}
.catalog-summary { padding: 10px 18px; border-block: 1px solid var(--cp-border); color: var(--cp-text-muted); font: 10px Consolas, "Courier New", Courier, monospace; text-align: right; }
.catalog-results { padding: 18px; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.catalog-item {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cp-border);
  border-radius: 0.625rem;
  padding: 12px;
  background: var(--cp-bg-elevated);
}
.catalog-item > span { color: var(--cp-accent); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.catalog-item strong { margin: 5px 0; font: 500 16px/1.2 Georgia, "Times New Roman", serif; }
.catalog-item small { color: var(--cp-text-muted); font-size: 9px; }
.catalog-actions { display: flex; align-items: end; gap: 12px; margin-top: auto; }
.catalog-item button {
  width: max-content;
  border: 0;
  border-bottom: 1px solid var(--cp-border-strong);
  padding: 5px 0 0;
  background: var(--cp-transparent);
  color: var(--cp-link);
  font-size: 10px;
  cursor: pointer;
}
.catalog-item button:hover { border-color: var(--cp-accent); color: var(--cp-accent); }
.catalog-actions a {
  border-bottom: 1px solid var(--cp-border-strong);
  padding-top: 5px;
  color: var(--cp-link);
  font-size: 10px;
  text-decoration: none;
}
.catalog-actions a:hover { border-color: var(--cp-accent); color: var(--cp-accent); }
.consistency-item { min-height: 112px; }
.load-more-button {
  width: 100%;
  margin-top: 16px;
  border: 1px solid var(--cp-border);
  border-radius: 0.625rem;
  padding: 11px;
  background: var(--cp-surface-soft);
  color: var(--cp-text);
  cursor: pointer;
}
.load-more-button:hover { border-color: var(--cp-accent); color: var(--cp-accent); }
.reader-heading { margin-bottom: 28px; }
.reader-shell {
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--cp-surface);
  box-shadow: 0 0 2px var(--cp-border), 0 1px 2px var(--cp-border);
}
.reader-controls { display: grid; grid-template-columns: 1fr 220px 140px; gap: 12px; padding: 18px; border-bottom: 1px solid var(--cp-border); background: var(--cp-bg-elevated); }
.reader-controls label > span { display: block; margin-bottom: 4px; color: var(--cp-text-muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.reader-controls input, .reader-controls select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--cp-border);
  border-radius: 0.625rem;
  padding: 0 12px;
  background: var(--cp-surface);
  color: var(--cp-text);
}
.search-field { position: relative; align-self: end; }
.search-field svg { position: absolute; top: 12px; left: 13px; width: 20px; color: var(--cp-text-muted); }
.search-field input { padding-left: 42px; }
.reader-status { padding: 9px 20px; border-bottom: 1px solid var(--cp-border); color: var(--cp-text-muted); font: 10px Consolas, "Courier New", Courier, monospace; text-align: right; }
.scripture-reader { max-height: 700px; overflow-y: auto; padding: clamp(24px, 5vw, 64px); scroll-behavior: smooth; }
.scripture-reader > header { margin-bottom: 32px; text-align: center; }
.scripture-reader > header p { margin-bottom: 4px; color: var(--cp-accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.scripture-reader > header h3 { margin: 0; font: 500 38px Georgia, "Times New Roman", serif; }
.verse-list { max-width: 860px; margin: auto; }
.reader-verse {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 0.625rem;
  font: 17px/1.75 Georgia, "Times New Roman", serif;
  transition: background .3s;
}
.reader-verse:hover, .reader-verse.is-highlighted { background: var(--cp-highlight); }
.reader-verse > button {
  align-self: start;
  border: 0;
  padding: 5px 0;
  background: var(--cp-transparent);
  color: var(--cp-link);
  font: 10px Consolas, "Courier New", Courier, monospace;
  text-align: right;
  cursor: pointer;
}
mark { border-radius: 2px; padding: 0 2px; background: var(--cp-warning); color: var(--cp-accent-fg); }
.reader-loading, .reader-error, .no-results { padding: 60px 20px; color: var(--cp-text-muted); text-align: center; }
.reader-loading span { width: 28px; height: 28px; display: inline-block; border: 3px solid var(--cp-border); border-top-color: var(--cp-accent); border-radius: 50%; animation: spin .8s linear infinite; }
footer {
  width: min(1280px, calc(100% - 40px));
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--cp-border);
  padding: 36px 0 50px;
}
footer strong { font-family: Georgia, "Times New Roman", serif; }
footer p { max-width: 760px; margin: 5px 0 0; color: var(--cp-text-muted); font-size: 12px; }
@keyframes flowing { to { stroke-dashoffset: -150; } }
@keyframes draw-path { from { stroke-dasharray: 0 2000; } to { stroke-dasharray: 9 7; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1050px) {
  .gateway-card { min-height: 500px; }
  .gateway-copy { padding: 24px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 32px; }
  .dictation-story, .composition-comparison { padding: 36px; }
  .comparison-list article { grid-template-columns: 82px 1fr; gap: 16px; }
  .thread-workspace { grid-template-columns: 300px 1fr; }
  .connection-canvas { grid-template-columns: 1fr; gap: 24px; }
  .chapter-distance { display: none; }
  .verse-card { min-height: auto; }
  .chiasm-layout { grid-template-columns: 190px 1fr; }
  .pair-inspector { grid-column: 1 / -1; position: static; }
  .pair-inspector #pair-verses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .site-header { backdrop-filter: none; }
  .header-inner { width: min(100% - 24px, 1280px); grid-template-columns: 1fr auto; }
  .main-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; height: 58px; justify-content: space-around; border-top: 1px solid var(--cp-border); background: var(--cp-panel-strong); }
  .nav-button { flex: 1; padding: 0 5px; font-size: 11px; }
  .icon-button { grid-column: 2; }
  .view-section.gateway { width: calc(100% - 28px); padding-top: 36px; }
  .gateway-heading { margin-bottom: 28px; }
  .gateway-heading h1 { font-size: clamp(44px, 12vw, 62px); }
  .gateway-heading span { font-size: 16px; }
  .gateway-paths { grid-template-columns: 1fr; }
  .gateway-card { min-height: 0; }
  .gateway-note { margin-bottom: 16px; }
  .hero { width: calc(100% - 28px); grid-template-columns: 1fr; padding-top: 48px; }
  .hero-visual { min-height: 410px; }
  .dictation-context { width: calc(100% - 28px); grid-template-columns: 1fr; }
  .dictation-story { border-right: 0; border-bottom: 1px solid var(--cp-border); }
  .stat-strip { width: calc(100% - 28px); grid-template-columns: 1fr 1fr; }
  .stat-strip div:nth-child(2) { border-right: 0; }
  .stat-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--cp-border); }
  .view-section { width: calc(100% - 28px); padding-bottom: 80px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .thread-workspace { grid-template-columns: 1fr; }
  .thread-sidebar { border-right: 0; border-bottom: 1px solid var(--cp-border); }
  .thread-list { max-height: 310px; }
  .thread-stage { padding: 24px 18px; }
  .connection-canvas { margin-top: 28px; }
  .chiasm-layout { grid-template-columns: 1fr; }
  .chiasm-intro { display: grid; grid-template-columns: 74px 1fr; gap: 4px 18px; }
  .chapter-badge { grid-row: 1 / 4; }
  .chiasm-key { display: none; }
  .chiasm-panel { padding: 10px; }
  .chiasm-side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chiasm-row { width: calc(100% - (var(--depth) * 3px)); grid-template-columns: 1fr 10px 1fr; padding: 7px 6px; }
  .chiasm-side { font-size: 8px; }
  .chiasm-side b { width: 22px; height: 22px; }
  .chiasm-center { width: 78%; }
  .pair-inspector #pair-verses { grid-template-columns: 1fr; }
  .catalog-heading { align-items: flex-start; flex-direction: column; }
  .catalog-controls { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reader-controls { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .scripture-reader { padding: 30px 14px; }
  .reader-verse { grid-template-columns: 62px 1fr; gap: 10px; padding-inline: 6px; font-size: 16px; }
  footer { width: calc(100% - 28px); margin-bottom: 58px; flex-direction: column; }
}
@media (max-width: 480px) {
  .brand strong { font-size: 12px; }
  .gateway-heading p { font-size: 10px; }
  .gateway-card { grid-template-rows: 180px 1fr; }
  .gateway-copy { padding: 22px 18px; }
  .gateway-copy h2 { font-size: 32px; }
  .gateway-button { width: 100%; justify-content: space-between; }
  .chiasmus-preview { padding: 26px 24px; }
  h1 { font-size: 46px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero-visual { min-height: 360px; }
  .dictation-story, .composition-comparison { padding: 28px 20px; }
  .comparison-list article { grid-template-columns: 1fr; gap: 8px; }
  .comparison-time { color: var(--cp-accent); }
  .hero-label { min-width: 124px; padding: 7px; }
  .label-c { top: 160px; }
  .label-d { top: 92px; }
  .hero-seal { width: 92px; height: 92px; right: 24px; bottom: 20px; }
  .stage-topline { align-items: flex-start; flex-direction: column; gap: 4px; }
  .verse-card { padding: 18px; }
  .reader-controls { grid-template-columns: 1fr; }
  .search-field { grid-column: 1; }
  .catalog-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
