/* Onyx Intelligence Systems — portal theme preview.
   The site restated in the Bearden portal design system: ivory paper,
   ink, deep bottle green, antique brass. Georgia serif throughout,
   hairline rules, uppercase letter-spaced labels, restrained shadows.
   A quiet ledger and letterpress feel. Tokens first; every rule below
   inherits from them. Legacy variable names from the previous dark
   theme are kept as aliases at the bottom of the token block so any
   stray reference still resolves on-theme. */
:root {
  color-scheme: light;
  /* portal palette */
  --ink: #23211c;
  --paper: #fbf8f1;
  --bg: #f1ece1;
  --line: #ddd5c4;
  --hairline: #c9c0ac;
  --accent: #1e4a3a;      /* bottle green */
  --accent-ink: #fbf8f1;
  --accent-edge: #163a2d;
  --accent-hover: #183f31;
  --brass: #9a7b3f;       /* antique brass: rules and decorative numerals */
  --brass-text: #6d5620;  /* darker brass for small text, AA on paper */
  --danger: #8f2f26;
  --danger-bg: #f7e9e4;
  --danger-line: #dcbfb6;
  --ok-bg: #e9efe6;
  --ok-line: #c3d3c2;
  --tint: #f4efe4;        /* raised panels, secondary hover */
  --badge-bg: #e9e2d2;
  --muted: #6b6455;
  /* portal type */
  --font-body: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --font-mono: Menlo, Consolas, monospace;
  --size-body: 18px;
  --tracking-caps: .18em;
  /* site geometry (unchanged from the previous theme) */
  --gutter: clamp(22px, 5.5vw, 104px);
  --section: clamp(56px, 7vw, 110px);
  /* legacy aliases */
  --ground: var(--bg);
  --panel: var(--paper);
  --raised: var(--tint);
  --red: var(--accent);
  --red-bright: var(--brass-text);
  --faint: var(--muted);
  --sans: var(--font-body);
  --mono: var(--font-mono);
  --line-strong: var(--hairline);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: normal; }
::selection { background: var(--badge-bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 12px 20px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* --- header ---------------------------------------------------------------
   The portal topbar idiom: paper ground, hairline rule, a 1px brass
   shadow line under it. */
.site-header {
  height: 82px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 1px 0 var(--brass);
  position: relative;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong {
  font-size: 24px; font-weight: normal; line-height: 1;
  letter-spacing: .06em; color: var(--ink);
}
.brand-copy small {
  margin-top: 5px; font-size: 11px; line-height: 1;
  letter-spacing: .28em; text-transform: uppercase; color: var(--brass-text);
}
nav.primary-nav, nav {
  display: flex; align-items: center; gap: 30px;
  font-size: 15px; color: var(--ink);
}
nav.primary-nav a, nav a { color: var(--accent); }
nav.primary-nav a:hover, nav a:hover, .text-link:hover, .email:hover {
  text-decoration: underline;
}
.header-right { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* --- buttons ----------------------------------------------------------------
   The portal button idiom: bottle green fill for the primary action,
   paper with a hairline edge for the secondary. Uppercase, letterspaced. */
.header-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 46px;
  padding: 12px 22px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.header-cta:hover, .button:hover { background: var(--tint); }
.button.primary, .header-cta.primary {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent-edge); min-width: 260px;
}
.button.primary:hover, .header-cta.primary:hover { background: var(--accent-hover); }

/* --- labels and heroes ------------------------------------------------------ */
.eyebrow {
  font-size: 12px; line-height: 1.5; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--brass-text);
}

.hero {
  min-height: min(850px, calc(100svh - 82px));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: clamp(92px, 13vh, 150px) var(--gutter) 50px;
}
.hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 64% center; z-index: -3;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(251, 248, 241, .97) 0%, rgba(251, 248, 241, .88) 43%, rgba(251, 248, 241, .30) 78%),
    linear-gradient(0deg, rgba(241, 236, 225, .92), transparent 35%);
}
.hero-inner { width: min(1040px, 100%); }
.hero h1 {
  margin-top: 24px; max-width: 970px;
  font-size: clamp(44px, 6vw, 84px); line-height: 1.04; letter-spacing: -.01em;
}
.hero h1 span { color: var(--accent); }
.hero-copy {
  margin-top: 34px; display: grid;
  grid-template-columns: minmax(0, 680px) auto; gap: 54px; align-items: end;
}
.hero-lede { font-size: clamp(19px, 1.65vw, 25px); line-height: 1.45; color: var(--ink); }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 15px; }
.hero-secondary { width: fit-content; font-size: 16px; color: var(--accent); }
.cta-note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.hero-foot {
  margin-top: clamp(62px, 10vh, 110px); padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 11px; line-height: 1.5; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}

