/* ===========================================================================
   PLUMBLINE INTELLIGENCE — main.css
   All visual styling for the theme. Dark, editorial, evidence-first.
   ---------------------------------------------------------------------------
   Contents:
     1.  Custom properties (:root)
     2.  Reset & base
     3.  Typography
     4.  Layout containers
     5.  Buttons & links
     6.  Section label / rule system (signature element)
     7.  Header & primary nav
     8.  Mobile overlay nav
     9.  Footer
     10. Hero
     11. Home — The Work / Clients / Sample Work / Engagements / CTA strip
     12. About
     13. Services
     14. Case studies index (document rows)
     15. Single investigation (body + sticky sidebar)
     16. Blog (list + single) & pagination
     17. Contact & forms (incl. Contact Form 7)
     18. Prose (the_content)
     19. Utilities & accessibility
     20. Responsive (≤980px, ≤768px)
   ======================================================================== */

/* ---------------------------------------------------------------------------
   1. CUSTOM PROPERTIES
   ------------------------------------------------------------------------ */
:root {
	/* Color */
	--bg:            #0D0F14; /* page background */
	--surface:       #131720; /* cards / panels */
	--accent:        #4A7FA5; /* steel blue — the only accent */
	--accent-hover:  #5C93BA; /* lighter steel, for hover only */
	--text:          #E8E6E0; /* primary text, warm off-white */
	--text-secondary:#7A7D85; /* labels & secondary info */
	--rule:          #242830; /* divider / horizontal rule */
	--border:        #1E2330; /* component borders */

	/* Fonts */
	--font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
	--font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Type scale */
	--fs-label:      11px;  /* mono section labels */
	--fs-ui:         13px;  /* UI / nav / buttons / metadata */
	--fs-body:       16px;  /* body copy */
	--fs-subhead:    20px;  /* subheads */
	--fs-display-sm: clamp(28px, 1rem + 2.4vw, 36px);
	--fs-display-md: clamp(32px, 1rem + 4vw, 50px);
	--fs-display-lg: clamp(38px, 1rem + 6vw, 64px);

	/* Layout */
	--maxw:          1120px;
	--maxw-narrow:   760px;
	--maxw-editorial:680px;
	--maxw-case:     800px;
	--gutter:        32px;
	--header-h:      72px;
	--space-section: 80px;

	--radius-btn:    2px; /* the only rounded corners in the design */
}

/* ---------------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; }

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }

::selection { background: rgba(74,127,165,.3); color: var(--text); }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; line-height: 1.12; }
p { margin: 0 0 1.25em; }
strong, b { font-weight: 600; color: var(--text); }
em, i { font-style: italic; }

.mono { font-family: var(--font-mono); font-feature-settings: "liga" 0; }

/* ---------------------------------------------------------------------------
   4. LAYOUT CONTAINERS
   ------------------------------------------------------------------------ */
.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }

.site-main { display: block; }

.section { padding-block: var(--space-section); }
.section + .section { padding-top: 0; } /* rule on .section-head carries the divide */

.editorial { padding-block: var(--space-section); }
.editorial__inner {
	max-width: var(--maxw-editorial);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.editorial__inner + .editorial__inner { padding-top: 0; }

/* ---------------------------------------------------------------------------
   5. BUTTONS & LINKS
   ------------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	font-family: var(--font-body);
	font-size: var(--fs-ui);
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1;
	padding: 13px 22px;
	border: 1px solid transparent;
	border-radius: var(--radius-btn);
	cursor: pointer;
	transition: background-color .16s ease, color .16s ease, border-color .16s ease;
	white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #0D0F14; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #0D0F14; }

.btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--bg); }

/* Text link with a nudging arrow */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	font-family: var(--font-body);
	font-size: var(--fs-ui);
	font-weight: 500;
	color: var(--accent);
}
.link-arrow .arrow { transition: transform .16s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------------------------------------------------------------------------
   6. SECTION LABEL / RULE SYSTEM  (signature element)
   Mono label, uppercase, steel blue, above a serif heading, sitting on a 1px rule.
   ------------------------------------------------------------------------ */
.section-label {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--fs-label);
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 18px;
}

