/* ==========================================================================
   Altima — theme styles
   Editorial, quiet, precise. Ink navy on ivory paper, brass for detail.
   --------------------------------------------------------------------------
   1. Tokens          6. Home sections      11. Forms & Contact Form 7
   2. Base            7. Cards & lists      12. Builder compatibility
   3. Layout          8. Page heroes        13. Footer
   4. Type            9. Prose & article    14. Motion
   5. Buttons, header 10. Accordion         15. Responsive
   ========================================================================== */

/* 1. Tokens ================================================================ */
:root {
  --ink-950: #08121f;
  --ink-900: #0e1b2c;
  --ink-800: #17283d;
  --ink-700: #24384f;
  --ink-500: #4b5d73;

  --paper: #f7f5f0;
  --paper-2: #efebe3;
  --surface: #ffffff;
  --rule: #ddd6c9;
  --rule-strong: #c7bead;

  --text: var(--ink-900);
  --muted: #59616c;
  --on-dark: #eef0f2;
  --on-dark-muted: #a8b3c0;

  --brass: #a07434;        /* decorative rules, large type */
  --brass-text: #85601f;   /* small text on paper (AA) */
  --brass-light: #d6b57d;  /* on ink */

  --focus: #2f6fb3;
  --danger: #a3261b;
  --ok: #2d6a4f;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.12rem, 1.06rem + 0.3vw, 1.28rem);
  --fs-h4: 1.15rem;
  --fs-h3: clamp(1.3rem, 1.2rem + 0.45vw, 1.55rem);
  --fs-h2: clamp(1.9rem, 1.55rem + 1.5vw, 2.85rem);
  --fs-h1: clamp(2.5rem, 1.9rem + 2.8vw, 4.4rem);

  --wrap: 1200px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: #e7d6b5; color: var(--ink-900); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink-900); color: #fff; padding: .7rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}

/* 3. Layout ================================================================ */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .55); }
.section--alt { background: var(--paper-2); }
.section--white { background: var(--surface); }
.section--ink { background: var(--ink-900); color: var(--on-dark); }
.section + .section:not(.section--alt):not(.section--ink):not(.section--white) { border-top: 1px solid var(--rule); }

.grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.split--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sticky { position: sticky; top: calc(var(--header-h) + 2rem); }