.page-hero {
  padding: clamp(90px, 12vh, 150px) var(--gutter) clamp(60px, 8vh, 100px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin-top: 24px; max-width: 920px;
  font-size: clamp(40px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -.01em;
}
.page-hero h1 span { color: var(--accent); }
.page-lede {
  margin-top: 28px; max-width: 720px;
  font-size: clamp(19px, 1.8vw, 25px); line-height: 1.45; color: var(--ink);
}
.page-hero .hero-actions { margin-top: 36px; display: flex; gap: 15px; }

/* --- homepage sections ------------------------------------------------------ */
.example {
  padding: var(--section) var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-head {
  display: grid; grid-template-columns: .8fr 1.2fr;
  gap: clamp(45px, 10vw, 170px); align-items: end;
  margin-bottom: clamp(44px, 5vw, 68px);
}
.section-head h2, .system-copy h2, .closing h2 {
  font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -.01em;
}
.section-head h2 span, .system-copy h2 span, .closing h2 span { color: var(--accent); }
.section-head > div > p:last-child {
  margin-top: 20px; max-width: 650px;
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--muted);
}
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); }
.flow li { border-top: 1px solid var(--hairline); padding-top: 22px; }
.flow span { font-size: 13px; color: var(--brass-text); letter-spacing: .1em; }
.flow h3 { margin-top: 14px; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.25; }
.flow p { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 380px; }

.proof { padding: var(--section) var(--gutter); background: var(--tint); color: var(--ink); }
.section-head > div > p.proof-intro { color: var(--muted); }
.story {
  margin: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 1px 2px rgba(35, 33, 28, .06);
}
.client-label {
  font-size: 11px; line-height: 1.5; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass-text);
}
.story-main {
  display: grid; grid-template-columns: auto 1fr;
  gap: clamp(24px, 5vw, 70px); align-items: center; margin-top: 18px;
}
/* The case result is stated at ledger size, not billboard size. */
.story-main > strong {
  font-size: 54px; font-weight: normal; line-height: 1;
  letter-spacing: 0; color: var(--brass);
}
.story h3 { font-size: clamp(23px, 2.6vw, 34px); line-height: 1.2; }
.story p { margin-top: 14px; color: var(--muted); max-width: 560px; font-size: 17px; }
.metrics-strip {
  list-style: none; margin: 34px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.metrics-strip li { font-size: 15px; color: var(--muted); }
.metrics-strip strong {
  display: block; font-size: 24px; font-weight: normal;
  letter-spacing: 0; color: var(--ink);
}

.system { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 700px; border-bottom: 1px solid var(--line); }
.system-copy {
  padding: var(--section) clamp(30px, 6vw, 108px) var(--section) var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
}
.system-copy h2 { margin-top: 25px; }
.system-copy > p:last-of-type { margin-top: 30px; max-width: 570px; font-size: 19px; color: var(--muted); }
.system-copy .boundary {
  margin-top: 36px; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 17px;
}
.system-stack {
  padding: var(--section) var(--gutter) var(--section) clamp(30px, 6vw, 108px);
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
}
.stack-item { position: relative; padding: 30px 28px 30px 82px; border-top: 1px solid var(--line); }
.stack-item:last-child { border-bottom: 1px solid var(--line); }
.stack-item > span {
  position: absolute; left: 28px; top: 34px;
  font-size: 13px; color: var(--brass-text); letter-spacing: .08em;
}
.stack-item h3 { font-size: 23px; line-height: 1.25; }
.stack-item p { margin-top: 10px; color: var(--muted); max-width: 580px; }
.stack-item .tag {
  display: inline-block; margin-top: 12px;
  font-size: 12px; padding: 2px 12px; border-radius: 2px;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--badge-bg); color: var(--muted);
}

