/* ═══════════════════════════════════════════════════════════════════════════
   BuildFlo.io — Shared Stylesheet
   Brand: refined architectural minimalism
   Typography: Bricolage Grotesque (display) + Manrope (body)
   Versioned with the design system; treat as source of truth.

   trigger deploy
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --midnight: #0E2A47;
  --midnight-deep: #081A2E;
  --steel: #1E5BB8;
  --slate: #475569;
  --slate-light: #94A3B8;
  --slate-lighter: #CBD5E1;
  --brass: #D4A056;
  --brass-deep: #B8843A;
  --cloud: #F1F5F9;
  --paper: #FAFBFC;
  --white: #FFFFFF;

  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --container-max: 1200px;
  --container-narrow: 760px;
  --container-pad: 24px;
  --section-pad: 64px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--midnight);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ─── A11y: focus styles ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
.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;
}

/* ─── Layout primitives ──────────────────────────────────────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--container-pad); }
.section { padding: var(--section-pad) 0; position: relative; }
.section.tight { padding: 56px 0; }

/* ─── Type scale ─────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--slate); letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500;
}
.eyebrow .num { color: var(--brass); margin-right: 8px; }

h1, .h-display-xl {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em;
  color: var(--midnight);
}
h2, .h-display {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em;
  color: var(--midnight);
}
h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--midnight);
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--slate);
  max-width: 640px;
}
.dark-section h1, .dark-section h2, .dark-section h3 { color: var(--cloud); }
.dark-section .lede { color: var(--slate-light); }
.dark-section .eyebrow { color: var(--slate-light); }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; min-height: 52px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.16s ease, background 0.16s ease;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brass); color: var(--midnight); }
.btn-primary:hover { background: var(--brass-deep); color: var(--cloud); }
.btn-secondary { border-color: var(--midnight); color: var(--midnight); }
.btn-secondary:hover { background: var(--midnight); color: var(--cloud); }
.dark-section .btn-secondary { border-color: var(--cloud); color: var(--cloud); }
.dark-section .btn-secondary:hover { background: var(--cloud); color: var(--midnight); }
.btn .arrow { transition: transform 0.16s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { padding: 10px 18px; min-height: 40px; font-size: 14px; }

/* ─── Inline link style ──────────────────────────────────────── */
.text-link {
  color: var(--steel); font-weight: 600;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.16s ease;
}
.text-link:hover { border-bottom-color: var(--steel); }

/* ─── Tags / category chips ─────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--cloud); color: var(--midnight);
}
.tag-brass { background: var(--brass); color: var(--midnight); }
.tag-outline {
  background: transparent; color: var(--slate);
  border: 1px solid var(--slate-lighter);
}
.dark-section .tag { background: rgba(241, 245, 249, 0.08); color: var(--cloud); }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--slate-lighter); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--container-pad);
  max-width: var(--container-max); margin: 0 auto;
  gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand svg { height: 32px; width: auto; }
.nav-brand .wm {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 600; letter-spacing: -0.01em; color: var(--midnight);
}
.nav-brand .wm .tld { color: var(--slate); font-weight: 400; }
.nav-links {
  display: none; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--midnight);
  padding: 8px 0; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta {
  background: var(--midnight); color: var(--cloud);
  padding: 10px 18px; min-height: 40px;
  font-size: 14px; font-weight: 600;
  display: none; align-items: center; gap: 6px;
  transition: background 0.16s ease;
}
.nav-cta:hover { background: var(--midnight-deep); }
.nav-toggle {
  display: inline-flex; width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--midnight);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 100%;
  height: 1.5px; background: var(--midnight);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
}

/* ─── Mobile menu open state (toggled via js/nav.js below 769px) ─ */
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
.nav-open .nav-inner { flex-wrap: wrap; row-gap: 0; }
.nav-open .nav-links {
  display: flex; order: 3;
  flex-direction: column; align-items: stretch;
  flex-basis: 100%; gap: 0;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--slate-lighter);
}
.nav-open .nav-links a { padding: 14px 4px; }
.nav-open .nav-links a::after { display: none; }
.nav-open .nav-cta {
  display: inline-flex; order: 4; justify-content: center;
  flex-basis: 100%; margin-top: 12px;
}

