/* AEIP by KDOlabs — About page.
 * Self-contained inner-page stylesheet, built on the overview.css design
 * language (white card on paper, ink + teal, KDO brand mark, print-safe) and
 * tied to the flagship homepage through Barlow Condensed + DM Sans.
 * Loaded directly; no build tool required. Copyright KDOLabs.
 */

:root {
  --paper: #f5f9fb;
  --card: #ffffff;
  --ink: #0f2e40;      /* headings and strong text */
  --body: #294350;     /* body copy — clears 7:1 on white */
  --meta: #35515f;     /* small meta text — clears 7:1 on white */
  --teal: #0a565b;     /* small accent text */
  --teal-bright: #0f8f98; /* large display accent only */
  --gold: #b26a12;
  --line: #d9e7ee;
  --navy: #0c2434;     /* dark band */
  --navy-ink: #eef6fa; /* text on the dark band */
  --navy-gold: #e3b25a;/* accent on the dark band */
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 16px/1.72 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #1879d5; outline-offset: 4px; }

.wrap { width: min(1120px, calc(100% - 48px)); margin: auto; }

/* ---- Header / nav (matches the inner-page pattern) ---- */
.site-header {
  background: #ffffffed;
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; gap: 15px; align-items: center; text-decoration: none; color: var(--ink); }
.kdo-native-mark { width: 62px; height: 37px; color: #0c0c0a; flex-shrink: 0; }
.brand-name { font-family: var(--display); font-size: 27px; font-weight: 800; line-height: 1; letter-spacing: .01em; }
.brand-name span { display: block; font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .16em; color: var(--teal); margin-top: 7px; }
.links { display: flex; gap: 16px; align-items: center; font-size: 13.5px; font-weight: 600; }
.links a { text-decoration: none; color: var(--ink); }
.links a:hover { color: var(--teal); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #bed3dc; border-radius: 9px;
  padding: 10px 17px; background: #fff; text-decoration: none;
  font-weight: 650; color: var(--ink);
}
.btn:hover { border-color: var(--teal); color: var(--teal); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #0a2432; color: #fff; }

/* ---- Hero ---- */
.hero { padding: 72px 0 26px; }
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 500; color: var(--teal); margin: 0; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02; letter-spacing: -.01em; font-weight: 800;
  color: var(--ink); margin: 16px 0 22px; max-width: 16ch;
}
.hero h1 span { color: var(--teal-bright); display: block; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--body); max-width: 60ch; margin: 0; }

/* ---- Generic section card ---- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 4vw, 52px); margin: 22px auto;
  box-shadow: 0 25px 70px #17394a0a;
}
.card h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.01em;
  font-size: clamp(27px, 3.2vw, 38px); line-height: 1.08; color: var(--ink); margin: 0 0 14px;
}
.card h2 + .sub { font-size: 18px; color: var(--body); margin: 0 0 8px; max-width: 64ch; }
.card p { margin: 12px 0; color: var(--body); max-width: 68ch; }
.card p strong { color: var(--ink); }
.section-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }

/* ---- The operating loop ---- */
.loop { list-style: none; margin: 26px 0 6px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(7, 1fr); counter-reset: step; }
.loop li {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 15px; background: #fbfdfe;
}
.loop li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--teal); display: block; margin-bottom: 9px;
}
.loop li b { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); line-height: 1.1; margin-bottom: 7px; }
.loop li span { font-size: 12.5px; line-height: 1.5; color: var(--meta); }
.loop li:not(:last-child)::after {
  content: "›"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: #9ab6c4; z-index: 2; font-family: var(--sans);
}
.loop-note {
  margin-top: 16px; display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--teal);
}
.loop-note svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---- Lockup band ---- */
.lockup { background: var(--navy); color: var(--navy-ink); border: 0; }
.lockup .section-eyebrow { color: var(--navy-gold); }
.lockup h2 { color: var(--navy-ink); }
.manifesto { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 2px; }
.manifesto li { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.25; color: var(--navy-ink); }
.manifesto li em { font-style: normal; color: var(--navy-gold); }
.wordmark { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 34px); letter-spacing: .02em; margin-top: 10px; color: var(--navy-ink); }
.wordmark span { color: var(--navy-gold); }

/* ---- Principles ---- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.principle { border: 1px solid var(--line); border-left: 3px solid var(--teal-bright); border-radius: 12px; padding: 22px 24px; background: #fbfdfe; }
.principle .pn { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--teal); text-transform: uppercase; }
.principle h3 { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.12; color: var(--ink); margin: 8px 0 10px; letter-spacing: -.01em; }
.principle p { margin: 0; color: var(--body); font-size: 15px; line-height: 1.6; }

/* ---- Boundaries strip ---- */
.boundary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.boundary div { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fbfdfe; }
.boundary b { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.boundary span { font-size: 14px; color: var(--meta); line-height: 1.55; }

/* ---- Founders ---- */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.founder { border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; background: #fbfdfe; }
.founder-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.founder-photo { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--line); background: #eef3f6; }
.founder .fname { font-family: var(--display); font-weight: 800; font-size: 25px; color: var(--ink); letter-spacing: -.01em; line-height: 1.05; }
.founder .frole { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 6px 0 0; }
.founder p { margin: 0 0 14px; font-size: 14.5px; color: var(--body); }
.founder a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--teal); text-decoration: none; font-size: 14px; }
.founder a:hover { text-decoration: underline; }

/* ---- Closing CTA ---- */
.closing { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.note { font-size: 11.5px; line-height: 1.65; color: var(--meta); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 10px; max-width: 86ch; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #cfe0e8; padding: 40px 0; margin-top: 30px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: baseline; justify-content: space-between; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 24px; color: #fff; }
.footer-brand span { color: var(--navy-gold); font-weight: 600; }
.site-footer p { margin: 8px 0 0; font-size: 13px; color: #9fb8c4; max-width: 46ch; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.footer-links a { color: #cfe0e8; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .loop { grid-template-columns: repeat(2, 1fr); }
  .loop li:not(:last-child)::after { display: none; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .links { gap: 10px; font-size: 12px; }
  .links a.text-link { display: none; }
  .hero { padding: 48px 0 18px; }
  .principles, .boundary, .founders { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .kdo-native-mark { width: 50px; }
  .brand-name { font-size: 23px; }
}

/* ---- Print ---- */
@media print {
  .site-header, .closing, .site-footer { display: none !important; }
  body { background: #fff; color: #10222c; font-size: 10.5pt; }
  .card { border: 0; box-shadow: none; padding: 0; margin: 10px 0; }
  .lockup { background: #fff; color: #10222c; }
  .lockup h2, .manifesto li, .wordmark { color: #10222c; }
  .manifesto li em, .wordmark span, .lockup .section-eyebrow { color: #8a5500; }
  .principles, .boundary, .founders { grid-template-columns: 1fr 1fr; }
  @page { size: letter; margin: 16mm; }
}
