/* ============================================================
   Architecture of Intent — shared stylesheet
   ============================================================ */

:root {
  --navy-950: #0a1830;
  --navy-900: #0F2240;
  --navy-800: #17325c;
  --navy-700: #1f4176;
  --blue-500: #2E7FC1;
  --blue-100: #E8F1FA;
  --orange-500: #E8720C;
  --orange-600: #c95f07;
  --ink: #16202e;
  --gray-700: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e2e5ea;
  --gray-100: #f0f2f5;
  --gray-50: #f7f8fa;
  --white: #ffffff;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 34, 64, 0.06), 0 1px 1px rgba(15, 34, 64, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 34, 64, 0.08);
  --max-w: 1140px;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--gray-700); }
.lede { font-size: 1.2rem; color: var(--gray-700); max-width: 62ch; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 0.9em;
}

.section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-alt { background: var(--gray-50); }
.section-navy { background: var(--navy-900); color: #cfd8e6; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #b6c2d6; }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
}
.btn-primary { background: var(--orange-500); color: var(--white); }
.btn-primary:hover { background: var(--orange-600); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--navy-900);
  white-space: nowrap;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--navy-900), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand-mark svg { width: 18px; height: 18px; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 0.55em 0.85em;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { color: var(--navy-900); background: var(--gray-100); }
.nav-links a.active { color: var(--navy-900); background: var(--blue-100); }

.nav-cta { display: none; }
@media (min-width: 860px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none; border: none; cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--navy-900);
}
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle svg { width: 24px; height: 24px; }
@media (min-width: 860px) { .nav-toggle { display: none; } }
@media (max-width: 859px) {
  .nav-links {
    display: flex;
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin: 0;
    padding: 0.6rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease;
  }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a { display: block; border-radius: 8px; padding: 0.9em 1em; }
}

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(232,114,12,0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 70%);
  color: var(--white);
  padding: 5.5rem 0 5rem;
}
.hero .eyebrow { color: #ff9a4d; }
.hero h1 { color: var(--white); margin-bottom: 0.5em; }
.hero .lede { color: #c3cee1; font-size: 1.25rem; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ---------------- Cards & grids ---------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.5em; color: var(--navy-900); }
.card p:last-child { margin-bottom: 0; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--blue-100); color: var(--blue-500);
  font-weight: 800; font-size: 0.95rem; margin-bottom: 1rem;
}

/* ---------------- Paradigm timeline ---------------- */
.paradigm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 800px) { .paradigm-row { grid-template-columns: 1fr; } }
.paradigm {
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  position: relative;
}
.paradigm.is-current { border-color: var(--orange-500); box-shadow: 0 0 0 3px rgba(232,114,12,0.12); }
.paradigm-tag { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); }
.paradigm.is-current .paradigm-tag { color: var(--orange-500); }
.paradigm h3 { margin: 0.4em 0 0.6em; font-size: 1.1rem; }

/* ---------------- Manifesto ---------------- */
.manifesto-statement {
  border-left: 4px solid var(--orange-500);
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--navy-900);
  margin: 0 0 2.5rem;
  max-width: 46ch;
}
.values-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius); }
.values-table thead th {
  background: var(--navy-900);
  color: var(--white);
  text-align: left;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.values-table tbody td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.98rem;
  vertical-align: top;
}
.values-table tbody tr:nth-child(odd) { background: var(--gray-50); }
.values-table td.value-yes { font-weight: 700; color: var(--navy-900); }
.values-table td.value-no { color: var(--gray-500); }
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.table-wrap .values-table, .table-wrap table { border: none; border-radius: 0; min-width: 560px; }

/* ---------------- Quote ---------------- */
.quote-block {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.6rem;
  position: relative;
}
.quote-block p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--white);
  margin: 0;
  line-height: 1.5;
}

