/* LAAGAM editorial layer: shared identity, project grouping and readable samples. */
:root {
  --soft: #f2f3f3;
  --muted: #535858;
  --line: #d4d8d7;
  --blue-ink: #36596c;
  --green-ink: #456451;
  --accent: #36596c;
  --preview-shadow: 0 2px 3px #17282008, 0 18px 32px -22px #17282055;
  --page-gutter: 48px;
}

.header {
  height: 84px;
  padding-inline: var(--page-gutter);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  min-height: 44px;
}
.brand-lockup:hover { text-decoration: none; }
.brand-lockup img { width: 158px; height: auto; }
.brand-lockup > span {
  padding-left: 20px;
  border-left: 1px solid #8c9290;
  font: 18px/1.3 var(--display);
}
.nav { gap: 24px; }
.nav a { padding-block: 12px; }
.nav .nav-demo { color: var(--accent); }
.link-icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.demo-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 48px; padding: 12px 18px; background: var(--ink); color: white; font-size: 15px; font-weight: 400; }
.demo-link:hover { background: #343b37; text-decoration: none; }
.demo-link .link-icon { filter: invert(1); }
.section, .page-intro { padding-inline: var(--page-gutter); }

.hero {
  height: min(620px, calc(100svh - 180px));
  min-height: 400px;
  background: #e6e8e7;
}
.hero-image { object-position: left center; }
.hero-copy {
  top: 48px;
  left: var(--page-gutter);
  max-width: 280px;
}
.hero h1 {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 24px;
  text-wrap: initial;
}
.hero h1 span { display: block; }
.hero h1 { white-space: normal; }
.hero-copy p {
  font: 17px/1.55 Arial, Helvetica, sans-serif;
  color: #171a18;
  max-width: 260px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.hero-actions .system-link { display: inline-flex; align-items: center; gap: 24px; min-height: 48px; padding: 12px 18px; background: var(--ink); color: white; font-size: 15px; }
.hero-actions .system-link:hover { background: #343b37; text-decoration: none; }
.hero-actions .demo-link { min-height: 44px; padding: 0; background: none; color: var(--ink); border-bottom: 1px solid #8c9290; }
.hero-actions .demo-link .link-icon { filter: none; }
.hero-copy .underlined { font-size: 15px; }
.hero-credit { font-size: 12px; }
.origin-note {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding-block: 46px 64px;
}
.origin-note p { font-size: 19px; line-height: 1.65; color: var(--ink); }
.origin-note a { flex-shrink: 0; }

.demo-entry { background: #edf1f0; border-block: 1px solid #dce2df; }
.demo-entry-inner { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 72px; padding-block: 44px; }
.demo-entry .eyebrow { font-size: 13px; margin-bottom: 14px; }
.demo-entry h2 { font: 400 38px/1.15 var(--display); text-wrap: initial; }
.demo-entry p { font-size: 15px; margin: 18px 0 24px; }
.demo-entry .underlined .link-icon { margin-left: 12px; }
.demo-entry-links a { display: flex; justify-content: space-between; gap: 24px; align-items: center; border-top: 1px solid #b8c4bd; padding: 21px 0; font: 22px/1.3 var(--display); }
.demo-entry-links a:last-child { border-bottom: 1px solid #b8c4bd; }
.demo-entry-links a:hover { text-decoration: none; color: var(--accent); border-color: var(--accent); }
.demo-entry-links a:hover .link-icon { transform: translateX(4px); }
.demo-entry-links .link-icon { transition: transform 160ms ease; }

.projects-section { padding-top: 64px; padding-bottom: 80px; }
.section-heading { align-items: end; margin-bottom: 38px; gap: 32px; }
.section-heading h2 { font: 400 34px/1.15 var(--display); }
.section-heading p { margin-top: 12px; max-width: 590px; font-size: 16px; }
.section-heading > a { flex-shrink: 0; }
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 40px; }
.project { display: grid; grid-template-rows: auto 1fr; gap: 24px; border-top: 1px solid #aeb5b2; padding-top: 24px; }
.project-link { display: inline; }
.project-link:hover { text-decoration: none; }
.project-link:hover { color: var(--accent); }
.project-heading { display: flex; align-items: start; flex-direction: column; }
.project-area { font-size: 13px; color: var(--muted); }
.project-area > span { color: var(--muted); margin-right: 12px; }
.project h3 { margin: 13px 0 12px; font: 400 31px/1.15 var(--display); text-wrap: initial; }
.project-heading p { font-size: 16px; line-height: 1.6; max-width: 390px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; align-items: center; }
.project-try { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid #8c9290; font-size: 15px; font-weight: 400; }
.project-try:hover { text-decoration: none; color: var(--accent); }
.project-try .link-icon { width: 16px; height: 16px; }
.project-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  min-height: 44px;
  border-bottom: 1px solid transparent;
}
.project-open:hover { border-color: currentColor; text-decoration: none; }
.project-open .link-icon { width: 16px; height: 16px; }
.project-preview-link { display: flex; align-items: stretch; min-width: 0; }
.project-preview-link:hover { text-decoration: none; }
.project-visual {
  align-self: stretch;
  width: 100%;
  min-height: 310px;
  height: auto;
  padding: 26px;
  background: #e8edef;
  overflow: visible;
}
.project[data-area="Finance"] .project-visual { background: #e9ede5; }
.project[data-area="Product"] .project-visual { background: #efe8e9; }
.project[data-area="People"] .project-visual { background: #eceaf0; }
.project-preview-link :is(.editorial-preview, .tool-screen) { box-shadow: var(--preview-shadow); transition: transform 180ms ease, box-shadow 180ms ease; }
.project-preview-link:hover :is(.editorial-preview, .tool-screen) { transform: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-preview-link:hover :is(.editorial-preview, .tool-screen) { transform: translateY(-3px); box-shadow: 0 4px 6px #1728200c, 0 22px 34px -22px #17282066; }
}
.selected-projects { display: block; }
.selected-projects .project {
  padding: 36px 0;
  grid-template-rows: auto;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.7fr);
  gap: 64px;
  align-items: center;
}
.selected-projects .project-heading { padding-right: 16px; }
.selected-projects .project-visual { align-self: center; min-height: 330px; }
.selected-projects .project h3 { font-size: 36px; max-width: 390px; }
.selected-projects .project-heading p { font-size: 17px; max-width: 350px; }
.projects-section > .caption { max-width: none; margin-top: 12px; font-size: 13px; }

.editorial-preview {
  width: 100%;
  min-width: 0;
  background: white;
  color: #202723;
  padding: 24px;
  border: 1px solid #cbd2ce;
}
.preview-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
}
.preview-heading > span:last-child { font-size: 13px; font-weight: 400; color: #575e5a; }
.preview-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e1e5e2;
  margin-top: 20px;
  padding-top: 14px;
  font-size: 12px;
  color: #555e58;
}
.preview-caption .sample-label { margin: 0; font-size: 12px; }
.preview-note { font-size: 13px; margin-top: 18px; color: #555e58; }
.channel-matrix > div {
  display: grid;
  grid-template-columns: 1fr .9fr 1.4fr;
  gap: 20px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #e1e5e2;
  font-size: 14px;
}
.channel-matrix .matrix-head { font-size: 12px; color: #59605c; padding: 8px 0; }
.channel-matrix strong { font-weight: 400; }
.source-bar { display: block; }
.source-bar i { display: block; width: var(--length); height: 7px; background: var(--blue-ink); }
.missing-feed { font-size: 12px; color: #775c34; }
.cash-ledger > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 0;
  border-top: 1px solid #e1e5e2;
  font-size: 14px;
}
.cash-ledger strong { font-weight: 400; }
.cash-ledger span { color: #59605c; }
.cash-separate { margin-top: 8px; }
.cash-history { display: grid; grid-template-columns: 110px 1fr 100px; align-items: end; gap: 20px; margin-top: 18px; font-size: 12px; color: #59605c; }
.history-bars { height: 54px; display: flex; align-items: end; gap: 12px; border-bottom: 1px solid #b8c0bb; }
.history-bars i { flex: 1; background: #607b69; height: var(--level); }
.history-bars .history-gap { height: 1px; background: transparent; }
.sales-lanes { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: center; padding: 28px 0; border-block: 1px solid #e1e5e2; }
.sales-lanes > div { align-self: start; }
.sales-lanes > div > span { display: block; font-size: 12px; color: #59605c; margin-bottom: 18px; }
.sales-lanes strong { font-size: 15px; line-height: 1.7; font-weight: 400; }
.lane-arrow { color: #7b8780; }
.collection-plot { display: grid; gap: 20px; padding: 18px 0 22px; border-top: 1px solid #e1e5e2; }
.collection-plot > div { display: grid; grid-template-columns: 105px 1fr 115px; gap: 20px; align-items: center; font-size: 13px; }
.collection-plot strong { font-weight: 400; }
.comparison-track { height: 16px; background: #f0f2ef; }
.comparison-track i { display: block; width: var(--length); height: 100%; background: #526e7b; }
.collection-plot > div:last-child i { background: #91a99a; }
.product-detail-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding: 18px 0 0; border-top: 1px solid #b8c2bb; font-size: 13px; }
.product-detail-preview strong { grid-column: 1; grid-row: 2 / 4; font-size: 22px; font-family: var(--display); font-weight: 400; }
.product-detail-preview > span:first-child { color: #59605c; }
.product-detail-preview > span:nth-last-child(-n+2) { grid-column: 2; }
.project-visual .tool-screen { border-radius: 0; }
.project-visual .screen-mark { display: none; }
.compact .screen-top { min-height: 44px; }
.compact .screen-top .sample-label { flex-basis: auto; padding: 0; margin-left: auto; }
.compact .screen-context { padding-top: 18px; }
.compact .screen-bottom { display: none; }

.brain-overview { padding-block: 52px 64px; scroll-margin-top: 28px; }
.system-overview-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; margin-bottom: 40px; }
.system-overview-intro .eyebrow { font-size: 13px; margin-bottom: 16px; color: var(--muted); }
.system-overview-intro h2 { font-size: 36px; line-height: 1.15; text-wrap: initial; }
.system-overview-intro > p { max-width: 610px; font-size: 18px; line-height: 1.65; color: var(--ink); }
.brain-input { display: flex; gap: 28px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.brain-input > span { font-size: 14px; color: var(--muted); }
.brain-input > p { font-size: 16px; color: var(--ink); }
.brain-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 48px; }
.brain-route li { position: relative; border-top: 1px solid #969f99; padding-top: 24px; }
.brain-route li:not(:last-child):after { content: '\2192'; position: absolute; right: -32px; top: -15px; background: white; color: #67716b; font-size: 20px; }
.brain-step { font-size: 13px; color: var(--muted); }
.brain-route h3 { font: 400 27px/1.2 var(--display); margin: 12px 0 14px; text-wrap: initial; }
.brain-route p { font-size: 16px; line-height: 1.65; max-width: 370px; }
.brain-return { display: flex; align-items: start; gap: 20px; padding: 24px 0; border-block: 1px solid var(--line); margin-top: 32px; }
.brain-return .link-icon { margin-top: 3px; }
.brain-return > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; flex: 1; }
.brain-return h3 { font: 400 21px/1.4 var(--display); text-wrap: initial; }
.brain-return p { font-size: 15px; line-height: 1.65; max-width: 610px; }
.system-overview-links { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 24px; }
.reading-section { padding-block: 64px; background: #f3f4f3; }
.reading-section h2 { font-size: 32px; margin-bottom: 28px; }
.reading-links { gap: 40px; }
.reading-links span { font-size: 23px; }
.reading-links p { font-size: 15px; }
.reading-links > a { min-height: 100px; }
.footer { padding: 52px var(--page-gutter) 26px; }
.footer-top { grid-template-columns: 1fr 1fr; padding-bottom: 44px; gap: 40px; }
.footer-origin img { width: 190px; height: auto; }
.footer-origin p { margin-top: 26px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.footer-bottom { font-size: 12px; }
.footer nav { align-content: start; }
.footer nav a { min-height: 30px; }
.project-stage { background: #edf0ef; }
.project-stage .tool-screen { border-radius: 0; box-shadow: none; }
.filter { border: 1px solid #d4d8d7; padding: 9px 16px; }
.filter.active { background: #161b18; color: white; border-color: #161b18; }
.project-list { padding-top: 0; }
.collection-note { font-size: 13px; }
.catalog-intro { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: end; }
.page-intro.catalog-intro h1 { font: 400 52px/1.1 var(--display); text-wrap: initial; }
.catalog-summary p { font-size: 18px; max-width: 480px; }
.catalog-summary .demo-link { margin: 24px 0 12px; }
.catalog-summary .caption { display: block; }
.page-intro h1 { font-size: 64px; }
.page-intro .eyebrow { color: var(--muted); }

/* Interior pages share the home's measure and understated hierarchy. */
.page-intro { padding-block: 60px 52px; }
.page-intro h1 { font-size: 52px; line-height: 1.1; max-width: 860px; }
.page-intro > p { font-size: 18px; line-height: 1.65; margin-top: 24px; }
.page-intro .inline-links { margin-top: 26px; }
.page-intro .eyebrow { font-size: 13px; margin-bottom: 24px; }
.about-body, .contact-section { grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 64px; padding-block: 48px; }
.about-body h2, .contact-section h2 { font-size: 30px; max-width: 360px; }
.about-body > div { max-width: 700px; }
.about-body p, .contact-section p { font-size: 16px; line-height: 1.7; }
.contact-form { max-width: 700px; }
.contact-form label { font-size: 14px; }
.system-section { gap: 72px; padding-block: 48px; }
.system-copy h2 { font-size: 32px; }
.system-copy p { max-width: 480px; font-size: 16px; }
.rules-section { padding-block: 48px; }
.rules-section > h2 { font-size: 32px; }
.plain-rows { margin: 28px 0; }
.plain-rows article { grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 64px; }
.plain-rows h3 { font-size: 25px; max-width: 340px; }
.plain-rows p { max-width: 700px; }
.notes-list { padding-top: 0; }
.notes-list article { padding-block: 32px; }
.notes-list h2 { font-size: 30px; }
.demo { border-radius: 0; background: #f3f4f3; }
.demo-choice { min-height: 150px; padding: 22px; gap: 12px; }
.demo-choice:hover { background: #f0f2f1; }
.demo-choice strong { font-size: 24px; }
.demo .tool-screen { box-shadow: none; border-radius: 0; }

.project-case { padding-top: 32px; padding-bottom: 0; }
.project-case > .back-link { margin: 0 0 40px; font-size: 14px; }
.case-opening { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding-bottom: 48px; }
.case-intro h1 { font-size: 48px; line-height: 1.1; margin: 20px 0 24px; text-wrap: balance; }
.case-intro .eyebrow { margin: 0; font-size: 13px; color: var(--muted); }
.case-intro > p { max-width: 550px; font-size: 17px; line-height: 1.65; }
.case-intro .inline-links { gap: 24px; margin-top: 26px; font-size: 14px; }
.case-preview { min-width: 0; margin: 0; padding: 24px; background: #edf0ef; }
.case-preview :is(.editorial-preview, .tool-screen) { border-radius: 0; box-shadow: var(--preview-shadow); }
.case-preview .screen-mark { display: none; }
.case-preview figcaption { font-size: 12px; color: #535b56; line-height: 1.5; margin-top: 14px; }
.case-section { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 64px; border-top: 1px solid var(--line); border-bottom: 0; padding-block: 36px; }
.case-section h2 { font-size: 26px; line-height: 1.25; }
.case-section h3 { font: 600 16px/1.5 Arial, Helvetica, sans-serif; margin: 0 0 10px; }
.case-section p + h3 { margin-top: 24px; }
.case-section p, .case-section dd { font-size: 16px; line-height: 1.65; max-width: 700px; }
.case-section dl { margin: 0; }
.case-section dl > div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 24px; padding: 18px 0; }
.case-section dl > div:first-child { padding-top: 0; }
.case-section dl > div:last-child { padding-bottom: 0; }
.case-section dt { font-size: 14px; text-transform: none; color: var(--muted); margin: 0; }
.case-section .review-date { font-size: 13px; margin-top: 16px; color: var(--muted); }
.case-section .caption, .case-section .method-note { font-size: 14px; color: var(--muted); }
.project-journey { border-top: 1px solid var(--line); padding-block: 36px; }
.project-journey-heading { max-width: 900px; margin-bottom: 30px; }
.project-journey-heading .eyebrow { color: var(--muted); margin-bottom: 14px; }
.project-journey-heading h2 { font-size: 30px; line-height: 1.25; text-wrap: pretty; }
.project-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; list-style: none; padding: 0; margin: 0; }
.project-route > li { min-width: 0; border-top: 1px solid #9baaa2; padding-top: 18px; }
.route-number { display: block; font-size: 13px; color: #4a6355; margin-bottom: 14px; }
.project-route h3 { font-size: 24px; line-height: 1.25; margin-bottom: 14px; }
.project-route p { font-size: 16px; line-height: 1.6; }
.route-source { margin-top: 20px; }
.route-source > span { display: block; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.route-source p { font-size: 14px; }
.project-route .underlined { margin-top: 22px; display: inline-flex; gap: 12px; align-items: center; }
.project-route .underlined img { width: 18px; height: 18px; }
.project-control { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 64px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.project-control h3 { font-size: 20px; line-height: 1.4; }
.project-control p { font-size: 16px; line-height: 1.65; max-width: 700px; }
.project-method { border-top: 1px solid var(--line); padding-block: 28px; }
.project-method summary { cursor: pointer; font: 22px/1.4 var(--display); }
.project-method > div { max-width: 720px; padding-top: 24px; }
.project-method p { font-size: 16px; line-height: 1.65; }
.project-method .method-note { font-size: 14px; margin-top: 16px; }
.project-method .underlined { display: inline-block; margin-top: 20px; }
.case-next { display: flex; justify-content: space-between; gap: 32px; border-top: 1px solid var(--line); padding-block: 32px 48px; }
.case-next > a:first-child { align-self: center; flex-shrink: 0; }
.case-next > a:last-child { text-align: right; }
.case-next span, .doc-pagination span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.case-next strong { font: 24px/1.3 var(--display); }
.case-next strong span { display: inline; font: inherit; color: inherit; }

.docs-index { padding-top: 0; padding-bottom: 56px; }
.docs-start { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.docs-start h2, .directory-heading h2, .docs-guides h2 { font-size: 28px; }
.docs-start .reading-links { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 40px; }
.docs-start .reading-links > a { min-height: 0; padding: 16px 30px 20px 0; }
.docs-start .reading-links span { font-size: 24px; }
.docs-start .reading-links p { max-width: 310px; line-height: 1.6; }
.doc-directory { margin-top: 36px; padding: 36px 0 0; border-bottom: 0; }
.directory-heading { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 56px; align-items: end; margin-bottom: 28px; }
.directory-heading .doc-search { max-width: 540px; margin: 0; font-size: 14px; }
.doc-group { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 56px; padding-block: 24px; border-top: 1px solid var(--line); }
.doc-group h3 { font-size: 20px; padding-top: 12px; }
.doc-group .doc-links { gap: 0 40px; }
.doc-links a { display: flex; justify-content: space-between; gap: 18px; font-size: 16px; line-height: 1.5; padding-block: 12px; }
.doc-links a span { flex-shrink: 0; }
.doc-empty { padding: 20px 0 32px; font-size: 16px; }
.docs-guides { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.doc-layout { grid-template-columns: 240px minmax(0,760px); max-width: 1320px; gap: 72px; padding: 48px var(--page-gutter) 64px; }
.doc-sidebar { position: sticky; top: 116px; align-self: start; max-height: calc(100svh - 140px); overflow-y: auto; padding-right: 16px; }
.doc-sidebar .back-link { margin: 0 0 30px; font-size: 14px; }
.chapter-contents { margin-bottom: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.chapter-contents summary { cursor: pointer; font-size: 14px; margin-bottom: 16px; }
.chapter-contents nav { margin: 0; display: grid; gap: 4px; }
.chapter-contents nav a { padding-block: 6px; line-height: 1.5; color: var(--muted); }
.chapter-contents nav a:hover { color: var(--ink); }
.chapter-source, .chapter-project { display: block; width: fit-content; font-size: 14px; line-height: 1.6; margin-top: 18px; }
.chapter-main { min-width: 0; }
.chapter-meta { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.prose { font-size: 17px; line-height: 1.7; }
.prose h1 { font-size: 44px; line-height: 1.15; margin: 0 0 28px; }
.prose h2 { font-size: 28px; line-height: 1.25; margin: 36px 0 16px; }
.prose h3 { font-size: 22px; line-height: 1.3; margin: 28px 0 12px; }
.prose p { font-size: inherit; line-height: 1.7; margin: 16px 0; }
.prose li { margin-block: 8px; }
.prose pre { background: #f3f4f3; border: 0; border-left: 2px solid #a5b2a9; padding: 24px; margin: 24px 0; }
.prose code { font-size: 14px; }
.prose pre code { overflow-wrap: normal; }
.prose table { font-size: 15px; }
.prose blockquote { color: var(--muted); border-color: #a5b2a9; padding-left: 20px; }
.prose :is(h1,h2,h3) { scroll-margin-top: 110px; }
.prose .architecture-flow { list-style: none; margin: 28px 0 36px; padding: 0; border-top: 1px solid var(--line); }
.prose .architecture-flow li { position: relative; margin: 0; padding: 18px 0 18px 28px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.architecture-flow li:not(:last-child):before { content: '\2193'; position: absolute; left: 0; top: 18px; color: #53695e; }
.architecture-flow li:last-child:before { content: '\2713'; position: absolute; left: 0; top: 18px; color: #53695e; }
.doc-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.doc-pagination a { padding-block: 8px; }
.doc-pagination a[rel="next"] { grid-column: 2; text-align: right; }
.doc-pagination strong { font: 20px/1.4 var(--display); }

/* The system explains a case; documentation supplies the build path. */
.system-intro { padding-bottom: 40px; }
.system-intro > p { max-width: 760px; }
.system-walkthrough { padding-top: 0; padding-bottom: 48px; }
.system-case-heading { border-top: 1px solid var(--line); padding-top: 32px; margin-bottom: 32px; }
.system-case-heading .eyebrow { color: var(--muted); margin-bottom: 14px; }
.system-case-heading h2 { font-size: 32px; line-height: 1.25; max-width: 850px; }
.system-case-heading > p { font-size: 14px; line-height: 1.6; margin-top: 16px; max-width: 740px; }
.system-stages { list-style: none; margin: 0; padding: 0; }
.system-stages > li { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 64px; border-top: 1px solid #aebbb3; padding-block: 32px; scroll-margin-top: 110px; }
.system-stage-label > span { font-size: 14px; color: var(--green-ink); }
.system-stage-label h3 { font-size: 28px; line-height: 1.2; margin: 14px 0 10px; }
.system-stage-label > p { font-size: 15px; }
.system-stage-body { max-width: 760px; min-width: 0; }
.system-stage-body > p { font-size: 17px; line-height: 1.65; }
.system-stage-body > p + p { margin-top: 18px; }
.system-stage-body > .underlined { display: inline-flex; gap: 12px; align-items: center; margin-top: 24px; font-size: 14px; }
.system-stage-body .link-icon { width: 18px; height: 18px; }
.context-excerpts { list-style: none; margin: 24px 0 0; padding: 0 0 0 20px; border-left: 2px solid #9cab9f; }
.context-excerpts li + li { margin-top: 24px; }
.context-excerpts strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.context-excerpts p { font-size: 16px; line-height: 1.6; }
.system-example-task { margin-top: 24px; padding-left: 20px; border-left: 2px solid #9cab9f; }
.system-example-task > span { display: block; font-size: 14px; margin-bottom: 8px; color: var(--green-ink); }
.system-example-task > p { font-size: 18px; line-height: 1.6; color: var(--ink); }
.system-result-preview { margin: 24px 0; }
.system-result-preview .tool-screen { border-radius: 0; box-shadow: var(--preview-shadow); }
.system-result-preview .screen-mark { display: none; }
.system-result-preview figcaption { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.system-kept-record { display: flex; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.system-kept-record .link-icon { margin-top: 4px; }
.system-kept-record p { font-size: 16px; line-height: 1.65; }
.system-stage-body .inline-links { margin-top: 26px; font-size: 15px; gap: 20px 28px; }
.system-other { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; background: #f3f4f3; padding-block: 44px; }
.system-other h2 { font-size: 30px; line-height: 1.25; margin-bottom: 26px; }
.system-other-links > a { display: block; border-top: 1px solid #b8c2bb; padding-block: 20px; }
.system-other-links > a:last-child { padding-bottom: 0; }
.system-other-links > a > span { display: flex; justify-content: space-between; gap: 20px; font: 24px/1.3 var(--display); }
.system-other-links p { font-size: 16px; line-height: 1.65; margin-top: 12px; }
.system-other-links > a:hover { text-decoration: none; color: var(--accent); }
.docs-build { border-top: 1px solid var(--line); padding-top: 32px; }
.docs-build h2, .docs-examples h2 { font-size: 28px; line-height: 1.25; }
.build-path { list-style: none; padding: 0; margin: 28px 0 0; }
.build-path > li { display: grid; grid-template-columns: 40px minmax(200px, .8fr) minmax(0, 1.2fr); gap: 28px; padding-block: 26px; border-top: 1px solid var(--line); }
.build-number { padding-top: 5px; font-size: 14px; color: var(--green-ink); }
.build-path h3 { font-size: 25px; line-height: 1.3; max-width: 330px; }
.build-path p { font-size: 16px; line-height: 1.65; max-width: 640px; }
.build-path .inline-links { margin-top: 16px; gap: 16px 28px; font-size: 14px; }
.build-path .link-icon { width: 16px; height: 16px; }
.docs-examples { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 12px; }
.method-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 26px; }
.method-examples > a { display: flex; flex-direction: column; align-items: start; justify-content: space-between; gap: 24px; padding-block: 20px; border-top: 1px solid #aebbb3; }
.method-examples > a > span:first-child { font: 23px/1.35 var(--display); }
.method-examples .method-example-name { font-size: 14px; color: var(--muted); }
.method-example-name .link-icon { width: 16px; height: 16px; margin-left: 6px; }
.method-examples > a:hover { color: var(--accent); text-decoration: none; }
.chapter-system, .chapter-example { display: block; margin: 0 0 24px; font-size: 15px; line-height: 1.55; }
.chapter-system > span, .chapter-example > span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.chapter-system .link-icon, .chapter-example .link-icon { width: 16px; height: 16px; }
.chapter-example { border-top: 1px solid var(--line); margin: 24px 0 0; padding-top: 20px; }

@media (min-width: 1700px) {
  .hero-copy { left: max(48px, calc((100% - 1504px) / 2)); }
  .header, .footer { padding-inline: max(48px, calc((100% - 1504px) / 2)); }
}
@media (max-width: 1100px) {
  :root { --page-gutter: 28px; }
  .nav { gap: 18px; }
  .brand-lockup { gap: 14px; }
  .brand-lockup img { width: 140px; }
  .brand-lockup > span { padding-left: 14px; }
  .hero h1 { font-size: 36px; }
  .selected-projects .project { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.5fr); gap: 32px; }
  .selected-projects .project h3 { font-size: 32px; }
  .catalog-intro { gap: 40px; }
  .page-intro.catalog-intro h1 { font-size: 48px; }
  .demo-entry-inner { gap: 48px; }
  .demo-entry h2 { font-size: 36px; }
  .project-visual { padding: 20px; }
  .editorial-preview { padding: 20px; }
  .channel-matrix > div { gap: 12px; }
  .sales-lanes { gap: 8px; }
  .sales-lanes strong { font-size: 14px; }
  .cash-history { grid-template-columns: 1fr 1fr; }
  .history-bars { grid-column: 1 / -1; grid-row: 2; }
  .cash-history > span:last-child { text-align: right; }
  .collection-plot > div { grid-template-columns: 100px 1fr; gap: 10px; }
  .collection-plot > div > span:last-child { grid-column: 2; }
}
@media (min-width: 801px) and (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 84px; padding: 24px 28px; background: white; border-bottom: 1px solid var(--line); align-items: start; gap: 16px; }
  .nav.open { display: flex; flex-direction: column; }
  .nav-code { border: 0; padding: 0; }
}
@media (max-width: 800px) {
  :root { --page-gutter: 24px; }
  .header { height: 74px; }
  .nav { top: 74px; }
  .brand-lockup img { width: 142px; }
  .hero { height: min(540px, calc(100svh - 170px)); }
  .hero-image { object-position: left center; min-height: 560px; }
  .hero-copy { top: 32px; max-width: 250px; }
  .hero h1 { font-size: 32px; }
  .hero-copy p { font-size: 16px; max-width: 230px; }
  .demo-entry-inner { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
  .demo-entry h2 { font-size: 34px; }
  .demo-entry-links a { font-size: 21px; padding-block: 18px; }
  .catalog-intro { grid-template-columns: 1fr; gap: 28px; }
  .origin-note { padding-block: 32px 48px; align-items: start; flex-direction: column; gap: 22px; }
  .origin-note p { font-size: 17px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .section-heading h2 { font-size: 30px; }
  .selected-projects .project { grid-template-columns: 1fr; gap: 24px; }
  .selected-projects .project-heading { padding-right: 0; }
  .selected-projects .project-visual { min-height: 0; }
  .selected-projects .project-heading p { max-width: 580px; }
  .project-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-link { gap: 24px; }
  .project-visual { min-height: 0; padding: 24px; }
  .selected-projects .project h3, .project h3 { font-size: 30px; margin-top: 10px; }
  .brain-route { grid-template-columns: 1fr; gap: 32px; }
  .brain-route p { max-width: 530px; }
  .brain-route li:not(:last-child):after { content: none; }
  .system-overview-intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
  .system-overview-intro h2 { font-size: 32px; }
  .system-overview-intro > p { font-size: 17px; }
  .brain-input { flex-direction: column; gap: 8px; }
  .brain-route li { padding-top: 20px; }
  .brain-route li + li:before { content: '\2193'; position: absolute; top: -29px; right: 0; font-size: 20px; color: #67716b; }
  .brain-return > div { grid-template-columns: 1fr; gap: 10px; }
  .brain-overview { padding-block: 36px 48px; }
  .reading-section { padding-block: 48px; }
  .reading-section h2 { font-size: 30px; }
  .reading-links { gap: 24px; }
  .footer nav { grid-column: auto; }
  .footer-bottom > span { flex: none; }
  .page-intro h1 { font-size: 48px; }
}
@media (max-width: 540px) {
  :root { --page-gutter: 20px; }
  .brand-lockup { gap: 12px; }
  .brand-lockup img { width: 127px; }
  .brand-lockup > span { font-size: 16px; padding-left: 12px; }
  .hero { min-height: 370px; height: min(500px, calc(100svh - 200px)); }
  .hero-copy { top: 30px; max-width: 230px; }
  .hero h1 { font-size: 30px; margin-bottom: 22px; }
  .hero-copy p { font-size: 16px; max-width: 220px; margin-bottom: 24px; }
  .hero-actions { gap: 12px; }
  .hero-actions .system-link { padding: 12px 8px; font-size: 14px; }
  .hero-actions .demo-link { gap: 8px; font-size: 14px; }
  .hero-actions .demo-link .link-icon { display: none; }
  .hero-copy .underlined { font-size: 14px; }
  .hero-credit { left: var(--page-gutter); right: auto; bottom: 6px; font-size: 11px; }
  .origin-note p br { display: block; }
  .project-visual { padding: 14px; }
  .editorial-preview { padding: 16px; }
  .preview-heading { gap: 10px; flex-wrap: wrap; padding-bottom: 16px; }
  .preview-heading > span:first-child { font-size: 14px; }
  .preview-caption { gap: 8px; flex-wrap: wrap; margin-top: 16px; }
  .channel-matrix > div { grid-template-columns: .9fr .65fr 1.1fr; gap: 9px; font-size: 12px; }
  .channel-matrix .matrix-head { font-size: 12px; }
  .channel-matrix .missing-feed { font-size: 12px; overflow-wrap: anywhere; }
  .cash-ledger > div { gap: 14px; font-size: 13px; }
  .cash-history { margin-top: 14px; gap: 12px; }
  .sales-lanes { grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
  .sales-lanes > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; align-items: start; }
  .sales-lanes > div > span { margin: 0; padding-top: 2px; }
  .sales-lanes .lane-arrow { display: none; }
  .sales-lanes strong { font-size: 13px; }
  .collection-plot > div { grid-template-columns: 92px 1fr; }
  .product-detail-preview { gap: 8px 14px; }
  .product-detail-preview strong { font-size: 21px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-origin img { width: 170px; }
  .footer-origin p { margin-top: 20px; }
  .page-intro h1 { font-size: 40px; }
  .project-list { padding-top: 0; }
  .page-intro.catalog-intro h1 { font-size: 36px; }
  .demo-entry h2 { font-size: 32px; }
  .section-heading h2 { font-size: 30px; }
  .project-actions { gap: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-entry-links .link-icon, .project-preview-link :is(.editorial-preview, .tool-screen) { transition: none; }
}
@media (max-height: 700px) {
  .hero h1 { font-size: 32px; }
  .hero-copy { top: 28px; }
  .hero-copy p { font-size: 16px; }
  .brain-overview { padding-top: 28px; }
}

@media (max-width: 1100px) {
  .case-opening { gap: 36px; }
  .case-intro h1 { font-size: 40px; }
  .case-section, .about-body, .contact-section, .plain-rows article { gap: 40px; }
  .case-preview { padding: 18px; }
  .docs-start, .directory-heading, .doc-group, .docs-guides { grid-template-columns: 180px minmax(0,1fr); gap: 36px; }
  .doc-layout { grid-template-columns: 210px minmax(0,1fr); gap: 40px; }
  .prose h1 { font-size: 40px; }
}
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0,1fr); gap: 32px; max-width: 800px; }
  .doc-sidebar { position: static; max-height: none; padding: 0; }
  .doc-sidebar .back-link { margin-bottom: 20px; }
  .chapter-contents { margin-bottom: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .chapter-contents summary { margin: 0; }
  .chapter-contents[open] nav { display: grid; margin-top: 14px; }
  .doc-sidebar > .chapter-source { display: inline-block; }
  .chapter-project { display: inline-block; margin-left: 24px; }
}
@media (max-width: 800px) {
  .page-intro { padding-block: 44px 40px; }
  .page-intro h1 { font-size: 42px; }
  .page-intro > p { font-size: 17px; }
  .case-opening { grid-template-columns: minmax(0,1fr); gap: 28px; padding-bottom: 32px; }
  .case-intro h1 { font-size: 42px; max-width: 620px; }
  .case-intro > p { max-width: 650px; }
  .project-case > .back-link { margin-bottom: 30px; }
  .case-section { grid-template-columns: 1fr; gap: 24px; padding-block: 30px; }
  .case-section dl > div { grid-template-columns: 100px minmax(0,1fr); gap: 24px; }
  .case-section .review-date { margin-top: 10px; }
  .project-journey { padding-block: 30px; }
  .project-route { grid-template-columns: 1fr; gap: 26px; }
  .project-route > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; }
  .route-number { grid-row: 1 / 4; padding-top: 6px; }
  .project-route h3, .project-route p, .project-route .route-source, .project-route .underlined { grid-column: 2; }
  .project-route .route-source { margin-top: 16px; }
  .project-control { grid-template-columns: 1fr; gap: 12px; }
  .about-body, .contact-section, .plain-rows article { grid-template-columns: 1fr; gap: 24px; }
  .about-body, .contact-section { padding-block: 36px; }
  .system-section { gap: 36px; padding-block: 36px; }
  .system-copy h2, .rules-section > h2 { font-size: 30px; }
  .docs-start, .directory-heading, .doc-group, .docs-guides { grid-template-columns: 1fr; gap: 24px; }
  .doc-group .doc-links { grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .docs-start .reading-links { gap: 26px; }
  .doc-group h3 { padding: 0; }
  .docs-guides .doc-links { grid-template-columns: 1fr; }
  .doc-layout { padding-block: 28px 48px; }
  .system-stages > li { grid-template-columns: 1fr; gap: 24px; padding-block: 26px; scroll-margin-top: 96px; }
  .system-stage-label { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px 16px; }
  .system-stage-label > span { grid-row: 1 / 3; padding-top: 5px; }
  .system-stage-label h3 { margin: 0; font-size: 26px; }
  .system-stage-label > p { grid-column: 2; }
  .system-stage-body > p { font-size: 16px; }
  .system-example-task > p { font-size: 17px; }
  .system-case-heading h2 { font-size: 28px; }
  .system-other { grid-template-columns: 1fr; gap: 28px; padding-block: 36px; }
  .system-other h2 { font-size: 28px; }
  .build-path > li { grid-template-columns: 28px minmax(0, 1fr); gap: 14px 16px; }
  .build-number { grid-row: 1 / 3; }
  .build-path > li > div { grid-column: 2; }
  .build-path h3 { font-size: 24px; max-width: none; }
  .method-examples { grid-template-columns: 1fr; gap: 0; }
  .method-examples > a { gap: 12px; }
  .chapter-system { margin-bottom: 20px; }
  .chapter-example { max-width: 440px; }
}
@media (max-width: 540px) {
  .page-intro h1, .case-intro h1 { font-size: 36px; }
  .case-intro h1 { margin-block: 18px 20px; }
  .case-intro .inline-links { gap: 20px; }
  .case-preview { padding: 14px; }
  .case-preview .screen-top { flex-wrap: wrap; gap: 12px; }
  .case-preview .screen-top .sample-label { margin: 0; }
  .case-section h2 { font-size: 25px; }
  .project-journey-heading h2 { font-size: 26px; }
  .case-section dl > div { grid-template-columns: 1fr; gap: 8px; }
  .case-next { flex-wrap: wrap; gap: 24px; }
  .case-next strong { font-size: 22px; }
  .case-next > a:last-child { margin-left: auto; }
  .docs-start .reading-links, .doc-group .doc-links { grid-template-columns: 1fr; gap: 0; }
  .docs-start .reading-links > a { padding-block: 18px; }
  .docs-start h2, .directory-heading h2, .docs-guides h2 { font-size: 26px; }
  .doc-directory { margin-top: 22px; }
  .doc-group { gap: 12px; }
  .prose h1 { font-size: 34px; }
  .prose h2 { font-size: 26px; }
  .prose { font-size: 16px; }
  .prose pre { padding: 18px; }
  .prose code { font-size: 13px; }
  .doc-pagination { gap: 24px; }
  .doc-pagination strong { font-size: 18px; }
  .chapter-project { display: block; margin-left: 0; }
}
