/* Layout idea: left-aligned editorial column on a 12-col grid; the R/A/C/I swimlane matrix is the one bold element, reused as the site's visual signature. */
:root {
  --paper: #f4f6f9;
  --panel: #ffffff;
  --ink: #13223a;
  --muted: #56636f;
  --navy: #1c4f8c;
  --navy-deep: #123a6b;
  --steel: #8a949e;
  --amber: #e3962b;
  --line: #d7dde5;
  --tint: #e8eef6;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --measure: 66ch;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: 2.2rem;
  --step-4: 3.1rem;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1828; --panel: #132238; --ink: #e6ecf3; --muted: #a3afbc;
    --navy: #82b2ea; --navy-deep: #a9c9f0; --steel: #93a0ad; --amber: #f0ae4e;
    --line: #26374f; --tint: #172a44; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1828; --panel: #132238; --ink: #e6ecf3; --muted: #a3afbc;
  --navy: #82b2ea; --navy-deep: #a9c9f0; --steel: #93a0ad; --amber: #f0ae4e;
  --line: #26374f; --tint: #172a44; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--step-4); font-weight: 760; font-stretch: 112%; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); font-weight: 720; font-stretch: 110%; }
h3 { font-size: var(--step-1); font-weight: 680; font-stretch: 104%; }
h4 { font-size: var(--step-0); font-weight: 680; }
p { margin: 0; max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
.small { font-size: var(--step--1); color: var(--muted); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.6rem; }

/* Header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-tile { width: 42px; height: 42px; background: #fff; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line); overflow: hidden; }
.brand-tile img { width: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 760; font-stretch: 118%; font-size: 1.05rem; letter-spacing: 0.01em; line-height: 1.05; }
.brand-name span { display: block; font-weight: 500; color: var(--steel); font-size: 0.86rem; letter-spacing: 0.04em; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; font-family: var(--font-display); font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.nav a.nav-cta { background: var(--navy-deep); color: #fff; padding: 8px 14px; border-radius: 6px; border: 0; }
:root[data-theme="dark"] .nav a.nav-cta { color: #0d1828; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav a.nav-cta { color: #0d1828; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 640; font-size: 1rem; padding: 12px 20px; border-radius: 6px; text-decoration: none; border: 2px solid var(--navy-deep); cursor: pointer; }
.btn-primary { background: var(--navy-deep); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--navy-deep); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding-block: clamp(48px, 7vw, 88px); }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.kicker { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--amber); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } h1 { font-size: 2.3rem; } h2 { font-size: 1.75rem; } }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 76px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { max-width: 15ch; }
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 2.9rem); max-width: 22ch; }

/* Swimlane: the signature element */
.lane { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.lane-scroll { overflow-x: auto; }
.lane table { border-collapse: separate; border-spacing: 4px; width: 100%; font-family: var(--font-display); font-size: 0.86rem; min-width: 420px; }
.lane th { font-weight: 640; text-align: center; color: var(--muted); padding: 4px; }
.lane th.role { text-align: left; color: var(--ink); white-space: nowrap; padding-right: 10px; }
.lane td { text-align: center; height: 40px; background: var(--tint); border-radius: 5px; }
.chip { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 13px; font-weight: 700; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.chip.r { background: var(--navy-deep); color: var(--paper); }
.chip.a { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--amber); }
.chip.ra { background: var(--navy-deep); color: var(--paper); box-shadow: 0 0 0 2.5px var(--amber); }
.chip.c { color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--steel); }
.chip.i { color: var(--steel); font-weight: 600; }
.lane-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-family: var(--font-display); font-size: 0.82rem; color: var(--muted); align-items: center; }
.lane-legend span { display: inline-flex; gap: 6px; align-items: center; }
.lane caption { caption-side: top; text-align: left; font-family: var(--font-display); font-weight: 680; font-size: 0.95rem; padding-bottom: 8px; color: var(--ink); }

/* Proof numbers */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.proof div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.proof div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.proof b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 760; font-stretch: 108%; font-variant-numeric: tabular-nums; color: var(--navy-deep); line-height: 1.15; }
.proof span { display: block; font-size: 0.95rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 860px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } .proof div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Offering rows */
.offer { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 32px; padding-block: 32px; border-top: 1px solid var(--line); }
.offer:first-of-type { border-top: 2px solid var(--ink); }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; gap: 14px; } }
.offer h3 { font-size: var(--step-2); }
.offer .who { font-family: var(--font-display); font-size: 0.92rem; color: var(--muted); margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 16px; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.facts h4 { font-size: 0.92rem; color: var(--navy-deep); margin-bottom: 6px; }
.facts ul { margin: 0; padding-left: 1.1em; }
.facts li + li { margin-top: 4px; }
.sample-link { display: inline-block; margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }

/* Simple list cards (offer summary on home) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.tiles a { display: block; padding: 22px 22px 24px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.tiles a:nth-child(3n+2), .tiles a:nth-child(3n+3) { padding-left: 22px; border-left: 1px solid var(--line); }
.tiles a:hover h3 { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.tiles p { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } .tiles a, .tiles a:nth-child(3n+2), .tiles a:nth-child(3n+3) { padding-left: 0; border-left: 0; } }

/* Engagement sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 16px 14px 0 0; border-top: 3px solid var(--line); position: relative; }
.steps li::before { content: "Week " attr(data-wk); display: block; font-family: var(--font-display); font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.steps li:first-child { border-top-color: var(--amber); }
.steps h4 { font-size: 1.02rem; }
.steps p { font-size: 0.94rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }

/* Exhibits */
.exhibit { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: clamp(18px, 3vw, 30px); }
.exhibit + .exhibit { margin-top: 36px; }
.exhibit-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; margin-bottom: 16px; }
.exhibit-head h3 { font-size: var(--step-2); }
.exhibit-tag { font-family: var(--font-display); font-size: 0.82rem; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
.exhibit .what { color: var(--muted); margin-bottom: 18px; }
.table-scroll { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-family: var(--font-display); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-weight: 680; color: var(--ink); border-bottom: 2px solid var(--ink); background: var(--panel); }
table.data td { color: var(--ink); }
table.data td.num, table.data th.num { text-align: right; }
table.data .group td { background: var(--tint); font-weight: 700; color: var(--navy-deep); }

/* RACI interactive */
.raci td.cell, .raci th.cell { text-align: center; width: 72px; }
.raci-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; font-family: var(--font-display); font-size: 0.9rem; }
.raci-controls button { font: inherit; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); padding: 6px 12px; border-radius: 18px; cursor: pointer; }
.raci-controls button[aria-pressed="true"] { border-color: var(--navy-deep); background: var(--navy-deep); color: var(--paper); }
.raci.focus td.cell:not(.on), .raci.focus th.cell:not(.on) { opacity: 0.22; }

