/* Evidencera site styles.
   Colors and fonts are set once in :root below. Change a value there and it updates every page. */
/* Layout: established advisory firm. Navy hero band, calm white pages, brass accent used sparingly; every page carries one evaluation-themed illustration. */
:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --band: #EDF1F6;
  --ink: #12233D;
  --muted: #56647A;
  --line: #D8DFE8;
  --soft: #CFDAE7;
  --soft-2: #E3EAF2;
  --accent: #B07A24;
  --accent-text: #8A5C14;
  --deep: #10223B;
  --deep-panel: #18304F;
  --deep-panel-2: #213C60;
  --on-deep: #F3F6FA;
  --deep-muted: #AEBBCD;
  --deep-line: rgba(243, 246, 250, 0.14);
  --good: #2F7A5B;
  --warn: #B2452F;
  --display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C131E; --surface: #131C2A; --band: #101826; --ink: #E5EBF3; --muted: #9AA7BA; --line: #243146;
    --soft: #2A3B55; --soft-2: #1B273A; --accent: #D9A550; --accent-text: #E2B468;
    --deep: #09111D; --deep-panel: #111D30; --deep-panel-2: #1A2A43; --on-deep: #EEF2F8; --deep-muted: #9EABBE; --deep-line: rgba(238, 242, 248, 0.12);
    --good: #5FB88F; --warn: #E07B63;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C131E; --surface: #131C2A; --band: #101826; --ink: #E5EBF3; --muted: #9AA7BA; --line: #243146;
  --soft: #2A3B55; --soft-2: #1B273A; --accent: #D9A550; --accent-text: #E2B468;
  --deep: #09111D; --deep-panel: #111D30; --deep-panel-2: #1A2A43; --on-deep: #EEF2F8; --deep-muted: #9EABBE; --deep-line: rgba(238, 242, 248, 0.12);
  --good: #5FB88F; --warn: #E07B63;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light dark; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 96px; }
