/* Intelix, inteli-x.com. Tokens mirror design/tokens.css. Layout notes: design/v2-implementation-notes.md */
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F7F5F0;
  --fg: #22211E;
  --muted: #5F5B53;
  --rule: #E2DDD3;
  --hover-bg: #EFECE5;
  --underline: #A9A397;
  --accent-1: #DCE6D9; /* sage */
  --accent-2: #DCE4EE; /* mist */
  --accent-3: #E6E0EE; /* lilac */
  --accent-1-ink: #4A4F46;
  --accent-2-ink: #474C55;
  --dark-bg: #1C1B19;
  --dark-fg: #F2EFE8;
  --dark-muted: #B5B0A6;
  --dark-rule: #36342F;
  --dark-underline: #77736B;
  --tbc-bg: #F2E6BF;
  --tbc-fg: #4D3F12;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1100px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --section-inner: clamp(48px, 6vw, 88px);
  --radius-panel: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--fg); color: var(--bg); padding: 10px 14px; z-index: 1; }

.arrow { width: 18px; height: 18px; flex: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 0.3em; }
.text-link:hover { text-decoration-color: currentColor; }

/* Review markers: open items. deploy.sh refuses to ship while any remain. */
mark.tbc { background: var(--tbc-bg); color: var(--tbc-fg); font-size: 0.8em; font-weight: 500; padding: 1px 6px; border-radius: 4px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
.brand svg { flex: none; }
.brand-name { font-size: 22px; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 0.5em; }
.nav a[aria-current="page"] { font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.5em; }

/* Bands */
.bands { display: flex; gap: 8px; }
.bands span { height: 10px; border-radius: 999px; }
.bands span:nth-child(1) { flex: 5 1 0; background: var(--accent-1); }
.bands span:nth-child(2) { flex: 3 1 0; background: var(--accent-2); }
.bands span:nth-child(3) { flex: 2 1 0; background: var(--accent-3); }
.bands.mini { width: 120px; gap: 6px; }
.bands.mini span { height: 6px; }

/* Home hero */
.hero { padding: clamp(72px, 11vw, 152px) 0 clamp(64px, 9vw, 128px); }
.hero h1 { max-width: 12.5em; font-size: clamp(40px, 6.4vw, 88px); line-height: 1.04; font-weight: 500; letter-spacing: -0.035em; }
.hero-sub { margin-top: 32px; max-width: 34em; font-size: clamp(18px, 1.9vw, 22px); color: var(--muted); }
.hero .bands { margin-top: clamp(48px, 7vw, 96px); }

/* Inner page hero */
.page-hero { padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.06; font-weight: 500; letter-spacing: -0.03em; }
.page-hero .intro { margin-top: 20px; max-width: 38em; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--muted); }
.page-hero .bands { margin-top: clamp(32px, 4vw, 48px); }
.page-hero .effective { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* Split: title left, content right; stacks on narrow screens */
.split { display: flex; flex-wrap: wrap; gap: 24px 48px; padding: var(--section) 0; border-top: 1px solid var(--rule); }
.inner .split { padding: var(--section-inner) 0; }
.split > .split-title { flex: 1 1 220px; }
.inner .split > .split-title { flex-basis: 260px; }
.split > .split-body { flex: 999 1 560px; min-width: 0; }
.split-body > p + p { margin-top: 16px; }
.inner .split-body > p { max-width: 38em; }
h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }

/* Service markers: Strategy sage, Transformation mist, Leadership lilac, Investment sage, Ventures mist */
.m-1 { --marker: var(--accent-1); }
.m-2 { --marker: var(--accent-2); }
.m-3 { --marker: var(--accent-3); }
.marker { flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--marker); }

