:root {
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --ink: #111111;
  --muted: rgba(17, 17, 17, .62);
  --line: rgba(17, 17, 17, .2);
  --cobalt: #111111;
  --cobalt-dark: #111111;
  --yellow: #f5f5f7;
  --mint: #f5f5f7;
  --rose: #111111;
  --white: #ffffff;
  --violet: #111111;
  --blue: #111111;
  --blue-soft: #f5f5f7;
  --coral: #111111;
  --lime: #f5f5f7;
  --green: #111111;
  --error: #111111;
  --wrap: min(1180px, calc(100% - 4rem));
  --measure: 68ch;
  --radius: 0;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(17,17,17,.035) 1px, transparent 1px);
  background-size: 64px 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--rose); }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 44px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.wrap { width: var(--wrap); margin-inline: auto; }
.narrow { max-width: var(--measure); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 76px;
  border-bottom: 1px solid var(--ink);
  background: var(--surface);
}
.site-header .wrap { width: var(--wrap); margin-inline: auto; }
.header-row { min-height: 76px; display: flex; align-items: center; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: var(--ink); font-weight: 900; text-decoration: none; letter-spacing: -.04em; }
.brand:hover { color: var(--ink); }
.brand img { width: 42px; height: 42px; }
.brand small { display: block; margin-top: .08rem; color: var(--muted); font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.current-section { display: grid; grid-template-columns: auto auto; gap: .1rem .5rem; align-items: baseline; margin: 0 auto 0 1.4rem; color: var(--ink); font-size: .85rem; font-weight: 850; }
.current-section span { color: var(--muted); font: 750 .62rem/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: none; position: fixed; top: 76px; left: 0; right: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: nav; border-bottom: 1px solid var(--ink); padding: 1.5rem max(2rem, calc((100vw - 1180px) / 2)); background: var(--surface); box-shadow: 0 12px 0 var(--cobalt); }
.nav[data-open="true"] { display: grid; }
.nav::before { content: "ÍNDICE GENERAL / 08 SECCIONES"; grid-column: 1 / -1; margin-bottom: .8rem; color: var(--muted); font: 800 .66rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.nav a { counter-increment: nav; display: grid; min-height: 108px; align-content: space-between; border: 1px solid var(--ink); border-right: 0; padding: .9rem 1rem; color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 850; }
.nav a:nth-of-type(4n) { border-right: 1px solid var(--ink); }
.nav a:nth-of-type(n+5) { border-top: 0; }
.nav a::before { content: "0" counter(nav); color: var(--cobalt); font: 800 .65rem/1 ui-monospace, monospace; }
.nav a::after { content: "↗"; justify-self: end; color: var(--cobalt); }
.nav a:hover { background: var(--mint); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--cobalt); color: white; }
.nav a[aria-current="page"]::before, .nav a[aria-current="page"]::after { color: var(--yellow); }
.menu-button { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--ink); background: var(--surface); padding: .5rem .75rem; color: var(--ink); font-weight: 850; cursor: pointer; }
.menu-button[aria-expanded="true"] { background: var(--cobalt); color: white; }
.search-link { display: inline-flex; min-height: 44px; align-items: center; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: .78rem; font-weight: 850; text-decoration: none; }
.search-link::before { content: "⌕"; margin-right: .35rem; font-size: 1.1rem; }
.search-link:hover { border-bottom-width: 4px; color: var(--ink); }
.sidebar-note { margin: 0; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.sidebar-note span { color: var(--cobalt); }

.hero { padding: clamp(3.5rem, 7vw, 7rem) 0 4rem; }
.hero-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.hero-copy .eyebrow { grid-column: 1 / -1; }
.hero-copy h1 { grid-column: 1; grid-row: 2 / span 4; }
.hero-copy .lede, .hero-copy .hero-actions, .hero-copy .trust-line { grid-column: 2; }
.eyebrow { margin: 0 0 1rem; color: var(--cobalt-dark); font: 850 .72rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); font-family: inherit; line-height: 1.02; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(3.8rem, 8.1vw, 8rem); font-weight: 880; letter-spacing: -.075em; }
h2 { margin: 2.5rem 0 1rem; font-size: clamp(2rem, 4.4vw, 4rem); font-weight: 850; letter-spacing: -.055em; }
h3 { margin: 1.3rem 0 .55rem; font-size: 1.24rem; font-weight: 820; letter-spacing: -.03em; }
.lede { max-width: 60ch; margin: 0 0 1.5rem; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--ink); border-radius: 0; padding: .72rem 1rem; background: var(--ink); color: white; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--mint); }
.button:hover { background: var(--cobalt); color: white; box-shadow: 4px 4px 0 var(--yellow); transform: translate(-1px,-1px); }
.button.secondary { background: transparent; color: var(--ink); box-shadow: none; }
.button.secondary:hover { background: var(--yellow); color: var(--ink); }
.button.ghost { border-color: var(--line); background: var(--surface); color: var(--ink); box-shadow: none; }
.button.ghost:hover { border-color: var(--ink); background: var(--surface-2); color: var(--ink); }
.trust-line { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 1.4rem 0 0; padding: 0; color: var(--muted); font-size: .77rem; font-weight: 750; list-style: none; }
.trust-line li::before { content: "■"; margin-right: .4rem; color: var(--cobalt); font-size: .55rem; }