/* 4. Type ================================================================== */
h1, h2, h3, h4 { margin: 0; color: inherit; font-weight: 400; }
h1, h2, h3, .display { font-family: var(--serif); letter-spacing: -0.015em; line-height: 1.08; font-optical-sizing: auto; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-family: var(--sans); font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
h1 em, h2 em, .display em { font-style: italic; color: var(--brass); }
.section--ink h2 em, .section--ink h1 em { color: var(--brass-light); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  margin: 0 0 1.25rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-text);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--ink .eyebrow { color: var(--brass-light); }

.lede { font-size: var(--fs-lg); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.section--ink .lede { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.num { font-variant-numeric: tabular-nums lining-nums; }

.section-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 1.5rem clamp(2rem, 4vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.section-head h2 { max-width: 20ch; }
.section-head .lede { margin: 0; }
.section-head--stack { display: block; max-width: 760px; }
.section-head--stack .lede { margin-top: 1.25rem; }
.section-head--center { display: block; text-align: center; max-width: 760px; margin-inline: auto; }
.section-head--center h2 { margin-inline: auto; }
.section-head--center .lede { margin: 1.25rem auto 0; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* 5. Buttons & header ====================================================== */
.ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.4rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 .95rem/1.2 var(--sans); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.ac-btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); flex: none; }
.ac-btn:hover svg { transform: translateX(3px); }
.ac-btn--primary { background: var(--ink-900); color: #fff; }
.ac-btn--primary:hover { background: var(--ink-700); color: #fff; }
.ac-btn--ghost { border-color: var(--rule-strong); color: var(--ink-900); background: transparent; }
.ac-btn--ghost:hover { border-color: var(--ink-900); color: var(--ink-900); }
.ac-btn--brass { background: var(--brass-light); color: var(--ink-950); }
.ac-btn--brass:hover { background: #e3c690; color: var(--ink-950); }
.ac-btn--line-light { border-color: rgba(255,255,255,.3); color: #fff; }
.ac-btn--line-light:hover { border-color: #fff; color: #fff; }
.ac-btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.text-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-900);
  border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.text-link::after { content: "→"; transition: transform .2s var(--ease); }
.text-link:hover { color: var(--ink-900); border-color: var(--ink-900); }
.text-link:hover::after { transform: translateX(3px); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-stuck { border-bottom-color: var(--rule); box-shadow: 0 6px 24px -18px rgba(14, 27, 44, .35); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink-900); flex: none; }
.brand:hover { color: var(--ink-900); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: -0.01em; }
.brand__sub { font-size: .62rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.custom-logo { max-height: 44px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.primary-nav a {
  display: block; padding: .5rem .85rem; font-size: .93rem; font-weight: 500; text-decoration: none; color: var(--ink-800);
  position: relative;
}
.primary-nav a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.primary-nav a:hover { color: var(--ink-900); }
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after { transform: scaleX(1); }
.primary-nav .sub-menu { display: none; }
.header-cta { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink-800); white-space: nowrap; }
.header-phone span { color: var(--muted); font-weight: 400; margin-right: .35rem; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink-900); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 6. Home sections ========================================================= */
/* Hero */
.hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(3.5rem, 2rem + 5vw, 6.5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 10%, transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; position: relative; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 1.75rem; }
.hero .actions { margin-top: 2.25rem; }
.hero__facts { list-style: none; margin: 2.75rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; font-size: var(--fs-sm); color: var(--muted); }
.hero__facts li { display: flex; align-items: center; gap: .55rem; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); flex: none; }

/* Ledger panel — decorative */
.ledger {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 1px 0 rgba(14,27,44,.04), 0 30px 60px -30px rgba(14,27,44,.28);
  font-size: .82rem; position: relative;
}
.ledger::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1px solid var(--rule-strong); border-radius: 6px;
}
.ledger__head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--rule); }
.ledger__title { font-family: var(--serif); font-size: 1.15rem; }
.ledger__chip { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-text); border: 1px solid #e3d3b6; background: #faf4e8; padding: .2rem .5rem; border-radius: 3px; }
.ledger__chart { padding: 1.1rem 1.35rem .4rem; }
.ledger__chart svg { width: 100%; height: auto; display: block; }
.ledger__legend { display: flex; gap: 1.1rem; padding: 0 1.35rem .9rem; color: var(--muted); font-size: .72rem; }
.ledger__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.ledger__legend i { width: 14px; height: 2px; background: var(--ink-900); display: inline-block; }
.ledger__legend i.is-plan { background: none; border-top: 2px dashed var(--rule-strong); height: 0; }
.ledger table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { padding: .62rem 1.35rem; text-align: right; border-top: 1px solid var(--paper-2); }
.ledger th { font-weight: 500; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.ledger th:first-child, .ledger td:first-child { text-align: left; }
.ledger td:first-child { color: var(--ink-800); font-weight: 500; }
.ledger .pos { color: var(--ok); }
.ledger .neg { color: var(--danger); }
.ledger__foot { display: flex; align-items: center; gap: .55rem; padding: .9rem 1.35rem; border-top: 1px solid var(--rule); background: var(--paper); border-radius: 0 0 6px 6px; color: var(--muted); font-size: .76rem; }
.ledger__foot svg { width: 15px; height: 15px; color: var(--ok); flex: none; }

/* Platform strip */
.platforms { border-block: 1px solid var(--rule); background: var(--surface); }
.platforms__inner { display: flex; align-items: center; gap: 2.5rem; padding-block: 1.6rem; }
.platforms__label { margin: 0; flex: none; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.platforms__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 0; flex: 1; justify-content: space-between; }
.platforms__list li { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-800); display: flex; align-items: center; }
.platforms__list li + li::before { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--brass); margin-inline: clamp(.9rem, 2vw, 1.75rem); opacity: .7; }

/* Numbered issues */
.issues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink-900); }
.issue { padding: 2rem 2rem 2.25rem 0; border-bottom: 1px solid var(--rule); }
.issue:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid var(--rule); }
.issue__num { display: block; font-family: var(--serif); font-size: .95rem; color: var(--brass-text); margin-bottom: 1.4rem; font-variant-numeric: lining-nums; }
.issue h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.issue p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Service rows */
.services { border-top: 1px solid var(--ink-900); counter-reset: svc; }
.svc {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 1.5rem clamp(1.5rem, 3vw, 3.5rem);
  padding: 2.4rem 0; border-bottom: 1px solid var(--rule); position: relative;
  transition: background-color .3s var(--ease);
}
.svc__title { display: flex; gap: 1.25rem; align-items: baseline; }
.svc__num { font-family: var(--serif); color: var(--brass-text); font-size: 1rem; min-width: 1.6rem; font-variant-numeric: lining-nums; }
.svc h3 { font-size: clamp(1.5rem, 1.3rem + .7vw, 1.9rem); }
.svc__tag { display: inline-block; margin-top: .75rem; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-text); }
.svc__body p { color: var(--muted); margin: 0 0 1.1rem; }
.svc__caps { list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--ink-700); }
.svc__caps li { padding: .45rem 0; border-bottom: 1px dashed var(--rule); }
.svc__caps li:first-child { padding-top: 0; }
.svc__caps li:last-child { border-bottom: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.14); }
.stat { padding: 2.25rem 2rem 0 0; }
.stat + .stat { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,.14); }
.stat__value { font-family: var(--serif); font-size: clamp(3rem, 2.2rem + 3vw, 5rem); line-height: 1; color: var(--brass-light); margin: 0 0 1rem; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.03em; }
.stat__value small { font-size: .5em; margin-left: .1em; letter-spacing: 0; }
.stat__label { color: var(--on-dark-muted); font-size: .95rem; max-width: 24ch; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 0; height: 1px; background: linear-gradient(90deg, var(--brass) 0, var(--rule-strong) 100%); }
.step { position: relative; }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--brass); color: var(--brass-text);
  font-family: var(--serif); font-size: 1.05rem; margin-bottom: 1.5rem; position: relative;
}
.section--alt .step__num { background: var(--paper-2); }
.section--white .step__num { background: var(--surface); }
.step h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Pull quote */
.pull { text-align: center; max-width: 900px; margin-inline: auto; }
.pull__mark { display: block; font-family: var(--serif); font-size: 5rem; line-height: .6; color: var(--brass); margin-bottom: 1.25rem; }
.pull blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.25; letter-spacing: -0.015em; }
.pull figcaption { margin-top: 1.75rem; font-size: var(--fs-sm); color: var(--muted); letter-spacing: .02em; }
.pull figcaption strong { color: var(--ink-900); font-weight: 600; }

