/* Faithful Oversight — site styles
   Palette: ink / paper / brass. Type: Fraunces (display), Source Sans 3 (body), IBM Plex Mono (labels). */

:root {
  --ink: #0E1A22;
  --ink-soft: #16242E;
  --ink-raise: #1B2B36;
  --paper: #F6F4EE;
  --paper-dim: #ECE8DD;
  --line: rgba(14, 26, 34, 0.14);
  --line-soft: rgba(246, 244, 238, 0.14);
  --brass: #B08A3E;
  --brass-bright: #D4AC5C;
  --brass-ink: #7A5A1C;          /* brass for small text on light backgrounds (AA contrast) */
  --slate: #44545D;
  --mist: #C4CCD0;               /* secondary text on dark */
  --mist-dim: #9AA7AE;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --nav-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--brass-ink); }
svg { display: block; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}
@media (min-width: 700px) {
  .wrap { padding-left: max(36px, env(safe-area-inset-left)); padding-right: max(36px, env(safe-area-inset-right)); }
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  background: var(--paper); color: var(--ink);
  padding: 12px 18px; font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding-top: env(safe-area-inset-top);
  background: rgba(14, 26, 34, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: 1.15rem;
  text-decoration: none; white-space: nowrap;
}
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }

.nav > nav { margin-left: auto; }
.nav-links {
  display: flex; gap: 26px; list-style: none;
  font-size: 0.95rem;
}
.nav-links a {
  text-decoration: none; color: var(--mist);
  padding: 10px 0; display: inline-block;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--paper); }

.nav-cta {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: .03em;
  text-decoration: none; color: var(--ink); background: var(--brass-bright);
  padding: 11px 18px; border-radius: 2px; white-space: nowrap;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--paper); }

.menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; color: var(--paper); cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; order: 3; }
  .nav > nav { margin-left: 0; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: fixed; left: 0; right: 0;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
    flex-direction: column; gap: 0; margin: 0;
    background: var(--ink);
    padding: 16px max(22px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .nav-links a { display: block; padding: 18px 2px; font-size: 1.2rem; color: var(--paper); }
  .nav-links .menu-cta { border-bottom: 0; padding-top: 24px; }
  .nav-links .menu-cta a {
    text-align: center; background: var(--brass-bright); color: var(--ink);
    font-family: var(--mono); font-size: .95rem; padding: 16px;
  }
}
@media (min-width: 901px) { .nav-links .menu-cta { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 26px; border-radius: 2px;
  font-family: var(--mono); font-size: .85rem; letter-spacing: .03em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--brass-bright); color: var(--ink); border: 1px solid var(--brass-bright); }
.btn-primary:hover { background: var(--paper); border-color: var(--paper); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--paper); border: 1px solid rgba(246,244,238,.32); }
.btn-ghost:hover { border-color: var(--brass-bright); background: rgba(212,172,92,.07); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Shared section type ---------- */
section { position: relative; }
.section { padding: clamp(76px, 10vw, 120px) 0; }
.light { background: var(--paper); color: var(--ink); }
.light-dim { background: var(--paper-dim); color: var(--ink); }
.dark-soft { background: var(--ink-soft); }

.eyebrow {
  display: block; margin-bottom: 16px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-bright);
}
.light .eyebrow, .light-dim .eyebrow { color: var(--brass-ink); }

.section-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.14;
  max-width: 22ch; text-wrap: balance;
}
.section-intro { margin-top: 20px; max-width: 62ch; font-size: 1.08rem; color: var(--mist); }
.light .section-intro, .light-dim .section-intro { color: var(--slate); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(64px, 11vw, 132px)) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(ellipse 900px 600px at 80% 10%, rgba(176,138,62,.16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-raise) 100%);
  overflow: hidden;
}
.watchmark {
  position: absolute; right: -240px; top: -120px;
  width: 900px; height: 900px; pointer-events: none; opacity: .5;
}
@media (max-width: 700px) { .watchmark { right: -420px; top: -200px; opacity: .35; } }
.hero .wrap { position: relative; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass-bright); margin-bottom: 26px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--brass-bright); }
@media (max-width: 480px) { .hero-eyebrow::before { display: none; } }

.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.06; letter-spacing: -.01em;
  max-width: 17ch; text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--brass-bright); }