/* ─── Hero (homepage) ────────────────────────────────────────── */
.hero {
  padding: 56px 0 80px;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 56px; align-items: center;
}
.hero-content > * + * { margin-top: 32px; }
.hero .eyebrow { margin-bottom: 24px; display: block; }
.hero h1 .brass-accent { color: var(--brass); }
.hero-lede { font-size: clamp(18px, 1.8vw, 22px); color: var(--slate); max-width: 540px; line-height: 1.55; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
.hero-proof {
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--slate-lighter);
  display: flex; gap: 32px; flex-wrap: wrap;
}
.hero-proof .stat-block { flex: 1 1 calc(50% - 16px); min-width: 120px; }
.hero-proof .stat {
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
  color: var(--midnight); line-height: 1; letter-spacing: -0.02em;
}
.hero-proof .stat-label {
  font-size: 13px; color: var(--slate); margin-top: 6px; font-weight: 500;
}
.hero-visual {
  position: relative; aspect-ratio: 1; max-width: 320px;
  justify-self: end; width: 100%; margin: 0 auto;
}
.hero-visual .iso-mark {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
}
.hero-visual .iso-mark svg {
  width: 80%; height: 80%; filter: drop-shadow(0 24px 48px rgba(14, 42, 71, 0.08));
}
.hero-visual .corner-mark { position: absolute; opacity: 0.18; }
.hero-visual .corner-mark.tl { top: 0; left: 0; width: 48px; }
.hero-visual .corner-mark.br { bottom: 0; right: 0; width: 64px; }
.hero-deco {
  position: absolute; pointer-events: none;
  inset: 0; overflow: hidden; z-index: -1;
}
.hero-deco .block {
  position: absolute; width: 8px; height: 8px;
  background: var(--slate-lighter); opacity: 0.4;
}

/* ─── Sub-hero (inner pages) ─────────────────────────────────── */
.sub-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--slate-lighter);
  position: relative;
}
.sub-hero.tight { padding: 48px 0; }
.sub-hero .eyebrow { display: block; margin-bottom: 20px; }
.sub-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  max-width: 880px;
  letter-spacing: -0.035em;
}
.sub-hero h1 .brass { color: var(--brass); }
.sub-hero .lede {
  margin-top: 24px;
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 640px;
}
.sub-hero .sub-hero-meta {
  margin-top: 32px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--slate); letter-spacing: 0.08em; text-transform: uppercase;
}
.sub-hero .sub-hero-meta span + span {
  border-left: 1px solid var(--slate-lighter); padding-left: 24px;
}

/* ─── Breadcrumbs ────────────────────────────────────────────── */
.breadcrumbs {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--slate); letter-spacing: 0.06em;
  margin-bottom: 32px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--slate); transition: color 0.16s ease; }
.breadcrumbs a:hover { color: var(--midnight); }
.breadcrumbs .sep { color: var(--slate-light); }
.breadcrumbs .current { color: var(--midnight); }

/* ─── Trust bar ──────────────────────────────────────────────── */
.trust {
  padding: 48px 0;
  background: var(--cloud);
  border-top: 1px solid var(--slate-lighter);
  border-bottom: 1px solid var(--slate-lighter);
}
.trust-label {
  text-align: center; font-family: var(--font-mono); font-size: 11px;
  color: var(--slate); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 28px;
}
.trust-logos {
  display: flex; align-items: center; justify-content: space-around;
  gap: 28px; flex-wrap: wrap;
}
.trust-logo {
  font-family: var(--font-display); font-weight: 600;
  color: var(--slate); font-size: 15px; opacity: 0.7;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.trust-logo:hover { opacity: 1; color: var(--midnight); }

/* ─── Services grid ─────────────────────────────────────────── */
.services .section-head {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  margin-bottom: 72px; align-items: end;
}
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--slate-lighter);
  border: 1px solid var(--slate-lighter);
}
.service-card {
  background: var(--paper); padding: 48px 40px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background 0.2s ease;
  min-height: 0;
  position: relative;
}
.service-card:hover { background: var(--cloud); }
.service-card .service-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--brass); font-weight: 600;
  letter-spacing: 0.1em; margin-bottom: 8px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--slate); font-size: 15px; line-height: 1.55; }