.section-head {
	border-top: 1px solid var(--rule);
	padding-top: 26px;
	margin-bottom: 44px;
}
.section-title {
	font-family: var(--font-display);
	font-size: var(--fs-display-sm);
	color: var(--text);
	line-height: 1.08;
	max-width: 22ch;
}

/* Page header (top of interior pages) — label + large serif title, no rule */
.page-head { margin-bottom: 48px; }
.page-title {
	font-family: var(--font-display);
	font-size: var(--fs-display-md);
	color: var(--text);
	line-height: 1.06;
	margin: 0;
}
.lede {
	font-size: 18px;
	color: var(--text-secondary);
	line-height: 1.6;
	max-width: 56ch;
	margin: 22px 0 0;
}

/* ---------------------------------------------------------------------------
   7. HEADER & PRIMARY NAV
   ------------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-h);
	gap: 24px;
}
.site-brand {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 16px;
	letter-spacing: .01em;
	color: var(--text);
}
.site-brand:hover { color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav__menu {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
}
.site-nav__menu a {
	font-size: var(--fs-ui);
	font-weight: 400;
	letter-spacing: .01em;
	color: var(--text-secondary);
}
.site-nav__menu a:hover,
.site-nav__menu .current-menu-item > a,
.site-nav__menu .current_page_item > a {
	color: var(--text);
}
.site-nav__cta { padding: 9px 16px; }

/* Hamburger (hidden until ≤768px) */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}
.nav-toggle__bar {
	display: block;
	width: 24px;
	height: 1.5px;
	margin-inline: auto;
	background: var(--text);
	transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------------------------------------------------------------------
   8. MOBILE OVERLAY NAV
   ------------------------------------------------------------------------ */
.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 900;
	background: var(--bg);
	padding-top: calc(var(--header-h) + 16px);
	overflow-y: auto;
	opacity: 0;
	transition: opacity .2s ease;
}
.mobile-nav.is-open { opacity: 1; }
.mobile-nav[hidden] { display: none; }

.mobile-nav__menu { list-style: none; border-top: 1px solid var(--rule); }
.mobile-nav__menu li { border-bottom: 1px solid var(--rule); }
.mobile-nav__menu a {
	display: block;
	padding: 22px 0;
	font-family: var(--font-display);
	font-size: 30px;
	color: var(--text);
}
.mobile-nav__menu a:hover { color: var(--accent); }
.mobile-nav__cta { margin-top: 32px; width: 100%; }

body.nav-open { overflow: hidden; }

/* ---------------------------------------------------------------------------
   9. FOOTER
   ------------------------------------------------------------------------ */
.site-footer {
	border-top: 1px solid var(--border);
	padding-block: 56px;
	margin-top: var(--space-section);
}
.site-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 40px;
	align-items: start;
}
.site-footer__name {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 16px;
	color: var(--text);
}
.site-footer__tagline {
	color: var(--text-secondary);
	font-size: 14px;
	max-width: 42ch;
	margin: 12px 0 0;
}
.site-footer__menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
}
.site-footer__menu a { font-size: var(--fs-ui); color: var(--text-secondary); }
.site-footer__menu a:hover { color: var(--text); }
.site-footer__meta {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--rule);
	font-size: var(--fs-ui);
	color: var(--text-secondary);
}

/* ---------------------------------------------------------------------------
   10. HERO
   ------------------------------------------------------------------------ */
.hero { padding-block: clamp(64px, 10vw, 120px) clamp(56px, 8vw, 96px); }
.hero__inner { max-width: 920px; }
.hero__title {
	font-family: var(--font-display);
	font-size: var(--fs-display-lg);
	line-height: 1.04;
	color: var(--text);
	max-width: 18ch;
}
.hero__subhead {
	font-size: 18px;
	line-height: 1.65;
	color: var(--text-secondary);
	max-width: 60ch;
	margin: 28px 0 0;
}
.hero__actions {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
	margin-top: 40px;
}