.hero-sub { margin-top: 26px; max-width: 58ch; font-size: 1.16rem; color: var(--mist); }
.hero-sub strong { color: var(--paper); font-weight: 600; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }

.hero-stats {
  margin-top: clamp(52px, 7vw, 80px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft);
}
.stat { background: var(--ink); padding: 24px 22px; min-width: 0; }
.stat .num { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.2rem); line-height: 1; color: var(--brass-bright); }
.stat .label { margin-top: 10px; font-size: .9rem; line-height: 1.45; color: var(--mist); }
@media (max-width: 900px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .stat { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 18px; }
  .stat .label { margin-top: 0; }
}

/* ---------- Challenges ---------- */
.challenge-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft);
}
.challenge { background: var(--ink-soft); padding: 28px 26px; min-width: 0; }
.challenge h3 { font-family: var(--display); font-weight: 500; font-size: 1.16rem; line-height: 1.3; margin-bottom: 8px; }
.challenge p { color: var(--mist); font-size: .98rem; }
@media (max-width: 900px) { .challenge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .challenge-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.service-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 36px 34px; display: flex; flex-direction: column; min-width: 0;
  background: var(--paper); transition: background .25s ease;
}
.service:hover { background: #F1EEE4; }
.service-mark { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; color: var(--brass-ink); }
.service h3 { font-family: var(--display); font-weight: 500; font-size: 1.36rem; line-height: 1.25; margin: 10px 0 10px; }
.service > p { color: var(--slate); }
.service ul { margin: 16px 0 0; padding-left: 0; list-style: none; }
.service li { position: relative; padding-left: 22px; margin: 7px 0; color: var(--ink); font-size: .98rem; }
.service li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
.proof {
  margin-top: auto; padding-top: 22px;
}
.proof p {
  border-top: 1px solid var(--line); padding-top: 14px;
  font-size: .9rem; color: var(--slate);
}
.proof b { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em; color: var(--brass-ink); margin-right: 6px; }
@media (max-width: 800px) {
  .service-grid { grid-template-columns: 1fr; }
  .service { padding: 28px 24px; }
}

/* ---------- Engagements ---------- */
.engagement-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.engagement {
  background: var(--paper); border: 1px solid var(--line);
  padding: 32px 28px; display: flex; flex-direction: column; min-width: 0;
}
.engagement.featured { border-color: var(--brass); box-shadow: inset 0 3px 0 var(--brass); }
.engagement h3 { font-family: var(--display); font-weight: 500; font-size: 1.45rem; margin: 10px 0 8px; }
.engagement > p { color: var(--slate); }
.engagement ul { list-style: none; margin: 18px 0 24px; }
.engagement li { position: relative; padding-left: 22px; margin: 8px 0; font-size: .98rem; }
.engagement li::before { content: "✓"; position: absolute; left: 0; color: var(--brass-ink); font-weight: 700; }
.engagement .best-for { margin-top: auto; font-size: .9rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: 14px; }
.engagement .best-for b { color: var(--ink); }
.text-link {
  display: inline-block; margin-top: 16px; font-weight: 600;
  color: var(--brass-ink); text-underline-offset: 5px;
}
.dark-link { color: var(--brass-bright); }
.small-note { margin-top: 26px; font-size: .95rem; color: var(--slate); max-width: 80ch; }
@media (max-width: 960px) { .engagement-grid { grid-template-columns: 1fr; } }

/* ---------- Track record ---------- */
.record-grid {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft);
}
.record { background: var(--ink); padding: 32px 28px; min-width: 0; }
.record .fig { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.5rem); line-height: 1; color: var(--brass-bright); }
.record h3 { font-family: var(--body); font-weight: 600; font-size: 1.04rem; margin: 14px 0 6px; }
.record p { color: var(--mist); font-size: .96rem; }
.record .ctx { display: block; margin-top: 12px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mist-dim); }
@media (max-width: 900px) { .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .record-grid { grid-template-columns: 1fr; } }

