/* ==========================================================================
   4SYBER — Application styles
   "Calm Architect" — light-first, ordered, restrained.
   Built to brand guidelines v2.0.
   ========================================================================== */

/* ---- 0. Cascade layers ---------------------------------------------------- *
 * The element reset lives in a layer so it sits BELOW everything else — most
 * importantly below Tailwind's utilities, which the React hero island depends
 * on. Unlayered CSS always beats layered CSS regardless of specificity, so an
 * unlayered `* { margin: 0 }` here would silently delete the island's spacing.
 * Declared first so this layer is ordered before Tailwind's.
 * -------------------------------------------------------------------------- */

@layer fs-base;

/* ---- 1. Reset & base ------------------------------------------------------ */

@layer fs-base {
  *,
  *::before,
  *::after { box-sizing: border-box; }

  * { margin: 0; }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    background: var(--paper);
  }

  body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    letter-spacing: var(--tr-body);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis-weight: none;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

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

  a { color: inherit; text-decoration: none; }

  button, input, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }

  ul, ol { list-style: none; padding: 0; }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--on-surface);
    text-wrap: balance;
  }

  p { text-wrap: pretty; }
}

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

::selection { background: var(--accent-tint); color: var(--ink); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -110%);
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  transition: transform var(--dur-ui) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---- 2. Type primitives -------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tr-eyebrow);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--on-surface-mute);
}


.tag {
  display: inline-block;
  padding: 0.28rem 0.5rem 0.22rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: var(--radius);
}

/* Badge pill — one proof statement, sitting above the headline. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.9rem 0.42rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge__dot {
  width: 6px; height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}
.badge__lead { color: var(--ink); }
.badge__rule { width: 1px; height: 0.85em; background: var(--line-strong); flex: 0 0 auto; }
.badge__proof { color: var(--slate); }

/* Masked line reveal. */
.split { display: block; }
.split__line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.split__inner { display: block; will-change: transform; }

/* ---- 3. Layout primitives ------------------------------------------------ */

.site-main { display: block; }

section[class] { position: relative; }

.hero, .trustbar, .audience, .stats, .services, .credentials, .method,
.insights, .cta-band, .page-hero, .page-body, .archive, .svc-index,
.svc-scope, .svc-more, .concerns, .request, .notfound, .single__figure,
.impact, .contrast, .faq {
  padding-inline: var(--gutter);
}

.audience, .credentials, .method, .insights, .services, .archive,
.svc-index, .svc-scope, .svc-more, .concerns, .impact, .contrast, .faq {
  padding-block: var(--section-y);
}

/* --------------------------------------------------------------------------
   Backdrop mode.

   Added to <html> by the React island once it mounts. Section grounds become
   translucent so the fixed node/link field reads through the entire page, while
   cards and the footer stay solid to protect legibility.
   -------------------------------------------------------------------------- */
.is-backdrop body { background: transparent; }

/* The backdrop is hairline line-work rather than a saturated gradient, so the
   grounds can be opened further than the old shader allowed without putting
   body copy anywhere near the contrast floor. */
.is-backdrop .on-base { background: color-mix(in srgb, var(--paper) 78%, transparent); }

/* The hero is opaque: it has its own drifting field, and letting the site-wide
   node network show through as well put two particle systems in one viewport. */
.is-backdrop .hero { background: var(--paper); }
.is-backdrop .on-raised  { background: color-mix(in srgb, var(--raised-surface) 55%, transparent); }
.is-backdrop .on-tint  { background: color-mix(in srgb, var(--accent-tint) 62%, transparent); }

/* The audience split is the exception among the raised bands: its ground is
   opened much further than the shared 55%, so the node field behind the page
   reads through strongly and the two solid panels sit against open backdrop
   rather than against a ground of their own. Scoped here — stats and insights
   keep the shared value. */
.is-backdrop .audience { background: color-mix(in srgb, var(--raised-surface) 20%, transparent); }

/* Large-type rows can take more of the gradient than body copy can. */
.impact__fallback { max-width: var(--max-w); margin-inline: auto; }

.is-backdrop .svc-row { background: color-mix(in srgb, var(--surface) 62%, transparent); }
.is-backdrop .svc-row:hover { background: color-mix(in srgb, var(--paper) 88%, transparent); }

/* Anything that carries body copy keeps its own solid ground. */
.is-backdrop .audience__panel,
.is-backdrop .faq__item,
.is-backdrop .service,
.is-backdrop .card--insight,
.is-backdrop .concern,
.is-backdrop .svc-scope__item,
.is-backdrop .cert,
.is-backdrop .request__formwrap,
.is-backdrop .hero__index,
.is-backdrop .postnav__link,
.is-backdrop .nav-primary__list .sub-menu,
.is-backdrop .drawer { background: var(--paper); }

.is-backdrop .page-hero__facts > div { background: var(--raised-surface); }

/* The footer stays the page's one solid anchor. */
.is-backdrop .site-footer { background: var(--ink-surface); }

/* A hairline seam between adjacent same-tone bands. */
.on-base + .on-base,
.on-raised + .on-raised { border-top: 1px solid var(--line); }

.section-head {
  max-width: var(--max-w);
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 1rem + 4.5vw, 4.5rem);
}

/* The one deliberate grid break: the eyebrow hangs in the left margin. */
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  /* Column and row gaps are set separately: a single `gap` here put 64px
     between the title and its own deck on wide screens, because the deck sits
     on the second grid row. Vertical rhythm is the deck's own margin. */
  column-gap: clamp(1rem, 0.2rem + 3vw, 4rem);
  row-gap: 0;
  align-items: start;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.section-head__title {
  font-size: var(--fs-h2);
  letter-spacing: var(--tr-h2);
  line-height: var(--lh-h2);
  max-width: 24ch;
}

.section-head--services .section-head__title { max-width: 22ch; }

.section-head__deck {
  margin-top: 1.25rem;
  font-size: var(--fs-body-l);
  line-height: var(--lh-body-l);
  color: var(--on-surface-body);
  max-width: 56ch;
}

.section-head--split .section-head__deck { grid-column: 2; }
.section-head--services .section-head__deck { max-width: 54ch; }

.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--accent-line);
  transition: border-color var(--dur-ui) var(--ease), gap var(--dur-ui) var(--ease);
}
.section-head__link:hover { border-color: var(--accent); gap: 0.75rem; }

/* ---- 3b. FAQ ------------------------------------------------------------- *
 * Answers to the questions that arrive by email before a first call. Built on
 * `<details>` so it opens with no JavaScript and is keyboard-operable for free;
 * the same array is emitted as FAQPage structured data, so what is written here
 * is what a search engine reads.
 * -------------------------------------------------------------------------- */