.how { padding: var(--section) var(--gutter); border-bottom: 1px solid var(--line); }
/* Homepage steps: a four-column ruled row. */
.how .steps, .steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px);
}
.how .steps li, .steps li { border-top: 1px solid var(--hairline); padding-top: 20px; }
.how .steps span, .steps span {
  font-size: 13px; color: var(--brass-text); letter-spacing: .1em;
}
.how .steps h3, .steps h3 { margin-top: 12px; font-size: 20px; }
.how .steps p, .steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }
/* Inner-page steps: a numbered ledger list. Bookkeeping and the
   deployment page use this form; the grid form above is scoped to
   sections that opt in with the same markup pattern at wide widths. */
.p-section .steps { display: block; margin-top: 44px; }
.p-section .steps li {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.p-section .steps .n { font-size: 14px; color: var(--brass-text); letter-spacing: .1em; }
.p-section .steps h3 { margin-top: 0; font-size: 21px; }
.p-section .steps p { margin-top: 8px; font-size: 17px; max-width: 680px; }

.teaser { padding: var(--section) var(--gutter); border-top: 1px solid var(--line); }
.teaser h2 {
  margin-top: 22px; max-width: 700px;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.01em;
}
.teaser h2 span { color: var(--accent); }
.teaser > div > p { margin-top: 20px; max-width: 560px; font-size: 18px; color: var(--muted); }
.teaser .link-row { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; }
.teaser .text-link { font-size: 16px; color: var(--accent); }
.teaser.light { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
.teaser.light > div > p { color: var(--muted); }
.teaser.light .text-link { color: var(--accent); }

/* --- inner pages ------------------------------------------------------------ */
.p-section { padding: var(--section) var(--gutter); border-bottom: 1px solid var(--line); }
.p-section.light { background: var(--paper); color: var(--ink); }
.p-section h2 {
  margin-top: 22px; max-width: 820px;
  font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.01em;
}
.p-section h2 span { color: var(--accent); }
.p-section > p { margin-top: 26px; max-width: 680px; font-size: 19px; color: var(--muted); }
.p-section > p + p { margin-top: 16px; }
.p-section.light .stack-item { border-color: var(--line); }
.p-section.light .stack-item > span { color: var(--brass-text); }
.p-section.light .stack-item p { color: var(--muted); }
.p-section.light .stack-item .tag { color: var(--muted); }

/* iteration 05 components */
.fact-strip {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.fact-strip li { border-top: 1px solid var(--hairline); padding-top: 16px; }
.fact-strip .fact-label {
  display: block; font-size: 11px; line-height: 1.5;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.fact-strip .fact-value {
  display: block; margin-top: 8px; font-size: 20px; letter-spacing: 0;
}
.chapters { list-style: none; margin: 44px 0 0; padding: 0; }
.chapters li {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.chapters li:last-child { border-bottom: 1px solid var(--line); }
.chapters .ch-index { font-size: 13px; line-height: 1.6; letter-spacing: .1em; color: var(--brass-text); }
.chapters h3 { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.25; }
.chapters p { margin-top: 10px; color: var(--muted); max-width: 640px; }
.anonymity-note { margin-top: 26px; font-size: 15px; color: var(--muted); max-width: 640px; }
/* Was a dark inset band; in this theme it is a paper card. */
.dark-band {
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(28px, 4vw, 52px); margin-top: 44px;
  box-shadow: 0 1px 2px rgba(35, 33, 28, .06);
}
.dark-band .eyebrow { margin-bottom: 0; }
.dark-band h3 { margin-top: 18px; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; }
.dark-band h3 span { color: var(--accent); }
.dark-band > p { margin-top: 18px; color: var(--muted); max-width: 680px; }
.band-items {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.band-items li { border-top: 1px solid var(--hairline); padding-top: 16px; }
.band-items .bi-label {
  font-size: 11px; line-height: 1.5; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass-text);
}
.band-items strong { display: block; margin-top: 8px; font-size: 18px; font-weight: normal; }
.band-items p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.data-path {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px;
}
.data-path li {
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--paper); padding: 22px;
}
.data-path .dp-index { font-size: 12px; line-height: 1.5; letter-spacing: .1em; color: var(--brass-text); }
.data-path strong { display: block; margin-top: 8px; font-size: 17px; font-weight: normal; }
.data-path .dp-arrow { align-self: center; color: var(--brass); font-size: 22px; border: none; padding: 0; background: none; }
.path-note {
  margin-top: 22px; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 15px; max-width: 780px;
}
.path-note strong { color: var(--ink); font-weight: normal; }
.establish { list-style: none; margin: 44px 0 0; padding: 0; }
.establish li {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.establish li:last-child { border-bottom: 1px solid var(--line); }
.establish .e-index { font-size: 13px; line-height: 1.6; color: var(--brass-text); letter-spacing: .1em; }
.establish h3 { font-size: clamp(20px, 2.2vw, 27px); line-height: 1.25; }
.establish p { margin-top: 10px; color: var(--muted); max-width: 680px; }
/* Price ranges are stated in the same register as the body copy. */
.price-range { margin-top: 44px; }
.price-range .pr-number { font-size: 44px; font-weight: normal; letter-spacing: 0; line-height: 1.1; }
.price-range .pr-unit {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-left: 12px;
}
.price-range p { margin-top: 18px; color: var(--muted); max-width: 680px; font-size: 19px; }
.price-range .pr-caveat { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 680px; }
.parts { list-style: none; margin: 44px 0 0; padding: 0; }
.parts li {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.parts li:last-child { border-bottom: 1px solid var(--line); }
.parts .p-index { font-size: 13px; line-height: 1.6; letter-spacing: .1em; color: var(--brass-text); }
.parts h3 { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.25; }
.parts p { margin-top: 10px; color: var(--muted); max-width: 640px; }
.parts .p-status {
  display: inline-block; margin-top: 14px;
  font-size: 12px; padding: 2px 12px; border-radius: 2px;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--badge-bg); color: var(--muted);
}
.agenda { list-style: none; margin: 30px 0 0; padding: 0; }
.agenda li {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line); font-size: 19px;
}
.agenda li:last-child { border-bottom: 1px solid var(--line); }
.agenda .a-index { font-size: 13px; line-height: 1.8; color: var(--brass-text); letter-spacing: .1em; }
.booking-card { margin-top: 36px; }
.booking-note { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 560px; }
.link-row { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.text-link { color: var(--accent); border-bottom: 1px solid var(--hairline); padding-bottom: 2px; }

/* bookkeeping plans */
.plans {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.plans > li {
  border: 1px solid var(--line); border-radius: 3px; padding: 28px;
  display: flex; flex-direction: column; background: var(--paper);
  box-shadow: 0 1px 2px rgba(35, 33, 28, .06);
}
.p-section.light .plans > li { background: var(--paper); border-color: var(--line); }
.plans h3 { font-size: 21px; }
.plans .price { margin-top: 14px; font-size: 32px; font-weight: normal; letter-spacing: 0; line-height: 1.1; }
.plans .price small {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.plans ul { list-style: none; margin: 20px 0 0; padding: 0; }
.plans ul li { padding: 8px 0; font-size: 15px; color: var(--muted); }

/* --- closing and contact ------------------------------------------------------ */
.closing { padding: var(--section) var(--gutter) 70px; position: relative; overflow: hidden; }
.closing::after {
  content: ""; position: absolute; width: 44vw; height: 1px;
  background: var(--brass); right: -8vw; top: 22%;
  transform: rotate(-13deg); opacity: .45; pointer-events: none;
}
.closing-inner {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 1.1fr .9fr; gap: clamp(50px, 10vw, 160px); align-items: start;
}
.closing h2 { margin-top: 24px; max-width: 760px; }
.closing-lede {
  margin-top: 26px; font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.45; color: var(--ink); max-width: 560px;
}
.closing .cta-note { margin-top: 18px; }
.closing-copy { padding-top: 30px; border-top: 1px solid var(--hairline); }
.closing-copy > p { font-size: clamp(19px, 2vw, 25px); line-height: 1.4; color: var(--ink); }
.closing-copy .button { margin-top: 32px; }
/* The portal form idiom: paper fields, hairline edges, a bottle ring
   on focus, and small uppercase labels. */
.contact-form { display: grid; gap: 16px; }
.closing-copy .contact-form, .p-section .contact-form { margin-top: 32px; }
.contact-form label {
  display: grid; gap: 8px;
  font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 3px; color: var(--ink);
  font-family: inherit; font-size: 17px; line-height: 1.5;
  padding: 10px 12px; text-transform: none; letter-spacing: normal;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(30, 74, 58, .15);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .button { justify-content: center; }
.email {
  display: block; width: fit-content; margin-top: 20px;
  font-size: 16px; color: var(--accent); overflow-wrap: anywhere;
}

/* --- blog --------------------------------------------------------------------- */
.post-list { padding: var(--section) var(--gutter); border-bottom: 1px solid var(--line); }
.post { display: block; padding: 34px 0; border-top: 1px solid var(--line); max-width: 860px; }
.post:last-child { border-bottom: 1px solid var(--line); }
.post-date {
  font-size: 11px; line-height: 1.5; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass-text);
}
.post h2 {
  margin-top: 14px; font-size: clamp(25px, 3.2vw, 40px);
  line-height: 1.15; letter-spacing: -.01em;
}
.post:hover h2 { color: var(--accent); }
.post p { margin-top: 14px; max-width: 680px; font-size: 17px; color: var(--muted); }

.article { padding: var(--section) var(--gutter); border-bottom: 1px solid var(--line); }
.byline {
  margin-top: 28px; font-size: 11px; line-height: 1.5;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.article-body { max-width: 720px; }
.article-body h2 {
  margin: 56px 0 0; font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15; letter-spacing: -.01em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-top: 20px; font-size: 19px; line-height: 1.65; color: var(--ink); }
.article-body p.note {
  padding: 18px 20px; border-left: 2px solid var(--accent);
  background: var(--tint); font-size: 16px; color: var(--muted);
}

/* --- policy pages --------------------------------------------------------------- */
.policy { padding: clamp(60px, 8vw, 120px) var(--gutter) clamp(60px, 8vw, 110px); }
.policy-inner { max-width: 780px; }
.policy h1 {
  margin-top: 22px; font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.05; letter-spacing: -.01em;
}
.policy h1 span { color: var(--accent); }
.updated {
  margin-top: 18px; font-size: 11px; line-height: 1.5;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.policy h2 {
  margin-top: 52px; font-size: 15px; font-weight: normal;
  text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--brass-text);
}
.policy h2::after {
  content: ""; display: block; border-bottom: 1px solid var(--line); margin-top: 8px;
}
.policy p, .policy li { color: var(--muted); }
.policy p { margin-top: 16px; font-size: 17px; }
.policy ul { margin: 14px 0 0; padding-left: 22px; }
.policy li { margin-top: 8px; font-size: 17px; }
.policy a.text-link { color: var(--accent); border-bottom: 1px solid var(--hairline); }
.policy a.text-link:hover { text-decoration: underline; }

/* --- faq ------------------------------------------------------------------------ */
.faq { padding: var(--section) var(--gutter); background: var(--paper); color: var(--ink); }
.faq-list { margin-top: clamp(36px, 4vw, 52px); border-top: 1px solid var(--hairline); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: clamp(18px, 2vw, 24px); line-height: 1.3; font-weight: normal;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 6px; top: 20px; color: var(--brass-text);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-a { padding: 2px 0 26px; max-width: 780px; }
.faq-item .faq-a p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.faq-item .faq-a p + p { margin-top: 12px; }

/* --- tables (portal idiom; no tables in the current markup) -------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th {
  font-size: 13px; color: var(--brass-text); text-transform: uppercase;
  letter-spacing: .12em; font-weight: normal;
}

/* --- footer ----------------------------------------------------------------------- */
footer {
  margin: 0 var(--gutter); padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 25px;
  color: var(--muted); font-size: 11px; line-height: 1.5;
  letter-spacing: .12em; text-transform: uppercase;
}
footer .brand-copy strong { font-size: 18px; color: var(--ink); letter-spacing: .06em; }
footer .brand-copy small { font-size: 8px; }
footer a:hover { color: var(--accent); }
.foot-nav { display: flex; flex-wrap: wrap; min-width: 0; justify-content: flex-end; gap: 12px 22px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.foot-nav a:hover { color: var(--accent); text-decoration: underline; }

/* --- motion package integration overrides (from the homepage) --------------------- */
.onyx-motion .hero-copy { display: block; margin-top: 0; }
.onyx-motion .hero h1 { margin-top: 0; max-width: none; }
.onyx-motion .metrics-strip { grid-column: 1 / -1; margin-top: 56px; }
.onyx-motion .hero-bottom #motion-toggle { color: var(--muted); }

/* --- responsive --------------------------------------------------------------------- */
@media (max-width: 900px) {
  nav.primary-nav { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px;
    padding: 10px 14px; border: 1px solid var(--hairline); border-radius: 3px;
    background: var(--paper); color: var(--ink);
    font-family: inherit; font-size: 15px; letter-spacing: .06em;
    text-transform: uppercase; cursor: pointer;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu:not([hidden]) { display: flex; }
  .mobile-menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    box-shadow: 0 1px 0 var(--brass);
    padding: 8px var(--gutter) 20px; z-index: 20;
  }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--accent); }
  .hero { min-height: 780px; }
  .hero-copy, .section-head, .system, .closing-inner { grid-template-columns: 1fr; }
  .hero-copy { gap: 30px; }
  .hero-actions { align-items: flex-start; }
  .system { min-height: 0; }
  .system-copy, .system-stack { padding: 80px var(--gutter); }
  .system-stack { padding-top: 60px; }
  .flow { grid-template-columns: 1fr; }
  .story-main { grid-template-columns: 1fr; gap: 18px; }
  .metrics-strip { grid-template-columns: 1fr 1fr; }
  .how .steps, .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .fact-strip { grid-template-columns: 1fr; }
  .chapters li, .parts li, .establish li { grid-template-columns: 1fr; gap: 10px; }
  .band-items { grid-template-columns: 1fr; }
  .data-path { grid-template-columns: 1fr; }
  .data-path .dp-arrow { display: none; }
  .p-section .steps li { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  .site-header { height: 72px; }
  .brand-copy small { display: none; }
  .brand img { width: 29px; height: 29px; }
  .brand-copy strong { font-size: 20px; }
  .header-cta { min-height: 40px; padding: 9px 11px; gap: 8px; font-size: 12px; }
  .hero { min-height: 720px; padding-top: 75px; }
  .hero-art { object-position: 70% center; }
  .hero h1 { font-size: clamp(40px, 13vw, 62px); }
  .hero-lede { font-size: 18px; }
  .hero-foot span:nth-child(2) { display: none; }
  .proof { padding-block: 72px; }
  .section-head { gap: 30px; margin-bottom: 40px; }
  .stack-item { padding: 24px 0 24px 46px; }
  .stack-item > span { left: 0; top: 29px; }
  .stack-item h3 { font-size: 21px; }
  .closing { padding-block: 74px 48px; }
  footer { align-items: flex-start; flex-direction: column; }
  .how .steps, .steps { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}

@media (min-width: 901px) {
  .menu-toggle, .mobile-menu { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Preserved supporting pages use the approved full Onyx logo. */
.brand img.brand-logo { width: 171px; height: auto; max-height: 48px; }
footer .brand img.brand-logo { width: 148px; height: auto; max-height: 42px; }
@media (max-width: 640px) {
  .brand img.brand-logo { width: 132px; height: auto; max-height: 38px; }
  footer .brand img.brand-logo { width: 132px; height: auto; max-height: 38px; }
}