.studio-preview { display: grid; grid-template-columns: .9fr 1fr 1.35fr; grid-template-rows: auto 1fr auto; min-height: 330px; border: 1px solid var(--ink); background: var(--cobalt); color: white; box-shadow: 12px 12px 0 var(--ink); }
.studio-top { grid-column: 1 / -1; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.35); padding: .85rem 1rem; font: 750 .68rem/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.local-state { color: var(--mint); }
.studio-project { display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(255,255,255,.35); padding: 1.3rem; }
.studio-project small { font: 750 .65rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.studio-project strong { max-width: 12ch; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1; letter-spacing: -.04em; }
.studio-project span { font-size: .76rem; opacity: .75; }
.studio-rule { display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(255,255,255,.35); padding: 1.3rem; font-size: .76rem; }
.studio-rule b { color: var(--yellow); font: 750 .84rem/1.5 ui-monospace, monospace; }
.specimen { grid-column: 3; grid-row: 2 / 4; padding: clamp(1.4rem, 3.5vw, 2.8rem); background: var(--yellow); color: var(--ink); }
.specimen span { font: 800 .65rem/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.specimen strong { display: block; margin: 1.5rem 0 .8rem; font-size: clamp(3.2rem, 7vw, 6.3rem); line-height: .88; letter-spacing: -.075em; }
.specimen p { margin: 0; font-size: .77rem; }
.studio-tags { grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: .45rem; border-top: 1px solid rgba(255,255,255,.35); padding: .8rem 1.3rem; }
.studio-tags span { border: 1px solid rgba(255,255,255,.5); padding: .3rem .5rem; font: 650 .65rem/1 ui-monospace, monospace; }

.section { padding: clamp(4rem, 7vw, 7rem) 0; }
.section.tinted { border-block: 1px solid var(--ink); background: var(--surface); }
.section-head { display: grid; grid-template-columns: 1fr minmax(280px, .48fr); gap: 3rem; align-items: end; margin-bottom: 2.2rem; }
.section-head h2 { max-width: 15ch; margin: 0; }
.section-head > p { margin: 0; color: var(--muted); }
.process-band { border-block: 1px solid var(--ink); background: var(--yellow); }
.section-head.inverse h2, .section-head.inverse > p { color: var(--ink); }
.section-head.inverse .eyebrow { color: var(--cobalt-dark); }
.process-grid { display: grid; border: 1px solid var(--ink); background: var(--surface); }
.process-grid article { display: grid; grid-template-columns: 70px 180px 1fr; gap: 1rem; align-items: center; min-height: 112px; padding: 1rem 1.3rem; }
.process-grid article + article { border-top: 1px solid var(--ink); }
.process-grid h3 { margin: 0; font-size: 1.6rem; }
.process-grid p { margin: 0; color: var(--muted); }
.number { color: var(--cobalt); font: 900 1rem/1 ui-monospace, monospace; }

.grid { display: grid; gap: 1rem; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; border: 1px solid var(--line); border-radius: 0; background: var(--surface); padding: 1.25rem; box-shadow: none; }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.card-link::after { content: "↗"; position: absolute; top: 1rem; right: 1rem; color: var(--cobalt); font-weight: 900; }
.card-link:hover { border-color: var(--ink); background: var(--mint); color: var(--ink); }
.tag { display: inline-flex; align-items: center; margin: 0 .25rem .3rem 0; border: 1px solid var(--line); padding: .2rem .45rem; background: transparent; color: var(--muted); font: 760 .68rem/1.3 ui-monospace, monospace; }
.tool-index > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: tool; gap: 0; border: 1px solid var(--ink); }
.tool-index .card { counter-increment: tool; min-height: 180px; border: 0; border-bottom: 1px solid var(--ink); padding: 1.5rem 4rem 1.5rem 1.5rem; }
.tool-index .card:nth-child(odd) { border-right: 1px solid var(--ink); }
.tool-index .card:nth-last-child(-n+2) { border-bottom: 0; }
.tool-index .card::before { content: "0" counter(tool); display: block; margin-bottom: 2rem; color: var(--cobalt); font: 800 .68rem/1 ui-monospace, monospace; }
.tool-index .card h3 { max-width: 18ch; font-size: clamp(1.4rem, 2.5vw, 2.1rem); }
.section-action { margin-top: 1.6rem; }
.editorial-band { border-block: 1px solid var(--ink); background: var(--cobalt); color: white; }
.editorial-band .eyebrow { color: var(--mint); }
.editorial-band h2, .editorial-band .section-head > p { color: white; }
.content-lane { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.content-lane .grid.three { grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(255,255,255,.55); }
.content-lane .card { border: 0; border-bottom: 1px solid rgba(255,255,255,.55); padding: 1.2rem 2.5rem 1.2rem 0; background: transparent; color: white; }
.content-lane .card h3, .content-lane .card p { color: white; }
.content-lane .card-link:hover { background: rgba(255,255,255,.08); }
.content-lane .tag { border-color: rgba(255,255,255,.5); color: var(--mint); }
.content-lane .card-link::after { color: var(--yellow); }
.lane-label { margin: 0 0 .8rem; color: var(--mint); font: 800 .7rem/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.metrics-band { padding: 3rem 0; }
.metric { border-top: 5px solid var(--cobalt); padding-top: .8rem; }
.metric strong { display: block; font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.metric span { color: var(--muted); font-size: .76rem; font-weight: 750; }

.page-head { border-bottom: 1px solid var(--ink); padding: 3.5rem 0; background: var(--surface); }
.page-head .wrap { display: grid; grid-template-columns: 225px minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); }
.breadcrumbs { grid-column: 1; grid-row: 1 / 6; align-self: start; color: var(--muted); font-size: .76rem; }
.breadcrumbs ol { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "↓"; display: block; margin-top: .4rem; color: var(--cobalt); }
.page-head > .wrap > .eyebrow, .page-head h1, .page-head .lede, .page-meta { grid-column: 2; }
.page-head h1 { max-width: 18ch; margin: 0 0 1rem; font-size: clamp(2.8rem, 6.5vw, 6rem); }
.page-head .lede { max-width: 66ch; }
.page-meta { display: flex; flex-wrap: wrap; gap: .45rem; color: var(--muted); font-size: .74rem; }
.page-meta span { border: 1px solid var(--line); padding: .28rem .5rem; background: var(--canvas); }

.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { grid-column: 2; max-width: var(--measure); }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 3.2rem; font-size: clamp(1.9rem, 3.5vw, 3rem); }
.prose h3 { font-size: 1.3rem; }
.prose blockquote { margin: 2rem 0; border: 0; border-left: 8px solid var(--cobalt); padding: 1rem 1.3rem; background: var(--surface); color: var(--ink); font-size: 1.08rem; font-weight: 700; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .7rem .8rem; text-align: left; }
.prose th { background: var(--surface-2); }
.worksheet { max-width: 100%; overflow-x: auto; white-space: pre-wrap; border: 1px solid var(--ink); padding: 1rem; background: var(--surface-2); color: var(--ink); font: 650 .78rem/1.65 ui-monospace, monospace; }
.aside { grid-column: 1; grid-row: 1; position: sticky; top: 1.5rem; }
.aside.card { border-color: var(--ink); background: var(--yellow); }
.aside h2 { margin: 0 0 1rem; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.aside nav { display: grid; gap: .2rem; }
.aside a { display: block; border-top: 1px solid rgba(17,17,17,.25); padding: .6rem 0; color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 700; }
.aside a:hover { padding-left: .4rem; }
.callout { margin: 2rem 0; border: 1px solid var(--ink); padding: 1rem 1.2rem; background: var(--mint); }
.callout.warning { background: var(--surface-2); }
.checklist { padding-left: 0; list-style: none; }
.checklist li { position: relative; margin: .6rem 0; padding-left: 1.7rem; }
.checklist li::before { content: "■"; position: absolute; left: 0; color: var(--cobalt); font-size: .6rem; }
.article-review { margin-top: 3rem; border-top: 1px solid var(--ink); padding-top: 1rem; font-size: .78rem; }
.article-review p { margin: .35rem 0; }

.path-list { display: grid; gap: 1.5rem; }
.path-card { border: 1px solid var(--ink); background: var(--surface); }
.path-card > header { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 1rem; padding: clamp(1.2rem, 3vw, 2.2rem); background: var(--ink); color: white; }
.path-card > header h2 { max-width: 15ch; margin: 0 0 .8rem; color: white; }
.path-card > header p { max-width: 68ch; margin: 0; color: rgba(255,255,255,.72); }
.path-card > header .eyebrow, .path-card > header .number { color: var(--white); }
.path-outcome { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; border-bottom: 1px solid var(--ink); padding: 1rem clamp(1.2rem, 3vw, 2.2rem); background: var(--surface-2); }
.path-outcome strong { font: 850 .7rem/1.4 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.path-outcome p { margin: 0; }
.path-steps { margin: 0; padding: 0; list-style: none; }
.path-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1.2rem clamp(1.2rem, 3vw, 2.2rem); }
.path-steps li > span { font: 900 1.8rem/1 ui-monospace, monospace; }
.path-steps h3 { margin: 0 0 .35rem; }
.path-steps p { max-width: 72ch; margin: 0 0 .45rem; color: var(--muted); }
.path-steps a { font-size: .82rem; font-weight: 800; }
.path-finish { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; padding: clamp(1.2rem, 3vw, 2.2rem); }
.path-finish h3 { margin-top: 0; }

.demo-project { border-top: 1px solid var(--ink); background: var(--surface-2); }
.demo-brief { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); background: var(--surface); }
.demo-brief > div { padding: 1.2rem; }
.demo-brief > div + div { border-left: 1px solid var(--ink); }
.demo-brief span { font: 850 .68rem/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.demo-brief p { margin-bottom: 0; }
.demo-stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; border: 1px solid var(--ink); background: var(--surface); }
.demo-stage { padding: 1.3rem; border-bottom: 1px solid var(--ink); }
.demo-stage:nth-child(odd) { border-right: 1px solid var(--ink); }
.demo-stage:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0; }
.demo-stage h3 { font-size: 1.65rem; }
.demo-stage dl { margin: 1rem 0; }
.demo-stage dt { margin-top: .75rem; font: 850 .65rem/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.demo-stage dd { margin: .25rem 0 0; color: var(--muted); }
.demo-data-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2rem; margin-top: 3rem; align-items: start; }
.demo-data-grid h2, .download-panel h2 { margin-top: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--ink); background: white; }
.data-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.data-table caption { padding: .65rem; background: var(--surface-2); color: var(--muted); text-align: left; font-size: .72rem; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: .65rem; text-align: left; vertical-align: top; }
.data-table th { background: var(--ink); color: white; }
.test-note { border-top: 1px solid var(--ink); padding: .8rem 0; }
.test-note h3 { margin-top: 0; }
.test-note p { color: var(--muted); }
.download-panel { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; margin-top: 3rem; border: 1px solid var(--ink); padding: 1.4rem; background: white; }
.download-panel p { margin-bottom: 0; }
.download-panel .status { grid-column: 1 / -1; margin: 0; }