.faq__list {
  max-width: 68rem;
  margin-inline: auto;
  border-top: 1px solid var(--hairline);
}

.faq__item {
  border-bottom: 1px solid var(--hairline);
  background: transparent;
}

.faq__q {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: clamp(1rem, 0.4rem + 2vw, 2.5rem);
  padding-block: clamp(1.15rem, 0.9rem + 0.9vw, 1.6rem);
  font-size: var(--fs-h4);
  letter-spacing: var(--tr-h4);
  line-height: var(--lh-h4);
  color: var(--on-surface);
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-ui) var(--ease);
}

/* Safari still paints its own disclosure triangle without this. */
.faq__q::-webkit-details-marker { display: none; }

.faq__q:hover { color: var(--accent); }

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

.faq__q-text { max-width: 46ch; }

/* The mark is drawn rather than typed, so it can rotate to a minus. */
.faq__mark {
  position: relative;
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.35em;
  color: var(--accent);
}

.faq__mark::before,
.faq__mark::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-ui) var(--ease), opacity var(--dur-ui) var(--ease);
}

.faq__mark::after { transform: rotate(90deg); }

.faq__item[open] .faq__q { color: var(--accent); }
.faq__item[open] .faq__mark::after { transform: rotate(0deg); opacity: 0; }

.faq__a {
  padding-bottom: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  padding-right: clamp(0rem, -1rem + 4vw, 3.5rem);
}

.faq__a p {
  max-width: 72ch;
  font-size: var(--fs-body-l);
  line-height: var(--lh-body-l);
  color: var(--on-surface-body);
}

@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__a {
    animation: faq-open 0.32s var(--ease-out) both;
  }
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-0.35rem); }
  to   { opacity: 1; transform: none; }
}

/* ---- 4. Buttons ---------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--control-h);
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: -0.004em;
  white-space: nowrap;
  transition: background-color var(--dur-ui) var(--ease),
              border-color var(--dur-ui) var(--ease),
              color var(--dur-ui) var(--ease),
              box-shadow var(--dur-ui) var(--ease);
  will-change: transform;
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-ui) var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Primary is ink, not accent: the darkest thing on a light page is the most
   important thing on it, and it keeps the accent budget for state. */
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--secondary:hover {
  border-color: var(--ink);
  background: var(--raised-surface);
}

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

.btn:active { transform: translateY(1px); }

/* On the dark footer the polarity flips. */
.on-deep .btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-deep .btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.on-deep .btn--secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.on-deep .btn--secondary:hover { border-color: var(--ink); background: var(--raised-surface); }

/* The primary CTA opens to reveal a companion tab. Only the two rectangles
   behind the label are filtered, so the type stays perfectly crisp. */
.cta-pair {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--control-h);
  padding: 0 3.4rem 0 1.35rem;
  color: var(--paper);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: -0.004em;
  white-space: nowrap;
  isolation: isolate;
  will-change: transform;
}

.cta-pair__goo {
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: url(#fs-gooey);
}
.cta-pair__blob { position: absolute; background: var(--ink); border-radius: var(--radius); }
.cta-pair__blob--body { inset: 0; }
.cta-pair__blob--tab {
  top: 0.35rem;
  bottom: 0.35rem;
  right: 0.35rem;
  width: 2.3rem;
  transition: transform var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease);
}

.cta-pair__label { position: relative; z-index: 1; }

.cta-pair__arrow {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  color: var(--paper);
  transition: transform var(--dur-ui) var(--ease);
}
.cta-pair__arrow svg { width: 100%; height: 100%; }

/* On hover the tab separates and the whole shape stretches with it. */
.cta-pair:hover .cta-pair__blob--tab { transform: translateX(2rem); }
.cta-pair:hover .cta-pair__arrow { transform: translateX(2rem); }
.cta-pair:hover .cta-pair__blob { background: var(--accent); }
.cta-pair:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
.cta-pair:active { transform: translateY(1px); }

/* Reserve the room the tab travels into, so nothing reflows on hover. */
.hero__actions { --cta-tab-travel: 2.1rem; }
.hero__actions .cta-pair { margin-right: var(--cta-tab-travel); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Credential seal. Still by default; turns on hover or focus. */
.seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 6.75rem;
  height: 6.75rem;
  flex: 0 0 auto;
}
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal__ring text {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.11em;
  fill: var(--slate);
  text-transform: uppercase;
}
.seal__ring g { transform-origin: 50% 50%; will-change: transform; }
.seal__disc {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.seal__mark { width: 22px; height: 22px; color: var(--accent); }
.seal:hover .seal__disc { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }

/* ---- 5. Header ----------------------------------------------------------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: calc(var(--z-nav) + 1);
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform 0.4s var(--ease), background-color var(--dur-ui) var(--ease),
              border-color var(--dur-ui) var(--ease), backdrop-filter var(--dur-ui) var(--ease);
  will-change: transform;
}

.site-header.is-stuck {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}

.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding: 1.05rem var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.2rem + 3vw, 3rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}
.brand__mark { width: 26px; height: 26px; color: var(--accent); }
.brand__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.brand__word-accent { color: var(--ink); }

.custom-logo-link { display: inline-flex; align-items: center; flex: 0 0 auto; }

/* The uploaded wordmark is 1975px wide. WordPress renders a custom logo at its
   own intrinsic size, which stood the header up to 149px; it is bound to the
   same optical height as the mark-plus-wordmark lockup it replaces. */
.custom-logo,
.brand__logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(182px, 42vw);
  object-fit: contain;
}

@media (max-width: 600px) {
  .custom-logo,
  .brand__logo { height: 24px; }
}

.nav-primary { margin-left: auto; }
.nav-primary__list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 0.1rem + 1.6vw, 2rem);
}
.nav-primary__list > li { position: relative; }

.nav-primary__list a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  letter-spacing: -0.006em;
  color: var(--graphite);
  transition: color var(--dur-ui) var(--ease);
}
.nav-primary__list a::after {
  content: "";
  display: block;
  height: 1.5px;
  margin-top: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-ui) var(--ease);
}
.nav-primary__list a:hover,
.nav-primary__list .current-menu-item > a,
.nav-primary__list .current-menu-parent > a { color: var(--ink); }
.nav-primary__list a:hover::after,
.nav-primary__list .current-menu-item > a::after,
.nav-primary__list .current-menu-parent > a::after { transform: scaleX(1); }

.nav-primary__list .sub-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: -0.75rem;
  min-width: 15rem;
  padding: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease), visibility var(--dur-ui);
}
.nav-primary__list > li:hover > .sub-menu,
.nav-primary__list > li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-primary__list .sub-menu a { padding: 0.5rem 0.7rem; border-radius: var(--radius); }
.nav-primary__list .sub-menu a::after { display: none; }
.nav-primary__list .sub-menu a:hover { background: var(--raised-surface); color: var(--accent); }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; }