.service-card .service-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--steel); font-size: 14px; font-weight: 600;
  margin-top: auto; padding-top: 24px;
  transition: gap 0.16s ease;
}
.service-card .service-link:hover { gap: 12px; }
.services-pillar + .services-pillar { margin-top: 56px; }
.pillar-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--midnight); margin-bottom: 24px;
}
.pillar-label .pillar-num { color: var(--brass); }
.pillar-label::after {
  content: ""; flex: 1; height: 1px; background: var(--slate-lighter);
}
.pillar-divider { display: flex; align-items: center; gap: 24px; margin: 56px 0; }
.pillar-divider::before, .pillar-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--slate-lighter);
}
.pillar-divider svg { width: 30px; height: 30px; flex: none; }

/* ─── Differentiators (dark) ─────────────────────────────────── */
.differentiators {
  background: var(--midnight); color: var(--cloud);
  position: relative; overflow: hidden;
}
.differentiators::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.differentiators .section-head { max-width: 720px; margin-bottom: 80px; }
.diff-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px;
}
.diff-card { display: flex; flex-direction: column; gap: 24px; }
.diff-card .diff-mark {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.diff-card .diff-mark svg { width: 100%; height: 100%; }
.diff-card h3 { color: var(--cloud); }
.diff-card p { color: var(--slate-light); font-size: 15px; line-height: 1.6; }

/* ─── Pricing ────────────────────────────────────────────────── */
.pricing .section-head { text-align: center; margin-bottom: 72px; max-width: 720px; margin-left: auto; margin-right: auto; }
.pricing .lede { margin-left: auto; margin-right: auto; }
.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--slate-lighter);
  border: 1px solid var(--slate-lighter);
}
.price-card {
  background: var(--paper); padding: 48px 36px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
}
.price-card.featured { background: var(--midnight); color: var(--cloud); }
.price-card.featured h3, .price-card.featured .price-amount { color: var(--cloud); }
.price-card.featured .price-fit { color: var(--slate-light); }
.price-card.featured ul li { color: var(--cloud); }
.price-card.featured ul li::before { background: var(--brass); }
.price-card.featured .price-foot { color: var(--slate-light); border-top-color: rgba(255,255,255,0.12); }
.price-card .featured-tag {
  position: absolute; top: 24px; right: 24px;
  background: var(--brass); color: var(--midnight);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  padding: 4px 10px; letter-spacing: 0.12em; text-transform: uppercase;
}
.price-card .price-tier {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--brass); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.price-card .price-amount {
  font-family: var(--font-display); font-weight: 500;
  font-size: 44px; line-height: 1; letter-spacing: -0.025em;
  color: var(--midnight);
}
.price-card .price-amount .from {
  font-size: 13px; font-weight: 500; color: var(--slate);
  margin-right: 6px; vertical-align: middle; letter-spacing: 0;
  font-family: var(--font-body); text-transform: uppercase;
}
.price-card.featured .price-amount .from { color: var(--slate-light); }
.price-card .price-amount .per {
  font-size: 15px; font-weight: 500; color: var(--slate);
  margin-left: 4px; letter-spacing: 0;
  font-family: var(--font-body); text-transform: none;
}
.price-card.featured .price-amount .per { color: var(--slate-light); }
.pricing-pillar + .pricing-pillar { margin-top: 32px; }
.price-card .price-fit { font-size: 14px; color: var(--slate); margin-top: -8px; }
.price-card ul {
  list-style: none; display: flex; flex-direction: column;
  gap: 12px; margin-top: 8px;
}
.price-card ul li {
  font-size: 14px; color: var(--midnight);
  position: relative; padding-left: 22px; line-height: 1.5;
}
.price-card ul li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; background: var(--midnight);
}
.price-card .price-cta { margin-top: auto; padding-top: 16px; }
.price-card .price-cta .btn { width: 100%; justify-content: center; }
.price-card .price-foot {
  font-size: 12px; color: var(--slate);
  border-top: 1px solid var(--slate-lighter);
  padding-top: 16px; margin-top: 8px;
  line-height: 1.55;
}
.pricing-aside {
  margin-top: 32px;
  background: var(--cloud);
  padding: 24px 32px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.pricing-aside .aside-text { font-size: 15px; color: var(--midnight); }
.pricing-aside .aside-text strong { font-weight: 600; }
.pricing-aside a { color: var(--steel); font-weight: 600; font-size: 14px; }
.pricing-aside a:hover { text-decoration: underline; }

/* ─── Custom-software lifecycle loop ─────────────────────────── */
.lifecycle-loop {
  position: relative; width: 100%; max-width: 360px;
  margin: 0 auto 24px; aspect-ratio: 1 / 1;
}
.loop-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.loop-node {
  position: absolute; transform: translate(-50%, -50%);
  background: var(--white); border: 1px solid var(--slate-lighter);
  padding: 10px 12px; display: flex; flex-direction: column; gap: 4px;
  text-align: center; min-width: 100px;
}
.loop-node--1 { left: 50%; top: 9%; }
.loop-node--2 { left: 79%; top: 70%; }
.loop-node--3 { left: 21%; top: 70%; }
.loop-phase {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass);
  white-space: nowrap;
}
.loop-price {
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  line-height: 1; color: var(--midnight);
}
.loop-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; text-align: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-light); line-height: 1.6;
}
.loop-note {
  text-align: center; font-size: 14px; color: var(--slate);
  max-width: 440px; margin: 0 auto 48px;
}

