/* Fonts are self-hosted in /fonts, so no third party is contacted */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/lora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
/* Layout: full-width bands with a constrained inner column. Palette taken from the Mboroga Horn wordmark: navy #1F3864 and blue #2E74B5 */
:root {
  --paper: #f4f6fa;
  --surface: #ffffff;
  --ink: #16233d;
  --muted: #4c5a72;
  --line: #d5dce8;
  --navy: #1f3864;        /* "Mboroga" and "Consulting" in the logo */
  --navy-ink: #eef2f8;
  --navy-muted: #b4c2d8;
  --blue: #2e74b5;        /* "Horn" in the logo */
  --blue-strong: #225a8f;
  --blue-on-navy: #7fb3e3;
  --display: "Lora", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1526; --surface: #142038; --ink: #e8edf6; --muted: #a6b3c9; --line: #26344f;
    --navy: #16294b; --navy-ink: #eef2f8; --navy-muted: #a9b9d2;
    --blue: #5c9ad6; --blue-strong: #8dbbe8; --blue-on-navy: #8dbbe8; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1526; --surface: #142038; --ink: #e8edf6; --muted: #a6b3c9; --line: #26344f;
  --navy: #16294b; --navy-ink: #eef2f8; --navy-muted: #a9b9d2;
  --blue: #5c9ad6; --blue-strong: #8dbbe8; --blue-on-navy: #8dbbe8; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 { color: var(--ink); } }
:root[data-theme="dark"] .hero h1 { color: var(--ink); }
p { margin: 0; }

.inner {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.label {
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-strong); display: inline-flex; align-items: center; gap: 0.6rem;
}
.label::before { content: ""; width: 1.5rem; height: 2px; background: var(--blue); }
.section-head { display: grid; gap: 1rem; max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 600; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* Header */
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); }
header.site .inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.wordmark { font: 700 clamp(1.15rem, 2.4vw, 1.45rem)/1 var(--display); color: var(--navy); letter-spacing: -0.005em; white-space: nowrap; }
.wordmark .horn { color: var(--blue); }
.wordmark-suffix { transition: opacity 0.25s ease; }
.wordmark-suffix.is-hidden { opacity: 0; }
:root .navy .wordmark, footer.site .wordmark { font-size: 1.1rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark { color: var(--ink); } }
:root[data-theme="dark"] .wordmark { color: var(--ink); }
nav.primary { display: flex; gap: 1.5rem; align-items: center; }
nav.primary a { text-decoration: none; font-size: 0.95rem; color: var(--muted); }
nav.primary a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  background: var(--blue); color: #fff; font: 600 0.95rem/1 var(--body);
  padding: 0.85rem 1.3rem; border-radius: 4px; border: 0; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--blue-strong); }
nav.primary .btn { color: #fff; padding: 0.65rem 1rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }
@media (max-width: 760px) { nav.primary a:not(.btn) { display: none; } }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero .inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.8vw, 4.1rem); font-weight: 700; color: var(--navy); margin-top: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { margin-top: 1.5rem; font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-figure { position: relative; }
.photo {
  position: relative; overflow: hidden; border-radius: 6px;
  background: linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--navy) 60%, var(--blue)));
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .photo { aspect-ratio: 4 / 5; max-width: 100%; }
.readout {
  position: absolute; left: -1.25rem; bottom: 1.5rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px; padding: 0.9rem 1.1rem;
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.5; box-shadow: 0 10px 30px rgba(31,56,100,0.14);
  max-width: 15rem;
}
.readout strong { display: block; font: 600 1.25rem/1.2 var(--display); color: var(--blue-strong); margin-top: 0.15rem; }
@media (max-width: 860px) {
  .hero .inner { grid-template-columns: 1fr; }
  .hero-figure .photo { aspect-ratio: 16 / 10; }
  .readout { left: 1rem; bottom: 1rem; }
}

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.service { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; min-width: 0; }
.service .photo { aspect-ratio: 3 / 2; border-radius: 0; }
.service-body { padding: 1.5rem; display: grid; gap: 0.85rem; align-content: start; flex: 1; }
.service h3 { font-size: 1.45rem; font-weight: 600; }
.service p { color: var(--muted); }
.service ul { margin: 0.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; font-size: 0.96rem; }
.service li { display: grid; grid-template-columns: 0.9rem 1fr; gap: 0.6rem; }
.service li::before { content: ""; width: 0.45rem; height: 0.45rem; margin-top: 0.55rem; border: 2px solid var(--blue); border-radius: 50%; }
.tag { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; max-width: 40rem; } .service .photo { aspect-ratio: 16 / 7; } }