.nav-cta {
  display: inline-block;
  padding: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
  transition: background-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
  will-change: transform;
}
.nav-cta:hover { background: var(--accent); box-shadow: var(--shadow-md); }

.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; margin-right: -0.5rem; }
.nav-toggle__box { display: block; position: relative; width: 22px; height: 12px; margin-inline: auto; }
.nav-toggle__box span {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur-ui) var(--ease), opacity var(--dur-micro) var(--ease);
}
.nav-toggle__box span:first-child { top: 0; }
.nav-toggle__box span:last-child { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:first-child { transform: translateY(5.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:last-child { transform: translateY(-5.25px) rotate(-45deg); }

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer[hidden] { display: none; }
.drawer__inner {
  min-height: 100%;
  padding: 5.5rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.drawer__list { display: flex; flex-direction: column; }
.drawer__list a {
  display: block;
  padding: 0.65rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--line);
}
.drawer__list .sub-menu { padding: 0.25rem 0 0.75rem 1rem; }
.drawer__list .sub-menu a { font-size: 1rem; font-weight: 400; border-bottom: 0; padding: 0.3rem 0; color: var(--slate); }

.drawer__audiences { display: grid; gap: 0.75rem; }
.drawer__audience {
  display: grid; gap: 0.35rem;
  padding: 1.1rem;
  background: var(--raised-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.drawer__audience-title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.018em; }
.drawer__actions { display: grid; gap: 0.6rem; margin-top: auto; }
.drawer__actions .btn { justify-content: center; }

body.is-locked { overflow: hidden; }

/* With the drawer open the header is the only chrome: give it a solid ground so
   drawer content never shows through behind the logo. */
body.is-locked .site-header {
  background: var(--paper);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: var(--line);
}

/* ---- 6. Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(100svh, 50rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(7.5rem, 5rem + 7vw, 10rem);
  padding-bottom: clamp(3rem, 1rem + 5vw, 5rem);
  overflow: hidden;
}

.hero__field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Blueprint grid. Barely there — it should register as order, not as texture. */
.hero__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(to right, rgba(14, 20, 32, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 20, 32, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 88% 58% at 74% 42%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 88% 58% at 74% 42%, #000 0%, transparent 72%);
  will-change: transform;
}

/* An architect's plan, not a radar sweep. */
.hero__plan {
  position: absolute;
  top: 50%;
  right: clamp(-6rem, -2vw, 0rem);
  width: min(52vw, 40rem);
  aspect-ratio: 1;
  transform: translateY(-50%);
  will-change: transform;
}
.hero__plan svg { width: 100%; height: 100%; }
.hero__plan-line   { stroke: rgba(0, 0, 0, 0.5); }
.hero__plan-line-2 { stroke: rgba(14, 20, 32, 0.055); }
.hero__plan-dim    { stroke: rgba(43, 74, 207, 0.4); }
.hero__plan-fill   { fill: rgba(43, 74, 207, 0.04); }
.hero__plan-node   { fill: rgba(43, 74, 207, 0.55); }

/* Practice stamp. The leaf is the one element on the plan allowed its own
   colour: the drawing is otherwise ink and accent, and a red that quiet still
   reads as the flag without competing with the headline beside it. */
.hero__plan-leaf {
  fill: none;
  stroke: rgba(196, 38, 44, 0.55);
  stroke-linejoin: round;
}

.hero__plan-text {
  fill: rgba(43, 74, 207, 0.5);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
}

/* The badge's leaf sits in the accent dot's slot, so it takes the dot's box. */
.badge__maple {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: var(--sev-critical);
}

.hero__wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 70% at 76% 40%, rgba(43, 74, 207, 0.06), transparent 66%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--max-w-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
  gap: clamp(2rem, 0.5rem + 5vw, 5rem);
  align-items: end;
}

.hero__lede { max-width: 42rem; }

.hero__title {
  margin-top: 1.5rem;
  font-size: var(--fs-display-xl);
  font-weight: 600;
  letter-spacing: var(--tr-display-xl);
  line-height: var(--lh-display-xl);
  color: var(--ink);
}

.hero__deck {
  margin-top: clamp(1.35rem, 1rem + 1.2vw, 1.85rem);
  max-width: 50ch;
  font-size: var(--fs-body-l);
  line-height: var(--lh-body-l);
  color: var(--graphite);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: clamp(1.85rem, 1.4rem + 1.6vw, 2.5rem);
}

.hero__promise {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.01em;
  color: var(--slate);
}
/* A steady mark. Nothing on this page pulses. */
.hero__promise-dot {
  width: 6px; height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

/* Hanging index — the one place the hero breaks its own grid. */
.hero__index {
  display: grid;
  padding: 0.4rem 1.15rem 0.6rem;
  /* A legend panel resting on the plan — the overlap is the point, so it needs
     its own ground to stay legible. */
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.hero__index-row {
  display: grid;
  grid-template-columns: 2.75rem 1fr auto;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.hero__index-row:last-child { border-bottom: 0; }
.hero__index-row:hover { padding-left: 0.4rem; border-bottom-color: var(--accent); }
.hero__index-code {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  color: var(--accent);
}
.hero__index-title { font-size: 0.9375rem; letter-spacing: -0.008em; color: var(--ink); }
.hero__index-kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
}

.hero__foot {
  position: relative;
  max-width: var(--max-w-wide);
  width: 100%;
  margin: clamp(2rem, 1rem + 3.5vw, 3.25rem) auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.hero__scroll { display: inline-flex; align-items: center; gap: 0.7rem; }
.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--slate);
}
.hero__scroll-line {
  display: block;
  width: 3.5rem; height: 1px;
  background: linear-gradient(to right, var(--line-strong), transparent);
}

/* ---- 7. Trust marquee ----------------------------------------------------- */

.trustbar {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; }
.marquee__item {
  padding-inline: clamp(1.1rem, 0.5rem + 1.8vw, 2.25rem);
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 0.83rem + 0.25vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--slate);
  transition: color var(--dur-ui) var(--ease);
}
.marquee__item:hover { color: var(--accent); }

/* ---- 8. Audience split ---------------------------------------------------- */

.audience__split {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
}

/* Cards lift; they do not invert. Calm interfaces change one property at a time. */
.audience__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-ui) var(--ease),
              border-color var(--dur-ui) var(--ease),
              transform var(--dur-ui) var(--ease);
}
.audience__panel:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.audience__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.audience__panel-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
  font-weight: 400;
  line-height: 0.8;
  color: var(--line-strong);
  transition: color var(--dur-ui) var(--ease);
}
.audience__panel:hover .audience__panel-num { color: var(--accent-line); }

.audience__title {
  margin-top: clamp(1.35rem, 1rem + 1.6vw, 2rem);
  font-size: var(--fs-h3);
  letter-spacing: var(--tr-h3);
  line-height: var(--lh-h3);
  max-width: 18ch;
}
.audience__body {
  margin-top: 0.8rem;
  color: var(--graphite);
  max-width: 44ch;
}

.audience__points { margin-top: 1.6rem; display: grid; }
.audience__points li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.65rem 0;
  font-size: 0.9375rem;
  color: var(--graphite);
  border-top: 1px solid var(--line);
}
.audience__bullet {
  width: 5px; height: 5px;
  flex: 0 0 auto;
  background: var(--accent);
  border-radius: 1px;
  transform: translateY(-2px) rotate(45deg);
}