.search-shell { max-width: 980px; }
.search-controls { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 1rem; border-bottom: 1px solid var(--ink); }
.search-controls input, .search-controls select { min-height: 52px; }
.search-summary { margin: 1.2rem 0; color: var(--muted); font: 800 .75rem/1.2 ui-monospace, monospace; }
.search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.search-card { min-width: 0; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 1.2rem; color: var(--ink); text-decoration: none; }
.search-card:hover { background: var(--surface-2); color: var(--ink); }
.search-card h2 { margin: .8rem 0 .45rem; font-size: 1.45rem; }
.search-card p { color: var(--muted); }
.search-card small { overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
.search-empty { grid-column: 1 / -1; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 2rem; }
.search-empty h2 { margin-top: 0; font-size: 2rem; }

.bible-dashboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.4rem; border: 1px solid var(--ink); background: var(--ink); gap: 1px; }
.bible-dashboard > div { min-width: 0; padding: 1rem; background: white; }
.bible-dashboard strong, .bible-dashboard span { display: block; }
.bible-dashboard strong { overflow-wrap: anywhere; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1; }
.bible-dashboard span { margin-top: .45rem; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.bible-toolbar { display: grid; grid-template-columns: minmax(250px, .6fr) minmax(0, 1.4fr); gap: 1.2rem; align-items: end; }
.bible-toolbar .field { margin-bottom: 0; }

.project-context { border-bottom: 1px solid var(--ink); padding: 2rem 0; background: var(--ink); color: var(--white); }
.project-context-grid { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.project-context h2 { margin: .25rem 0 .6rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.project-context p { max-width: 58ch; color: rgba(255,255,255,.7); }
.project-context-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
.project-context-fields .field { margin: 0; }
.project-context-fields .field small { color: rgba(255,255,255,.62); }
.project-context-fields .button-row, .project-context-fields .status { grid-column: 1 / -1; }
.project-context .mini-button { border-color: var(--white); background: transparent; color: var(--white); }
.project-context .mini-button:hover { background: var(--white); color: var(--ink); }
.project-context .status { color: var(--white); }

.tool-shell { border-bottom: 1px solid var(--ink); padding: 3rem 0 5rem; background: var(--surface-2); }
.tool-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 0; align-items: start; border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--cobalt); }
.tool-panel { min-width: 0; border: 0; border-radius: 0; padding: clamp(1rem, 2.5vw, 1.7rem); background: var(--surface); }
.tool-panel + .tool-panel { border-left: 1px solid var(--ink); background: var(--surface-2); }
.tool-panel h2 { margin: 0 0 1.5rem; font: 900 .72rem/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.field { margin-bottom: 1rem; }
.field label, .field legend { display: block; margin-bottom: .35rem; font-size: .85rem; font-weight: 850; }
.field small { display: block; margin-top: .3rem; color: var(--muted); font-size: .75rem; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--ink); border-radius: 0; padding: .7rem .75rem; background: white; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 4px 4px 0 var(--mint); outline: 0; }
.field textarea { min-height: 105px; resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: 4px 4px 0 rgba(17,17,17,.18); }
.field-error { min-height: 1.2em; color: var(--error); font-size: .8rem; }
.form-summary { margin-bottom: 1rem; border: 2px solid var(--ink); padding: .85rem 1rem; background: var(--surface-2); }
.form-summary:focus { outline: 3px solid var(--ink); outline-offset: 3px; }
.form-summary ul { margin: .45rem 0 0; padding-left: 1.2rem; }
.form-summary li { margin: .25rem 0; font-size: .8rem; }
.result-analysis { margin-bottom: 1rem; border: 1px solid var(--ink); padding: .8rem 1rem; background: var(--ink); color: var(--white); }
.result-analysis p { margin: 0; color: rgba(255,255,255,.72); font-size: .82rem; }
.analysis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.3); }
.analysis-grid div { padding: .65rem; background: var(--ink); }
.analysis-grid strong, .analysis-grid span { display: block; }
.analysis-grid strong { margin-bottom: .18rem; font-size: 1.25rem; }
.analysis-grid span { color: rgba(255,255,255,.62); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.result-analysis .analysis-note { margin-top: .7rem; font-size: .7rem; }
.diagnostic-list { margin: .8rem 0 0; border-top: 1px solid rgba(255,255,255,.28); padding: .65rem 0 0 1.1rem; color: rgba(255,255,255,.88); font-size: .75rem; }
.diagnostic-list li + li { margin-top: .3rem; }
.result-empty { display: grid; min-height: 285px; place-items: center; border: 1px dashed var(--ink); background: rgba(255,255,255,.4); color: var(--muted); text-align: center; }
.result-list { display: grid; gap: .7rem; }
.result-card { border: 1px solid var(--ink); border-left: 8px solid var(--cobalt); padding: .9rem 1rem; background: white; }
.result-card h3 { margin: 0 0 .35rem; }
.result-card p { margin: .25rem 0; font-size: .88rem; }
.result-profile { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.result-profile span { border: 1px solid var(--line); padding: .22rem .38rem; background: var(--surface-2); font: 700 .65rem/1 ui-monospace, monospace; }
.result-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.mini-button { border: 1px solid var(--ink); border-radius: 0; padding: .4rem .65rem; background: var(--surface); color: var(--ink); font-size: .78rem; font-weight: 800; cursor: pointer; }
.mini-button:hover { background: var(--mint); }
.status { min-height: 1.5rem; color: var(--green); font-weight: 750; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--line); padding: .55rem; text-align: left; }
.label-preview { display: grid; min-height: 220px; place-items: center; background: var(--surface-2); overflow: hidden; }
.label-preview span { max-width: 90%; border: 1px solid var(--ink); padding: .4rem .7rem; background: white; box-shadow: 4px 4px 0 var(--cobalt); font-weight: 850; white-space: nowrap; }

.faq details { margin: .6rem 0; border-bottom: 1px solid var(--line); padding: .8rem 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.site-footer { border-top: 1px solid var(--ink); padding: 4rem 0 2rem; background: var(--ink); color: rgba(255,255,255,.72); }
.site-footer .brand, .site-footer h2, .site-footer a { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h2 { margin: 0 0 .8rem; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid p { max-width: 34ch; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: .35rem 0; }
.footer-grid a { font-size: .86rem; text-decoration-color: rgba(255,255,255,.42); }
.footer-note { margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.22); padding-top: 1rem; color: rgba(255,255,255,.58); font-size: .77rem; }
.footer-privacy { border: 0; border-bottom: 1px solid currentColor; padding: 0; background: transparent; color: white; font: inherit; cursor: pointer; }
.footer-privacy:hover { border-bottom-width: 2px; }

.privacy-notice[hidden] { display: none !important; }
.privacy-notice { position: fixed; left: 1rem; bottom: 1rem; z-index: 45; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; width: min(680px, calc(100% - 2rem)); border: 1px solid var(--ink); padding: 1rem; background: var(--surface); box-shadow: 8px 8px 0 var(--ink); }
.privacy-notice strong { display: block; }
.privacy-notice p { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; }
.privacy-notice .button-row { justify-content: flex-end; }
.privacy-dialog { width: min(680px, calc(100% - 2rem)); max-height: min(760px, calc(100vh - 2rem)); overflow-y: auto; border: 1px solid var(--ink); padding: 0; background: var(--surface); color: var(--ink); box-shadow: 12px 12px 0 var(--ink); }
.privacy-dialog::backdrop { background: rgba(17,17,17,.58); }
.privacy-dialog form { padding: clamp(1rem, 4vw, 2rem); }
.dialog-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.dialog-head h2 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); }
.icon-button { min-width: 44px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 1.6rem; cursor: pointer; }
.privacy-dialog fieldset { margin: 1.5rem 0; border: 1px solid var(--ink); padding: 0; }
.privacy-dialog legend { margin-left: .8rem; padding: 0 .4rem; font-weight: 850; }
.consent-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem; }
.consent-row + .consent-row { border-top: 1px solid var(--line); }
.consent-row strong, .consent-row small { display: block; }
.consent-row small { margin-top: .25rem; color: var(--muted); }
.consent-row input { width: 20px; height: 20px; accent-color: var(--ink); }
.consent-row.is-disabled { background: var(--surface-2); }
.site-footer { content-visibility: auto; contain-intrinsic-size: 520px; }