/* ─── Final CTA ──────────────────────────────────────────────── */
.final-cta {
  background: var(--midnight); color: var(--cloud);
  position: relative; overflow: hidden;
  text-align: center;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 50% 0%, rgba(212, 160, 86, 0.12), transparent),
    radial-gradient(ellipse 800px 400px at 50% 100%, rgba(30, 91, 184, 0.08), transparent);
  pointer-events: none;
}
.final-cta .container { position: relative; }
.final-cta h2 { color: var(--cloud); margin: 0 auto 24px; max-width: 800px; }
.final-cta h2 .brass { color: var(--brass); }
.final-cta .lede { color: var(--slate-light); margin: 0 auto 40px; max-width: 580px; }
.final-cta .hero-ctas { justify-content: center; }
.final-cta-meta {
  margin-top: 56px;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  flex-wrap: wrap;
  font-size: 14px; color: var(--slate-light);
}
.final-cta-meta strong { color: var(--cloud); font-weight: 600; }

/* ─── Process steps (used on services / about pages) ─────────── */
.process { padding: var(--section-pad) 0; background: var(--cloud); }
.process .section-head { max-width: 720px; margin-bottom: 64px; }
.process-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  position: relative;
}
.process-step {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 32px;
  border-top: 2px solid var(--midnight);
  position: relative;
}
.process-step:first-child { border-top-color: var(--brass); }
.process-step .step-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--brass); font-weight: 600; letter-spacing: 0.1em;
}
.process-step h3 { font-size: 20px; }
.process-step p { font-size: 14px; color: var(--slate); line-height: 1.6; }

/* ─── Article prose (single.html) ────────────────────────────── */
.article-body {
  max-width: 720px; margin: 0 auto;
  font-size: 17px; line-height: 1.7; color: var(--midnight);
}
.article-body > * + * { margin-top: 24px; }
.article-body > h2 { margin-top: 56px; font-size: 28px; line-height: 1.15; }
.article-body > h3 { margin-top: 40px; font-size: 22px; line-height: 1.2; }
.article-body > h4 { margin-top: 32px; font-size: 20px; font-weight: 600; }
.article-body p { font-size: 18px; line-height: 1.7; color: var(--midnight); }
.article-body p:first-of-type::first-letter { /* optional lede emphasis — comment out if unwanted */ }
.article-body strong { font-weight: 600; color: var(--midnight); }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--steel); font-weight: 500;
  border-bottom: 1.5px solid var(--slate-lighter);
  transition: border-color 0.16s ease;
}
.article-body a:hover { border-bottom-color: var(--steel); }