.audience__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.85rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--accent);
  transition: gap var(--dur-ui) var(--ease);
}
.audience__panel:hover .audience__cta { gap: 0.85rem; }
.audience__cta::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }

/* ---- 9. Stats -------------------------------------------------------------- */

.stats { padding-block: clamp(3rem, 2rem + 3.5vw, 5rem); }
.stats__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.stat {
  padding: clamp(1.5rem, 1rem + 1.8vw, 2.25rem) clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }

.stat__value {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__suffix { color: var(--accent); }
.stat__label { margin-top: 0.9rem; font-size: 0.9375rem; letter-spacing: -0.008em; color: var(--ink); }
.stat__note {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--slate);
}

/* ---- 10. Service architecture --------------------------------------------- */

.services__rail {
  position: relative;
  height: calc((var(--service-count) - 1) * 78vh + 100vh);
  margin-inline: calc(var(--gutter) * -1);
}
.services__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.services__track {
  display: flex;
  gap: clamp(1rem, 0.4rem + 1.6vw, 1.75rem);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}

.service {
  display: flex;
  flex-direction: column;
  width: clamp(20rem, 31vw, 29rem);
  min-height: min(33rem, 66vh);
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.125rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.service:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); }

.service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.service__code { color: var(--accent); }
.service__kicker { color: var(--slate); }

.service__title {
  margin-top: 1.35rem;
  font-size: var(--fs-h3);
  letter-spacing: var(--tr-h3);
  line-height: var(--lh-h3);
}
.service__deck {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--graphite);
}
.service__points { margin-top: 1.35rem; display: grid; gap: 0.55rem; }
.service__points li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--graphite);
}
.service__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5rem;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.service__foot { margin-top: auto; padding-top: 1.5rem; }
.service__outcome {
  padding: 0.85rem 0.95rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--accent-tint);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.service__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.service__duration { color: var(--slate); }
.service__link { display: inline-flex; gap: 0.35rem; color: var(--accent); transition: gap var(--dur-ui) var(--ease); }
.service__link:hover { gap: 0.65rem; }

.services__progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.services__progress-bar {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
}

/* Stacked fallback — narrow viewports and reduced motion. */
.services__list { display: none; max-width: var(--max-w); margin-inline: auto; }
.services__list-item { border-top: 1px solid var(--line); }
.services__list-item:last-child { border-bottom: 1px solid var(--line); }
.services__list-item a {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 0;
  transition: padding-left var(--dur-ui) var(--ease);
}
.services__list-item a:hover { padding-left: 0.5rem; }
.services__list-code { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.09em; color: var(--accent); padding-top: 0.4rem; }
.services__list-body { display: grid; gap: 0.3rem; }
.services__list-title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; letter-spacing: var(--tr-h4); }
.services__list-deck { font-size: 0.9375rem; color: var(--graphite); }
.services__list-arrow { color: var(--accent); }

/* ---- 11. Credentials ------------------------------------------------------- */

.credentials__grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  row-gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  align-items: start;
}
/* Certifications is the tallest block; the right column stacks against it
   rather than waiting for a shared row height. */
.credentials__block--certs      { grid-column: 1; grid-row: 1 / span 2; }
.credentials__block--frameworks { grid-column: 2; grid-row: 1; }
.credentials__block--alliances  { grid-column: 2; grid-row: 2; }

.credentials__label {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--slate);
  padding-bottom: 0.85rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.cert {
  display: grid;
  gap: 0.28rem;
  padding: 1.15rem;
  background: var(--raised-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.cert:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.cert__abbr {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.cert__name { font-size: 0.8125rem; line-height: 1.4; color: var(--graphite); }
.cert__body {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate);
}

.framework-list { display: grid; }
.framework {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left var(--dur-ui) var(--ease);
}
.framework:last-child { border-bottom: 1px solid var(--line); }
.framework:hover { padding-left: 0.35rem; }
.framework__abbr { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; color: var(--ink); }
.framework__name { font-size: 0.875rem; color: var(--graphite); }
.framework__note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.15rem 0.4rem;
  background: var(--accent-tint);
  border-radius: var(--radius);
}

.alliance-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.alliance {
  padding: 0.45rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease);
}
.alliance:hover { border-color: var(--line-strong); color: var(--ink); }

.credentials__note {
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
  background: var(--accent-tint);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--graphite);
}

/* ---- 12. Method ------------------------------------------------------------ */

.method__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
  gap: clamp(2rem, 0.5rem + 5vw, 5.5rem);
}

.method__sticky { position: sticky; top: 8rem; }
.method__title {
  margin-top: 1.35rem;
  font-size: var(--fs-h2);
  letter-spacing: var(--tr-h2);
  line-height: var(--lh-h2);
}

.method__ticks { margin-top: 2.25rem; display: grid; gap: 0.45rem; }
.method__tick { display: flex; align-items: center; gap: 0.8rem; opacity: 0.4; transition: opacity 0.4s var(--ease); }
.method__tick.is-active { opacity: 1; }
.method__tick-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  color: var(--slate);
  transition: color 0.4s var(--ease);
}
.method__tick.is-active .method__tick-num { color: var(--accent); }
.method__tick-rule {
  display: block;
  height: 1px;
  width: 1.25rem;
  background: var(--line-strong);
  transition: width 0.4s var(--ease), background-color 0.4s var(--ease);
}
.method__tick.is-active .method__tick-rule { width: 3.25rem; background: var(--accent); }

.method__steps { display: grid; gap: clamp(2.25rem, 1rem + 4vw, 4rem); }
.method__step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  align-items: start;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.method__step-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  color: var(--accent);
  padding-top: 0.35rem;
}
.method__step-title {
  grid-column: 2;
  font-size: var(--fs-h3);
  letter-spacing: var(--tr-h3);
  line-height: var(--lh-h3);
}
.method__step-body {
  grid-column: 2;
  margin-top: 0.75rem;
  max-width: 58ch;
  font-size: var(--fs-body-l);
  line-height: var(--lh-body-l);
  color: var(--graphite);
}