@media (max-width: 1050px) {
  :root { --wrap: min(1180px, calc(100% - 2.5rem)); }
  .brand small { font-size: .55rem; }
  .sidebar-note { display: none; }
  .hero-copy { grid-template-columns: 1fr .72fr; }
  .studio-preview { grid-template-columns: .8fr .9fr 1.2fr; }
}

@media (max-width: 860px) {
  :root { --wrap: min(100% - 2rem, 1180px); }
  .site-header { height: 68px; }
  .header-row { min-height: 68px; }
  .brand img { width: 38px; height: 38px; }
  .current-section { margin-left: auto; }
  .nav { top: 68px; left: 1rem; right: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: calc(100vh - 86px); overflow-y: auto; border: 1px solid var(--ink); padding: 1rem; box-shadow: 8px 8px 0 var(--cobalt); }
  .nav a { min-height: 86px; border: 1px solid var(--ink) !important; padding: .72rem; font-size: .95rem; }
  .nav a:nth-of-type(even) { border-left: 0 !important; }
  .nav a:nth-of-type(n+3) { border-top: 0 !important; }
  .hero-copy { grid-template-columns: 1fr; }
  .hero-copy .eyebrow, .hero-copy h1, .hero-copy .lede, .hero-copy .hero-actions, .hero-copy .trust-line { grid-column: 1; grid-row: auto; }
  .hero-copy h1 { margin-bottom: 1.5rem; }
  .studio-preview { grid-template-columns: 1fr 1fr; }
  .specimen { grid-column: 1 / -1; grid-row: auto; }
  .studio-tags { grid-column: 1 / -1; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .page-head .wrap { grid-template-columns: 1fr; }
  .breadcrumbs, .page-head > .wrap > .eyebrow, .page-head h1, .page-head .lede, .page-meta { grid-column: 1; grid-row: auto; }
  .breadcrumbs ol { display: flex; flex-wrap: wrap; }
  .breadcrumbs li:not(:last-child)::after { content: "→"; display: inline; margin: 0 .4rem; }
  .article-layout { grid-template-columns: 1fr; }
  .prose, .aside { grid-column: 1; }
  .aside { position: static; grid-row: 1; }
  .project-context-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-panel + .tool-panel { border-top: 1px solid var(--ink); border-left: 0; }
  .demo-data-grid, .bible-toolbar { grid-template-columns: 1fr; }
  .bible-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
  :root { --wrap: min(100% - 1.25rem, 1180px); }
  body { font-size: 16px; }
  .brand small { display: none; }
  .current-section { display: none; }
  .search-link { margin-left: auto; font-size: .72rem; }
  .search-link::before { margin-right: .25rem; font-size: 1rem; }
  .nav { grid-template-columns: 1fr; padding: .7rem; }
  .nav a { min-height: 66px; border: 1px solid var(--ink) !important; border-top: 0 !important; }
  .nav a:first-of-type { border-top: 1px solid var(--ink) !important; }
  h1 { font-size: clamp(3.4rem, 17vw, 5rem); }
  .hero { padding-top: 2.8rem; }
  .studio-preview { display: block; box-shadow: 7px 7px 0 var(--ink); }
  .studio-project, .studio-rule, .specimen, .studio-tags { border: 0; border-top: 1px solid rgba(255,255,255,.35); }
  .studio-project { min-height: 155px; }
  .studio-rule { min-height: 115px; }
  .specimen { min-height: 220px; }
  .process-grid article { grid-template-columns: 50px 1fr; }
  .process-grid article p { grid-column: 2; }
  .tool-index > .grid, .grid.three, .grid.four, .content-lane, .footer-grid { grid-template-columns: 1fr; }
  .tool-index .card { border-right: 0 !important; border-bottom: 1px solid var(--ink) !important; }
  .tool-index .card:last-child { border-bottom: 0 !important; }
  .content-lane { gap: 2.5rem; }
  .page-head { padding: 2.5rem 0; }
  .page-head h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .button-row .button { flex: 1 1 9rem; }
  .project-context-fields { grid-template-columns: 1fr; row-gap: 1rem; }
  .analysis-grid { grid-template-columns: 1fr; }
  .path-card > header, .path-steps li { grid-template-columns: 42px minmax(0, 1fr); }
  .path-outcome, .path-finish, .demo-brief, .demo-stage-grid, .search-controls, .search-results { grid-template-columns: 1fr; }
  .demo-brief > div + div { border-top: 1px solid var(--ink); border-left: 0; }
  .demo-stage, .demo-stage:nth-child(odd) { border-right: 0; }
  .demo-stage:last-child { grid-column: auto; }
  .download-panel { grid-template-columns: 1fr; }
  .download-panel .status { grid-column: auto; }
  .bible-dashboard { grid-template-columns: 1fr 1fr; }
  .privacy-notice { grid-template-columns: 1fr; }
  .privacy-notice .button-row { justify-content: stretch; }
  .privacy-notice .mini-button { flex: 1 1 8rem; }
  .hero-actions .button { flex: 1 1 100%; }
  .metric { display: flex; align-items: baseline; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .button-row, .hero-actions, .aside { display: none !important; }
  main { margin-left: 0; }
  body { background: white; color: black; font-size: 11pt; }
  .tool-grid, .article-layout { display: block; border: 0; box-shadow: none; }
  .tool-panel, .card { border-color: var(--muted); break-inside: avoid; }
}