/* Lists */
.article-body ul, .article-body ol { padding-left: 28px; }
.article-body ul li, .article-body ol li { margin-bottom: 8px; line-height: 1.65; }
.article-body ul li::marker { color: var(--brass); }
.article-body ol li::marker { color: var(--brass); font-weight: 600; }

/* Blockquote */
.article-body blockquote {
  margin: 40px 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--brass);
  font-family: var(--font-display);
  font-size: 20px; line-height: 1.4; letter-spacing: -0.01em;
  color: var(--midnight);
  font-weight: 500;
}
.article-body blockquote cite {
  display: block; margin-top: 16px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--slate); letter-spacing: 0.08em; text-transform: uppercase;
  font-style: normal; font-weight: 500;
}

/* Pull quote — wider than body */
.article-body .pull-quote {
  margin: 56px 0;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 24px; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--midnight);
  font-weight: 500;
  border-top: 1px solid var(--slate-lighter);
  border-bottom: 1px solid var(--slate-lighter);
}
.article-body .pull-quote .brass { color: var(--brass); }

/* Code blocks */
.article-body code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--cloud);
  padding: 2px 6px;
  color: var(--midnight);
}
.article-body pre {
  background: var(--midnight); color: var(--cloud);
  padding: 24px 28px;
  font-family: var(--font-mono); font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 32px 0;
}
.article-body pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }

/* Inline image */
.article-body figure { margin: 40px 0; }
.article-body figure img { width: 100%; }
.article-body figcaption {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--slate); letter-spacing: 0.04em;
  text-align: center;
}

/* Tables */
.article-body table {
  width: 100%; border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}
.article-body table th {
  text-align: left; padding: 12px 16px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--slate); letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--slate-lighter);
}
.article-body table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--slate-lighter);
  color: var(--midnight);
}

/* Horizontal rule */
.article-body hr {
  border: none; border-top: 1px solid var(--slate-lighter);
  margin: 56px 0;
}

/* ─── Article meta (single.html header) ──────────────────────── */
.article-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--slate); letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 24px;
}
.article-meta .tag { letter-spacing: 0.1em; }
.article-meta .sep {
  display: inline-block; width: 4px; height: 4px;
  background: var(--slate-light);
}

.author-bio {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  padding: 32px 24px;
  background: var(--cloud);
  margin-top: 80px;
}
.author-bio .avatar {
  width: 64px; height: 64px;
  background: var(--midnight); color: var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
  flex-shrink: 0;
}
.author-bio .author-info h4 {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 600; color: var(--midnight); margin-bottom: 4px;
}
.author-bio .author-info .role {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--brass); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 12px;
}
.author-bio .author-info p {
  font-size: 14px; color: var(--slate); line-height: 1.6;
  max-width: 520px;
}

/* ─── Article cards (archive listings) ───────────────────────── */
.article-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
.article-card {
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none; color: inherit;
  transition: transform 0.2s ease;
}
.article-card:hover { transform: translateY(-2px); }
.article-card:hover h3 { color: var(--steel); }
.article-card .card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--cloud);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.article-card .card-thumb svg {
  width: 40%; height: 40%; opacity: 0.4;
}
.article-card .card-thumb.featured { background: var(--midnight); }
.article-card .card-thumb.featured svg { opacity: 0.6; }
.article-card .card-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--slate); letter-spacing: 0.08em; text-transform: uppercase;
}
.article-card h3 {
  font-size: 22px; line-height: 1.25;
  transition: color 0.16s ease;
}
.article-card .card-excerpt {
  font-size: 14px; color: var(--slate);
  line-height: 1.55;
}
.article-card .card-foot {
  margin-top: 8px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--steel); font-weight: 600;
}
.article-card:hover .card-foot { gap: 14px; }

.archive-section { padding: 80px 0 var(--section-pad); }
.archive-toolbar {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--slate-lighter);
}
.archive-toolbar .count {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--slate); letter-spacing: 0.08em; text-transform: uppercase;
}
.filter-list {
  display: flex; gap: 4px; list-style: none; flex-wrap: wrap;
}
.filter-list a {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--slate); letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.filter-list a:hover { color: var(--midnight); }
.filter-list a.active {
  color: var(--midnight); border-color: var(--slate-lighter);
}

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; flex-wrap: wrap;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--slate-lighter);
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--slate); font-weight: 500;
  border: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.pagination a:hover { color: var(--midnight); border-color: var(--slate-lighter); }