/* ---- 13. Insights & cards --------------------------------------------------- */

.insights__grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 1.4vw, 1.5rem);
}

.card--insight {
  background: var(--raised-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--dur-ui) var(--ease),
              border-color var(--dur-ui) var(--ease),
              transform var(--dur-ui) var(--ease);
}
.card--insight:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.35rem, 1rem + 1.4vw, 1.85rem);
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}
.card__date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate);
}
.card__title {
  font-size: var(--fs-h4);
  letter-spacing: var(--tr-h4);
  line-height: 1.3;
  text-wrap: balance;
}
.card__deck {
  margin-top: 0.7rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--graphite);
}
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
}
.card__arrow { color: var(--accent); transition: transform var(--dur-ui) var(--ease); }
.card__link:hover .card__arrow { transform: translateX(4px); }

.filterbar {
  max-width: var(--max-w);
  margin: 0 auto clamp(2rem, 1rem + 3vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.filterbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--graphite);
  background: var(--raised-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.filterbar__link:hover { border-color: var(--line-strong); color: var(--ink); }
.filterbar__link.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filterbar__count { opacity: 0.55; }

.archive__empty { max-width: var(--max-w); margin-inline: auto; color: var(--slate); }

.pagination { max-width: var(--max-w); margin: clamp(2.5rem, 1.5rem + 3vw, 3.5rem) auto 0; }

/* Pagination sits outside the archive section: that section is the insights
   island's fallback and is hidden once the island renders, and the pager
   belongs to the page either way. */
.archive__pager {
  padding-inline: var(--gutter);
  padding-block: 0 var(--section-y);
}
.archive__pager .pagination { margin-top: 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--raised-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur-ui) var(--ease);
}
.page-numbers:hover { border-color: var(--line-strong); }
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---- 14. CTA band ------------------------------------------------------------ */

.cta-band { padding-block: clamp(3.5rem, 2rem + 5vw, 6rem); }
.cta-band__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: end;
}
.cta-band__title {
  margin-top: 1.35rem;
  font-size: var(--fs-display-l);
  letter-spacing: var(--tr-display-l);
  line-height: var(--lh-display-l);
  max-width: 20ch;
}
.cta-band__deck {
  margin-top: 1.1rem;
  max-width: 48ch;
  font-size: var(--fs-body-l);
  color: var(--graphite);
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---- 15. Footer ---------------------------------------------------------------- */

.site-footer { padding-inline: var(--gutter); }
.site-footer__inner {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-block: clamp(3rem, 2rem + 3.5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.2fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
}
.site-footer__mark { width: 30px; height: 30px; color: var(--accent); }
.site-footer__line {
  margin-top: 1rem;
  max-width: 30ch;
  font-size: 0.9375rem;
  color: var(--slate);
}
.site-footer__contact { margin-top: 1.35rem; display: grid; gap: 0.3rem; font-style: normal; font-family: var(--font-mono); font-size: 0.8125rem; }
.site-footer__contact a { transition: color var(--dur-ui) var(--ease); }
.site-footer__contact a:hover { color: var(--accent); }
.site-footer__contact span { color: var(--slate); }

/* Country of origin, under the address where the reader can check it against a
   street and a postal code. Matches the footer island's own treatment, so the
   fallback and the mounted footer say the same thing in the same place. */
.site-footer__origin {
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 34ch;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--slate);
}

.site-footer__flag {
  flex: none;
  margin-top: 0.15em;
  width: 1rem;
  height: 1rem;
  color: var(--sev-critical);
}

.site-footer .eyebrow { margin-bottom: 1.15rem; }
.site-footer__list { display: grid; gap: 0.5rem; }
.site-footer__list a { font-size: 0.9375rem; color: var(--slate); transition: color var(--dur-ui) var(--ease); }
.site-footer__list a:hover { color: var(--ink); }

.site-footer__certs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.site-footer__certs li {
  padding: 0.3rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: help;
}

.site-footer__base {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--slate);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer__legal a { transition: color var(--dur-ui) var(--ease); }
.site-footer__legal a:hover { color: var(--ink); }

/* ---- 16. Interior pages ---------------------------------------------------------- */

.page-hero {
  padding-top: clamp(7rem, 5.5rem + 4vw, 9.5rem);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 45%;
  background:
    linear-gradient(to right, rgba(14, 20, 32, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 20, 32, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 70%);
  pointer-events: none;
}
.page-hero__inner { position: relative; max-width: var(--max-w); margin-inline: auto; }
.page-hero__title {
  margin-top: 1.35rem;
  font-size: var(--fs-display-l);
  letter-spacing: var(--tr-display-l);
  line-height: var(--lh-display-l);
  max-width: 20ch;
}
.page-hero__deck {
  margin-top: 1.35rem;
  max-width: 60ch;
  font-size: var(--fs-body-l);
  line-height: var(--lh-body-l);
  color: var(--graphite);
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.page-hero__switch {
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--slate);
}
.page-hero__switch a { color: var(--accent); border-bottom: 1px solid var(--accent-line); padding-bottom: 1px; }
.page-hero__switch a:hover { border-color: var(--accent); }
.page-hero__search { margin-top: 1.75rem; max-width: 30rem; }

.page-hero__facts {
  margin-top: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
}
.page-hero__facts > div {
  background: var(--raised-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
}
.page-hero__facts dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate);
}
.page-hero__facts dd { margin-top: 0.45rem; font-size: 0.9375rem; line-height: 1.45; color: var(--ink); }

.page-body { padding-block: clamp(3rem, 2rem + 3.5vw, 5rem); }

/* The About page reads as one continuous argument under its own headline, so
   its prose hangs on the page margin like every heading above it. `.prose`
   otherwise centres a 42rem measure in the viewport, which is right for an
   article and wrong here — it left the body text floating in the middle of the
   page while the h1 sat against the left edge. The measure is preserved; only
   the alignment changes. */
.page-body--about .prose { max-width: var(--max-w); }
.page-body--about .prose > * { max-width: 44rem; }
/* Headings take the same measure as the body rather than a tighter one: at h3
   size 30ch is barely thirty characters, which broke "Backed by 4S Consulting
   Services Inc." across two lines mid-name. */

/* Editor headings rewritten into a gradual-reveal island. `foursyber_heading()`
   prints the mount and its fallback heading as siblings, so both land in the
   prose flow and the rhythm has to hold in either state: before the island
   mounts the mount is empty and the fallback carries the spacing; after it
   mounts the fallback is hidden and the mount carries it. The `h2 + *` rule
   above still spaces the paragraph that follows, because the fallback is an
   `h2` and stays in the DOM either way. */
.prose > .fs-heading:empty { display: none; }
.prose > .fs-heading:not(:empty) { margin-top: 2.3em; }
.prose .fs-heading h2 { margin-top: 0; }

/* ---- 17. Prose ----------------------------------------------------------------- */

.prose {
  max-width: 42rem;
  margin-inline: auto;
  font-size: var(--fs-body-l);
  line-height: 1.75;
  color: var(--graphite);
}
.prose > * + * { margin-top: 1.35em; }
.prose h2 {
  margin-top: 2.3em;
  font-size: var(--fs-h3);
  letter-spacing: var(--tr-h3);
  line-height: var(--lh-h3);
  color: var(--ink);
}
.prose h3 { margin-top: 1.9em; font-size: var(--fs-h4); letter-spacing: var(--tr-h4); color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 0.75em; }
.prose a { color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent-line); transition: box-shadow var(--dur-ui) var(--ease); }
.prose a:hover { box-shadow: inset 0 -1px 0 var(--accent); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; padding-left: 0.4rem; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: -0.95rem; top: 0.75em;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}
.prose ol { list-style: decimal; }
.prose ol::marker, .prose li::marker { color: var(--slate); }
.prose li + li { margin-top: 0.5em; }
.prose blockquote {
  padding: 1.15rem 1.35rem;
  background: var(--raised-surface);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: var(--fs-h4);
  letter-spacing: var(--tr-h4);
  line-height: 1.5;
  color: var(--ink);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.15em 0.35em;
  color: var(--ink);
  background: var(--raised-surface);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.prose pre {
  padding: 1.25rem;
  background: var(--ink-surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.prose img { border-radius: var(--radius-lg); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 0.7rem 0.5rem; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }

/* ---- 18. Single article ---------------------------------------------------------- */

.single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
}
.single__progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--line);
}
.single__progress-bar { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; }