/* ---------------------------------------------------------------------------
   11. HOME SECTIONS
   ------------------------------------------------------------------------ */
/* Two-column (prose / numbered questions) */
.grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
}

.numbered { list-style: none; }
.numbered li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	padding: 22px 0;
	border-top: 1px solid var(--rule);
}
.numbered li:last-child { border-bottom: 1px solid var(--rule); }
.numbered__num {
	font-family: var(--font-mono);
	font-size: var(--fs-ui);
	color: var(--accent);
	padding-top: 4px;
}
.numbered__text { font-size: 17px; line-height: 1.5; color: var(--text); }

/* Stacked label/description rows (Clients, Add-ons) */
.rows { margin-top: 8px; }
.row-item {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 40px;
	padding: 32px 0;
	border-top: 1px solid var(--rule);
}
.rows .row-item:last-child { border-bottom: 1px solid var(--rule); }
.row-item__label {
	font-family: var(--font-display);
	font-size: var(--fs-subhead);
	color: var(--text);
	line-height: 1.2;
}
.row-item__body { color: var(--text-secondary); }
.row-item__body p { margin: 0; }

/* Featured investigation — document card (surface, 1px border, no shadow, no radius) */
.doc-card {
	background: var(--surface);
	border: 1px solid var(--border);
	padding: 40px;
}
.doc-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	font-size: var(--fs-ui);
	color: var(--text-secondary);
	margin-bottom: 22px;
}
.doc-card__sep { color: var(--rule); }
.doc-card__title {
	font-family: var(--font-display);
	font-size: clamp(24px, 3vw, 30px);
	color: var(--text);
	line-height: 1.12;
	max-width: 28ch;
}
.doc-card__desc {
	color: var(--text-secondary);
	margin: 18px 0 0;
	max-width: 64ch;
}
.doc-card__actions {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
	margin-top: 30px;
}

/* Engagements overview */
.engagement-rows { margin-top: 8px; }
.engagement-row {
	display: grid;
	grid-template-columns: 300px 1fr auto;
	align-items: baseline;
	gap: 24px 40px;
	padding: 28px 0;
	border-top: 1px solid var(--rule);
}
.engagement-rows .engagement-row:last-of-type { border-bottom: 1px solid var(--rule); }
.engagement-row__name {
	font-family: var(--font-display);
	font-size: var(--fs-subhead);
	color: var(--text);
}
.engagement-row__scope { color: var(--text-secondary); margin: 0; }
.engagement-rows__footer {
	margin: 36px 0 0;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Start-here CTA strip (full-width surface) */
.cta-strip { background: var(--surface); border-block: 1px solid var(--border); padding-block: clamp(56px, 8vw, 96px); }
.cta-strip__inner { text-align: left; }
.cta-strip__title {
	font-family: var(--font-display);
	font-size: var(--fs-display-md);
	color: var(--text);
	line-height: 1.06;
	margin: 0 0 16px;
	max-width: 20ch;
}
.cta-strip__text { color: var(--text-secondary); max-width: 58ch; margin: 0 0 32px; }

/* ---------------------------------------------------------------------------
   12. ABOUT
   ------------------------------------------------------------------------ */
.sub-head {
	border-top: 1px solid var(--rule);
	margin-top: 56px;
	padding-top: 28px;
	margin-bottom: 24px;
}
.sub-head h2 {
	font-family: var(--font-display);
	font-size: clamp(24px, 3vw, 30px);
	color: var(--text);
}

.principles { margin: 8px 0 0; }
.principle {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 20px;
	padding: 24px 0;
	border-top: 1px solid var(--rule);
}
.principle:last-child { border-bottom: 1px solid var(--rule); }
.principle__num { font-size: var(--fs-ui); color: var(--accent); padding-top: 5px; }
.principle__body h3 {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 17px;
	color: var(--text);
	margin: 0 0 6px;
}
.principle__body p { margin: 0; color: var(--text-secondary); }

.about-closing { color: var(--text-secondary); font-style: italic; }

/* ---------------------------------------------------------------------------
   13. SERVICES
   ------------------------------------------------------------------------ */
.section--intro { padding-bottom: 0; }

.package { padding-block: var(--space-section); scroll-margin-top: calc(var(--header-h) + 24px); }
.package + .package { padding-top: 0; }

.package__positioning {
	font-size: 18px;
	color: var(--text);
	max-width: 60ch;
	margin: -20px 0 0; /* pull up under the section head */
}
.package__scope { margin: 36px 0; }
.package__scope .section-label { margin-bottom: 8px; }

.scope-list { list-style: none; }
.scope-list li {
	padding: 14px 0;
	border-top: 1px solid var(--rule);
	color: var(--text);
}
.scope-list li:last-child { border-bottom: 1px solid var(--rule); }

.package__delivery { margin: 0 0 32px; }
.package__delivery > div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding: 13px 0;
	border-top: 1px solid var(--rule);
	font-size: var(--fs-ui);
}
.package__delivery > div:last-child { border-bottom: 1px solid var(--rule); }