.pagination .current {
  color: var(--midnight); border-color: var(--midnight); font-weight: 600;
}
.pagination .nav-arrow { font-family: var(--font-body); }
.pagination .nav-arrow.disabled { opacity: 0.3; pointer-events: none; }

/* ─── Search form ────────────────────────────────────────────── */
.search-form {
  display: flex; gap: 0; max-width: 560px;
  margin: 32px 0;
  border: 1px solid var(--slate-lighter);
  background: var(--white);
  transition: border-color 0.16s ease;
}
.search-form:focus-within { border-color: var(--midnight); }
.search-form input[type="search"] {
  flex: 1; padding: 14px 18px;
  border: none; background: transparent;
  font-family: var(--font-body); font-size: 15px;
  color: var(--midnight); min-height: 52px;
}
.search-form input[type="search"]::placeholder { color: var(--slate-light); }
.search-form input[type="search"]:focus { outline: none; }
.search-form button {
  padding: 0 24px; background: var(--midnight); color: var(--cloud);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  min-height: 52px;
  transition: background 0.16s ease;
}
.search-form button:hover { background: var(--midnight-deep); }

.search-no-results {
  padding: 56px 40px; text-align: center;
  background: var(--cloud);
  margin-top: 56px;
}
.search-no-results h3 { margin-bottom: 12px; }
.search-no-results p { color: var(--slate); font-size: 15px; }

/* ─── 404 page ──────────────────────────────────────────────── */
.error-page {
  min-height: calc(100vh - 200px);
  display: flex; align-items: center;
  padding: 80px 0;
  text-align: center;
}
.error-page .container { width: 100%; }
.error-page .error-code {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(96px, 18vw, 220px); line-height: 1;
  letter-spacing: -0.06em;
  color: var(--midnight);
  margin-bottom: 24px;
}
.error-page .error-code .brass { color: var(--brass); }
.error-page h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}
.error-page .lede {
  margin: 0 auto 40px; font-size: 17px;
}
.error-page .error-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
}
.error-page .search-form { margin: 0 auto; }

/* ─── Related / next-prev ────────────────────────────────────── */
.related {
  padding: var(--section-pad) 0;
  background: var(--cloud);
  border-top: 1px solid var(--slate-lighter);
}
.related h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 48px;
  text-align: center;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--midnight-deep); color: var(--slate-light);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; margin-bottom: 64px;
}
.footer-brand { grid-column: 1 / -1; }
.footer-brand .nav-brand { margin-bottom: 20px; }
.footer-brand .nav-brand .wm { color: var(--cloud); }
.footer-brand .nav-brand .wm .tld { color: var(--slate-light); }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 280px; color: var(--slate-light); }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--slate-light); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px; color: var(--cloud); transition: color 0.16s ease;
}
.footer-col a:hover { color: var(--brass); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px; display: flex; flex-direction: column; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: 13px;
}
.footer-bottom .legal-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom .legal-links a { color: var(--slate-light); }
.footer-bottom .legal-links a:hover { color: var(--cloud); }

/* ─── Reveal animation (respects reduced motion) ─────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fade-up 0.7s ease both; }
.reveal-d1 { animation-delay: 0.08s; }
.reveal-d2 { animation-delay: 0.16s; }
.reveal-d3 { animation-delay: 0.24s; }
.reveal-d4 { animation-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   Responsive — mobile-first. Base styles above target the smallest
   viewport; each min-width block below progressively enhances up.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Small phone and up ─────────────────────────────────────── */
@media (min-width: 481px) {
  .lifecycle-loop { max-width: 440px; }
  .loop-node { min-width: 116px; padding: 12px 16px; }
  .loop-node--2 { left: 83%; }
  .loop-node--3 { left: 17%; }
  .loop-price { font-size: 18px; }
}