/* Home: service rows */
.service-rows { list-style: none; padding: 0; }
.service-row { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 26px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.service-rows li:last-child .service-row { border-bottom: 1px solid var(--rule); }
.service-row .name { flex: 1 1 260px; display: flex; align-items: baseline; gap: 14px; font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.service-row .name .marker { transform: translateY(1px); }
.service-row .summary { flex: 1 1 320px; display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; }
.service-row .summary .arrow { color: var(--muted); margin-top: 4px; }
.service-row:hover .name span:last-child { text-decoration: underline; text-underline-offset: 0.2em; }
.after-list { margin-top: 20px; }

/* Panels */
.panel-section { padding: clamp(16px, 2vw, 32px) 0 var(--section); }
.inner .panel-section { padding: clamp(8px, 1vw, 16px) 0 var(--section-inner); }
.panel { border-radius: var(--radius-panel); padding: clamp(32px, 6vw, 80px) clamp(24px, 6vw, 80px); }
.panel.sage { background: var(--accent-1); --ink: var(--accent-1-ink); }
.panel.mist { background: var(--accent-2); --ink: var(--accent-2-ink); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; }
.panel-intro { margin-top: 16px; max-width: 38em; }

/* Numbered rule lists (principles, beliefs) */
.ruled { list-style: none; padding: 0; margin-top: clamp(32px, 5vw, 56px); display: grid; gap: 40px 32px; counter-reset: n; }
.ruled.principles { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ruled.beliefs { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ruled li { border-top: 1px solid var(--fg); padding-top: 16px; counter-increment: n; display: flex; flex-direction: column; gap: 10px; }
.ruled li::before { content: counter(n, decimal-leading-zero); font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ruled h3 { font-size: 20px; line-height: 1.3; font-weight: 500; }
.ruled p { font-size: 15px; }
.ruled.beliefs li { font-size: 18px; line-height: 1.4; font-weight: 500; }

/* Statement */
.statement { max-width: 24em; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }

/* Contact block (home) and closing row (inner pages) */
.contact-block p { max-width: 34em; }
.contact-block .heading { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; font-weight: 500; }
.contact-block .body { margin-top: 12px; color: var(--muted); }
.email-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--underline); text-underline-offset: 0.25em; }
.email-link:hover { text-decoration-color: currentColor; }
.closing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 48px; padding: var(--section-inner) 0; border-top: 1px solid var(--rule); }
.closing p { max-width: 26em; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; font-weight: 500; }
.closing .email-link { margin-top: 0; }

/* Services page */
.service-index { padding: 0 0 clamp(40px, 5vw, 64px); }
.service-index ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.service-index a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 14px; font-size: 15px; font-weight: 500; text-decoration: none; }
.service-index a:hover { background: var(--hover-bg); }
.service-index .marker { width: 12px; height: 12px; }
.services-intro { max-width: 38em; }
.service-title { display: flex; flex-direction: column; gap: 14px; }
.service-title .num { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.service-title h2 { font-size: clamp(26px, 2.6vw, 34px); }
.lead { max-width: 30em; font-size: clamp(20px, 2vw, 24px); line-height: 1.35; font-weight: 500; }
.split-body > .lead + p { margin-top: 20px; }
.list-label { margin: 36px 0 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.hair-list { list-style: none; padding: 0; max-width: 38em; }
.hair-list li { padding: 11px 0; border-top: 1px solid var(--rule); }
.hair-list li:last-child { border-bottom: 1px solid var(--rule); }
.hair-list strong { font-weight: 500; }

/* How we work */
.method { list-style: none; padding: 0; }
.step { padding: clamp(44px, 5.5vw, 72px) 0; border-top: 1px solid var(--rule); }
.step-row { display: flex; flex-wrap: wrap; gap: 20px 48px; }
.step-title { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.step-title .num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.step-title h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.step-body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.step-body p { max-width: 38em; }
.step-extra { margin-top: clamp(28px, 3.5vw, 44px); }

.questions { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.questions li { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--rule); border-radius: 16px; }
.questions .marker { width: 12px; height: 12px; }
.questions h3 { font-size: 19px; line-height: 1.3; font-weight: 500; }
.questions p { font-size: 15px; }

.wave { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--rule); border-radius: 20px; }
.stages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 24px; }
.stages li { display: flex; flex-direction: column; gap: 8px; }
.stages .when { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.stages .marker { width: 10px; height: 10px; border-radius: 3px; }
.stages .st4 { --marker: var(--fg); }
.stages h3 { font-size: 19px; font-weight: 500; }
.stages p { font-size: 15px; }
.wave-note { margin-top: 20px; max-width: 38em; color: var(--muted); }

.sequence { list-style: none; padding: 0; margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.sequence li { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 104px; padding: 16px 18px; border-radius: 14px; background: var(--bg); }
.sequence .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sequence .label { font-size: 18px; line-height: 1.25; font-weight: 500; }
.sequence li.loop { background: var(--fg); color: var(--dark-fg); }
.sequence li.loop .top { color: var(--dark-muted); }
.return { height: 26px; margin: 0 10%; border: 1.5px solid var(--fg); border-top: 0; border-radius: 0 0 14px 14px; }
.return-caption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--accent-1-ink); }
@media (max-width: 600px) {
  .return { display: none; }
  .return-caption { text-align: left; margin-top: 16px; }
  .sequence .top .arrow { transform: rotate(90deg); }
}

/* Contact page */
.contact-row { display: flex; flex-wrap: wrap; gap: 40px 48px; padding: var(--section-inner) 0; border-top: 1px solid var(--rule); }
.contact-main { flex: 999 1 480px; max-width: 38em; display: flex; flex-direction: column; gap: 16px; }
.contact-main .email-link { margin-top: 0; font-size: clamp(24px, 2.6vw, 30px); }
.contact-main .muted { color: var(--muted); }
.details { flex: 1 1 280px; align-self: flex-start; padding: 28px; border-radius: 20px; background: var(--accent-1); font-size: 17px; line-height: 1.7; }
.details .org { font-weight: 600; }
.details hr { border: 0; border-top: 1px solid #B9C5B6; margin: 16px 0 8px; }
.details .text-link { font-size: 15px; }

/* Legal */
.legal-body { display: flex; flex-wrap: wrap; gap: 40px 64px; padding: var(--section-inner) 0; border-top: 1px solid var(--rule); }
.toc { flex: 1 1 240px; }
.toc-label { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; }
.toc li { border-top: 1px solid var(--rule); }
.toc li:last-child { border-bottom: 1px solid var(--rule); }
.toc a { display: flex; align-items: center; gap: 4px; min-height: 44px; font-size: 15px; text-decoration: none; }
.toc a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.toc .n { width: 24px; flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.legal-article { flex: 999 1 560px; min-width: 0; max-width: 68ch; display: flex; flex-direction: column; gap: 48px; line-height: 1.65; }
.legal-article section { display: flex; flex-direction: column; gap: 14px; }
.legal-article h2 { display: flex; gap: 8px; align-items: baseline; font-size: 22px; line-height: 1.3; }
.legal-article h2 .n { min-width: 24px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.legal-article ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; }
.table-wrap table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--rule); }
.table-wrap thead th { border-top: 0; background: var(--hover-bg); font-weight: 500; }

/* Footer */
.site-footer { background: var(--dark-bg); color: var(--dark-fg); }
.site-footer .wrap { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 28px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.footer-row > .brand { flex: 1 1 220px; align-self: flex-start; }
.footer-row .brand-name { font-size: 19px; }
.footer-main { flex: 999 1 560px; min-width: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.footer-email { display: inline-flex; align-items: center; min-height: 44px; font-size: 22px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--dark-underline); text-underline-offset: 0.25em; }
.footer-email:hover { text-decoration-color: currentColor; }
.footer-meta { margin-top: 6px; font-size: 15px; color: var(--dark-muted); }
.footer-nav { display: grid; grid-template-columns: max-content max-content; column-gap: 48px; align-content: start; }
.footer-nav ul { list-style: none; padding: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.footer-nav .secondary a { color: var(--dark-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--dark-rule); font-size: 14px; color: var(--dark-muted); }
.footer-bottom .bands { width: 96px; gap: 6px; }
.footer-bottom .bands span { height: 6px; }

/* 404 */
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 32px; }
.notfound h1 { font-size: clamp(36px, 4.8vw, 64px); font-weight: 500; letter-spacing: -0.03em; }