.meta-key {
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: var(--fs-label);
}
.meta-val { color: var(--text); text-align: right; }

/* ---------------------------------------------------------------------------
   14. CASE STUDIES INDEX — document rows
   ------------------------------------------------------------------------ */
.doc-rows { margin-top: 8px; }
.doc-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 28px 0;
	border-top: 1px solid var(--rule);
	color: var(--text);
}
.doc-rows .doc-row:last-child { border-bottom: 1px solid var(--rule); }
.doc-row:hover { color: var(--text); }
.doc-row:hover .doc-row__title { color: var(--accent); }
.doc-row__title {
	font-family: var(--font-display);
	font-size: clamp(21px, 2.4vw, 26px);
	line-height: 1.15;
	color: var(--text);
	transition: color .15s ease;
}
.doc-row__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-top: 10px;
	font-size: var(--fs-ui);
	color: var(--text-secondary);
}
.doc-row__sep { color: var(--rule); }
.doc-row__read {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	font-size: var(--fs-ui);
	font-weight: 500;
	color: var(--accent);
	white-space: nowrap;
}
.doc-row__read .arrow { transition: transform .16s ease; }
.doc-row:hover .doc-row__read .arrow { transform: translateX(4px); }

/* ---------------------------------------------------------------------------
   15. SINGLE INVESTIGATION
   ------------------------------------------------------------------------ */
.investigation { padding-block: var(--space-section); }

.investigation__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 64px;
	align-items: start;
}
.investigation__body { max-width: var(--maxw-case); width: 100%; }

.investigation__header { margin-bottom: 40px; }
.investigation__title {
	font-family: var(--font-display);
	font-size: var(--fs-display-md);
	color: var(--text);
	line-height: 1.06;
	margin: 0 0 28px;
}
.investigation__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 40px;
	padding-top: 22px;
	border-top: 1px solid var(--rule);
	font-size: var(--fs-ui);
}
.investigation__meta > div { display: flex; flex-direction: column; gap: 4px; }

/* Sticky metadata panel */
.investigation__sidebar { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.meta-panel { background: var(--surface); border: 1px solid var(--border); padding: 26px; }
.meta-panel .section-label { margin-bottom: 18px; }
.meta-panel__list { margin: 0; }
.meta-panel__list dt {
	font-size: var(--fs-label);
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--text-secondary);
	margin-top: 18px;
}
.meta-panel__list dt:first-child { margin-top: 0; }
.meta-panel__list dd { margin: 5px 0 0; font-size: var(--fs-ui); color: var(--text); }
.meta-panel__phases { list-style: none; }
.meta-panel__phases li { padding: 3px 0; }
.meta-panel__finding { font-family: var(--font-body); line-height: 1.55; color: var(--text-secondary); }
.meta-panel__pdf { margin-top: 26px; width: 100%; }