/* ---------- Defense / regulated band ---------- */
.regulated {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.regulated-panel {
  border: 1px solid var(--line-soft); border-top: 3px solid var(--brass-bright);
  background: var(--ink); padding: 30px 30px;
}
.regulated-panel h3 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; margin-bottom: 14px; }
.regulated-panel ul { list-style: none; }
.regulated-panel li { position: relative; padding-left: 22px; margin: 10px 0; color: var(--mist); }
.regulated-panel li::before { content: "—"; position: absolute; left: 0; color: var(--brass-bright); }
.fine-print { margin-top: 18px; font-size: .88rem; color: var(--mist-dim); }
@media (max-width: 900px) { .regulated { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- About ---------- */
.about-grid { margin-top: 48px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.about-body p { color: var(--mist); margin-bottom: 18px; max-width: 60ch; }
.about-body .lead { font-family: var(--display); font-size: 1.35rem; line-height: 1.5; color: var(--paper); }
.name-note {
  margin-top: 28px; padding: 22px 24px;
  border-left: 3px solid var(--brass-bright); background: rgba(176,138,62,.08);
}
.name-note h3 { font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-bright); margin-bottom: 8px; }
.name-note p { margin: 0; color: var(--paper); }

.cred-list { list-style: none; border-top: 1px solid var(--line-soft); }
.cred-list li { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.cred-label { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--mist-dim); margin-bottom: 4px; }
.cred-value { display: block; color: var(--paper); font-size: .98rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Process + FAQ ---------- */
.steps { list-style: none; counter-reset: step; margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 20px; }
.steps li::before { content: "0" counter(step); font-family: var(--mono); font-size: .8rem; color: var(--brass-ink); }
.steps h3 { font-family: var(--display); font-weight: 500; font-size: 1.32rem; margin: 10px 0 8px; }
.steps p { color: var(--slate); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 26px; } }

.faq { margin-top: 72px; max-width: 820px; }
.faq h3.faq-title { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin-bottom: 14px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px;
  font-family: var(--mono); font-size: 1.3rem; color: var(--brass-ink);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--slate); max-width: 72ch; }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(ellipse 700px 500px at 15% 15%, rgba(176,138,62,.14), transparent 60%),
    var(--ink);
}
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.14; }
.contact-sub { margin-top: 20px; color: var(--mist); max-width: 46ch; }
.contact-direct { margin-top: 32px; display: grid; gap: 12px; }
.contact-direct a { color: var(--brass-bright); text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact-meta { margin-top: 32px; font-family: var(--mono); font-size: .82rem; color: var(--mist-dim); letter-spacing: .02em; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-form {
  background: var(--ink-raise); border: 1px solid var(--line-soft);
  padding: 34px 32px; border-radius: 3px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .95rem; }
.field label span { font-weight: 400; color: var(--mist-dim); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;
  background: var(--ink); color: var(--paper);
  border: 1px solid #5E707B; border-radius: 3px;
  padding: 12px 13px; font: inherit; font-size: 16px; line-height: 1.5;
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass-bright) 50%), linear-gradient(135deg, var(--brass-bright) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass-bright); outline-offset: 2px; border-color: var(--brass-bright); }
.field .hint { margin-top: 8px; font-size: .86rem; color: var(--mist-dim); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { margin: 20px 0 4px; }
.turnstile-slot:empty { margin: 8px 0 0; }
.form-foot { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-privacy { font-size: .84rem; color: var(--mist-dim); flex: 1 1 220px; }
.form-status { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--brass-bright); background: var(--ink); }
.form-status:empty { display: none; }
.form-status.error { border-left-color: #E07A5F; }
@media (max-width: 600px) {
  .contact-form { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 32px 0 max(32px, env(safe-area-inset-bottom)); }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: .88rem; color: var(--mist-dim); }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-row a { color: var(--mist); text-decoration: none; padding: 6px 0; }
.foot-row a:hover { color: var(--brass-bright); }

/* ---------- Scroll reveal (progressive enhancement: content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .btn, .nav-cta { border: 1px solid ButtonText; }
}

@media print {
  .site-header, .watchmark, .hero-actions, .contact-form, .skip-link, .menu-toggle { display: none !important; }
  body, section, .hero, .light, .light-dim, .dark-soft, .contact, .stat, .record, .challenge, .regulated-panel, .engagement, .service { background: #fff !important; color: #000 !important; }
  p, li, .stat .label, .cred-value, .cred-label, .record p, .section-intro { color: #000 !important; }
  .section, .hero { padding: 24px 0; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .service, .engagement, .record, .challenge { break-inside: avoid; }
}