/* CTA band */
.cta { background: var(--ink-900); color: var(--on-dark); position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 50% 90% at 100% 50%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 50% 90% at 100% 50%, #000, transparent 75%);
}
.cta__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2.5rem 4rem; align-items: end; position: relative; }
.cta h2 { max-width: 16ch; }
.cta .lede { margin-top: 1.25rem; color: var(--on-dark-muted); }
.cta .eyebrow { color: var(--brass-light); }
.cta h2 em { color: var(--brass-light); }
.cta__side { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; }
.cta__note { margin: .5rem 0 0; font-size: var(--fs-sm); color: var(--on-dark-muted); display: flex; align-items: center; gap: .5rem; }
.cta__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass-light); }

/* 7. Cards & lists ========================================================= */
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); position: relative;
  display: flex; flex-direction: column;
}
.card h3 { font-size: 1.45rem; margin-bottom: .75rem; }
.card p { color: var(--muted); }
.card__tag { display: inline-block; align-self: flex-start; margin-bottom: 1.25rem; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-text); }
.card__foot { margin-top: auto; padding-top: 1.5rem; }
.card--ink { background: var(--ink-800); border-color: rgba(255,255,255,.1); color: var(--on-dark); }
.card--ink p { color: var(--on-dark-muted); }
.card--ink .card__tag { color: var(--brass-light); }
a.card { text-decoration: none; color: inherit; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
a.card:hover { border-color: var(--ink-900); transform: translateY(-2px); box-shadow: 0 20px 40px -28px rgba(14,27,44,.35); color: inherit; }

.result-list { list-style: none; margin: 1.25rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--rule); font-size: .92rem; }
.result-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; padding: .3rem 0; color: var(--ink-700); }
.result-list strong { font-weight: 600; color: var(--ink-900); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding-top: .2rem; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .55rem 0 .55rem 1.75rem; border-bottom: 1px solid var(--rule); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem; width: 10px; height: 6px;
  border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(-45deg);
}
.section--ink .ticks li, .card--ink .ticks li { border-color: rgba(255,255,255,.1); }
.section--ink .ticks li::before, .card--ink .ticks li::before { border-color: var(--brass-light); }