/* Investigation footer */
.investigation__footer { margin-top: 64px; }
.next-investigation { border-top: 1px solid var(--rule); padding-top: 26px; margin-bottom: 56px; }
.next-investigation__link {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-family: var(--font-display);
	font-size: var(--fs-subhead);
	color: var(--text);
}
.next-investigation__link:hover { color: var(--accent); }

.cta-inline {
	background: var(--surface);
	border: 1px solid var(--border);
	padding: 44px 40px;
	text-align: center;
}
.cta-inline__title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 30px); color: var(--text); }
.cta-inline__text { color: var(--text-secondary); margin: 12px 0 28px; }

/* ---------------------------------------------------------------------------
   16. BLOG (list + single) & PAGINATION
   ------------------------------------------------------------------------ */
.post-list { margin-top: 8px; }
.post-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 32px;
	align-items: baseline;
	padding: 30px 0;
	border-top: 1px solid var(--rule);
}
.post-list .post-row:last-child { border-bottom: 1px solid var(--rule); }
.post-row__title {
	grid-column: 1;
	font-family: var(--font-display);
	font-size: clamp(21px, 2.4vw, 26px);
	line-height: 1.15;
}
.post-row__title a { color: var(--text); }
.post-row__title a:hover { color: var(--accent); }
.post-row__date {
	grid-column: 2;
	grid-row: 1;
	font-size: var(--fs-ui);
	color: var(--text-secondary);
	white-space: nowrap;
}
.post-row__excerpt { grid-column: 1; color: var(--text-secondary); margin: 0; max-width: 64ch; }

/* Single post meta */
.page-title--post { max-width: 22ch; }
.post-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
	font-size: var(--fs-ui);
	color: var(--text-secondary);
}
.post-meta__sep { color: var(--rule); }

/* Related engagements (post footer) */
.related-engagements { margin-top: 72px; }
.link-rows { margin-top: 4px; }
.link-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 0;
	border-top: 1px solid var(--rule);
	color: var(--text);
}
.link-rows .link-row:last-child { border-bottom: 1px solid var(--rule); }
.link-row__label { font-family: var(--font-display); font-size: var(--fs-subhead); }
.link-row:hover { color: var(--accent); }
.link-row__arrow { color: var(--accent); transition: transform .16s ease; }
.link-row:hover .link-row__arrow { transform: translateX(4px); }

/* Pagination */
.pagination { margin-top: 56px; border-top: 1px solid var(--rule); padding-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	font-family: var(--font-mono);
	font-size: var(--fs-ui);
	color: var(--text-secondary);
	padding: 9px 14px;
	border: 1px solid var(--border);
}
.pagination .page-numbers:hover { color: var(--text); border-color: var(--rule); }
.pagination .page-numbers.current { color: var(--accent); border-color: var(--accent); }

.page-links { margin-top: 32px; font-size: var(--fs-ui); color: var(--text-secondary); }
.page-links a { padding: 2px 8px; border: 1px solid var(--border); margin-left: 4px; }

.empty-state { color: var(--text-secondary); padding: 32px 0; border-top: 1px solid var(--rule); }

/* ---------------------------------------------------------------------------
   17. CONTACT & FORMS (incl. Contact Form 7)
   ------------------------------------------------------------------------ */
.contact-form { margin-top: 44px; }
.contact-note { margin-top: 28px; font-size: var(--fs-ui); color: var(--text-secondary); }