/* Case study band */
.navy { background: var(--navy); color: var(--navy-ink); }
.navy .label { color: var(--blue-strong); }
.navy .label::before { background: var(--blue-on-navy); }
:root .navy .label { color: var(--blue-on-navy); }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.case h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; margin-top: 1rem; }
.case p { color: var(--navy-muted); margin-top: 1.25rem; max-width: 34rem; }
.meter { display: grid; gap: 1.25rem; font-family: var(--mono); }
.meter-row { display: grid; gap: 0.5rem; }
.meter-row span { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-muted); }
.meter-bar { height: 2.75rem; border-radius: 3px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
.meter-fill { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; padding-left: 0.9rem; font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.meter-fill.before { width: 100%; background: rgba(255,255,255,0.18); color: var(--navy-ink); }
.meter-fill.after { width: 4%; min-width: 0.5rem; background: var(--blue-on-navy); color: var(--navy-ink); padding-left: 0; overflow: visible; }
.meter-fill.after b { position: absolute; left: calc(100% + 0.8rem); font-weight: 500; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.step { padding: 1.5rem 1.5rem 0 0; display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.step + .step { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font: 500 0.85rem/1 var(--mono); color: var(--blue-strong); }
.step h3 { font-size: 1.2rem; font-weight: 600; }
.step p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* About */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about .photo { aspect-ratio: 1 / 1; }
.about-copy { display: grid; gap: 1.1rem; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; }
.about-copy p { color: var(--muted); max-width: 38rem; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.principles h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; }
.principles p { font-size: 0.94rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about .photo { aspect-ratio: 16 / 9; } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; font: 600 1.08rem/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); color: var(--blue); flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; max-width: 40rem; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.contact h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; margin-top: 1rem; }
.contact p { color: var(--navy-muted); margin-top: 1.1rem; max-width: 34rem; }
.contact-card { display: grid; gap: 1rem; font-size: 1rem; }
.contact-card div { display: grid; gap: 0.2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
.contact-card span { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-muted); }
.contact-card a { text-decoration: none; color: var(--navy-ink); font-weight: 500; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--blue-on-navy); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }


/* Illustrations: inline SVG, coloured from theme tokens */
.photo svg { width: 100%; height: 100%; display: block; }
.ill-grid { fill: none; stroke: var(--navy-muted); stroke-opacity: 0.14; stroke-width: 1; }
.ill-line { fill: none; stroke: var(--blue-on-navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill-faint { fill: none; stroke: var(--navy-ink); stroke-opacity: 0.35; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill-card { fill: var(--navy-ink); fill-opacity: 0.07; stroke: var(--navy-ink); stroke-opacity: 0.4; stroke-width: 2; }
.ill-chip { fill: var(--navy); stroke: var(--navy-ink); stroke-opacity: 0.75; stroke-width: 2.5; }
.ill-pad { fill: var(--navy); stroke: var(--blue-on-navy); stroke-width: 2.5; }
.ill-dot { fill: var(--blue-on-navy); }
.ill-solid { fill: var(--navy-ink); fill-opacity: 0.85; }
.ill-text { font: 500 15px var(--mono); fill: var(--navy-muted); letter-spacing: 0.04em; }
.ill-big { font: 600 30px var(--display); fill: var(--navy-ink); }
.ill-pulse { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ill-flow { stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes flow { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .ill-pulse, .ill-flow { animation: none; } }

footer.site { padding-block: 1.75rem; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }
footer.site .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
footer.site a { color: var(--muted); }
.credit { font-size: 0.78rem; }

/* Privacy notice page */
.doc-head { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; color: var(--navy); margin-top: 1rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc-head h1 { color: var(--ink); } }
:root[data-theme="dark"] .doc-head h1 { color: var(--ink); }
.doc-head .lede { margin-top: 1rem; font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.doc-head .updated { margin-top: 1rem; font: 500 0.8rem/1 var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.notice { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.notice .inner { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5.5rem); display: grid; gap: 0.15rem; font-size: 0.92rem; }
.toc span { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-strong); margin-bottom: 0.6rem; }
.toc a { text-decoration: none; color: var(--muted); padding: 0.3rem 0 0.3rem 0.8rem; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--blue); }
.prose { max-width: 44rem; display: grid; gap: 1rem; min-width: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 600; color: var(--navy); margin-top: 1.75rem; scroll-margin-top: 6rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prose h2 { color: var(--ink); } }
:root[data-theme="dark"] .prose h2 { color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.prose li::marker { color: var(--blue); }
.prose a { color: var(--blue-strong); text-underline-offset: 2px; }
.facts { list-style: none; padding: 0 !important; margin: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.facts li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 0.75rem 1rem; color: var(--ink); }
.facts li + li { border-top: 1px solid var(--line); }
.facts li span { font: 500 0.75rem/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th { text-align: left; font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--paper); padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.prose td { padding: 0.85rem 1rem; vertical-align: top; color: var(--ink); border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 500; }
.prose td + td { color: var(--muted); }
@media (max-width: 860px) {
  .notice .inner { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
  .toc span { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .facts li { grid-template-columns: 1fr; gap: 0.15rem; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tr { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
  .prose tr:last-child { border-bottom: 0; }
  .prose td { padding: 0.15rem 0; border: 0; }
  .prose td[data-label]::before { content: attr(data-label); display: block; font: 500 0.7rem/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }
}