/* ─── Tablet and up ──────────────────────────────────────────── */
@media (min-width: 769px) {
  :root { --section-pad: 80px; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero { padding: 80px 0 120px; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; margin: 0; }
  .hero-ctas .btn { flex: 0 1 auto; justify-content: normal; }
  .hero-proof { gap: 48px; }
  .hero-proof .stat-block { flex: 0 1 auto; min-width: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 280px; }
  .trust-logos { gap: 40px; }
  .trust-logo { font-size: 18px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: row; gap: 24px; }
  .final-cta-meta { flex-direction: row; gap: 48px; }
  .pricing-aside { flex-direction: row; align-items: center; }
  .archive-toolbar { flex-direction: row; align-items: center; }
  .article-body { font-size: 18px; }
  .article-body > h2 { font-size: 32px; }
  .article-body > h3 { font-size: 24px; }
  .article-body blockquote { font-size: 24px; padding-left: 32px; }
  .article-body .pull-quote { font-size: 32px; padding: 32px 40px; }
  .author-bio { flex-direction: row; gap: 24px; padding: 40px; }
}

/* ─── Desktop and up ─────────────────────────────────────────── */
@media (min-width: 1025px) {
  :root { --section-pad: 96px; }
  .hero-grid { gap: 64px; }
  .services .section-head { grid-template-columns: 1fr 1fr; gap: 64px; }
  .diff-grid { grid-template-columns: repeat(3, 1fr); gap: 64px; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .article-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
  .footer-brand { grid-column: auto; }
  .article-body .pull-quote { margin: 56px -40px; }
}

/* ─── AI Operations Assessment landing page ──────────────────── */
.sub-hero .sub-hero-meta strong { color: var(--midnight); font-weight: 600; }

.guarantee {
  background: var(--midnight); color: var(--cloud);
  position: relative; overflow: hidden;
}
.guarantee::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.guarantee .g-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.guarantee .g-figure {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(56px, 8vw, 104px); line-height: 0.95; letter-spacing: -0.045em;
  color: var(--cloud);
}
.guarantee .g-figure .unit { color: var(--brass); }
.guarantee .g-figure-label {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-light);
}
.guarantee p { margin-top: 18px; color: var(--slate-light); font-size: 16px; line-height: 1.6; max-width: 54ch; }
.guarantee p strong { color: var(--cloud); font-weight: 600; }
.guarantee .g-terms { margin-top: 26px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.guarantee .g-terms li { position: relative; padding-left: 22px; font-size: 14px; color: var(--cloud); line-height: 1.5; }
.guarantee .g-terms li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; background: var(--brass);
}

/* Light-section variant of .diff-card (base styles are dark-tuned) */
.diff-card--light h3 { color: var(--midnight); }
.diff-card--light p { color: var(--slate); }
.diff-card--light .diff-mark { width: 48px; height: 48px; }

.disclosure {
  background: var(--cloud); border-left: 3px solid var(--brass);
  padding: 36px 40px; max-width: 860px;
}
.disclosure .d-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: 14px;
}
.disclosure h3 { font-size: 24px; margin-bottom: 14px; }
.disclosure p { font-size: 15.5px; color: var(--slate); line-height: 1.65; max-width: 66ch; }
.disclosure p + p { margin-top: 12px; }
.disclosure p strong { color: var(--midnight); font-weight: 600; }

.faq-list { max-width: 860px; border-top: 1px solid var(--slate-lighter); }
.faq-item { border-bottom: 1px solid var(--slate-lighter); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 24px 4px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em; color: var(--midnight);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--font-mono); color: var(--brass);
  font-size: 20px; flex: none; transition: transform 0.16s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 4px 26px; font-size: 15px; line-height: 1.65; color: var(--slate); max-width: 68ch; }
.faq-item .faq-a strong { color: var(--midnight); font-weight: 600; }

.stat-footnote {
  padding: 12px var(--container-pad); background: var(--cloud);
  font-family: var(--font-mono); font-size: 11px; color: var(--slate);
  letter-spacing: 0.02em;
}

@media (min-width: 900px) {
  .guarantee .g-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; }
}

/* Footer "new offering" link */
.footer-col .new-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-col .new-link .pip {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--brass); color: var(--midnight); padding: 2px 6px;
}