.single__figure { max-width: var(--max-w); margin: 0 auto; padding-block: 0; }
.single__figure img { width: 100%; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.postnav {
  max-width: 42rem;
  margin: clamp(3rem, 2rem + 3vw, 4rem) auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.postnav__link {
  background: var(--raised-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: grid;
  gap: 0.45rem;
  transition: border-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.postnav__link:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.postnav__link--prev { text-align: right; }
.postnav__title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.018em; color: var(--ink); }

/* ---- 19. Services index / detail / audience -------------------------------------- */

/* The services index without JavaScript: the stack island never renders, so the
   title it would have carried has to stand here. Top padding clears the fixed
   header, which the removed hero band used to do. */
.svc-stack__head {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(7rem, 5.5rem + 4vw, 9.5rem) var(--gutter) 0;
}

.svc-index { display: grid; gap: 1px; background: var(--line); padding-inline: 0; }
.svc-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 17rem);
  gap: clamp(1rem, 0.5rem + 2vw, 3rem);
  padding: clamp(2rem, 1.2rem + 2.5vw, 3.25rem) var(--gutter);
  background: var(--surface);
  transition: background-color var(--dur-ui) var(--ease);
}
.svc-row:hover { background: var(--paper); }
.svc-row__rail { display: grid; gap: 0.3rem; align-content: start; }
.svc-row__code { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.09em; color: var(--accent); }
.svc-row__kicker { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--slate); }
.svc-row__title { font-size: var(--fs-h2); letter-spacing: var(--tr-h2); line-height: 1.1; }
.svc-row__title a { box-shadow: inset 0 -2px 0 transparent; transition: box-shadow var(--dur-ui) var(--ease); }
.svc-row__title a:hover { box-shadow: inset 0 -2px 0 var(--accent); }
.svc-row__deck { margin-top: 0.9rem; max-width: 54ch; font-size: var(--fs-body-l); color: var(--graphite); }
.svc-row__points { margin-top: 1.35rem; display: grid; gap: 0.45rem; }
.svc-row__points li { position: relative; padding-left: 1.05rem; font-size: 0.9375rem; color: var(--graphite); }
.svc-row__points li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 4px; height: 4px; background: var(--accent); border-radius: 1px; transform: rotate(45deg); }
.svc-row__aside { display: grid; gap: 0.8rem; align-content: start; }
.svc-row__outcome {
  padding: 0.9rem 1rem;
  background: var(--accent-tint);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}
.svc-row__duration { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate); }
.svc-row__link { display: inline-flex; gap: 0.4rem; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--accent); transition: gap var(--dur-ui) var(--ease); }
.svc-row__link:hover { gap: 0.75rem; }
.svc-index__prose { padding: clamp(2rem, 1rem + 3vw, 3.5rem) var(--gutter); background: var(--surface); }

.svc-scope__list {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
}
.svc-scope__item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.svc-scope__num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.09em; color: var(--accent); padding-top: 0.2rem; }
.svc-scope__text { font-size: var(--fs-body-l); line-height: 1.5; color: var(--graphite); }
/* The phase list without JavaScript: the timeline island never renders, so each
   phase states its title, what it covers, and what it commits to. */
.svc-scope__text strong { display: block; color: var(--ink); }
.svc-scope__points { display: grid; gap: 0.35rem; margin-top: 0.75rem; }
.svc-scope__points > span { position: relative; padding-left: 1.05rem; font-size: 0.9375rem; color: var(--slate); }
.svc-scope__points > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.svc-more__list { max-width: var(--max-w); margin-inline: auto; display: grid; }
.svc-more__list li { border-top: 1px solid var(--line); }
.svc-more__list li:last-child { border-bottom: 1px solid var(--line); }
.svc-more__list a {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.3rem 0;
  transition: padding-left var(--dur-ui) var(--ease);
}
.svc-more__list--wide a { grid-template-columns: 3.75rem minmax(0, 14rem) minmax(0, 1fr) auto; }
.svc-more__list a:hover { padding-left: 0.5rem; }
.svc-more__code { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.09em; color: var(--accent); }
.svc-more__title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; letter-spacing: var(--tr-h4); color: var(--ink); }
.svc-more__deck { font-size: 0.9375rem; color: var(--graphite); }
.svc-more__arrow { color: var(--accent); }

.concerns__grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 1.4vw, 1.5rem);
}
.concern {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 1.8vw, 2.25rem);
  transition: border-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.concern:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.concern__num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.09em; color: var(--accent); }
.concern__title { margin-top: 1.15rem; font-size: var(--fs-h4); letter-spacing: var(--tr-h4); line-height: 1.32; }
.concern__body { margin-top: 0.65rem; color: var(--graphite); font-size: 0.9375rem; line-height: 1.6; }