body { background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.14; }
h3 { font-size: 1.3rem; line-height: 1.28; }
p, ul, ol, dl { margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 500 0.74rem/1.4 var(--mono); letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent-text); }
.label { font: 500 0.7rem/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

/* SVG paint classes, all theme-aware */
svg text { font-family: var(--body); }
.f-ink { fill: var(--ink); } .f-muted { fill: var(--muted); } .f-accent { fill: var(--accent); } .f-soft { fill: var(--soft); } .f-soft2 { fill: var(--soft-2); }
.f-surface { fill: var(--surface); } .f-band { fill: var(--band); } .f-good { fill: var(--good); } .f-warn { fill: var(--warn); }
.s-ink { stroke: var(--ink); } .s-line { stroke: var(--line); } .s-accent { stroke: var(--accent); } .s-muted { stroke: var(--muted); } .s-good { stroke: var(--good); } .s-warn { stroke: var(--warn); }
.d-panel { fill: var(--deep-panel); } .d-panel2 { fill: var(--deep-panel-2); } .d-on { fill: var(--on-deep); } .d-muted { fill: var(--deep-muted); } .d-line { stroke: var(--deep-line); }
.mono-t { font-family: var(--mono); }

/* Header */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .word { font: 600 1.38rem/1 var(--display); letter-spacing: -0.01em; }
.tabs { flex: 1; min-width: 0; }
.tabs ul { list-style: none; padding: 0; display: flex; gap: 4px; justify-content: center; }
.tabs a { display: block; padding: 22px 14px 20px; text-decoration: none; font-size: 0.95rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 500; }
.btn, .btn-line, .btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 0.96rem/1 var(--body); padding: 14px 20px; border-radius: 3px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #10223B; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-light { background: var(--on-deep); color: var(--deep); border-color: var(--on-deep); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost-deep { display: inline-flex; align-items: center; padding: 14px 20px; border-radius: 3px; border: 1px solid var(--deep-line); color: var(--on-deep); text-decoration: none; font: 500 0.96rem/1 var(--body); }
.btn-ghost-deep:hover { border-color: var(--on-deep); }
.bar .btn { padding: 11px 16px; font-size: 0.9rem; flex: none; }
@media (max-width: 920px) {
  .bar { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 12px; }
  .brand { order: 1; }
  .bar .btn { order: 2; margin-left: auto; }
  .tabs { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs ul { justify-content: flex-start; }
  .tabs a { padding: 14px 12px 12px; }
}

/* Generic sections */
.section { padding-block: 96px; }
.section.alt { background: var(--band); border-block: 1px solid var(--line); }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 46rem; margin-bottom: 52px; }
.head .sub { color: var(--muted); font-size: 1.08rem; }
.more { font-weight: 500; color: var(--accent-text); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) { .section { padding-block: 64px; } .head { margin-bottom: 36px; } }

/* Hero */
.hero { background: var(--deep); color: var(--on-deep); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero .eyebrow { color: var(--accent); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { color: var(--deep-muted); font-size: 1.15rem; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { min-width: 0; }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 60px; } }

/* Page header for inner pages */
.page-head { background: var(--deep); color: var(--on-deep); }
.page-head .wrap { display: flex; flex-direction: column; gap: 16px; padding-block: 72px 64px; }
.page-head .eyebrow { color: var(--accent); }
.page-head p.lede { color: var(--deep-muted); font-size: 1.12rem; max-width: 40em; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 22em; }

/* Split block: text + illustration */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split > * { min-width: 0; }
.split.flip .art { order: -1; }
.split .art svg { width: 100%; height: auto; display: block; }
.split .text { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } .split.flip .art { order: 0; } }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.trio article { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--ink); }
.trio p { color: var(--muted); }
@media (max-width: 800px) { .trio { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Service tiles (home) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; min-width: 0; transition: border-color .15s ease, transform .15s ease; }
.tile:hover { border-color: var(--ink); }
.tile .ico { width: 44px; height: 44px; }
.tile p { color: var(--muted); font-size: 0.98rem; }
.tile .more { margin-top: auto; padding-top: 6px; }
@media (max-width: 900px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* Industry grid */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sector { padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; text-decoration: none; background: var(--surface); min-width: 0; }
.sector:hover h3 { color: var(--accent-text); }
.sector .ico { width: 36px; height: 36px; color: var(--ink); }
.sector p { color: var(--muted); font-size: 0.96rem; }
.pill { align-self: flex-start; font: 500 0.66rem/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.pill.soft { background: var(--soft-2); color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 900px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sectors { grid-template-columns: minmax(0, 1fr); } }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.principles article { display: flex; flex-direction: column; gap: 10px; }
.principles .ico { width: 30px; height: 30px; color: var(--accent); }
.principles p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.cta-band { background: var(--deep); color: var(--on-deep); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 64px; }
.cta-band h2 { max-width: 20em; }
.cta-band p { color: var(--deep-muted); margin-top: 10px; max-width: 36em; }

/* Services page */
.svc { display: flex; flex-direction: column; gap: 18px; }
.svc .q { margin: 0; font: italic 400 1.22rem/1.45 var(--display); padding-left: 16px; border-left: 2px solid var(--accent); }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.checks li { display: flex; gap: 10px; align-items: baseline; font-size: 0.98rem; }
.checks li::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; transform: translateY(-1px); }
@media (max-width: 520px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.svc-index { font: 500 0.78rem/1 var(--mono); color: var(--muted); letter-spacing: 0.08em; }
.svc-sep { height: 1px; background: var(--line); margin-block: 80px; }
@media (max-width: 700px) { .svc-sep { margin-block: 56px; } }

/* Engagement models */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.model { background: var(--surface); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.model.featured { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.model p { color: var(--muted); font-size: 0.97rem; }
.bar-scale { display: flex; gap: 4px; }
.bar-scale span { height: 6px; flex: 1; background: var(--soft); border-radius: 1px; }
.bar-scale span.on { background: var(--accent); }
@media (max-width: 900px) { .models { grid-template-columns: minmax(0, 1fr); } }

/* Industries: featured blocks */
.feature { background: var(--surface); border: 1px solid var(--line); padding: 44px; }
.feature + .feature { margin-top: 28px; }
.qs { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.qs li { padding: 13px 0; border-bottom: 1px solid var(--line); font: italic 400 1.06rem/1.45 var(--display); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cols2 > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.plain { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plain li { display: flex; gap: 10px; align-items: baseline; font-size: 0.97rem; }
.plain li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; transform: translateY(-2px); }
@media (max-width: 700px) { .feature { padding: 28px 22px; } .cols2 { grid-template-columns: minmax(0, 1fr); } }

/* Approach */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.step { background: var(--surface); border: 1px solid var(--line); padding: 26px 22px 28px; display: flex; flex-direction: column; gap: 12px; position: relative; min-width: 0; }
.step .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 500 0.85rem/1 var(--mono); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 42px; right: -21px; width: 22px; height: 2px; background: var(--accent); }
.step p { color: var(--muted); font-size: 0.96rem; }
.step .out { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 0.88rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .step::after { display: none; } }

.measures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.measures div { padding: 22px 22px 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.measures div:not(:nth-child(4n+1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.measures h3 { font-size: 1.08rem; }
.measures p { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 900px) {
  .measures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .measures div, .measures div:not(:nth-child(4n+1)) { padding: 20px 18px 22px 0; border-left: 0; }
  .measures div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
}
@media (max-width: 480px) { .measures { grid-template-columns: minmax(0, 1fr); } .measures div:nth-child(even) { padding-left: 0; border-left: 0; } }

/* About */
.founder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 56px; }
.founder-card { background: var(--surface); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; align-self: start; }
.monogram { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 500 1.5rem/1 var(--display); }
.founder-body { display: flex; flex-direction: column; gap: 18px; max-width: 42rem; }
.creds { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); border-top: 1px solid var(--line); margin-top: 6px; }
.creds dt, .creds dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.creds dt { font: 500 0.7rem/1.7 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.creds dd { font-size: 0.97rem; }
.founders { display: flex; flex-direction: column; gap: 28px; }
.profile { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; background: var(--surface); border: 1px solid var(--line); padding: 44px; }
.profile img { width: 220px; max-width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; display: block; background: var(--soft-2); }
.profile-body { display: flex; flex-direction: column; gap: 16px; max-width: 46rem; min-width: 0; }
.profile .who { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.profile .role { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.profile h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.15; }
.profile .titles { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
@media (max-width: 760px) { .profile { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 26px 22px; } .profile img { width: 160px; } }
@media (max-width: 820px) { .founder { grid-template-columns: minmax(0, 1fr); gap: 28px; } .creds { grid-template-columns: minmax(0, 1fr); } .creds dt { padding-bottom: 0; border-bottom: 0; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
.contact-grid > * { min-width: 0; }
.email-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.email { font: 500 clamp(1.05rem, 2.4vw, 1.35rem)/1.2 var(--mono); padding: 14px 18px; border: 1px solid var(--line); background: var(--surface); user-select: all; overflow-wrap: anywhere; }
.copy-status { font-size: 0.9rem; color: var(--muted); min-height: 1.4em; }
.brief { background: var(--surface); border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.brief ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.brief ol li::marker { color: var(--accent-text); font-family: var(--mono); font-size: 0.85em; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics span { font: 400 0.84rem/1 var(--mono); padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr)); gap: 40px; padding-block: 56px 36px; }
.foot-grid p { color: var(--muted); font-size: 0.95rem; max-width: 26em; margin-top: 14px; }
.foot-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; font-size: 0.95rem; }
.foot-grid ul a { text-decoration: none; color: var(--muted); }
.foot-grid ul a:hover { color: var(--ink); }
.legal-line { border-top: 1px solid var(--line); padding-block: 22px; font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-grid > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: no-preference) {
  main { animation: rise .35s ease both; }
  @keyframes rise { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