/* ---------------- Stats ---------------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .stat-row { grid-template-columns: 1fr; } }
.stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
}
.stat .num { font-size: 2rem; font-weight: 800; color: var(--orange-500); display: block; margin-bottom: 0.2em; }
.stat .label { font-size: 0.92rem; color: var(--gray-700); }

/* ---------------- Layer / loop diagrams ---------------- */
.layer-list { display: flex; flex-direction: column; gap: 0.75rem; }
.layer {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.2rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 5px solid var(--layer-color, var(--blue-500));
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.layer-index {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--layer-color, var(--blue-500));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.layer h3 { margin-bottom: 0.15em; color: var(--navy-900); }
.layer .layer-owner {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--layer-color, var(--blue-500));
  margin-bottom: 0.5em;
}
.layer p:last-child { margin-bottom: 0; }

.loop-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: center;
  margin-top: 1rem;
}
.loop-step {
  background: var(--navy-900);
  color: var(--white);
  border-radius: 8px;
  padding: 1rem 0.9rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
}
.loop-arrow { display: flex; align-items: center; justify-content: center; color: var(--orange-500); font-size: 1.4rem; }
@media (max-width: 760px) {
  .loop-diagram { grid-template-columns: 1fr; }
  .loop-arrow { transform: rotate(90deg); padding: 0.3rem 0; }
}

/* ---------------- Pillars / numbered mechanisms ---------------- */
.pillar-list { display: grid; gap: 1.25rem; }
.pillar {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.pillar:last-child { border-bottom: none; }
.pillar-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--orange-500);
  color: var(--orange-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.pillar h3 { margin-bottom: 0.3em; }

/* ---------------- Tables (general) ---------------- */
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.data-table th {
  background: var(--navy-900);
  color: var(--white);
  text-align: left;
  padding: 0.85rem 1.1rem;
}
table.data-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
table.data-table tbody tr:nth-child(odd) { background: var(--gray-50); }
table.data-table td strong { color: var(--navy-900); }

/* ---------------- Contract elements ---------------- */
.contract-list { display: flex; flex-direction: column; gap: 1rem; }
.contract-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  background: var(--white);
}
.contract-item h3 { color: var(--navy-900); margin-bottom: 0.4em; font-size: 1.05rem; }
.contract-item .ex {
  margin-top: 0.7em;
  padding: 0.7em 1em;
  background: var(--gray-50);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--gray-700);
  border-left: 3px solid var(--blue-500);
}
.contract-item .ex strong { color: var(--navy-900); }

/* ---------------- TOC ---------------- */
.toc-list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc-list li {
  counter-increment: toc;
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: baseline;
}
.toc-list li::before {
  content: counter(toc, upper-roman) ".";
  font-weight: 800;
  color: var(--orange-500);
  min-width: 2.2em;
}

/* ---------------- Case studies ---------------- */
.case-block {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2.2rem;
  margin-bottom: 2rem;
  background: var(--white);
}
.case-block .eyebrow { margin-bottom: 0.4em; }
.stage-list { display: flex; flex-direction: column; gap: 0.9rem; margin: 1.5rem 0; }
.stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  background: var(--gray-50);
  border-radius: 8px;
}
.stage-tag {
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--white);
  background: var(--blue-500);
  padding: 0.3em 0.7em;
  border-radius: 6px;
  height: fit-content;
  white-space: nowrap;
}
.stage p { margin: 0; font-size: 0.95rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-950); color: #9fb0c9; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6em; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 0.6em; color: var(--white); font-weight: 800; margin-bottom: 0.8em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
}

/* ---------------- Figures / diagrams ---------------- */
.figure {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}
.figure img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.figure figcaption {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.85rem;
  color: var(--gray-500);
  text-align: center;
}
.card .figure { margin: 1.25rem 0 0; padding: 1rem; box-shadow: none; }

/* ---------------- Misc ---------------- */
.divider { height: 1px; background: var(--gray-200); border: none; margin: 3rem 0; }
.center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--blue-100); color: var(--blue-500);
  font-weight: 700; font-size: 0.82rem;
  padding: 0.4em 0.9em; border-radius: 999px;
}
.page-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 4rem 0 3.5rem;
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: #b6c2d6; }
