/* Buni — homepage styles. Demo pages keep their own stylesheets. */
:root {
  --ink: #0f1c26;
  --text: #2f3b45;
  --muted: #5d6974;
  --line: #dcdfd9;
  --line-strong: #c4c9c2;
  --paper: #f6f5f1;
  --surface: #ffffff;
  --brand: #1f4d47;
  --brand-deep: #14332f;
  --brand-tint: #e7eeec;
  --on-dark: #eef2f0;
  --on-dark-muted: #a9bab6;
  --focus: #2f7a70;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --gutter: 16px;
  --radius: 4px;
  color-scheme: light;
}

*, *::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(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.25rem, 5.4vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.06rem; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

.kicker {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 14px;
}
.lede { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: 600 0.95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--brand-tint); color: var(--brand-deep); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 241, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.wordmark-mark { width: 36px; height: 36px; flex: none; }
.wordmark-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.wordmark-name { font-family: "Cinzel", var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.24em; margin-right: -0.24em; }
.wordmark-llc {
  display: flex; align-items: center; gap: 0.6em; margin-top: 0.45em;
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.45em; margin-right: -0.45em; color: var(--muted);
}
.wordmark-llc::before, .wordmark-llc::after { content: ""; width: 2.2em; height: 1px; background: #b08d57; }
.wordmark:hover { color: var(--ink); }

.nav { display: none; }
.nav a {
  white-space: nowrap;
  color: var(--text); text-decoration: none; font-size: 0.93rem; font-weight: 500;
  padding: 8px 0;
}
.nav a:hover { color: var(--brand); }
.hdr-phone { display: none; color: var(--ink); font-weight: 600; font-size: 0.93rem; text-decoration: none; white-space: nowrap; }
.hdr-cta { min-height: 42px; padding: 0 16px; font-size: 0.9rem; }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-strong); background: transparent;
  border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
.menu-btn svg { width: 20px; height: 20px; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0 auto; padding: 8px var(--gutter) 16px; }
.mobile-nav a {
  display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav li:last-child a { border-bottom: 0; }

@media (max-width: 559px) { .hdr-cta { display: none; } }
@media (min-width: 1100px) {
  .nav { display: flex; gap: 24px; }
  .hdr-phone { display: inline; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* Hero */
.hero { padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 40px; }
.hero h1 { max-width: 19ch; }
.hero .sub { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { margin-top: 26px; font-size: 0.9rem; color: var(--muted); }

.commitments {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand);
  padding: 26px 24px; align-self: start;
}
.commitments h2 {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative; padding: 13px 0 13px 30px; border-top: 1px solid var(--line);
  color: var(--ink); font-weight: 500; line-height: 1.45;
}
.check-list li:first-child { border-top: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}
@media (min-width: 900px) {
  .hero { padding: 96px 0 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 72px; align-items: center; }
}

/* Sections */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-head { display: grid; gap: 18px; margin-bottom: 44px; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
}
.sub-head { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }

/* Practices */
.practices { background: var(--surface); }
.practice-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 820px) { .practice-grid { grid-template-columns: 1fr 1fr; } }
.practice { background: var(--surface); padding: 32px 26px; display: flex; flex-direction: column; }
@media (min-width: 900px) { .practice { padding: 44px 40px; } }
.practice-num { font-family: var(--serif); font-size: 0.95rem; color: var(--muted); margin-bottom: 18px; }
.practice h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 12px; }
.practice ul { margin: 18px 0 26px; padding-left: 1.1em; color: var(--text); }
.practice li { margin-bottom: 6px; }
.practice .text-link { margin-top: auto; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link:hover { text-decoration: underline; }

/* Data advisory */
.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; } }
.rule-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rule-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.rule-list li small { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 2px; }

.data-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 560px) { .data-grid { grid-template-columns: 1fr 1fr; } }
.data-item { background: var(--surface); padding: 22px 22px; }
.data-item h4 { margin: 0 0 6px; font-size: 1rem; color: var(--ink); }
.data-item p { font-size: 0.93rem; color: var(--muted); }
.note { font-size: 0.92rem; color: var(--muted); margin-top: 18px; }

.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.step-num { font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--brand); margin-bottom: 14px; display: block; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* Confidentiality */
.dark { background: var(--brand-deep); color: var(--on-dark); }
.dark h2, .dark h3 { color: #fff; }
.dark .kicker { color: var(--on-dark-muted); }
.dark .lede { color: var(--on-dark-muted); }
.commit-grid { display: grid; gap: 1px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.14); }
@media (min-width: 640px) { .commit-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .commit-grid { grid-template-columns: repeat(3, 1fr); } }
.commit { background: var(--brand-deep); padding: 28px 24px; }
.commit h3 { margin-bottom: 8px; font-size: 1.05rem; }
.commit p { color: var(--on-dark-muted); font-size: 0.95rem; }
.disclaimer { margin-top: 32px; font-size: 0.9rem; color: var(--on-dark-muted); max-width: 75ch; }

/* Workflow */
.service-list { display: grid; gap: 28px; }
@media (min-width: 900px) { .service-list { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.service { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.service h3 { margin-bottom: 8px; font-size: 1.12rem; }
.service p { color: var(--muted); }
.deliverables {
  margin-top: 48px; background: var(--surface); border: 1px solid var(--line);
  padding: 28px 24px; display: grid; gap: 18px;
}
@media (min-width: 900px) { .deliverables { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding: 36px 40px; gap: 40px; } }
.deliverables ul { margin: 0; padding-left: 1.1em; columns: 1; }
@media (min-width: 640px) { .deliverables ul { columns: 2; column-gap: 36px; } }
.deliverables li { margin-bottom: 8px; break-inside: avoid; }
.example-link { margin-top: 28px; font-size: 0.95rem; color: var(--muted); }

/* Principles */
.principles { background: var(--surface); }
.principle-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .principle-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .principle-grid { grid-template-columns: repeat(3, 1fr); } }
.principle { background: var(--surface); padding: 28px 24px; }
.principle h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 0.97rem; }

/* About */
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (max-width: 420px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* FAQ */
.faq { max-width: 860px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.05rem; line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 28px; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq details p { padding: 0 0 22px; margin: 0; color: var(--text); max-width: 72ch; }

/* Contact */
.contact { background: var(--surface); }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 72px; } }
.contact-direct { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-direct li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-direct span { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-direct a { font-weight: 600; font-size: 1.05rem; text-decoration: none; color: var(--ink); }
.contact-direct a:hover { color: var(--brand); text-decoration: underline; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; background: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-status { font-size: 0.95rem; color: var(--brand-deep); font-weight: 500; min-height: 1.5em; }
.form-status.is-error { color: #9b2c2c; }
.form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c3cb; padding: 56px 0 40px; font-size: 0.93rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark-llc { color: #9aa6af; }
.site-footer h2 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8794a0; margin-bottom: 12px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e3e9ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-tag { margin-top: 14px; max-width: 40ch; }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid #26343f; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.85rem; color: #8794a0; }

/* Data programs */
.program-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .program-grid { grid-template-columns: repeat(3, 1fr); } }
.program { background: var(--surface); padding: 28px 24px; border-top: 3px solid var(--brand); }
.program-tag { font-size: 0.78rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 10px; }
.program h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 10px; }
.program p:last-child { color: var(--text); font-size: 0.97rem; }