.contact-form p { margin: 0 0 22px; }
.contact-form label {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--fs-ui);
	letter-spacing: .04em;
	color: var(--text-secondary);
	margin-bottom: 8px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="url"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 0;
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	padding: 12px 14px;
	transition: border-color .15s ease;
}
.contact-form textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form ::placeholder { color: #565a63; }

/* CF7 submit + states */
.contact-form input[type="submit"],
.contact-form .wpcf7-submit {
	font-family: var(--font-body);
	font-size: var(--fs-ui);
	font-weight: 600;
	color: #0D0F14;
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: var(--radius-btn);
	padding: 13px 26px;
	cursor: pointer;
	transition: background-color .16s ease, border-color .16s ease;
}
.contact-form input[type="submit"]:hover,
.contact-form .wpcf7-submit:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.wpcf7-not-valid-tip { color: #c98a8a; font-size: var(--fs-ui); font-family: var(--font-mono); }
.wpcf7 form .wpcf7-response-output {
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text-secondary);
	font-size: var(--fs-ui);
	padding: 12px 16px;
	margin: 24px 0 0;
}

/* ---------------------------------------------------------------------------
   18. PROSE  (the_content for posts, pages, investigations)
   ------------------------------------------------------------------------ */
.prose { font-size: var(--fs-body); line-height: 1.75; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.5em; }
.prose h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 30px); margin: 1.8em 0 .5em; color: var(--text); }
.prose h3 { font-family: var(--font-display); font-size: 23px; margin: 1.6em 0 .4em; color: var(--text); }
.prose h4 {
	font-family: var(--font-mono);
	font-size: var(--fs-ui);
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--accent);
	margin: 2em 0 .5em;
}
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(74,127,165,.45); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose ul li::marker { color: var(--accent); }
.prose blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 26px;
	border-left: 2px solid var(--accent);
}
.prose blockquote p { font-family: var(--font-display); font-size: 22px; line-height: 1.4; color: var(--text); }
.prose code {
	font-family: var(--font-mono);
	font-size: .88em;
	background: var(--surface);
	border: 1px solid var(--border);
	padding: 1px 6px;
}
.prose pre {
	font-family: var(--font-mono);
	font-size: 14px;
	line-height: 1.6;
	background: var(--surface);
	border: 1px solid var(--border);
	padding: 20px;
	overflow-x: auto;
	margin: 1.8em 0;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.6em 0; }
.prose img, .prose figure { margin: 2em 0; }
.prose figcaption { font-family: var(--font-mono); font-size: var(--fs-ui); color: var(--text-secondary); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.prose th { font-family: var(--font-mono); font-size: var(--fs-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); }

/* ---------------------------------------------------------------------------
   19. UTILITIES & ACCESSIBILITY
   ------------------------------------------------------------------------ */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1100;
	background: var(--accent);
	color: #0D0F14;
	padding: 10px 16px;
	font-size: var(--fs-ui);
	font-weight: 600;
}
.skip-link:focus { left: 16px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------------
   20. RESPONSIVE
   ------------------------------------------------------------------------ */

/* Investigation: collapse sidebar below the report */
@media (max-width: 980px) {
	.investigation__layout { grid-template-columns: 1fr; gap: 48px; }
	.investigation__body { max-width: var(--maxw-case); margin-inline: auto; }
	.investigation__sidebar { position: static; max-width: var(--maxw-case); margin-inline: auto; width: 100%; }
}

/* Primary mobile breakpoint */
@media (max-width: 768px) {
	:root { --gutter: 20px; --space-section: 56px; }

	/* Nav → hamburger */
	.site-nav { display: none; }
	.nav-toggle { display: flex; }

	/* Stack multi-column layouts */
	.grid-2 { grid-template-columns: 1fr; gap: 36px; }
	.row-item { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
	.engagement-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
	.site-footer__meta { flex-direction: column; }

	/* Blog rows: date above title */
	.post-row { grid-template-columns: 1fr; gap: 8px; }
	.post-row__title { grid-column: 1; grid-row: 2; }
	.post-row__date { grid-column: 1; grid-row: 1; }
	.post-row__excerpt { grid-row: 3; }

	/* Doc rows: stack the read link under the meta */
	.doc-row { flex-direction: column; align-items: flex-start; gap: 14px; }

	/* Card / panel padding */
	.doc-card { padding: 28px 24px; }
	.cta-inline { padding: 32px 24px; }

	.hero__actions { gap: 20px; }
	.investigation__meta { gap: 12px 28px; }
}

@media (max-width: 420px) {
	.doc-card__actions, .hero__actions { flex-direction: column; align-items: flex-start; }
	.btn { width: 100%; }
	.link-arrow { width: auto; }
}