/* Gantt */
.gantt { display: grid; grid-template-columns: 170px repeat(8, minmax(64px, 1fr)); gap: 4px; font-family: var(--font-display); font-size: 0.84rem; min-width: 760px; }
.gantt .h { color: var(--muted); font-weight: 600; text-align: center; padding: 4px 0; }
.gantt .ws { font-weight: 680; padding: 8px 8px 8px 0; align-self: center; }
.gantt .bar { border-radius: 5px; padding: 8px 10px; color: var(--paper); background: var(--navy-deep); font-weight: 600; line-height: 1.25; }
.gantt .bar.key { background: var(--amber); color: #1b1b1b; }
.gantt .bar.soft { background: var(--tint); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* Agenda */
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .days { grid-template-columns: 1fr; } }
.day { border-top: 3px solid var(--navy-deep); padding-top: 12px; }
.day.pre { border-top-color: var(--amber); }
.day h4 { font-size: 1.05rem; }
.day .goal { color: var(--muted); font-size: 0.95rem; margin: 4px 0 10px; }
.day ol, .day ul { margin: 0; padding-left: 1.2em; font-size: 0.95rem; }
.day li + li { margin-top: 5px; }

/* Bars chart */
.hbars { display: grid; gap: 12px; font-family: var(--font-display); font-size: 0.9rem; }
.hbar { display: grid; grid-template-columns: 170px 1fr 92px; gap: 12px; align-items: center; }
.hbar .track { background: var(--tint); border-radius: 4px; height: 22px; position: relative; overflow: hidden; }
.hbar .fill { position: absolute; inset: 0 auto 0 0; background: var(--navy-deep); border-radius: 4px; }
.hbar .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 680; }
@media (max-width: 560px) { .hbar { grid-template-columns: 1fr 70px; } .hbar .track { grid-column: 1 / -1; grid-row: 2; } }