.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 1.5rem; padding: .95rem 0; border-bottom: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: var(--fs-sm); }
.facts dd { margin: 0; font-weight: 500; text-align: right; font-size: var(--fs-sm); }

.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__thumb { margin: calc(clamp(1.5rem, 1.2rem + 1vw, 2.25rem) * -1) calc(clamp(1.5rem, 1.2rem + 1vw, 2.25rem) * -1) 1.5rem; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--paper-2); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { font-size: 1.5rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: var(--fs-xs); letter-spacing: .04em; color: var(--muted); }
.post-meta span + span::before { content: "·"; margin-right: .9rem; color: var(--rule-strong); }

.feature-post { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem 4rem; padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); align-items: end; }
.feature-post h3 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); max-width: 22ch; }
.feature-post__side { border-left: 1px solid var(--rule); padding-left: 2rem; }

/* 8. Page heroes =========================================================== */
.page-hero { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 45% 80% at 100% 0%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 45% 80% at 100% 0%, #000 10%, transparent 70%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 1.8rem + 2.4vw, 3.9rem); max-width: 20ch; }
.page-hero .lede { margin-top: 1.5rem; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem 5rem; align-items: end; }

.breadcrumbs { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--fs-xs); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--rule-strong); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* 9. Prose & article ======================================================= */
.prose { font-size: 1.09rem; line-height: 1.75; color: var(--ink-800); }
.prose > * + * { margin-top: 1.35em; }
.prose p { margin: 0; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.65rem, 1.4rem + 1vw, 2.15rem); margin-top: 2.4em; line-height: 1.15; }
.prose h3 { font-size: 1.4rem; margin-top: 2em; }
.prose h4 { margin-top: 1.8em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .8em; }
.prose a { color: var(--ink-900); text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--brass-text); }
.prose strong { font-weight: 600; color: var(--ink-900); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--brass); }
.prose blockquote {
  margin-inline: 0; padding: .25rem 0 .25rem 1.6rem; border-left: 2px solid var(--brass);
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--ink-900);
}
.prose figure { margin-inline: 0; }
.prose figcaption, .wp-caption-text { font-size: var(--fs-sm); color: var(--muted); margin-top: .6rem; }
.prose img { border-radius: var(--radius); }
.prose code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }
.prose pre { background: var(--ink-900); color: var(--on-dark); padding: 1.25rem; border-radius: var(--radius); overflow-x: auto; font-size: .9rem; }
.prose pre code { background: none; padding: 0; }
.prose hr { margin-block: 3em; }
.prose table, .entry-content table {
  width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.5;
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.prose thead th, .entry-content thead th { border-bottom: 1px solid var(--ink-900); }
.prose th, .prose td, .entry-content th, .entry-content td { padding: .8rem 1rem .8rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); min-width: 9rem; }
.prose th, .entry-content th { font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-900); }
.prose td:first-child { font-weight: 500; color: var(--ink-900); }
.prose .alert, .callout {
  background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--brass);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1rem; color: var(--ink-700);
}
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); gap: 0 3rem; }
.article-wrap > * { grid-column: 2; }
.article-hero h1 { font-size: clamp(2.2rem, 1.7rem + 2.3vw, 3.6rem); max-width: 22ch; }
.article-hero .post-meta { margin-top: 2rem; font-size: var(--fs-sm); }
.article-thumb { margin-top: clamp(2.5rem, 4vw, 4rem); }
.article-thumb img { width: 100%; border-radius: var(--radius); }
.author-box { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--ink-900); }
.author-box__mark { width: 52px; height: 52px; flex: none; }
.author-box h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: .35rem; }
.author-box p { color: var(--muted); font-size: .95rem; margin: 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.post-nav a { display: block; padding: 1.25rem 1.5rem; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; background: var(--surface); }
.post-nav a:hover { border-color: var(--ink-900); color: inherit; }
.post-nav span { display: block; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.post-nav strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; line-height: 1.3; }
.post-nav__next { text-align: right; grid-column: 2; }

.pagination .nav-links { display: flex; gap: .4rem; justify-content: center; margin-top: 3.5rem; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 .9rem; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; background: var(--surface); font-size: .92rem; }
.pagination .page-numbers.current { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.empty-state { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--rule-strong); border-radius: var(--radius); background: var(--surface); }
.empty-state h2 { font-size: 1.8rem; margin-bottom: .75rem; }
.empty-state p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.5rem; }