.pullquote {
  max-width: var(--max-w);
  margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) auto 0;
  padding-left: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  border-left: 2px solid var(--accent);
}
.pullquote p {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: var(--tr-h2);
  line-height: 1.2;
  max-width: 26ch;
  color: var(--ink);
}

/* ---- 19b. Before / after contrast --------------------------------------------- */
/*
   Laid out after `@/components/ui/compare-2` (kept for reference): two columns,
   the second one tinted from its heading to the foot of the list, each item a
   round mark beside a line of copy.

   Three departures, all forced by what this section actually says:

   1. **The rows stay paired.** The source is two independent lists — nothing on
      the left corresponds to anything on the right. Here every "before" maps to
      exactly one "after"; that mapping is the section's whole argument, so each
      pair shares a grid row and the two columns read across as well as down.
   2. **The left column is not ticked.** The source ticks both columns, because
      both are lists of things it is recommending. This left column is the state
      the reader is leaving — a tick beside "a scanner export with three hundred
      findings and no owner" would read as endorsing it. It gets a neutral rule
      instead, and only the right column is marked in accent.
   3. **The tint runs continuously.** The source paints its whole right-hand
      panel. Rows here are separate elements, so the tint is carried on each
      right cell with no row gap between them, which reads as one column.
*/

.compare { max-width: var(--max-w); margin-inline: auto; }

.compare__head,
.compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(0.75rem, 0.4rem + 1.2vw, 1.5rem);
}

.compare__head-cell {
  margin: 0;
  padding: clamp(1rem, 0.8rem + 0.8vw, 1.4rem) clamp(1rem, 0.7rem + 1vw, 1.75rem);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--tr-h4);
  line-height: var(--lh-h4);
  color: var(--ink);
}

/* The source centres its column headings; kept, because the two columns are
   being weighed against each other rather than read as a list. */
.compare__head-cell { text-align: center; }

.compare__head-cell--to {
  background: var(--mist);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: var(--accent);
}

.compare__list { margin: 0; padding: 0; list-style: none; display: grid; }

.compare__cell {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.7rem, 0.5rem + 0.6vw, 1rem);
  padding: clamp(1rem, 0.8rem + 0.9vw, 1.5rem) clamp(1rem, 0.7rem + 1vw, 1.75rem);
}

.compare__cell p { margin: 0; }

/* The "before" side is deliberately the quieter of the two: it is the state the
   reader is leaving, so it should not compete with the one they are heading to. */
.compare__cell--from {
  border-bottom: 1px solid var(--line);
}
.compare__cell--from p {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--slate);
}

.compare__cell--to {
  background: var(--mist);
  border-bottom: 1px solid var(--paper);
}
.compare__cell--to p {
  font-size: var(--fs-body-l);
  line-height: 1.5;
  letter-spacing: -0.008em;
  font-weight: 500;
  color: var(--ink);
}

.compare__row:last-child .compare__cell--to {
  border-bottom: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.compare__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  border-radius: 50%;
}
.compare__mark svg { width: 0.85rem; height: 0.85rem; }

.compare__mark--from { background: var(--fog); color: var(--line-strong); }
.compare__mark--to { background: var(--accent); color: var(--on-accent); }

@media (max-width: 720px) {
  /* Stacked, so the column headings no longer sit over their column. The two
     marks carry the distinction on their own from here. */
  .compare__head { display: none; }

  .compare__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 0.5rem;
  }

  .compare__cell--from { border-bottom: 0; padding-bottom: 0.5rem; }
  .compare__cell--to { border-radius: var(--radius-lg); }
  .compare__row:last-child .compare__cell--to { border-radius: var(--radius-lg); }
}

/* ---- 20. 404 ---------------------------------------------------------------------- */

.notfound { min-height: 74svh; display: grid; place-items: center; padding-block: 6.5rem 4rem; text-align: center; }
.notfound__inner { max-width: 38rem; }
.notfound__code { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.18em; color: var(--accent); }
.notfound__title { margin-top: 1.35rem; font-size: var(--fs-display-l); letter-spacing: var(--tr-display-l); line-height: var(--lh-display-l); }
.notfound__deck { margin-top: 1.1rem; color: var(--graphite); }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 2rem; }

/* ---- 21. Forms ------------------------------------------------------------------- */

.request { padding-block: clamp(6.5rem, 4.5rem + 5vw, 9.5rem) clamp(4rem, 2rem + 4vw, 6rem); }
.request__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 5vw, 5.5rem);
  align-items: start;
}
.request__title { margin-top: 1.35rem; font-size: var(--fs-display-xl); letter-spacing: var(--tr-display-xl); line-height: var(--lh-display-xl); }
.request__deck { margin-top: 1.35rem; max-width: 44ch; font-size: var(--fs-body-l); line-height: var(--lh-body-l); color: var(--graphite); }
.request__facts { margin-top: 2.25rem; display: grid; gap: 1.15rem; }
.request__facts dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--slate); }
.request__facts dd { margin-top: 0.3rem; font-size: 0.9375rem; color: var(--ink); }
.request__facts a { color: var(--accent); border-bottom: 1px solid var(--accent-line); transition: border-color var(--dur-ui) var(--ease); }
.request__facts a:hover { border-color: var(--accent); }

/* The form is a card lifted off the tinted ground, which is the arrangement the
   pasted contact layout uses: a rich surface behind, the thing you actually
   fill in floated on top of it in paper. */
.request__formwrap {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow:
    0 28px 64px -30px rgba(14, 20, 32, 0.22),
    0 6px 16px -8px rgba(14, 20, 32, 0.08);
}

/* The card's own head. It used to carry the email address and phone number;
   both were removed after being harvested for spam, so the form is the way in. */
.request__cardtitle {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: var(--tr-h3);
  line-height: var(--lh-h3);
  color: var(--ink);
}

.request__rule {
  margin: clamp(1.35rem, 1rem + 1vw, 1.85rem) 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.requestform__honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.requestform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }

.field { display: grid; gap: 0.45rem; }
.field__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate);
}
.field__req { color: var(--accent); margin-left: 0.2rem; }
.field__input {
  width: 100%;
  padding: 0.8rem 0.85rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  transition: border-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.field__input::placeholder { color: var(--slate); }
.field__input:hover { border-color: var(--slate); }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 74, 207, 0.16);
}
.field__input--area { resize: vertical; min-height: 8rem; line-height: 1.55; }

.fieldset { border: 0; padding: 0; margin-top: 1.6rem; }
.fieldset legend { padding: 0; margin-bottom: 0.8rem; }
.fieldset + .field { margin-top: 1.6rem; }

.choicegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; align-items: stretch; }
.choicegrid--tight { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease);
}
.choice:hover { border-color: var(--slate); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
  width: 14px; height: 14px;
  flex: 0 0 auto;
  margin-top: 0.2rem;
  border: 1px solid var(--slate);
  border-radius: 50%;
  background: var(--paper);
  transition: border-color var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.choice--check .choice__box { border-radius: 3px; }
.choice__label { font-size: 0.8125rem; line-height: 1.4; color: var(--ink); }
.choice input:checked ~ .choice__box {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--paper);
}
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.choice input:focus-visible ~ .choice__box { outline: 2px solid var(--accent); outline-offset: 2px; }

.requestform__foot { margin-top: 1.85rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.requestform__note { font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.5; color: var(--slate); max-width: 28ch; }

/* reCAPTCHA v2 checkbox. Google renders the widget at a fixed 304×78; the
   wrapper only spaces it and carries the "tick the box" hint. */
.requestform__captcha { margin-top: 1.85rem; display: inline-block; max-width: 100%; }
.requestform__captcha .g-recaptcha { border-radius: 3px; }
.requestform__captcha.is-missing .g-recaptcha { outline: 2px solid var(--sev-critical); outline-offset: 2px; }
.requestform__captchahint { margin: 0.6rem 0 0; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.5; color: var(--sev-critical); }
.requestform__captchahint[hidden] { display: none; }
@media (max-width: 400px) {
  /* Narrower than the widget: scale it rather than overflow the card. */
  .requestform__captcha .g-recaptcha { transform: scale(0.85); transform-origin: 0 0; }
}

.formnotice {
  margin-bottom: 1.35rem;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  border-left: 2px solid;
}
.formnotice--ok { background: var(--accent-tint); border-color: var(--accent); color: var(--ink); }
.formnotice--error { background: rgba(255, 107, 107, 0.10); border-color: var(--sev-critical); color: var(--ink); }

.searchform { display: flex; gap: 0.5rem; }
.searchform__input {
  flex: 1;
  padding: 0.75rem 0.85rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.searchform__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43, 74, 207, 0.16); }
.searchform__submit {
  padding: 0.75rem 1.05rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background-color var(--dur-ui) var(--ease);
}
.searchform__submit:hover { background: var(--accent); }

/* ---- 22. Reveal states ------------------------------------------------------------ */

/* Initial states only apply when JavaScript is running — without it, everything
   is simply visible. Distances are shorter than a high-drama layout: calm
   interfaces move a little, not a lot. */
.js [data-reveal] { opacity: 0; will-change: transform, opacity; }
.js [data-reveal="up"]    { transform: translateY(18px); }
.js [data-reveal="left"]  { transform: translateX(-20px); }
.js [data-reveal="right"] { transform: translateX(20px); }
.js [data-reveal="scale"] { transform: scale(0.98); }
.js [data-reveal="fade"]  { transform: none; }

.js [data-reveal].is-revealed { opacity: 1; transform: none; will-change: auto; }

.js [data-split] .split__inner { transform: translateY(105%); }
.js [data-split].is-revealed .split__inner { transform: translateY(0); }

/* ---- 23. Responsive ---------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__index { display: none; }
  .request__inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-row { grid-template-columns: 7rem minmax(0, 1fr); }
  .svc-row__aside { grid-column: 2; }
}

@media (max-width: 1024px) {
  .nav-primary, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .insights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 0; }
  .stat { border: 1px solid var(--line); border-radius: var(--radius-lg); }
  .stat:first-child { padding-left: clamp(1rem, 0.5rem + 1.5vw, 1.75rem); }
  .stats__inner { gap: 0.75rem; }
  .method__inner { grid-template-columns: minmax(0, 1fr); }
  .method__sticky { position: static; }
  .method__ticks { display: none; }
  .credentials__grid { grid-template-columns: minmax(0, 1fr); }
  .credentials__block--certs,
  .credentials__block--frameworks,
  .credentials__block--alliances { grid-column: 1; grid-row: auto; }
  .cta-band__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .section-head--split .section-head__deck { grid-column: 1; }
  .svc-more__list--wide a { grid-template-columns: 3.5rem minmax(0, 1fr) auto; }
  .svc-more__deck { display: none; }
  .page-hero::after { inset: 0 0 0 25%; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 4.5rem; }

  /* The badge is a single-line pill by definition. Below this width the full
     "category · proof" string cannot fit, so the proof half drops — the same
     figure is stated in the stats band a screen later. */
  .badge__rule, .badge__proof { display: none; }
  .seal { width: 5.5rem; height: 5.5rem; }
  .seal__disc { width: 2.8rem; height: 2.8rem; }
  .audience__split { grid-template-columns: minmax(0, 1fr); }
  .concerns__grid { grid-template-columns: minmax(0, 1fr); }
  .svc-scope__list { grid-template-columns: minmax(0, 1fr); }
  .page-hero__facts { grid-template-columns: minmax(0, 1fr); }
  .choicegrid, .choicegrid--tight { grid-template-columns: minmax(0, 1fr); }
  .requestform__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__plan { opacity: 0.5; right: -18vw; }

  /* Below this width the horizontal rail is replaced by the stacked list. */
  .services__rail { display: none; }
  .services__list { display: block; }
}

@media (max-width: 680px) {
  .insights__grid { grid-template-columns: minmax(0, 1fr); }
  .stats__inner { grid-template-columns: minmax(0, 1fr); }
  .cert-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .framework { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .framework__note { grid-column: 2; justify-self: start; }
  .svc-row { grid-template-columns: minmax(0, 1fr); }
  .svc-row__aside { grid-column: 1; }
  .postnav { grid-template-columns: minmax(0, 1fr); }
  .postnav__link--prev { text-align: left; }
  .method__step { grid-template-columns: minmax(0, 1fr); }
  .method__step-title, .method__step-body { grid-column: 1; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions .btn, .cta-band__actions .btn, .notfound__actions .btn { width: auto; }
}

/* Touch devices: lift-on-hover is a trap, so neutralise the transform. */
@media (hover: none) {
  .audience__panel:hover,
  .card--insight:hover { transform: none; box-shadow: var(--shadow-xs); }
}

/* ---- 24. Reduced motion -------------------------------------------------------------
   Reveals resolve immediately; scroll-linked effects are removed, not shortened. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal],
  .js [data-split] .split__inner {
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee__track { transform: none !important; }
  .services__rail { display: none; }
  .services__list { display: block; }
}

/* ---- 25. Print ------------------------------------------------------------------ */

@media print {
  .site-header, .drawer, .scroll-progress, .cta-band, .site-footer, .hero__field { display: none !important; }
  body, .on-base, .on-raised, .on-tint, .on-deep { background: #fff !important; color: #000 !important; }
  .js [data-reveal], .js [data-split] .split__inner { opacity: 1 !important; transform: none !important; }
}