/* Team */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .people { grid-template-columns: 1fr; } }
.person { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: grid; gap: 12px; align-content: start; }
.avatar { width: 120px; height: 120px; overflow: hidden; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--navy-deep); font-family: var(--font-display); font-weight: 760; font-stretch: 112%; font-size: 1.6rem; box-shadow: inset 0 0 0 2px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person .role { font-family: var(--font-display); font-size: 0.92rem; color: var(--navy); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-family: var(--font-display); font-size: 0.78rem; border: 1px solid var(--line); border-radius: 14px; padding: 2px 9px; color: var(--muted); }
.draft-note { font-family: var(--font-display); font-size: 0.8rem; color: #8a5a10; background: #fff4e0; border: 1px dashed #e3a64a; border-radius: 6px; padding: 6px 10px; }
:root[data-theme="dark"] .draft-note { background: #2d230f; color: #f0c27a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .draft-note { background: #2d230f; color: #f0c27a; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 3px var(--navy-deep); }
.timeline li:first-child::before { box-shadow: inset 0 0 0 3px var(--amber); }
.timeline .when { font-family: var(--font-display); font-size: 0.85rem; color: var(--muted); }
.timeline h4 { margin-top: 2px; }
.timeline p { font-size: 0.97rem; margin-top: 4px; }

/* Value Advisors gateway band */
.gateway { background: var(--navy-deep); color: #f2f6fb; border-radius: 12px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.gateway h2, .gateway h3 { color: #fff; }
.gateway p { color: #d5e1ef; }
.gateway .btn { border-color: var(--amber); background: var(--amber); color: #1b1b1b; }
:root[data-theme="dark"] .gateway { background: #18304f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gateway { background: #18304f; } }
@media (max-width: 820px) { .gateway { grid-template-columns: 1fr; } }
.zones { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--font-display); font-size: 0.9rem; }
.zones li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; background: rgba(255,255,255,0.07); border-radius: 6px; }
.zones b { color: var(--amber); }
.zones span.n { color: #b9c8da; font-variant-numeric: tabular-nums; }

/* Rules list */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
@media (max-width: 700px) { .rules { grid-template-columns: 1fr; } }
.rules div { border-left: 3px solid var(--amber); padding-left: 14px; }
.rules p { color: var(--muted); font-size: 0.97rem; margin-top: 4px; }

/* Forms */
form.contact { display: grid; gap: 16px; max-width: 640px; }
form.contact label { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; display: grid; gap: 6px; }
form.contact input, form.contact select, form.contact textarea { font: inherit; font-family: var(--font-body); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); width: 100%; }
form.contact textarea { min-height: 140px; resize: vertical; }
.form-status { font-family: var(--font-display); font-size: 0.95rem; border-left: 3px solid var(--amber); padding: 8px 12px; background: var(--panel); }
.form-status[hidden] { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; font-family: var(--font-display); font-size: 0.9rem; color: var(--muted); background: var(--panel); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (prefers-reduced-motion: no-preference) {
  .lane td .chip { animation: pop 420ms ease-out both; animation-delay: calc(var(--d, 0) * 45ms); }
  @keyframes pop { from { transform: scale(0.6); opacity: 0.2; } to { transform: scale(1); opacity: 1; } }
}
.steps.arc { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 22px; }
.steps.arc li::before { content: "Step " attr(data-wk); }
@media (max-width: 900px) { .steps.arc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps, .steps.arc { grid-template-columns: 1fr; } }

/* v2: role selector, audience pages */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.roles-page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 520px) { .roles, .roles-page { grid-template-columns: 1fr; } }
.role-card { display: grid; gap: 4px; padding: 14px 16px; border: 1.5px solid var(--line); border-left: 4px solid var(--amber); border-radius: 8px; background: var(--panel); text-decoration: none; color: var(--ink); }
.role-card b { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.role-card span { font-size: 0.92rem; color: var(--muted); line-height: 1.4; }
.role-card:hover { border-color: var(--navy-deep); border-left-color: var(--navy-deep); }
.roles-page .role-card { padding: 22px; }
.roles-page .role-card b { font-size: 1.2rem; }
.check { font-family: var(--font-display); font-size: 0.9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; max-width: 70ch; margin-top: 6px; }
.help { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 78ch; }
.help li { padding-left: 18px; border-left: 3px solid var(--line); }
.help strong { font-family: var(--font-display); font-weight: 680; color: var(--navy-deep); }
.other-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.other-roles a { font-family: var(--font-display); font-size: 0.92rem; text-decoration: none; border: 1.5px solid var(--line); border-radius: 20px; padding: 6px 14px; color: var(--ink); }
.other-roles a:hover { border-color: var(--navy-deep); }
.group-head { font-size: var(--step-2); margin: 40px 0 0; color: var(--amber); }
.group-head:first-child { margin-top: 0; }
.tiles .kicker { font-size: 0.82rem; display: block; margin-bottom: 6px; }

.hero h1.h1-long { font-size: clamp(2rem, 3.6vw, 2.75rem); max-width: 22ch; }

.roles-block { border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 12px; }
.roles-lead { font-family: var(--font-display); font-weight: 640; font-size: 0.98rem; color: var(--ink); }