/* Comments */
.comments-area { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.comments-area h2, .comment-reply-title { font-size: 1.6rem; margin-bottom: 1.25rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); font-size: .97rem; }
.comment-meta { font-size: var(--fs-sm); color: var(--muted); margin-bottom: .5rem; }
.comment-author .avatar { display: none; }

/* 10. Accordion ============================================================ */
.faq { border-top: 1px solid var(--ink-900); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border: 1px solid var(--rule-strong); border-radius: 50%;
  background:
    linear-gradient(var(--ink-900), var(--ink-900)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--ink-900), var(--ink-900)) center / 1.5px 10px no-repeat;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover::after { border-color: var(--ink-900); }
.faq details > div { padding: 0 3rem 1.6rem 0; color: var(--muted); }

/* 11. Forms & Contact Form 7 =============================================== */
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 3rem); }
.form-card h2 { font-size: 2rem; margin-bottom: .5rem; }
.form-card > p { color: var(--muted); }

.wpcf7 .hidden-fields-container, .wpcf7 .screen-reader-response { display: none; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.resetting .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7 fieldset { border: 0; padding: 0; margin: 0; }
.wpcf7 form p, .comment-form p { margin: 0 0 1.25rem; }
.wpcf7 label, .comment-form label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-900); }
.wpcf7 label br { display: none; }
.wpcf7-form-control-wrap { display: block; margin-top: .45rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 select, .wpcf7 textarea,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.search-form input[type="search"] {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink-900);
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: .8rem .95rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.wpcf7 textarea, .comment-form textarea { min-height: 170px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus, .comment-form input:focus, .comment-form textarea:focus, .search-form input:focus {
  outline: none; border-color: var(--ink-900); background: #fff; box-shadow: 0 0 0 3px rgba(47, 111, 179, .15);
}
.wpcf7 input[type="submit"], .comment-form input[type="submit"], .search-form button, .button-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.75rem;
  background: var(--ink-900); color: #fff; border: 0; border-radius: var(--radius);
  font: 600 .97rem/1 var(--sans); cursor: pointer; text-decoration: none; transition: background-color .2s;
}
.wpcf7 input[type="submit"]:hover, .comment-form input[type="submit"]:hover, .search-form button:hover, .button-primary:hover { background: var(--ink-700); color: #fff; }
.wpcf7-not-valid { border-color: var(--danger) !important; }
.wpcf7-not-valid-tip { display: block; color: var(--danger); font-size: .85rem; margin-top: .35rem; font-weight: 500; }
.wpcf7 form .wpcf7-response-output { margin: 1.25rem 0 0; padding: .9rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--rule-strong); font-size: .93rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--ok); background: #eef6f1; color: var(--ok); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: var(--danger); background: #fbf0ee; color: var(--danger); }
.wpcf7-spinner { margin-left: .75rem; vertical-align: middle; }
.wpcf7 .recaptcha, .wpcf7 .g-recaptcha { margin-bottom: 1.25rem; }

.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form label { flex: 1; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); font-size: .97rem; }
.contact-list li:first-child { padding-top: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }

.mini-steps { list-style: none; margin: 0; padding: 0; counter-reset: ms; }
.mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 2.25rem 1fr; gap: .75rem; padding: .7rem 0; font-size: .95rem; color: var(--muted); }
.mini-steps li::before { content: counter(ms, decimal-leading-zero); font-family: var(--serif); color: var(--brass-text); }
.mini-steps strong { color: var(--ink-900); font-weight: 600; }

/* 12. Builder compatibility (Post and Page Builder content) ================ */
.entry-content .container { width: 100%; max-width: 100%; padding-inline: 0; margin-inline: auto; }
.entry-content .row { display: flex; flex-wrap: wrap; margin-inline: -15px; }
.entry-content [class*="col-xs-"], .entry-content [class*="col-sm-"], .entry-content [class*="col-md-"], .entry-content [class*="col-lg-"] { position: relative; width: 100%; padding-inline: 15px; min-height: 1px; }
@media (min-width: 768px) {
  .entry-content .col-sm-3 { width: 25%; } .entry-content .col-sm-4 { width: 33.3333%; } .entry-content .col-sm-6 { width: 50%; }
  .entry-content .col-sm-8 { width: 66.6667%; } .entry-content .col-sm-9 { width: 75%; } .entry-content .col-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
  .entry-content .col-md-3 { width: 25%; } .entry-content .col-md-4 { width: 33.3333%; } .entry-content .col-md-6 { width: 50%; }
  .entry-content .col-md-8 { width: 66.6667%; } .entry-content .col-md-9 { width: 75%; } .entry-content .col-md-12 { width: 100%; }
}
.entry-content .boldgrid-section { padding-block: 1.5rem; }
.entry-content .boldgrid-section + .boldgrid-section { border-top: 1px solid var(--rule); margin-top: 1.5rem; padding-top: 3rem; }
.entry-content [class*="-background-color"] { background: transparent !important; color: inherit !important; }
.entry-content [class*="color"][class*="-text-default"] { color: inherit !important; }
.entry-content h1 { font-size: var(--fs-h2); }
.entry-content h2 { font-size: clamp(1.6rem, 1.4rem + .9vw, 2.1rem); margin-bottom: .6em; }
.entry-content h3 { margin-bottom: .5em; }
.entry-content .fa { display: none; }
.entry-content .boldgrid-google-maps { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.entry-content .boldgrid-google-maps iframe { display: block; filter: grayscale(.6); }

/* Hand-styled article content: bring hard-coded inline colours into the theme. */
.single .prose section:has(> h1) { display: none; }
.single .prose h1 { display: none; }
.prose > style + div[style*="max-width"], .prose > div[style*="max-width:1050px"] {
  max-width: none !important; background: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; color: inherit !important;
}
.prose [style*="color:#123a56"], .prose [style*="color:#263746"] { color: var(--ink-900) !important; }
.prose h2[style] { font-size: clamp(1.65rem, 1.4rem + 1vw, 2.15rem) !important; }
.prose h3[style] { font-size: 1.35rem !important; font-weight: 400; }
.prose [style*="background:#123a56"], .prose [style*="background:#176b87"] { background: var(--ink-900) !important; border-radius: var(--radius) !important; }
.prose [style*="background:#176b87"] { background: var(--ink-700) !important; }
.prose [style*="background:#123a56"] h2, .prose [style*="background:#123a56"] h3 { color: #fff !important; }
.prose [style*="background:#123a56"] [style*="color"], .prose [style*="background:#176b87"] [style*="color"] { color: var(--on-dark) !important; }
.prose [style*="background:#f7fafb"], .prose [style*="background:linear-gradient(135deg,#eef7f8"], .prose [style*="background:#f3f8fa"] {
  background: var(--surface) !important; border: 1px solid var(--rule) !important; border-radius: var(--radius) !important;
}
.prose [style*="border-top:5px solid"] { border-top: 3px solid var(--ink-900) !important; }
.prose [style*="border-top:5px solid #1aa1b3"] { border-top-color: var(--brass) !important; }
.prose [style*="border-left:5px solid"] { border-left: 3px solid var(--brass) !important; }
.prose [style*="height:17px"] { background: var(--paper-2) !important; height: 10px !important; border-radius: 0 !important; }
.prose [style*="height:100%"][style*="linear-gradient"] { background: var(--ink-900) !important; }
.prose a[style*="background:#1bb2c3"] { background: var(--brass-light) !important; color: var(--ink-950) !important; border-radius: var(--radius) !important; font-weight: 600 !important; padding: .8rem 1.4rem !important; }
.prose tr[style*="background:#123a56"] th { color: #fff; }
.prose [style*="box-shadow"] { box-shadow: none !important; }
.prose [style*="color:#6a7b86"], .prose [style*="color:#536773"] { color: var(--muted) !important; }

/* 13. Footer =============================================================== */
.site-footer { background: var(--ink-950); color: var(--on-dark-muted); padding-top: clamp(4rem, 3rem + 4vw, 6.5rem); font-size: .95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr)); gap: 2.5rem clamp(2rem, 4vw, 4rem); padding-bottom: 4rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand__sub { color: var(--on-dark-muted); }
.footer-about p { margin: 1.5rem 0 0; max-width: 40ch; line-height: 1.7; }
.footer-col h2 { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); margin: .55rem 0 1.25rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer-col .footer-muted { color: var(--on-dark-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.75rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* 14. Motion =============================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.is-static .reveal { transition: none !important; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 15. Responsive =========================================================== */
@media (max-width: 1100px) {
  .header-phone { display: none; }
  .svc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .svc__caps { grid-column: 2; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
    padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
    display: none; flex-direction: column; border-top: 1px solid var(--rule);
  }
  .admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
  .primary-nav[data-open] { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { padding: 1.1rem 0; font-family: var(--serif); font-size: 1.6rem; border-bottom: 1px solid var(--rule); }
  .primary-nav a::after { display: none; }
  .primary-nav__cta { display: flex !important; flex-direction: column; gap: .75rem; margin-top: 2rem; }

  .hero__grid, .split, .split--5-7, .split--7-5, .cta__inner, .page-hero__grid, .feature-post, .section-head { grid-template-columns: minmax(0, 1fr); }
  .hero__panel { max-width: 560px; }
  .sticky { position: static; }
  .feature-post__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
  .issues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .issue:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .issue:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--rule); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { padding-top: 2.5rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .steps::before { display: none; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-wrap { display: block; }
  .platforms__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .platforms__list { justify-content: flex-start; }
}
.primary-nav__cta { display: none; }

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .issues, .steps, .svc { grid-template-columns: minmax(0, 1fr); }
  .issue, .issue:nth-child(even) { padding-left: 0; border-left: 0; padding-right: 0; }
  .svc__caps { grid-column: auto; }
  .svc { padding: 2rem 0; gap: 1rem; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 1.75rem 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .stat:nth-child(n+3) { padding-top: 1.75rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-col--contact { grid-column: 1 / -1; }
  .hero .actions .ac-btn, .cta__side .ac-btn { width: 100%; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { grid-column: 1; }
  .contact-list li { grid-template-columns: 1fr; gap: .25rem; }
  .result-list li { grid-template-columns: 1fr; gap: 0; }
  .ledger th, .ledger td { padding-inline: .9rem; }
  .ledger__head, .ledger__chart, .ledger__legend, .ledger__foot { padding-inline: .9rem; }
  .ledger::after { display: none; }
  .platforms__list li { font-size: 1.05rem; }
  .faq details > div { padding-right: 0; }
}

@media print {
  .site-header, .site-footer, .cta, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .js .reveal { opacity: 1; transform: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: var(--muted); }
}
