/* ============================================================
   CTAI — About page (/about/)
   Page-specific blocks only, ported from ctai_about_page/index.html.
   Hero, stat bar, section heads, operator block, "Where to next"
   and footer all come from the shared shell (shell.css).
   ============================================================ */

.ab-page { color: var(--ctai-white); font-family: var(--font-body); line-height: 1.55; padding-bottom: 64px; }
.ab-page *, .ab-page *::before, .ab-page *::after { box-sizing: border-box; }
:where(.ab-page) :where(h3,p,ul,ol,li) { margin: 0; padding: 0; } /* zero specificity: never beats shell.css */

/* 02 · mission */
.ab-mission { border: 1px solid var(--ctai-hairline); }
.ab-mission .body { padding: 28px var(--sh-pad-x); }
.ab-mission .body p { font-size: 15.5px; line-height: 1.6; color: var(--ctai-ink-82); max-width: 64ch; }
.ab-mission .body p + p { margin-top: 16px; color: var(--ctai-ink-64); }
.ab-mission .strip { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--ctai-hairline); }
.ab-mission .strip span { padding: 16px var(--sh-pad-x); border-right: 1px solid var(--ctai-hairline); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ctai-ink-60); }
.ab-mission .strip span:last-child { border-right: 0; }
@media (max-width: 820px) { .ab-mission .strip { grid-template-columns: 1fr; } .ab-mission .strip span { border-right: 0; border-bottom: 1px solid var(--ctai-hairline); } .ab-mission .strip span:last-child { border-bottom: 0; } }

/* 03 · operator block sits flush on the principles grid */
.ab-op-stack .sh-op { border-bottom: 0; }
/* principles grid — shared .sh-principles (shell.css) */

/* 04 · what's next — launch / learn / layer */
.ab-lll { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--ctai-hairline); }
.ab-lll .step { padding: 26px var(--sh-pad-x); border-right: 1px solid var(--ctai-hairline); }
.ab-lll .step:last-of-type { border-right: 0; }
.ab-lll .step .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--ctai-white); /* only section numbers are yellow */ }
.ab-lll .step h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; margin: 12px 0 10px; }
.ab-lll .step p { font-size: 13px; color: var(--ctai-ink-60); line-height: 1.5; }
/* the cycle — flush strip under the three steps, same language as .ab-mission .strip */
.ab-cycle { grid-column: 1 / -1; list-style: none; display: flex; align-items: center; padding: 16px var(--sh-pad-x); border-top: 1px solid var(--ctai-hairline); }
.ab-cycle li { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ctai-ink-60); white-space: nowrap; }
/* each stage stretches a hairline connector to the next, so the cycle spans the full width */
.ab-cycle li:not(:last-child) { flex: 1 1 auto; display: flex; align-items: center; }
.ab-cycle li:not(:last-child)::after { content: ""; flex: 1 1 auto; min-width: 16px; height: 1px; margin: 0 12px; background: var(--ctai-ink-40); opacity: .5; }
.ab-cycle li.loop { color: var(--ctai-white); }
.ab-cycle li.loop::before { content: "↻"; margin-right: 6px; color: var(--ctai-ink-40); }
.ab-next-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 20px; padding: 28px var(--sh-pad-x) 0; flex-wrap: wrap; }
.ab-next-cta .note { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ctai-ink-40); }
@media (max-width: 820px) { .ab-lll { grid-template-columns: 1fr; } .ab-lll .step { border-right: 0; border-bottom: 1px solid var(--ctai-hairline); } .ab-lll .step:last-of-type { border-bottom: 0; } }
/* the one-line cycle needs ~1000px; below that it wraps with arrows */
@media (max-width: 1000px) {
  .ab-cycle { flex-wrap: wrap; gap: 10px 0; }
  .ab-cycle li:not(:last-child) { flex: 0 0 auto; }
  .ab-cycle li:not(:last-child)::after { content: "→"; flex: none; min-width: 0; height: auto; background: none; opacity: 1; color: var(--ctai-ink-40); } }
