/* =========================================================
   ROCKMERE PARTNERS — Design tokens
   ========================================================= */
:root {
  /* Brand — sampled from the logo (top-light → bottom-deep) */
  --rm-blue-50:  #EEF3FF;
  --rm-blue-100: #DCE6FF;
  --rm-blue-200: #B9CDFF;
  --rm-blue-300: #8DAEFF;
  --rm-blue-400: #5E8BFF;
  --rm-blue-500: #3680FF;   /* top of logo R — lightest royal */
  --rm-blue-600: #1E5BFF;   /* mid */
  --rm-blue-700: #1545E0;   /* lower mid */
  --rm-blue-800: #0F35B5;   /* bottom of logo R — deep */
  --rm-blue-900: #092484;   /* triangle / shadow */

  /* The actual logo gradient — use this everywhere brand identity needs to show through */
  --logo-gradient: linear-gradient(180deg,
    #3680FF 0%,
    #1E5BFF 38%,
    #1545E0 65%,
    #0F35B5 100%);
  --logo-gradient-soft: linear-gradient(180deg,
    rgba(54,128,255,.95) 0%,
    rgba(30,91,255,.95) 45%,
    rgba(15,53,181,.95) 100%);
  --logo-glow: 0 0 0 1px rgba(30,91,255,.15),
               0 12px 28px -8px rgba(30,91,255,.45),
               0 4px 12px -4px rgba(15,53,181,.30);

  /* Neutrals */
  --white:       #FFFFFF;
  --black:       #000000;
  --neutral-50:  #FAFBFD;
  --neutral-100: #F4F6FB;
  --neutral-200: #E6EAF2;
  --neutral-300: #D2D8E4;
  --neutral-400: #9AA3B5;
  --neutral-500: #6C7488;
  --neutral-600: #4A5163;
  --neutral-700: #2F3545;
  --neutral-800: #1B1F2C;
  --neutral-900: #0B0E18;

  --body:        var(--neutral-100);
  --ink:         var(--neutral-900);
  --muted:       var(--neutral-500);
  --line:        var(--neutral-200);

  /* Type */
  --font-sans:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sizes */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,14,24,.05), 0 1px 3px rgba(11,14,24,.05);
  --shadow:    0 12px 32px -8px rgba(11,14,24,.12), 0 4px 12px -4px rgba(11,14,24,.08);
  --shadow-lg: 0 32px 64px -16px rgba(20, 69, 224, .22), 0 8px 24px -8px rgba(11,14,24,.10);

  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease:     cubic-bezier(.4,0,.2,1);

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Frame glow */
  --frame-glow: 0 0 0 1px rgba(30,91,255,.10), 0 0 60px rgba(30,91,255,.18) inset;

  /* ---- Design system (D-025) ---- */
  --section-y: clamp(56px, 7vw, 84px);   /* the one vertical section rhythm */
  --surface: var(--white);               /* default card surface */
  --surface-sunk: var(--neutral-50);     /* recessed / on-white card surface */
}

/* =========================================================
   DESIGN SYSTEM (D-025) — canonical section header + rhythm.
   One eyebrow (.badge with the spark) + one section title scale, shared by
   every section so headers read identically site-wide. Individual section
   classes are aliased here instead of each defining its own size/weight.
   ========================================================= */
.works__title, .about-us__title, .team__title, .industry-slider__title,
.testimonials__title, .outcomes__title, .logo-band__title, .cta__title,
.sec__title, .res-featured__title, .faq__title, .insights__title,
.services__title, .manifesto__title, .capabilities__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
/* Homepage consultant cards are now links to the bios: keep card styling, not
   default link styling, and add the same hover-lift used elsewhere. */
a.member-card { text-decoration: none; color: inherit; display: block; cursor: pointer; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
a.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
a.member-card h3 { color: var(--ink); }

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
/* Global horizontal-overflow guard. `clip` (not `hidden`) stops any stray
 * off-canvas element (hero orbs at right:-25%, wide tables, marquees) from
 * creating a horizontal scrollbar on mobile, WITHOUT establishing a scroll
 * container — so `position: sticky` (article rail, TOC scrollspy) keeps
 * working. Applied to both html and body so the viewport can't scroll-x. */
html, body { overflow-x: clip; max-width: 100%; }
/* Stop horizontal trackpad swipes from triggering the browser's back/forward
 * navigation gesture (macOS/Chrome two-finger swipe). The page has no intended
 * horizontal scroll, so there is nothing to lose by disabling overscroll-x. */
html { overscroll-behavior-x: none; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--rm-blue-600); }

ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

::selection { background: var(--rm-blue-600); color: #fff; }

body { cursor: auto; }
a, button, [data-cursor] { cursor: pointer; }

/* Page bezel glow (Aigocy-style frame) */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  box-shadow: inset 0 0 0 1px rgba(30,91,255,0), inset 0 0 80px rgba(30,91,255,.10);
  border-radius: 8px;
}

/* ---------- Film-grain overlay (site-wide, ultra-subtle) ---------- */
.grain {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: .045;
  mix-blend-mode: overlay;
  /* Tiny perpetual drift so the grain feels filmic, not static */
  animation: grainDrift 1.2s steps(6) infinite;
}
@keyframes grainDrift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-1%, 1%); }
  40%  { transform: translate(1%, -1%); }
  60%  { transform: translate(-1%, -1%); }
  80%  { transform: translate(1%, 1%); }
  100% { transform: translate(0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}

/* ---------- Animated mesh-gradient aurora (for hero + about) ---------- */
.aurora {
  position: absolute; inset: -10%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(38% 38% at 12% 12%, rgba(54,128,255,.28) 0%, transparent 65%),
    radial-gradient(34% 34% at 88% 18%, rgba(30,91,255,.22) 0%, transparent 65%),
    radial-gradient(42% 42% at 70% 90%, rgba(15,53,181,.16) 0%, transparent 70%),
    radial-gradient(30% 30% at 8% 90%, rgba(54,128,255,.14) 0%, transparent 70%);
  filter: blur(70px) saturate(105%);
  opacity: .55;
  animation: aurora 20s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate(0,0) scale(1)    rotate(0deg); }
  33%  { transform: translate(-2%, 2%) scale(1.06) rotate(2deg); }
  66%  { transform: translate(2%, -2%) scale(1.04) rotate(-2deg); }
  100% { transform: translate(-1%, 1%) scale(1.08) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
}

/* ---------- Glass-shine hover (cards) ---------- */
.benefit-card,
.process-step,
.framework-tile,
.member-card,
.insight-card,
.consultant-card,
.cred-card,
.pillar {
  position: relative;
  overflow: hidden;
}
.benefit-card::before,
.process-step::before,
.framework-tile::before,
.member-card::before,
.insight-card::before,
.consultant-card::before,
.cred-card::before,
.pillar::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(54,128,255,.10) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  pointer-events: none;
  transition: transform .9s var(--ease-out);
  z-index: 1;
}
.benefit-card:hover::before,
.process-step:hover::before,
.framework-tile:hover::before,
.member-card:hover::before,
.insight-card:hover::before,
.consultant-card:hover::before,
.cred-card:hover::before,
.pillar:hover::before {
  transform: translateX(100%);
}
/* Keep card content above the shine */
.benefit-card > *,
.process-step > *,
.framework-tile > *,
.member-card > *,
.insight-card > *,
.consultant-card > *,
.cred-card > *,
.pillar > * { position: relative; z-index: 2; }

/* ---------- Kinetic word reveal (set up via JS) ---------- */
.kinetic-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(8px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
  will-change: opacity, transform, filter;
}
.kinetic-word.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .kinetic-word { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Kinetic gradient sweep on accent text ---------- */
.hero__title-accent {
  background: linear-gradient(120deg,
    var(--rm-blue-500) 0%,
    var(--rm-blue-700) 30%,
    #4a8aff 45%,
    var(--rm-blue-700) 60%,
    var(--rm-blue-500) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientSweep 6s ease-in-out infinite;
}
@keyframes gradientSweep {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title-accent { animation: none; }
}

/* =========================================================
   UTILITIES
   ========================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Pill: BADGE (solid white, crisp shadow — Aigocy style) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  color: var(--rm-blue-700);
  letter-spacing: .01em;
  box-shadow:
    0 6px 16px -8px rgba(15,53,181,.20),
    0 1px 2px rgba(11,14,24,.05);
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .2s;
}
.badge:hover { transform: translateY(-1px); border-color: var(--rm-blue-200); box-shadow: 0 10px 22px -10px rgba(15,53,181,.30), 0 1px 2px rgba(11,14,24,.05); }
.badge--inverse {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--rm-blue-300);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 4px 12px rgba(0,0,0,.20);
}
.badge__spark {
  background: var(--logo-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 14px; line-height: 1;
  display: inline-block; transform: translateY(-1px);
}

/* ---------- Pill: BUTTON ---------- */
.btn {
  --btn-y: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; letter-spacing: .005em;
  border: 1px solid transparent;
  transition:
    transform .3s var(--ease-out),
    background .25s,
    color .25s,
    box-shadow .3s var(--ease-out),
    border-color .2s,
    filter .25s;
  white-space: nowrap;
  position: relative; isolation: isolate;
  transform: translateY(var(--btn-y));
}
.btn:hover  { --btn-y: -2px; }
.btn:active { --btn-y: 0px; transition-duration: .1s; }

.btn--primary {
  background: var(--logo-gradient);
  color: var(--white);
  border-color: rgba(255,255,255,.22);
  box-shadow:
    0 12px 28px -10px rgba(15,53,181,.55),
    0 4px 10px -4px rgba(15,53,181,.35),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(9,36,132,.30);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none; z-index: -1;
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 80% at 50% -20%, rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .25s; pointer-events: none; z-index: -1;
}
.btn--primary:hover  { color: var(--white); filter: brightness(1.06); box-shadow: 0 18px 36px -10px rgba(15,53,181,.62), 0 6px 14px -4px rgba(15,53,181,.42), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(9,36,132,.30); }
.btn--primary:hover::before { opacity: 1; }

.btn--ghost {
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  color: var(--ink);
  border-color: var(--neutral-300);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 1px 2px rgba(11,14,24,.04);
}
.btn--ghost:hover {
  background: var(--white); color: var(--ink);
  border-color: var(--rm-blue-300);
  box-shadow:
    0 8px 20px -10px rgba(30,91,255,.30),
    0 1px 0 rgba(255,255,255,.9) inset;
}

.btn--dark {
  background: linear-gradient(180deg, #2A3045 0%, var(--neutral-900) 100%);
  color: var(--white);
  border-color: rgba(255,255,255,.06);
  box-shadow:
    0 12px 28px -10px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.10);
}
.btn--dark:hover { color: var(--white); filter: brightness(1.15); }

.btn--light {
  background: var(--white); color: var(--neutral-900);
  border-color: rgba(255,255,255,.6);
  box-shadow:
    0 12px 28px -10px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.04);
}
.btn--light:hover { background: #fff; color: var(--neutral-900); box-shadow: 0 16px 32px -10px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,1); }

.btn--lg { padding: 18px 34px; font-size: 17px; }

.text-fade { color: var(--neutral-400); }

sup { font-size: .55em; vertical-align: super; }

/* =========================================================
   NAV
   ========================================================= */
.site-header {
  position: fixed; top: 18px; left: 0; right: 0;
  z-index: 100; display: flex; justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}
.nav-pill {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
  padding: 8px 8px 8px 22px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-pill);
  box-shadow:
    0 18px 40px -18px rgba(15,53,181,.20),
    0 6px 16px -6px rgba(11,14,24,.08);
  pointer-events: auto;
  max-width: calc(100% - 32px);
  transition: box-shadow .35s var(--ease-out);
}
.nav-pill { position: relative; }
.nav-pill.is-scrolled {
  background: var(--white);
  box-shadow:
    0 24px 60px -20px rgba(15,53,181,.30),
    0 10px 24px -10px rgba(11,14,24,.14);
}
.nav-pill__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; letter-spacing: -.01em;
}
.nav-pill__logo-img {
  height: 32px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .nav-pill__logo-img { height: 26px; }
}
.nav-pill__logo:hover { color: var(--ink); }
.nav-pill__name { display: inline-flex; align-items: center; gap: 6px; }
.nav-pill__spark { color: var(--rm-blue-600); font-size: 12px; transform: translateY(-2px); }
.nav-pill__menu { display: flex; gap: 4px; }
.nav-pill__menu a {
  display: block; padding: 10px 16px;
  font-size: 15px; font-weight: 500;
  color: var(--neutral-700);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color .2s, background .2s var(--ease-out);
}
.nav-pill__menu a.is-active {
  color: var(--rm-blue-700);
  background: linear-gradient(180deg, rgba(54,128,255,.10), rgba(30,91,255,.06));
}
.nav-pill__menu a.is-active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px;
  height: 2px; border-radius: 2px;
  background: var(--logo-gradient);
}
.nav-pill__menu a:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.nav-pill__menu a.is-active:hover { color: var(--rm-blue-700); }
.nav-pill__cta { padding: 10px 22px; font-size: 14px; }

/* Theme cog — kept in markup for back-compat with already-deployed pages, but
 * hidden globally because it has no behavior (no panel, no toggle). QA report
 * 2026-05-26 flagged it as a P1 dead control. Removing the rules entirely is
 * not safe because the button is still rendered by `THEME_COG_HTML` in the
 * generator and on every hand-edited root page; we'd rather keep one display
 * declaration than touch index.html. */
.theme-cog { display: none !important; }

/* Back to top */
.to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--neutral-900); color: var(--white);
  border: none; font-size: 18px;
  display: grid; place-items: center;
  z-index: 50; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  transform: translateY(8px);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--rm-blue-700); }

/* =========================================================
   HERO  (floating cards, gradient blob)
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  padding: 140px var(--gutter) 80px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  /* Dark base so the white hero headline + CTAs stay legible even when the
   * background video fails to decode/autoplay (the video is an enhancement on
   * top of this, not the only dark layer). */
  background: radial-gradient(120% 80% at 50% -12%, #14264d 0%, transparent 58%), radial-gradient(90% 70% at 50% 110%, #0a1330 0%, transparent 60%), #070d1e;
}

/* ---------- Hero looping background video ----------
 * Full-bleed muted/looping clip behind the hero. Sits below the existing
 * aurora / blob / floats / inner stack (z-index 0). Reduced opacity so the
 * brand gradient + title carry the foreground. A radial-gradient mask fades
 * the video out at the edges and bottom so the title sits on calm pixels
 * regardless of which frame is on screen. Poster image loads instantly;
 * the video fills in once metadata is fetched. Respects prefers-reduced-
 * motion (no autoplay, poster stays). */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.72;
  pointer-events: none;
  /* Hold the video near full strength across most of the frame, only feathering
   * gently at the far edges. The dark scrim behind the headline (.hero__inner::before)
   * is what protects text legibility now, so the video can stay bright. */
  -webkit-mask-image: radial-gradient(135% 95% at 50% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.96) 60%,
    rgba(0, 0, 0, 0.6) 84%,
    rgba(0, 0, 0, 0.12) 100%);
          mask-image: radial-gradient(135% 95% at 50% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.96) 60%,
    rgba(0, 0, 0, 0.6) 84%,
    rgba(0, 0, 0, 0.12) 100%);
  /* Faint blue-tint multiply so the clip picks up the brand colour without
   * needing to re-encode it. */
  filter: saturate(0.9) contrast(0.95);
  transition: opacity 0.5s ease-out;
}
/* All sibling hero decor sits above the video. Z-index only — we MUST NOT
 * touch `position` here because `.hero__blob` (absolute, off-screen right)
 * and `.hero__floats` (absolute, full-bleed) rely on their own positioning.
 * `z-index` requires a non-static position; both already have one. The
 * `.hero__inner` lives inside the flex container and is the one element
 * here that needs explicit `position: relative` because it's the only
 * static-positioned child. */
.hero__blob,
.hero__floats,
.aurora {
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
}
/* Honour the user's motion preference — pause the video, keep the poster. */
@media (prefers-reduced-motion: reduce) {
  .hero__video {
    /* Browsers don't reliably pause when CSS-hidden; setting it to display
     * none drops both the video and the autoplay request. The poster image
     * still loads as the section background via `background-image`. */
    display: none;
  }
  .hero {
    background:
      linear-gradient(rgba(7, 13, 30, 0.62), rgba(7, 13, 30, 0.74)),
      url(../img/hero-flow.webp?v=4) center/cover no-repeat,
      #070d1e;
  }
}
/* Mobile — drop the video, save the 3.5 MB. Use the poster as a still bg under
 * a dark scrim so the white headline keeps contrast. */
@media (max-width: 720px) {
  .hero__video { display: none; }
  .hero {
    background:
      linear-gradient(rgba(7, 13, 30, 0.58), rgba(7, 13, 30, 0.72)),
      radial-gradient(120% 80% at 50% -10%, rgba(20, 38, 77, 0.7) 0%, transparent 60%),
      url(../img/hero-flow.webp?v=4) center/cover no-repeat,
      #070d1e;
  }
}
.hero__blob {
  position: absolute; right: -25%; top: -5%;
  width: 65vw; height: 65vw; max-width: 820px; max-height: 820px;
  background:
    radial-gradient(36% 46% at 32% 30%, rgba(255,255,255,.65) 0%, transparent 60%),
    radial-gradient(42% 52% at 48% 38%, var(--rm-blue-500) 0%, transparent 65%),
    radial-gradient(58% 64% at 55% 55%, var(--rm-blue-600) 0%, transparent 70%),
    radial-gradient(72% 78% at 50% 72%, var(--rm-blue-800) 0%, transparent 75%),
    radial-gradient(90% 90% at 50% 90%, var(--rm-blue-900) 0%, transparent 80%);
  border-radius: 50%;
  filter: blur(50px) saturate(110%);
  opacity: .45;
  z-index: 0;
  animation: blobPulse 14s ease-in-out infinite alternate;
}
.hero__blob::after {
  content: ""; position: absolute; inset: 22% 18% 8% 22%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(9, 36, 132, .35) 0%, transparent 70%);
  filter: blur(30px);
  border-radius: 50%;
}
@keyframes blobPulse {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(-1.5%, 1%) scale(1.04) rotate(2deg); }
  100% { transform: translate(-2%, 2%) scale(1.06) rotate(-1deg); }
}
.hero__inner { position: relative; z-index: 2; max-width: 1120px; }
/* Localised dark scrim behind the headline only. Sits above the (now brighter)
 * video but behind the text, so the video can run hot across the rest of the
 * frame while the title keeps full contrast. Soft-blurred radial so its edges
 * melt into the video with no hard seam. */
.hero__inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%; top: 50%;
  width: 150%; height: 165%;
  transform: translate(-50%, -50%);
  background: radial-gradient(58% 56% at 50% 48%,
    rgba(6, 12, 30, 0.72) 0%,
    rgba(6, 12, 30, 0.55) 42%,
    rgba(6, 12, 30, 0.26) 68%,
    rgba(6, 12, 30, 0) 84%);
  filter: blur(26px);
  pointer-events: none;
}
.hero__title {
  font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(30px, 6vw, 90px); /* home hero -10px (client request 2026-06-01) */
  margin-top: 28px;
}
/* Light headline for contrast against the dark scrim + bright video. Scoped to
 * the home hero so the resources hero (which reuses .hero__title-accent) is
 * untouched. */
/* White headline on the dark scrim. The home-hero reveal is switched from
 * blur-up to a clean fade + slide (filter:none, no blur in the transition) so it
 * can coexist with the per-word gradient shimmer (background-clip:text and an
 * animating blur filter can't co-render). drop-shadow on the PARENT keeps
 * legibility without putting a filter on the clipped word elements. Scoped to
 * the home hero, so other pages keep their blur reveal. */
.hero .hero__title {
  color: #fff;
  -webkit-text-fill-color: #fff;
  filter: drop-shadow(0 2px 20px rgba(2, 8, 24, 0.5));
}
.hero .hero__title .kinetic-word {
  /* Reveal: fade + slide only (no blur). Initial + revealed states are declared
   * explicitly here (and in the .is-in override below) so the per-word gradient
   * can coexist without the cascade dropping the reveal. */
  opacity: 0;
  transform: translateY(0.4em);
  filter: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  /* Subtle white -> faint-blue -> white sheen drifting across each word. */
  background-image: linear-gradient(100deg,
    #ffffff 0%, #ffffff 40%,
    #bcd2ff 50%,
    #ffffff 60%, #ffffff 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroTitleSheen 9s ease-in-out infinite;
}
.hero .hero__title .kinetic-word.is-in {
  opacity: 1;
  transform: translateY(0);
}
/* Accent word keeps the brighter blue gradient + its own sweep (after the word
 * rule so it wins on equal specificity). */
.hero .hero__title .hero__title-accent {
  background-image: linear-gradient(120deg,
    #bcd4ff 0%, #5b8cff 42%, #a9c6ff 68%, #5b8cff 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: gradientSweep 6s ease-in-out infinite;
}
@keyframes heroTitleSheen {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero__title .kinetic-word,
  .hero .hero__title .hero__title-accent { animation: none; }
}
.hero__title-accent {
  background: linear-gradient(120deg, #1545E0 0%, #092484 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.hero__floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
/* AIGOCY-STYLE FLOAT CARDS — rounded square, icon-first, strong colored shadow */
.float-card {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid rgba(15,53,181,.06);
  box-shadow:
    0 28px 48px -12px rgba(15,53,181,.32),
    0 12px 20px -8px rgba(15,53,181,.18),
    0 2px 4px rgba(11,14,24,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--neutral-900);
  will-change: transform;
  overflow: hidden;
}
.float-card__icon {
  width: 28px;
  height: 28px;
  color: var(--rm-blue-700);
}
.float-card__label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -.005em;
  white-space: nowrap;
}
.float-card--blue {
  background: var(--logo-gradient);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.30);
  box-shadow:
    0 28px 56px -10px rgba(15,53,181,.62),
    0 12px 24px -8px rgba(15,53,181,.42),
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(9,36,132,.30);
}
.float-card--blue::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.24) 0%, transparent 50%);
  pointer-events: none;
}
.float-card--blue .float-card__icon { color: var(--white); }
.float-card--blue .float-card__label { color: var(--white); }
/* placement — anchored just outside the centered hero text. On wide screens
 * the calc() wins so the pills hug the headline at a constant gap; on smaller
 * laptops the 2% fallback keeps them near the viewport edge (max picks the
 * larger inset). Tuned to the reduced hero title width. */
.float-card:nth-child(1) { top: 13%;  right: max(2%, calc(50% - 614px));  transform: rotate(8deg); }   /* AI primary */
.float-card:nth-child(2) { top: 40%;  right: max(2%, calc(50% - 597px));  transform: rotate(-6deg); }  /* SAFe */
.float-card:nth-child(3) { top: 65%;  right: max(2%, calc(50% - 629px));  transform: rotate(4deg); }   /* Agile */
.float-card:nth-child(4) { top: 17%;  left:  max(2%, calc(50% - 629px));  transform: rotate(-9deg); }  /* Lean */
.float-card:nth-child(5) { top: 60%;  left:  max(2%, calc(50% - 607px));  transform: rotate(6deg); }   /* Talent */

.hero__sub {
  max-width: 580px; margin: 32px auto 0;
  font-size: 17px; color: var(--neutral-600);
}
.hero__cta {
  margin-top: 32px;
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--neutral-200);
  box-shadow:
    0 12px 28px -12px rgba(15,53,181,.18),
    0 2px 4px rgba(11,14,24,.04);
  font-size: 13px; color: var(--muted); font-weight: 500;
  z-index: 2;
}
.hero__scroll-arrow {
  background: var(--logo-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bounceY 2s infinite;
}
@keyframes bounceY {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(6px); opacity: .5; }
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust { padding: 80px 0 56px; background: var(--body); }
.trust__inner { display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; align-items: center; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.trust__label { font-size: 14px; color: var(--muted); line-height: 1.4; }
.trust__marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.trust__track { display: flex; gap: 56px; width: max-content; will-change: transform; }
.trust__track span {
  font-size: 22px; font-weight: 700; color: var(--neutral-400);
  white-space: nowrap; letter-spacing: -.01em;
  transition: color .2s;
}
.trust__track span:hover { color: var(--ink); }
/* Fallback animation in case GSAP doesn't initialize (e.g. JS disabled) */
@keyframes marqueeFallback {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.no-js .trust__track { animation: marqueeFallback 30s linear infinite; }

/* =========================================================
   INTRO
   ========================================================= */
.intro {
  padding: 96px 0;
  background: var(--body);
}
.intro__inner { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.intro__title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800; line-height: 1; letter-spacing: -.03em;
  margin-bottom: 56px;
}
.intro__cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.status-card {
  position: relative;
  background: var(--neutral-900); color: var(--white);
  border-radius: var(--radius-lg); padding: 40px;
  min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 18px;
  overflow: hidden;
}
.status-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 60px);
  pointer-events: none;
}
.status-card > * { position: relative; z-index: 1; }
.status-card .status-dot {
  display: inline-block; width: 8px; height: 8px;
  background: #38f87b; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(56,248,123,.18);
}
.status-card > p:first-of-type {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  font-size: 13px; font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.status-card__location {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em;
}
.status-card__location::after {
  content: "Based in Dallas, Texas"; display: none;
}
.trust-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow);
}
.trust-card__copy { font-size: 19px; color: var(--neutral-700); line-height: 1.5; max-width: 480px; }
.trust-card__copy strong { color: var(--rm-blue-600); font-weight: 800; }
.trust-card__rating {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 24px;
}
.trust-card__stars { color: var(--rm-blue-600); font-size: 22px; letter-spacing: 3px; }
.trust-card__big {
  font-size: clamp(80px, 12vw, 160px); font-weight: 800; letter-spacing: -.04em;
  line-height: .9; color: var(--neutral-200);
}
.trust-card__big small { font-size: .55em; color: var(--neutral-300); }
.trust-card__caption { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }

/* =========================================================
   SERVICES (PINNED)
   ========================================================= */
.services {
  background: var(--body);
  padding: 72px 0 84px;
  border-radius: 40px;
}
.services__grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px;
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  align-items: start;
}
.services__left {
  position: sticky; top: 120px;
  align-self: start;
}
.services__title {
  margin-top: 20px;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 800; letter-spacing: -.03em; line-height: .95;
}
.services__lede {
  margin-top: 20px; max-width: 440px;
  color: var(--neutral-600); font-size: 16px;
}
.services__image {
  margin-top: 40px;
  aspect-ratio: 1/1; max-width: 380px;
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; background: var(--neutral-100);
  box-shadow: var(--shadow);
}
.services__image-frame {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 35%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(70% 70% at 50% 45%, var(--rm-blue-400), transparent 70%),
    var(--logo-gradient);
}
.services__image-frame::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.45), transparent 60%);
  mix-blend-mode: overlay;
}

/* ===== Services "Six services, one team" animated diagram ===== */
.services__image--diagram {
  background: radial-gradient(95% 95% at 50% 36%, #2f6bff 0%, #0d3fc0 54%, #082a86 100%);
  display: grid; place-items: center;
}
.svc-diagram { width: 100%; height: 100%; display: block; }
.svc-node circle {
  fill: rgba(255,255,255,.10);
  stroke: rgba(255,255,255,.5);
  stroke-width: 1.4;
  animation: svcNodePulse 3.4s ease-in-out infinite;
}
.svc-node:nth-child(2) circle { animation-delay: .5s; }
.svc-node:nth-child(3) circle { animation-delay: 1s; }
.svc-node:nth-child(4) circle { animation-delay: 1.5s; }
.svc-node:nth-child(5) circle { animation-delay: 2s; }
.svc-node:nth-child(6) circle { animation-delay: 2.5s; }
.svc-node text {
  fill: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  text-anchor: middle; dominant-baseline: central;
}
.svc-hub { fill: #fff; filter: drop-shadow(0 8px 20px rgba(0,0,0,.28)); }
.svc-hub-glow { animation: svcHubGlow 3.4s ease-in-out infinite; }
.svc-hub-spark { fill: var(--rm-blue-700); font-size: 17px; text-anchor: middle; dominant-baseline: central; }
.svc-hub-label {
  fill: var(--rm-blue-900); font-family: var(--font-heading); font-weight: 800;
  font-size: 10px; letter-spacing: .1em; text-anchor: middle; dominant-baseline: central;
}
@keyframes svcNodePulse { 0%, 100% { stroke-opacity: .4; } 50% { stroke-opacity: .95; } }
@keyframes svcHubGlow { 0%, 100% { opacity: .45; } 50% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) {
  .svc-node circle, .svc-hub-glow { animation: none; }
  .svc-pulses { display: none; }
}

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: 14px; }
.accordion__item {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.accordion__head {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 32px;
  font-family: inherit;
  text-align: left;
  color: inherit;
}
.accordion__title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700; letter-spacing: -.015em;
}
.accordion__num {
  font-size: 14px; font-weight: 600; color: var(--muted);
  letter-spacing: .02em;
}
.accordion__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease), opacity .25s var(--ease);
  opacity: 0;
}
.accordion__body > .accordion__body-inner {
  min-height: 0; overflow: hidden;
}
.accordion__body p {
  padding: 0 32px 12px;
  color: var(--neutral-300);
  font-size: 16px; line-height: 1.6;
  max-width: 540px;
}
.accordion__tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 16px 32px 32px;
}
.accordion__tags span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  font-size: 14px; font-weight: 500;
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 4px 12px rgba(0,0,0,.15);
  transition: transform .25s var(--ease-out), background .25s, border-color .2s;
}
.accordion__tags span:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(54,128,255,.20), rgba(30,91,255,.10));
  border-color: rgba(54,128,255,.35);
}
.accordion__item.is-open {
  background:
    linear-gradient(180deg, rgba(15,53,181,.18), transparent 30%),
    var(--neutral-900);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(54,128,255,.18);
}
.accordion__item.is-open .accordion__num { color: var(--neutral-400); }
.accordion__item.is-open .accordion__body { grid-template-rows: 1fr; opacity: 1; }

/* =========================================================
   ABOUT US — "Human-centered transformation, built for production"
   ========================================================= */
.about-us {
  padding: 84px 0 56px;
  background: var(--body);
  position: relative;
  overflow: hidden;
}
.about-us::before {
  content: ""; position: absolute;
  top: -20%; left: -10%;
  width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  background:
    radial-gradient(50% 50% at 50% 50%, var(--rm-blue-300), transparent 60%),
    radial-gradient(70% 70% at 50% 50%, var(--rm-blue-600), transparent 70%);
  filter: blur(60px);
  opacity: .18;
  border-radius: 50%;
  pointer-events: none;
}
.about-us__inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.about-us__head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 64px;
}
.about-us__title {
  margin-top: 20px;
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
}
.about-us__lede {
  margin-top: 24px;
  color: var(--neutral-600); font-size: 18px; line-height: 1.55;
  max-width: 680px; margin-inline: auto;
}
.about-us__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 1024px) { .about-us__cards { grid-template-columns: 1fr; } }

/* =========================================================
   MANIFESTO — DEPRECATED (kept for backwards-compatible CSS)
   ========================================================= */
.manifesto {
  padding: 84px 0;
  background: var(--body);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: ""; position: absolute;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background:
    radial-gradient(50% 50% at 50% 50%, var(--rm-blue-300) 0%, transparent 60%),
    radial-gradient(70% 70% at 50% 50%, var(--rm-blue-600) 0%, transparent 70%);
  filter: blur(60px);
  opacity: .22;
  border-radius: 50%;
  pointer-events: none;
}
.manifesto__inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.manifesto__head { text-align: center; max-width: 920px; margin: 0 auto 64px; }
.manifesto__title {
  margin-top: 20px;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1;
}
.manifesto__body {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start;
}
.manifesto__lede {
  font-size: 19px; line-height: 1.6; color: var(--neutral-700);
  font-weight: 400;
}
.manifesto__pillars {
  display: flex; flex-direction: column; gap: 24px;
}
.pillar {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px -10px rgba(15,53,181,.12), 0 1px 2px rgba(11,14,24,.04);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .25s;
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(15,53,181,.25), 0 2px 6px rgba(11,14,24,.06);
  border-color: var(--rm-blue-200);
}
.pillar__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--logo-gradient);
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 12px 24px -8px rgba(15,53,181,.45), inset 0 1px 0 rgba(255,255,255,.28);
  flex-shrink: 0;
}
.pillar__body {
  flex: 1;
  min-width: 0;
}
.pillar h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 6px;
  text-align: left;
}
.pillar p {
  color: var(--neutral-600); font-size: 15px; line-height: 1.55;
  text-align: left;
}

@media (max-width: 1024px) {
  .manifesto__body { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   CREDENTIALS & AFFILIATIONS
   ========================================================= */
.credentials {
  padding: 84px 0 56px;
  background: var(--body);
}
.credentials__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.credentials__head {
  text-align: center; max-width: 760px; margin: 0 auto 56px;
}
.credentials__title {
  margin-top: 18px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.05;
}
.credentials__lede {
  margin-top: 18px; color: var(--neutral-600); font-size: 17px;
}
.credentials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cred-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .25s;
}
.cred-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--rm-blue-200);
}
.cred-card__name {
  font-weight: 800; font-size: 20px; letter-spacing: -.015em;
  background: var(--logo-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cred-card__role {
  font-size: 12px; font-weight: 700;
  color: var(--neutral-500);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 12px;
}
.cred-card p {
  color: var(--neutral-600); font-size: 14px; line-height: 1.55;
}

@media (max-width: 1024px) {
  .credentials__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .credentials__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   OUTCOMES BAND
   ========================================================= */
.outcomes {
  background: var(--neutral-900);
  color: var(--white);
  padding: 84px 0;
  position: relative;
  overflow: hidden;
  margin: 40px 0;
  border-radius: 40px;
}
.outcomes::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 40% at 80% 0%, rgba(30,91,255,.25), transparent 60%),
    radial-gradient(40% 40% at 0% 100%, rgba(30,91,255,.15), transparent 60%);
  pointer-events: none;
}
.outcomes__inner {
  position: relative; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter); text-align: center;
}
.outcomes__title {
  margin: 20px auto 56px; max-width: 880px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  /* Dark section (--neutral-900 bg). Must override the grouped section-title
     rule that sets color:var(--ink), or the heading is near-black on near-black. */
  color: var(--white);
}
.outcomes__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: left;
}
.metric {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  transition: background .25s, transform .25s, border-color .25s;
}
.metric:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); border-color: rgba(255,255,255,.18); }
.metric__value {
  display: block;
  font-size: clamp(48px, 5.5vw, 80px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, var(--rm-blue-300) 50%, var(--rm-blue-500) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric__label {
  display: block; margin-top: 12px;
  color: var(--neutral-400); font-size: 14px; line-height: 1.4;
}

/* =========================================================
   WORKS / FEATURED INSIGHT
   ========================================================= */
.works {
  padding: 84px 0 72px;
  background: var(--body);
}
.works__head {
  text-align: center; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter); margin-bottom: 56px;
}

/* ============================================================
 * Case-study carousel (home) — auto-scrolling, arrow-controlled.
 * Five photo-backed cards across five industries. Autoplay stops
 * permanently once the visitor clicks an arrow (handled in main.js).
 * ============================================================ */
.cs-carousel {
  position: relative;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.cs-track {
  list-style: none;
  margin: 0;
  padding: 8px 4px 16px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.cs-track::-webkit-scrollbar { display: none; }
.cs-track > li { margin: 0; flex: 0 0 clamp(280px, 44%, 540px); scroll-snap-align: center; }
.cs-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 16 / 11;
  border-radius: 22px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 24px 48px -22px rgba(8,22,64,.5), 0 8px 18px -10px rgba(8,22,64,.28);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  will-change: transform;
}
.cs-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 60px -22px rgba(8,22,64,.58), 0 12px 24px -10px rgba(8,22,64,.34);
}
.cs-slide__chip {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--rm-blue-600, #2563eb);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}
.cs-slide__body { padding: 26px 26px 28px; }
.cs-slide__metric {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.cs-slide__title {
  margin: 12px 0 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.5);
}
.cs-slide__desc {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}
.cs-slide__cta {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  display: inline-flex;
  gap: 6px;
}
.cs-slide:hover .cs-slide__cta { text-decoration: underline; text-underline-offset: 3px; }

/* Arrows */
.cs-arrow {
  position: absolute;
  top: calc(50% - 14px);
  transform: translateY(-50%);
  z-index: 5;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--neutral-200);
  background: var(--white);
  color: var(--ink, #0b0e18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(8,22,64,.4), 0 4px 10px -4px rgba(8,22,64,.2);
  transition: transform .2s var(--ease-out), background .2s, color .2s, opacity .2s;
}
.cs-arrow:hover { background: var(--rm-blue-600, #2563eb); color: #fff; transform: translateY(-50%) scale(1.06); }
.cs-arrow--prev { left: -6px; }
.cs-arrow--next { right: -6px; }
.cs-arrow:focus-visible { outline: 3px solid var(--rm-blue-400, #6aa0ff); outline-offset: 2px; }

/* Progress dots */
.cs-dots {
  display: flex; justify-content: center; gap: 2px;
  margin-top: 14px;
}
/* The visible dot is the 9px ::before; the button itself is a 28x44 transparent
 * hit area so the control clears mobile touch-target guidance. */
.cs-dots button {
  width: 28px; height: 44px; padding: 0;
  border: none; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.cs-dots button::before {
  content: ""; width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--neutral-300, #cbd2dd);
  transition: background .25s, width .25s, border-radius .25s;
}
.cs-dots button[aria-current="true"]::before {
  background: var(--rm-blue-600, #2563eb);
  width: 26px; border-radius: 999px;
}

@media (max-width: 768px) {
  .cs-track > li { flex-basis: clamp(260px, 82%, 360px); }
  .cs-arrow { width: 44px; height: 44px; }
  .cs-arrow--prev { left: 2px; }
  .cs-arrow--next { right: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-track { scroll-behavior: auto; }
}
.works__title {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
}
.works__media {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.works__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--neutral-200), var(--neutral-100));
  transform-origin: center center;
  will-change: transform;
}
.works__frame { position: relative; }
.works__video,
.works__image,
.works__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-image:
    radial-gradient(50% 60% at 28% 40%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(60% 70% at 30% 50%, var(--rm-blue-300), transparent 60%),
    radial-gradient(45% 55% at 72% 64%, var(--rm-blue-500), transparent 65%),
    linear-gradient(180deg, #3680FF 0%, #1E5BFF 38%, #1545E0 68%, #0F35B5 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  object-fit: cover;
  display: block;
}
/* Video sits BEHIND the still image; the image is reduced-opacity so the video
   subtly shows through. Blue overlay tints the composite. */
.works__video { z-index: 1; }
.works__img   { z-index: 2; opacity: .68; mix-blend-mode: luminosity; }
.works__overlay {
  z-index: 3;
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(15,53,181,.20) 100%),
    radial-gradient(70% 50% at 50% 50%, transparent 30%, rgba(15,53,181,.18) 100%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .works__video { display: none; }
}

/* ---------- Aurora soft variant (for inner sections) ---------- */
.aurora--soft {
  filter: blur(80px) saturate(110%);
  opacity: .45;
}
.works__meta {
  max-width: var(--container); margin: 40px auto 0;
  padding-inline: var(--gutter);
}
.works__case {
  font-size: clamp(28px, 3vw, 44px); font-weight: 800;
  letter-spacing: -.02em;
}
.works__meta-grid {
  display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 32px;
  margin-top: 32px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.works__meta-label {
  display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 8px;
}

/* =========================================================
   CONSULTANTS TEASER
   ========================================================= */
.consultants {
  padding: 84px 0;
  background: var(--body);
}
.consultants__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start;
}
.consultants__inner--full {
  grid-template-columns: 1fr;
  gap: 56px;
}
.consultants__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .consultants__grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .consultants__grid--3 { grid-template-columns: 1fr; }
}
.consultants__head { position: sticky; top: 120px; }
/* In the single-column (--full) variant the head and card grid stack vertically,
   so a sticky head just gets scrolled over by the cards. Keep it in normal flow. */
.consultants__inner--full .consultants__head { position: static; }
.consultants__title {
  margin: 18px 0 18px;
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
}
.consultants__lede {
  color: var(--neutral-600); font-size: 17px; margin-bottom: 24px;
  max-width: 380px;
}
.consultants__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.consultant-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .25s;
  display: flex; flex-direction: column; gap: 16px;
}
.consultant-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--rm-blue-200);
}
.consultant-card__avatar {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--logo-gradient);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; letter-spacing: .05em;
  box-shadow: var(--logo-glow);
}
.consultant-card__avatar--alt {
  background: linear-gradient(180deg, var(--neutral-800), var(--neutral-900));
  box-shadow: 0 10px 24px -8px rgba(11,14,24,.30);
}
.consultant-card h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
}
.consultant-card p {
  color: var(--neutral-600); font-size: 14px; line-height: 1.55;
}
/* When the consultant card is rendered as an `<a>` it routes to that
 * practitioner's bio page. Strip default link styling and add a CTA
 * chevron at the bottom so the affordance reads. */
a.consultant-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
/* Photo variant — when the avatar tile contains an <img> (real headshot)
 * instead of an initials span, drop the gradient background so the photo
 * carries the visual weight. */
.consultant-card__avatar--photo {
  background: var(--neutral-100) !important;
  box-shadow: 0 8px 22px -10px rgba(8, 22, 64, 0.28) !important;
  overflow: hidden;
}
.consultant-card__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* New `.consultant-card__role` chip — sits between the H3 and the body
 * paragraph. Monospace blue label so the practitioner's headline reads
 * as a credential, not body copy. */
.consultant-card__role {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rm-blue-700);
  margin: -8px 0 2px;
  font-weight: 600;
}
/* Coaching specialty under the tier (muted, sentence case). */
.consultant-card__spec {
  margin: 0 0 6px;
  color: var(--neutral-500);
  font-size: 13.5px;
  line-height: 1.4;
}
.consultant-card__more {
  margin-top: auto;
  padding-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-blue-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
a.consultant-card:hover .consultant-card__more { gap: 10px; }

/* =========================================================
   INSIGHTS TEASER
   ========================================================= */
.insights {
  padding: 84px 0;
  background: var(--neutral-100);
}
.insights__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.insights__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px;
  margin-bottom: 48px;
}
.insights__head-left {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.insights__title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.05;
}
.insights__cta {
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .insights__head { flex-direction: column; align-items: flex-start; }
}
.insights__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.insight-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .25s;
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--rm-blue-200);
  color: inherit;
}
.insight-card__tag {
  display: inline-flex; align-self: flex-start;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--rm-blue-50); color: var(--rm-blue-700);
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.insight-card h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -.015em;
  line-height: 1.3;
}
.insight-card p {
  color: var(--neutral-600); font-size: 15px; line-height: 1.55;
  flex: 1;
}
.insight-card__read {
  font-size: 14px; font-weight: 700;
  background: var(--logo-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .consultants__inner { grid-template-columns: 1fr; gap: 40px; }
  .consultants__head { position: static; }
  .insights__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .consultants__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  padding: 84px 0;
  background: var(--body);
}
.testimonials__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  text-align: center;
}
.testimonials__title {
  margin: 18px 0 56px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
}
.testimonials__track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: stretch;
  text-align: left;
}
.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 12px 32px -12px rgba(15,53,181,.18), 0 2px 4px rgba(11,14,24,.04);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 24px;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: "“";
  position: absolute;
  top: 14px; left: 24px;
  font-family: var(--font-heading);
  font-size: 96px;
  line-height: 1;
  font-weight: 800;
  background: var(--logo-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .25;
  pointer-events: none;
}
.quote-card:hover {
  box-shadow: 0 24px 48px -16px rgba(15,53,181,.30), 0 6px 14px -4px rgba(11,14,24,.08);
  border-color: var(--rm-blue-200);
}
.quote-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(54,128,255,.12) 50%, transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
  transition: transform .9s var(--ease-out);
  z-index: 1;
}
.quote-card:hover::after { transform: translateX(100%); }
.quote-card > * {
  position: relative;
  z-index: 2;
}
body.home .testimonials .quote-card,
body.home .frameworks .framework-tile {
  transform: none !important;
}
.quote-card__copy {
  font-size: 18px; line-height: 1.5; color: var(--neutral-700);
  font-weight: 500;
}
.quote-card__foot {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto;
  padding-top: 4px;
}
.quote-card__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 4px 12px -4px rgba(15,53,181,.25);
  flex-shrink: 0;
}
.quote-card__foot > div { display: flex; flex-direction: column; gap: 2px; }
.quote-card__name { font-weight: 700; color: var(--ink); font-size: 15px; }
.quote-card__org  { font-size: 13px; color: var(--muted); }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  padding: 84px 0;
  background:
    radial-gradient(60% 80% at 50% 0%, var(--rm-blue-50), transparent 60%),
    var(--body);
  text-align: center;
}
.cta__inner { max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }
.cta__title {
  font-size: clamp(40px, 6vw, 80px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.02;
}
.cta__sub { color: var(--muted); font-size: 18px; margin-top: 16px; }
.cta .btn { margin-top: 32px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--neutral-900); color: var(--neutral-300);
  padding: 80px 0 24px;
  margin-top: 40px;
  border-radius: 40px 40px 0 0;
}
.footer__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 56px;
}
.footer__col h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; font-weight: 700; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--neutral-300); font-size: 15px; }
.footer__col a:hover { color: var(--white); }
.footer__logo { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.footer__logo img {
  height: 44px;
  width: auto;
  display: block;
}
.footer__spark { color: var(--rm-blue-400); margin: 0 4px; font-size: 14px; }
.footer__about { margin-top: 14px; color: var(--neutral-400); font-size: 15px; max-width: 280px; }
.footer__col address { font-style: normal; line-height: 1.6; color: var(--neutral-300); font-size: 15px; }
.footer__hours { color: var(--neutral-400); font-size: 13px; margin-top: 8px; }
.footer__bottom {
  max-width: var(--container); margin: 56px auto 0; padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--neutral-500);
}
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { font-size: 13px; color: var(--neutral-400); }
.footer__legal a:hover { color: var(--white); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .nav-pill__menu { display: none; }
  /* Flex layout keeps logo + CTA + hamburger on ONE row. The grid template
   * was forcing the toggle onto a second row (pill grew to ~130px tall and
   * obscured content on scroll). */
  .nav-pill { display: flex; align-items: center; gap: 10px; grid-template-columns: none; }
  .nav-pill__logo { margin-right: auto; }
  .services__grid { grid-template-columns: 1fr; gap: 40px; }
  .services__left { position: static; }
  .outcomes__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__track { grid-template-columns: 1fr; }
  .works__meta-grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .intro__cards { grid-template-columns: 1fr; }
  .float-card { font-size: 13px; padding: 10px 14px; }
}

/* ============================================================
 * Mobile nav (hamburger + slide-down panel)
 * ============================================================
 * QA report 2026-05-26 P1: primary nav was invisible on every mobile page.
 * Hamburger appears below 1024px; CTA on the pill stays visible; the panel
 * slides down from beneath the pill on toggle. JS handler in main.js sets
 * `is-open` on the header, flips `aria-expanded`, and removes the panel's
 * `hidden` attribute. Esc and link-click also close. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--neutral-200);
  background: var(--white);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  gap: 4px;
  flex-direction: column;
  margin-left: 8px;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.nav-toggle:hover { background: var(--neutral-50, #f9fafb); border-color: var(--neutral-300); }
.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--neutral-900);
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out);
}
.site-header.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: 92px;
  left: 16px;
  right: 16px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 24px 60px -20px rgba(8, 22, 64, 0.28);
  z-index: 60;
  transform-origin: top center;
  transform: scaleY(0.9) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s var(--ease-out), opacity 0.2s var(--ease-out);
}
.nav-mobile[hidden] { display: none; }
/* The panel is rendered as a sibling AFTER </header> (a direct child of body),
 * so the old `.site-header.is-open .nav-mobile` descendant selector never
 * matched and the menu never appeared on mobile. The JS also sets
 * `body.nav-open`, which IS an ancestor of the panel, so we key off that.
 * Both selectors are kept for resilience across page markup variants. */
.site-header.is-open .nav-mobile,
body.nav-open .nav-mobile {
  transform: scaleY(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.nav-mobile__menu li { margin: 0; }
.nav-mobile__menu a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--neutral-900);
  text-decoration: none;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.nav-mobile__menu a:hover { background: var(--neutral-50, #f9fafb); }
.nav-mobile__menu a.is-active {
  color: var(--rm-blue-700);
  background: var(--rm-blue-50);
}
.nav-mobile__cta {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--neutral-100);
}
.nav-mobile__cta .btn {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
}
/* Lock body scroll when the mobile panel is open. */
body.nav-open { overflow: hidden; }

@media (max-width: 640px) {
  .theme-cog { display: none; }
  .hero { padding-top: 110px; }
  .hero__floats { display: none; }
  .hero__sub { font-size: 16px; }
  .trust__inner { grid-template-columns: 1fr; gap: 16px; }
  .outcomes__grid { grid-template-columns: 1fr; }
  .works__meta-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .accordion__head { padding: 22px 22px; }
  .accordion__title { font-size: 22px; }
  .intro__title { font-size: 40px; }
}

/* =========================================================
   PROCESS — "From idea to production"
   ========================================================= */
.process {
  padding: 84px 0;
  background: var(--body);
}
.process__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.process__head {
  text-align: center; max-width: 760px; margin: 0 auto 64px;
}
.process__title {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none; counter-reset: step;
}
.process-step {
  position: relative;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px -12px rgba(15,53,181,.16), 0 1px 2px rgba(11,14,24,.04);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .25s;
  display: flex; flex-direction: column; gap: 12px;
}
.process-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -14px rgba(15,53,181,.28), 0 2px 6px rgba(11,14,24,.06);
  border-color: var(--rm-blue-200);
}
.process-step__num {
  font-size: 14px; font-weight: 800; letter-spacing: .08em;
  color: var(--rm-blue-600);
  background: var(--rm-blue-50);
  padding: 6px 12px; border-radius: var(--radius-pill);
  align-self: flex-start;
}
.process-step h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -.015em;
  margin-top: 4px;
}
.process-step p {
  color: var(--neutral-600); font-size: 14px; line-height: 1.55;
}
.process-step:not(:last-child)::after {
  content: ""; position: absolute;
  top: 56px; right: -14px;
  width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--rm-blue-300), transparent);
}
@media (max-width: 1024px) { .process__steps { grid-template-columns: repeat(2, 1fr); } .process-step:not(:last-child)::after { display: none; } }
@media (max-width: 640px)  { .process__steps { grid-template-columns: 1fr; } }

/* =========================================================
   BENEFITS — "Why Rockmere"
   ========================================================= */
.benefits {
  padding: 84px 0;
  background: var(--neutral-100);
}
.benefits__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.benefits__head {
  text-align: center; max-width: 780px; margin: 0 auto 56px;
}
.benefits__title {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
}
.benefits__lede {
  margin-top: 20px;
  color: var(--neutral-600); font-size: 17px; line-height: 1.55;
}
.benefits__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 8px 20px -12px rgba(15,53,181,.16), 0 1px 2px rgba(11,14,24,.04);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .25s;
  display: flex; flex-direction: column; gap: 16px;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -14px rgba(15,53,181,.28), 0 2px 6px rgba(11,14,24,.06);
  border-color: var(--rm-blue-200);
}
.benefit-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--logo-gradient);
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 12px 24px -8px rgba(15,53,181,.42), inset 0 1px 0 rgba(255,255,255,.28);
}
.benefit-card h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -.015em;
}
.benefit-card p {
  color: var(--neutral-600); font-size: 15px; line-height: 1.55;
}
@media (max-width: 1024px) { .benefits__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .benefits__grid { grid-template-columns: 1fr; } }

/* =========================================================
   CAPABILITIES — hub-and-spoke (Aigocy "All Features in One")
   ========================================================= */
.capabilities {
  padding: 96px 0 84px;
  background: var(--neutral-100);
  position: relative;
  overflow: hidden;
}
.capabilities__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.capabilities__head {
  text-align: center; max-width: 720px; margin: 0 auto 64px;
}
.capabilities__head .badge { margin-bottom: 24px; }
.capabilities__title {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
}
.capabilities__lede {
  margin-top: 20px;
  color: var(--neutral-600); font-size: 17px; line-height: 1.55;
}
.capabilities__diagram {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
}
.capabilities__lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
/* Animated connector pulses — bright dash travels along each path toward the hub */
.cap-pulse {
  stroke-dasharray: 80 380;       /* fatter bright segment for prominence */
  stroke-dashoffset: 460;         /* starts out-of-view */
  animation: capPulse 2.8s cubic-bezier(.4,.02,.25,1) infinite;
  stroke-linecap: round;
}
/* Each pair (sharp + glow halo) shares the same delay so they travel together */
.cap-pulse--0 { animation-delay: 0s;    }
.cap-pulse--1 { animation-delay: .4s;   }
.cap-pulse--2 { animation-delay: .8s;   }
.cap-pulse--3 { animation-delay: 1.2s;  }
.cap-pulse--4 { animation-delay: 1.6s;  }
.cap-pulse--5 { animation-delay: 2.0s;  }
.cap-pulse--glow { animation-duration: 2.8s; opacity: .55; }

@keyframes capPulse {
  0%   { stroke-dashoffset: 460; opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { stroke-dashoffset: -40; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cap-pulse { display: none; }
}

/* Terminal nodes — bright glowing dots where each connector meets a card */
.cap-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: capNodePulse 2.6s ease-in-out infinite;
}
.cap-node--0 { animation-delay: 0s;   }
.cap-node--1 { animation-delay: .4s;  }
.cap-node--2 { animation-delay: .8s;  }
.cap-node--3 { animation-delay: 1.2s; }
.cap-node--4 { animation-delay: 1.6s; }
.cap-node--5 { animation-delay: 2.0s; }
@keyframes capNodePulse {
  0%, 100% { transform: scale(1);   opacity: .85; }
  50%      { transform: scale(1.4); opacity: 1;   }
}
@media (prefers-reduced-motion: reduce) {
  .cap-node { animation: none; }
}

.capabilities__col {
  display: flex; flex-direction: column; gap: 24px;
  position: relative; z-index: 2;
}

.capability-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  box-shadow:
    0 14px 32px -16px rgba(15,53,181,.18),
    0 1px 2px rgba(11,14,24,.04);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .25s;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
}
.capability-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 44px -16px rgba(15,53,181,.30),
    0 2px 6px rgba(11,14,24,.06);
  border-color: var(--rm-blue-200);
}
.capability-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--neutral-800), var(--neutral-900));
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 8px 18px -6px rgba(11,14,24,.32), inset 0 1px 0 rgba(255,255,255,.10);
}
.capability-card h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
}
.capability-card p {
  color: var(--neutral-600); font-size: 14px; line-height: 1.55;
}

/* Center hub */
.capabilities__hub {
  position: relative; z-index: 2;
  display: grid; place-items: center;
}
.capability-hub {
  position: relative;
  width: 220px; height: 220px;
  display: grid; place-items: center;
}
.capability-hub__core {
  position: relative; z-index: 3;
  width: 180px; height: 180px;
  border-radius: 36px;
  background: var(--logo-gradient);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 32px 64px -12px rgba(15,53,181,.62),
    0 16px 28px -6px rgba(15,53,181,.42),
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(9,36,132,.30);
  border: 1px solid rgba(255,255,255,.24);
  padding: 22px;
}
.capability-hub__core::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, transparent 50%);
  pointer-events: none;
}
.capability-hub__logo {
  position: relative; z-index: 2;
  width: 100%; height: auto; max-width: 130px;
  /* Turn the blue logo into a pure white silhouette */
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(9,36,132,.40));
}
.capability-hub__glow {
  position: absolute; inset: -50px;
  border-radius: 50%;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(54,128,255,.55) 0%, transparent 65%),
    radial-gradient(70% 70% at 50% 50%, rgba(15,53,181,.35) 0%, transparent 70%);
  filter: blur(24px);
  z-index: 1;
  animation: hubPulse 4s ease-in-out infinite alternate;
}
/* Concentric ring that pulses outward */
.capability-hub__ring {
  position: absolute; inset: -8px;
  border-radius: 44px;
  border: 1px solid rgba(54,128,255,.35);
  z-index: 2;
  animation: hubRing 3.2s ease-out infinite;
  pointer-events: none;
}
@keyframes hubPulse {
  0%   { transform: scale(0.95); opacity: .75; }
  100% { transform: scale(1.08); opacity: 1; }
}
@keyframes hubRing {
  0%   { transform: scale(1);    opacity: .8; }
  100% { transform: scale(1.4);  opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .capability-hub__glow,
  .capability-hub__ring { animation: none; }
  .capability-hub__ring { display: none; }
}

@media (max-width: 1024px) {
  .capabilities__diagram { grid-template-columns: 1fr; gap: 32px; }
  .capabilities__lines { display: none; }
  .capabilities__hub { order: 2; }
  .capabilities__col--left { order: 1; }
  .capabilities__col--right { order: 3; }
}

/* =========================================================
   FRAMEWORKS — "We work with the world's leading frameworks"
   ========================================================= */
.frameworks {
  padding: 84px 0;
  background: var(--body);
}
.frameworks__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.frameworks__head {
  text-align: center; max-width: 780px; margin: 0 auto 56px;
}
.frameworks__title {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
}
.frameworks__lede {
  margin-top: 20px;
  color: var(--neutral-600); font-size: 17px; line-height: 1.55;
}
.frameworks__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.framework-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 8px 20px -12px rgba(15,53,181,.16), 0 1px 2px rgba(11,14,24,.04);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .25s;
  display: flex; flex-direction: column; gap: 14px;
}
.framework-tile:hover {
  box-shadow: 0 16px 36px -14px rgba(15,53,181,.28), 0 2px 6px rgba(11,14,24,.06);
  border-color: var(--rm-blue-200);
}
.framework-tile__logo {
  height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 22px;
  background: linear-gradient(180deg, var(--neutral-100), var(--white));
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  font-weight: 800; font-size: 22px; letter-spacing: -.02em;
  background-image: var(--logo-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: var(--white);
  align-self: flex-start;
  min-width: 88px;
}
.framework-tile h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
}
.framework-tile p {
  color: var(--neutral-600); font-size: 14px; line-height: 1.55;
}
@media (max-width: 1024px) { .frameworks__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .frameworks__grid { grid-template-columns: 1fr; } }

/* =========================================================
   TEAM
   ========================================================= */
.team {
  padding: 84px 0;
  background: var(--body);
}
.team__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start;
}
.team__head { position: sticky; top: 120px; }
.team__title {
  margin: 18px 0 18px;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
}
.team__lede {
  color: var(--neutral-600); font-size: 17px; line-height: 1.55;
  margin-bottom: 24px;
}
.team__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.member-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 20px -12px rgba(15,53,181,.16), 0 1px 2px rgba(11,14,24,.04);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .25s;
}
/* When rendered as <a> (homepage About section → role bio page), strip
 * default link styling so the card design carries through. */
a.member-card { color: inherit; text-decoration: none; display: block; cursor: pointer; }
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -14px rgba(15,53,181,.28), 0 2px 6px rgba(11,14,24,.06);
  border-color: var(--rm-blue-200);
}
.member-card__photo {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--neutral-100);
}
/* Initials fallback for a consultant with no photo (fills the 4/5 photo area). */
.member-card__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--rm-blue-700) 0%, var(--rm-blue-900) 100%);
}
.member-card__initials span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 68px);
  letter-spacing: 0.02em;
  color: #fff;
}
.member-card__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.member-card:hover .member-card__photo img { transform: scale(1.04); }
.member-card__body {
  padding: 20px 24px 24px;
}
.member-card__body h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -.01em;
}
.member-card__role {
  margin-top: 4px;
  color: var(--rm-blue-700); font-size: 14px;
  font-weight: 600;
}
.member-card__spec {
  margin-top: 2px;
  color: var(--neutral-500); font-size: 14px;
  font-weight: 500;
}
@media (max-width: 1024px) {
  .team__inner { grid-template-columns: 1fr; gap: 40px; }
  .team__head { position: static; }
}
@media (max-width: 640px) { .team__grid { grid-template-columns: 1fr; } }

/* =========================================================
   FAQ — Accordion
   ========================================================= */
.faq {
  padding: 84px 0;
  background: var(--body);
}
.faq__inner {
  max-width: 880px; margin-inline: auto; padding-inline: var(--gutter);
}
.faq__head {
  text-align: center; margin-bottom: 48px;
}
.faq__title {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
}
.faq__list {
  display: flex; flex-direction: column; gap: 14px;
  list-style: none;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px -8px rgba(15,53,181,.10);
  transition: box-shadow .3s, border-color .25s;
}
.faq-item.is-open {
  border-color: var(--rm-blue-300);
  box-shadow: 0 12px 28px -12px rgba(15,53,181,.20);
}
.faq-item__head {
  width: 100%; background: none; border: none;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 28px;
  font-family: inherit; text-align: left;
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  color: var(--ink);
  cursor: pointer;
}
.faq-item__toggle {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 400;
  background: var(--rm-blue-50);
  color: var(--rm-blue-700);
  border-radius: 50%;
  transition: transform .35s var(--ease), background .25s;
}
.faq-item.is-open .faq-item__toggle {
  transform: rotate(45deg);
  background: var(--logo-gradient);
  color: var(--white);
}
.faq-item__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq-item__inner {
  min-height: 0; overflow: hidden;
}
.faq-item__inner p {
  padding: 0 28px 24px;
  color: var(--neutral-600); font-size: 16px; line-height: 1.6;
  max-width: 720px;
}
.faq-item.is-open .faq-item__body { grid-template-rows: 1fr; }

/* =========================================================
   SUBPAGES — Page hero
   ========================================================= */
.page-hero {
  position: relative;
  padding: 156px var(--gutter) 64px;
  text-align: center;
  overflow: hidden;
  /* Two-tone treatment matched to home + resources hero. Larger radial
     than the previous tighter glow, so the blue dome reads more strongly. */
  background:
    radial-gradient(120% 80% at 50% -10%, var(--rm-blue-50) 0%, transparent 60%),
    var(--body);
}
.page-hero::before {
  content: ""; position: absolute; top: -55%; left: 50%;
  width: 70vw; height: 70vw; max-width: 760px; max-height: 760px;
  transform: translateX(-50%);
  background:
    radial-gradient(50% 50% at 50% 50%, var(--rm-blue-500) 0%, transparent 65%),
    radial-gradient(70% 70% at 50% 50%, var(--rm-blue-700) 0%, transparent 75%);
  filter: blur(70px) saturate(105%);
  opacity: .12;
  border-radius: 50%;
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 2; max-width: 920px; margin-inline: auto; }
.page-hero .badge { position: relative; z-index: 2; }
.page-hero__title {
  margin-top: 24px;
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1;
}
.page-hero__sub {
  margin-top: 24px; color: var(--neutral-600);
  font-size: 18px; max-width: 640px; margin-inline: auto;
}

/* ---------- Page hero, XL variant ----------
 * Pilot variant for service detail pages. Pushes the hero to feel like a
 * full-bleed marketing moment instead of a small content header. Title
 * scale lifts to clamp(56px, 11vw, 140px), padding grows to ~240px top and
 * 120px bottom, sub-head gets more breathing room and a wider max-width.
 * Toggled per-page from the generator via `redesign_variant: xl` frontmatter.
 */
.page-hero--xl {
  padding: 196px var(--gutter) 72px;
}
.page-hero--xl .page-hero__inner {
  max-width: 1080px;
}
.page-hero--xl .page-hero__title {
  margin-top: 32px;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.04em;
  line-height: 0.96;
}
.page-hero--xl .page-hero__sub {
  margin-top: 32px;
  font-size: clamp(17px, 1.4vw, 22px);
  max-width: 720px;
  line-height: 1.5;
}
/* Suppress the centered radial glow from `.page-hero::before` on the XL
 * variant — the right-anchored `.hero-xl-orb` carries the brand gradient
 * now, and a second centered glow behind the title was reading as a halo
 * that visually competed with the headline. */
.page-hero--xl::before {
  display: none;
}

/* ---------- Hub hero XL variants ----------
 * The two custom hub heroes — `.industries-hub-hero` and `.case-hub-hero` —
 * predate D-020. They have their own typography stack. The `--xl` modifier
 * tunes them up to match the XL detail-page family: larger title, more
 * generous padding, and they become a positioning context so the right-
 * anchored `.hero-xl-orb` can dock against the right edge.
 *
 * `.page-hero--hub` is the modifier the generator-driven `render_overview`
 * adds to its single hero element. It uses the same lift as `--xl` but
 * pulls the bottom padding down because hubs always have a card grid
 * directly below the hero, so a full 120px bottom feels disconnected. */
.industries-hub-hero,
.case-hub-hero {
  position: relative;
  overflow: hidden;
}
/* The base `.industries-hub-hero` and `.case-hub-hero` rules (defined
 * further down the file at lines 4632 / 4792) hard-code a 100px / 96px
 * top padding, and a later "duplicate-class" specificity hack at
 * line 5758 pins the title font-size to clamp(48,6.5vw,76px). Both win
 * over a plain modifier selector that comes earlier in the file.
 *
 * To force the XL scale to land, the modifier rules below use the same
 * duplicate-class specificity bump: `.industries-hub-hero--xl.industries-hub-hero--xl`
 * is two classes (matching the title hack), and `.industries-hub-hero--xl.industries-hub-hero--xl .industries-hub-hero__title`
 * is three classes (beating it). */
.industries-hub-hero--xl.industries-hub-hero--xl,
.case-hub-hero--xl.case-hub-hero--xl {
  padding-top: 240px;
  padding-bottom: clamp(40px, 6vw, 72px);
}
/* Matches the locked detail-page XL hero cap at line ~5761 — `clamp(52, 7.4vw, 96)`.
 * This is the canonical XL hero scale across the entire site after D-020. The
 * earlier 140px max was the BASE `.page-hero--xl` rule before the !important
 * override at 5761 capped it at 96; the hubs need to land on the SAME 96 cap
 * so they read as the same family, not larger than the detail pages. */
.industries-hub-hero--xl.industries-hub-hero--xl .industries-hub-hero__title,
.case-hub-hero--xl.case-hub-hero--xl .case-hub-hero__title {
  font-size: clamp(40px, 6vw, 80px) !important;
  letter-spacing: -0.035em !important;
  line-height: 0.98 !important;
}
.industries-hub-hero--xl.industries-hub-hero--xl .industries-hub-hero__sub,
.case-hub-hero--xl.case-hub-hero--xl .case-hub-hero__sub {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  max-width: 720px;
  margin-top: 32px;
}
.industries-hub-hero--xl.industries-hub-hero--xl .industries-hub-hero__inner,
.case-hub-hero--xl.case-hub-hero--xl .case-hub-hero__inner {
  max-width: 1080px;
}
/* Make the inner content sit above the decor layer */
.industries-hub-hero__inner,
.case-hub-hero__inner {
  position: relative;
  z-index: 2;
}
/* ---------- Hub body editorial-rhythm overrides ----------
 * Hub pages (the 5 pages that render `.hub-engagement-strip` below the
 * hero) inherited a body typography scale from earlier work that reads
 * as "offbeat" next to the XL detail pages: `.sec__title` at 40-64px is
 * almost twice the scale of detail-page `.page-h2` at 28-40px, and
 * `.sec` blocks have a louder 112px section padding vs the detail-page
 * editorial 96px rhythm.
 *
 * The :has() selector scopes these overrides to the 5 hub pages without
 * touching home, about sub-pages, or any other `.sec` consumer. ~97%
 * global browser support for :has() as of 2026. Pages that fall through
 * the gap (older Safari etc.) still render with the original `.sec`
 * scale — content-readable, just visually louder.
 */
body:has(.hub-engagement-strip) .sec {
  padding-top: clamp(52px, 5.5vw, 84px);
  padding-bottom: clamp(52px, 5.5vw, 84px);
}
body:has(.hub-engagement-strip) .sec__head {
  margin-bottom: 40px;
  max-width: 760px;
}
body:has(.hub-engagement-strip) .sec__title,
body:has(.hub-engagement-strip) .about-mission__title,
body:has(.hub-engagement-strip) .values__title {
  font-size: clamp(28px, 3.4vw, 44px) !important;
  letter-spacing: -0.025em !important;
  line-height: 1.1 !important;
  margin-top: 18px;
  margin-bottom: 16px;
}
body:has(.hub-engagement-strip) .sec__lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  max-width: 720px;
}
/* About-page body sections — tighten the section paddings to match the
 * editorial detail-page rhythm and the other hubs. `.values` was 120px
 * top/bottom (loud), `.about-mission` had asymmetric 80/120. */
body:has(.hub-engagement-strip) .about-mission {
  padding: clamp(52px, 5.5vw, 84px) 0;
}
body:has(.hub-engagement-strip) .values {
  padding: clamp(52px, 5.5vw, 84px) 0;
}
body:has(.hub-engagement-strip) .about-consultants {
  padding-top: clamp(52px, 5vw, 76px);
  padding-bottom: clamp(44px, 5vw, 60px);
}
/* Editorial chip kicker: pair the existing `.sec__head .badge` element
 * with a left blue dash to match the visual signal of `.page-h2`'s chip
 * kicker on the detail pages, without restructuring the HTML. */
body:has(.hub-engagement-strip) .sec__head .badge {
  position: relative;
  padding-left: 44px;
}
body:has(.hub-engagement-strip) .sec__head .badge::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--rm-blue-700);
  transform: translateY(-50%);
}
/* Surface-card framing on data modules inside hub `.sec` blocks — matches
 * the `.body-xl-rhythm` look on detail pages where role/approach/challenge
 * grids sit on a soft neutral-50 surface with hairline border. */
body:has(.hub-engagement-strip) .phase-registry,
body:has(.hub-engagement-strip) .cmp-table-wrap,
body:has(.hub-engagement-strip) .shape-registry {
  background: var(--neutral-50, #fafafa);
  border: 1px solid var(--neutral-200);
  border-radius: 20px;
  padding: 32px 40px;
  margin-top: 32px;
}
body:has(.hub-engagement-strip) .sec[data-bg="navy"] .phase-registry,
body:has(.hub-engagement-strip) .sec[data-bg="navy"] .cmp-table-wrap,
body:has(.hub-engagement-strip) .sec[data-bg="navy"] .shape-registry {
  /* Dark-bg variant: tint instead of light-on-light */
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
@media (max-width: 720px) {
  body:has(.hub-engagement-strip) .phase-registry,
  body:has(.hub-engagement-strip) .cmp-table-wrap,
  body:has(.hub-engagement-strip) .shape-registry {
    padding: 20px 16px;
    border-radius: 14px;
  }
}

/* Hub variant of the XL hero used by render_overview + careers.
 * After client feedback (the hub heroes were visibly smaller than the
 * detail-page XL heroes and the difference read as a downgrade): the
 * hub variant now inherits the FULL XL hero scale — same title size,
 * same top padding, same sub width. The only thing `--hub` still
 * adjusts is the bottom padding, tightened from 120px to ~96px so
 * the engagement strip below sits closer (which is the design intent
 * — the strip is part of the hero's visual unit, not a separate
 * downstream module). */
.page-hero--hub {
  /* Inherit top padding (240px) from .page-hero--xl; only tighten the bottom. */
  padding-bottom: clamp(40px, 6vw, 72px);
}

/* ---------- Process band inside case-study article body (Option A, D-020) ----------
 * The process band is shared between full-XL service/industry detail pages
 * (rendered inside a 1180px container with 4-up grid) and case-study article
 * bodies (rendered inside the ~700px article-main column with a 2×2 grid).
 * In the article-body context the default 96px section padding + 40-56px
 * phase numbers read as oversized and dwarf the prose. These overrides
 * tighten everything down to article-scale proportions. */
.article-body .process-band {
  padding: 0;
  margin: 8px 0 32px;
}
.article-body .process-band__grid {
  border-top: 1px solid var(--neutral-200);
  gap: 0;
  /* Force a clean single row for the 4 phases. The inherited auto-fit only fit
   * 3 in the article column, orphaning phase 04 onto its own row. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .article-body .process-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* second row needs its own top divider so the band still reads as a grid */
  .article-body .process-band__phase:nth-child(n+3) { border-top: 1px solid var(--neutral-200); padding-top: 24px; }
}
@media (max-width: 600px) {
  .article-body .process-band__grid { grid-template-columns: 1fr; }
  .article-body .process-band__phase { margin-right: 0; padding-right: 0; }
  .article-body .process-band__phase:nth-child(n+2) { border-top: 1px solid var(--neutral-200); padding-top: 24px; }
}
.article-body .process-band__phase {
  padding: 24px 24px 24px 0;
  margin-right: 24px;
  gap: 10px;
  min-height: 0;
}
.article-body .process-band__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.article-body .process-band__icon svg { width: 20px; height: 20px; }
.article-body .process-band__num {
  font-size: clamp(28px, 3vw, 40px);
}
.article-body .process-band__kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
}
.article-body .process-band__head {
  font-size: clamp(16px, 1.3vw, 19px);
}
.article-body .process-band__body {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--neutral-600);
}

/* ---------- Numbered process band ----------
 * Sits between the hero/stats and the body. Communicates the engagement
 * arc in four phases with a kicker (timing), heading, and short body.
 * Auto-fit grid that collapses to one column under 720px.
 */
.process-band {
  background: var(--body);
  padding: 96px var(--gutter) 0;
}
.process-band__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.process-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--neutral-200);
}
.process-band__phase {
  padding: 36px 32px 36px 0;
  margin-right: 32px;
  border-right: 1px solid var(--neutral-200);
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
}
.process-band__phase:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}
.process-band__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(40px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--rm-blue-700);
}
.process-band__kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neutral-500);
}
.process-band__head {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(20px, 1.6vw, 24px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--neutral-900);
  margin: 0;
}
.process-band__body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0;
  overflow-wrap: break-word;
}
@media (max-width: 720px) {
  .process-band__phase {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--neutral-200);
  }
  .process-band__phase:last-child { border-bottom: 0; }
}

/* ---------- Body wrapper, XL rhythm ----------
 * When `body-xl-rhythm` is on the body wrapper, gaps between major modules
 * grow and the registry-style cards (role/approach/challenge) get framed
 * inside a soft light-neutral surface card with generous internal padding
 * so they read as deliberately-curated content blocks rather than wall-
 * to-wall body text.
 */
.body-xl-rhythm {
  padding-top: 80px;
  padding-bottom: 56px;
}
.body-xl-rhythm .page-body__inner > * + * {
  margin-top: 72px;
}
.body-xl-rhythm .page-h2 {
  margin-bottom: 24px;
}
.body-xl-rhythm .role-grid,
.body-xl-rhythm .approach-grid,
.body-xl-rhythm .challenge-grid {
  background: var(--neutral-50, #fafafa);
  border: 1px solid var(--neutral-200);
  border-radius: 20px;
  padding: 32px 48px;
  margin-top: 24px;
}
/* Cards inside the framed surface get a deeper divider so the dividers feel
 * intentional against the neutral surface instead of competing with the
 * card edge. */
.body-xl-rhythm .approach-card,
.body-xl-rhythm .challenge-card,
.body-xl-rhythm .role-card {
  border-bottom-color: var(--neutral-200);
}
.body-xl-rhythm .approach-card:last-child,
.body-xl-rhythm .challenge-card:last-child,
.body-xl-rhythm .role-card:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}
@media (max-width: 720px) {
  .body-xl-rhythm .role-grid,
  .body-xl-rhythm .approach-grid,
  .body-xl-rhythm .challenge-grid {
    padding: 24px 22px;
    border-radius: 14px;
  }
}

/* ---------- XL hero: decorative orb + floating capability tags ----------
 * Sits inside `.page-hero--xl` and gives the otherwise-bare two-tone hero a
 * sense of depth: a large soft mesh orb behind the title that slowly drifts,
 * and 4-6 small pill cards (capabilities sourced from `hero_chips`) scattered
 * around the title with idle floating motion driven by GSAP in main.js.
 */
.hero-xl-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
/* Anchored to the right edge of the hero (mirrors the homepage `.hero__blob`
 * which uses `right: -25%; top: -5%`). The blob now floats off the right
 * side of the composition rather than sitting centered behind the title. */
.hero-xl-orb {
  position: absolute;
  top: -5%;
  right: -25%;
  width: 65vw;
  height: 65vw;
  max-width: 820px;
  max-height: 820px;
  background:
    radial-gradient(36% 46% at 32% 30%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
    radial-gradient(42% 52% at 48% 38%, var(--rm-blue-500) 0%, transparent 65%),
    radial-gradient(58% 64% at 55% 55%, var(--rm-blue-600) 0%, transparent 70%),
    radial-gradient(72% 78% at 50% 72%, var(--rm-blue-800) 0%, transparent 75%),
    radial-gradient(90% 90% at 50% 90%, var(--rm-blue-900) 0%, transparent 80%);
  filter: blur(50px) saturate(110%);
  border-radius: 50%;
  opacity: 0.45;
  animation: rmOrbDrift 14s ease-in-out infinite alternate;
}
@keyframes rmOrbDrift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(-1.5%, 1%) scale(1.04) rotate(2deg); }
  100% { transform: translate(-2%, 2%) scale(1.06) rotate(-1deg); }
}
.hero-xl-floats {
  position: absolute;
  inset: 0;
}
.hero-xl-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  box-shadow: 0 10px 30px -16px rgba(8, 22, 64, 0.18);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  color: var(--neutral-900);
  /* Cap the width and allow wrap so a long capability label can never
   * blow past the viewport edge. Pill shape stays round for short
   * labels (border-radius: 18px reads as a pill at one line) and
   * relaxes to a rounded rectangle for two-line wraps. */
  max-width: 260px;
  white-space: normal;
  overflow-wrap: break-word;
  animation: rmFloatDrift 7s ease-in-out infinite alternate;
}
.hero-xl-float--blue {
  background: linear-gradient(135deg, var(--rm-blue-700) 0%, var(--rm-blue-900) 100%);
  border-color: transparent;
  color: var(--white);
}
.hero-xl-float__glyph {
  font-size: 14px;
  line-height: 1;
  color: var(--rm-blue-700);
}
.hero-xl-float--blue .hero-xl-float__glyph { color: rgba(255, 255, 255, 0.85); }
/* Four corner-anchored slots that frame the centered title block. The hero's
 * max-width content sits around 1080px in the middle, so floats live in the
 * outer 0-15% horizontal strips. Vertical positions are top quartile and
 * bottom quartile so the title's horizontal axis stays clean. */
/* Floats live in the four corners, clear of the centred title/sub/CTA column.
 * Top pair sits ABOVE the eyebrow (in the empty band below the breadcrumb) and
 * the side anchors hug the edges, so even the widest single-line title
 * ("RAG Systems & AI Agents") never collides with them. */
/* Anchored relative to CENTRE (like the homepage hero floats), not the viewport
 * edge, so the gap to the centred, fixed-width title stays constant (~25px) at
 * any screen width instead of ballooning on wide monitors. 820px = title's
 * half-width (~533) + float width (260) + a small gap. max(2%, …) keeps them
 * on-screen on narrower viewports. */
.hero-xl-float--slot1 { top: 15%; left: max(2%, calc(50% - 820px)); animation-delay: 0s; }
.hero-xl-float--slot2 { top: 13%; right: max(2%, calc(50% - 820px)); animation-delay: -1.4s; animation-duration: 8s; }
.hero-xl-float--slot3 { bottom: 26%; left: max(2%, calc(50% - 820px)); animation-delay: -2.6s; animation-duration: 9s; }
.hero-xl-float--slot4 { bottom: 28%; right: max(2%, calc(50% - 820px)); animation-delay: -3.4s; animation-duration: 7.5s; }
@keyframes rmFloatDrift {
  0%   { transform: translateY(0) translateX(0) rotate(-1deg); }
  50%  { transform: translateY(-10px) translateX(6px) rotate(1.5deg); }
  100% { transform: translateY(6px) translateX(-4px) rotate(-0.5deg); }
}
@media (max-width: 1100px) {
  /* Hide the floats below ~1100px. In the 1024-1100 band the centred title
   * grows wide enough relative to the viewport that the corner floats would
   * crowd it, so they're dropped. The orb stays — it's behind the title and
   * reads as soft background depth. */
  .hero-xl-floats { display: none; }
  .hero-xl-orb { width: 80vw; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-xl-orb, .hero-xl-float { animation: none; }
}

/* ---------- Process band: icons + animated connector line ----------
 * Each phase gets a small line-art icon kicker sitting between the number
 * and the timing label. The hairline `__line` underneath the grid acts as a
 * connecting thread; the `__line-fill` is a blue accent that grows from 0 →
 * 100% width when the band scrolls into view (driven by an IntersectionObserver
 * + CSS transition in main.js).
 */
.process-band__phase {
  position: relative;
  /* Override base — icon + num + kicker + head + body rows */
  grid-template-rows: auto auto auto auto 1fr;
}
.process-band__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--rm-blue-50);
  color: var(--rm-blue-700);
  margin-bottom: 4px;
}
.process-band__phase[data-phase-index="2"] .process-band__icon { background: oklch(0.95 0.04 250); }
.process-band__phase[data-phase-index="3"] .process-band__icon { background: oklch(0.94 0.05 245); }
.process-band__phase[data-phase-index="4"] .process-band__icon { background: oklch(0.93 0.06 240); }
.process-band__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--neutral-200);
  overflow: hidden;
}
.process-band__line-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rm-blue-500), var(--rm-blue-700));
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-band.is-revealed .process-band__line-fill { width: 100%; }
.process-band__phase {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-band.is-revealed .process-band__phase { opacity: 1; transform: translateY(0); }
.process-band.is-revealed .process-band__phase[data-phase-index="1"] { transition-delay: 0.10s; }
.process-band.is-revealed .process-band__phase[data-phase-index="2"] { transition-delay: 0.20s; }
.process-band.is-revealed .process-band__phase[data-phase-index="3"] { transition-delay: 0.30s; }
.process-band.is-revealed .process-band__phase[data-phase-index="4"] { transition-delay: 0.40s; }
.process-band.is-revealed .process-band__phase[data-phase-index="5"] { transition-delay: 0.50s; }
@media (prefers-reduced-motion: reduce) {
  .process-band__phase { opacity: 1; transform: none; transition: none; }
  .process-band__line-fill { transition: none; width: 100%; }
}

/* ---------- Word marquee ----------
 * Sliding strip of light-grey terms positioned between hero/process and the
 * body content. Visual breathing moment between long-form text modules.
 * Track holds two copies of the word list and translates -50% over a long
 * duration so the loop is seamless.
 */
.word-marquee {
  position: relative;
  overflow: hidden;
  padding: 32px 0;
  background: var(--body);
  border-top: 1px solid var(--neutral-100);
  border-bottom: 1px solid var(--neutral-100);
}
.word-marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: rmWordMarquee 50s linear infinite;
  will-change: transform;
}
.word-marquee__item {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: -0.01em;
  color: var(--neutral-400);
  white-space: nowrap;
}
.word-marquee__dot {
  font-size: 16px;
  color: var(--rm-blue-500);
  opacity: 0.7;
}
@keyframes rmWordMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .word-marquee__track { animation: none; }
}

/* ---------- XL body — long-form prose treatment ----------
 * Bold-led paragraphs (markdown `**Label.** body...`) become visual
 * sub-headers with a small blue dash above and the leading bold rendered
 * as a display block. First paragraph after an H2 gets a bigger lede.
 *
 * IMPORTANT scoping: these rules MUST only target direct children of
 * `.page-body__inner` (the markdown body) — not paragraphs and headings
 * inside the structured-module cards (role-card, approach-card,
 * challenge-card) which are also descendants of `.page-body__inner` via
 * their grid wrappers. Use `>` to lock the cascade to direct children. */
.body-xl-rhythm .page-body__inner > p {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--neutral-700);
}
.body-xl-rhythm .page-body__inner > h2 + p {
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.6;
  color: var(--neutral-800);
  max-width: 70ch;
}
.body-xl-rhythm .page-body__inner > p:has(> strong:first-child) {
  margin-top: 64px;
  font-size: 16.5px;
}
.body-xl-rhythm .page-body__inner > p > strong:first-child {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--neutral-900);
  margin-bottom: 14px;
}
.body-xl-rhythm .page-body__inner > p > strong:first-child::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--rm-blue-700);
  margin-bottom: 18px;
}
.body-xl-rhythm .page-body__inner > h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(22px, 1.8vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 64px;
  margin-bottom: 16px;
  color: var(--neutral-900);
}
.body-xl-rhythm .page-body__inner > blockquote {
  margin: 56px auto;
  max-width: 760px;
  padding: 24px 0 24px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--neutral-900);
  position: relative;
}
.body-xl-rhythm .page-body__inner > blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 3px;
  height: calc(100% - 24px);
  background: linear-gradient(180deg, var(--rm-blue-500), var(--rm-blue-900));
  border-radius: 3px;
}

/* Focus-grid label wrapper. The `<li>` is a 36px arrow + 1fr grid; we
 * wrap the strong + label text in a single span so column 2 holds one
 * grid item (rather than auto-placing the bare text node into row 2
 * column 1, which would collapse the label to one-word-per-line). */
.focus-grid__body {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
}
.focus-grid__metric {
  color: var(--rm-blue-700);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-right: 8px;
}

/* ---------- Body art panel ----------
 * Decorative CSS-only abstract block injected by main.js between H2
 * sections in XL body pages. Pure gradient + radial concentric overlay,
 * no images required. Caption uses the same monospace kicker vocabulary
 * as the rest of the editorial chrome. */
.body-art {
  position: relative;
  margin: 96px auto;
  width: 100%;
  max-width: 920px;
  aspect-ratio: 16 / 7;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 38%, rgba(40, 90, 240, 0.85) 0%, transparent 45%),
    radial-gradient(circle at 72% 62%, rgba(9, 36, 132, 0.92) 0%, transparent 55%),
    linear-gradient(135deg, var(--rm-blue-700) 0%, var(--rm-blue-900) 100%);
  isolation: isolate;
}
.body-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(255, 255, 255, 0.06) 31%, rgba(255, 255, 255, 0.06) 32%, transparent 33%),
    radial-gradient(circle at 50% 50%, transparent 40%, rgba(255, 255, 255, 0.05) 41%, rgba(255, 255, 255, 0.05) 42%, transparent 43%),
    radial-gradient(circle at 50% 50%, transparent 50%, rgba(255, 255, 255, 0.04) 51%, rgba(255, 255, 255, 0.04) 52%, transparent 53%);
  z-index: 1;
}
.body-art::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
  filter: blur(20px);
  z-index: 1;
  animation: rmBodyArtPulse 6s ease-in-out infinite alternate;
}
@keyframes rmBodyArtPulse {
  from { opacity: 0.6; transform: translate(0, 0) scale(1); }
  to   { opacity: 1; transform: translate(-10%, 5%) scale(1.08); }
}
.body-art__caption {
  position: absolute;
  bottom: 24px;
  left: 32px;
  z-index: 3;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.body-art__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .body-art::after { animation: none; }
}

/* ---------- Animated stat counters ---------- */
.page-stat__num[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ---------- XL body — surface card visual character ----------
 * The surface cards get back the visual life they lost when the dot-grid
 * and side accent bars were removed. New layer of decoration:
 *   1. Soft radial-gradient blue accent glow positioned in the top-right
 *      corner of each surface card (no overlap with the centered text).
 *   2. Bigger, brand-blue numbers on approach + challenge cards (was a
 *      grey monospace 13px, now a 64-88px Outfit display).
 *   3. Subtle row hover tint, no transform, no side bars.
 *   4. Card rows fade up with a 80ms-staggered delay on scroll-in.
 */
.body-xl-rhythm .role-grid,
.body-xl-rhythm .approach-grid,
.body-xl-rhythm .challenge-grid {
  position: relative;
  overflow: hidden;
}
.body-xl-rhythm .role-grid::before,
.body-xl-rhythm .approach-grid::before,
.body-xl-rhythm .challenge-grid::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background:
    radial-gradient(circle at 50% 50%, rgba(21, 69, 224, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.body-xl-rhythm .role-grid::after,
.body-xl-rhythm .approach-grid::after,
.body-xl-rhythm .challenge-grid::after {
  content: "";
  position: absolute;
  bottom: -25%;
  left: -8%;
  width: 360px;
  height: 360px;
  background:
    radial-gradient(circle at 50% 50%, rgba(9, 36, 132, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.body-xl-rhythm .role-grid > *,
.body-xl-rhythm .approach-grid > *,
.body-xl-rhythm .challenge-grid > * {
  position: relative;
  z-index: 1;
}
.body-xl-rhythm .approach-card,
.body-xl-rhythm .challenge-card,
.body-xl-rhythm .role-card {
  transition: background-color 0.2s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease-out;
  border-radius: 10px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: -16px;
  margin-right: -16px;
}
.body-xl-rhythm .approach-card:hover,
.body-xl-rhythm .challenge-card:hover,
.body-xl-rhythm .role-card:hover {
  background-color: rgba(21, 69, 224, 0.05);
}
/* Bigger numbers — display Outfit, brand blue gradient text. The original
 * `.approach-card__num` and `.challenge-card__num` rules at the base of the
 * stylesheet declared a small grey monospace; we override them only inside
 * `body-xl-rhythm` so the editorial-registry style remains the default on
 * non-XL pages. */
.body-xl-rhythm .approach-card__num,
.body-xl-rhythm .challenge-card__num {
  font-family: var(--font-heading);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(140deg, var(--rm-blue-500) 0%, var(--rm-blue-900) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  line-height: 1;
  padding-top: 0;
  align-self: start;
}
/* Slight column rebalance so the bigger number doesn't crash into the
 * heading. 72px gutter > the default 64px to keep visual breathing room. */
.body-xl-rhythm .approach-card,
.body-xl-rhythm .challenge-card {
  grid-template-columns: 88px minmax(0, 1fr) !important;
}
@media (prefers-reduced-motion: reduce) {
  .body-xl-rhythm .approach-card,
  .body-xl-rhythm .challenge-card,
  .body-xl-rhythm .role-card { transition: none; }
}

/* Focus-grid (Outcomes + Deliverables) gets visual life too: bigger metric
 * with the same blue-gradient text as the numbers, a brighter arrow that
 * shifts on hover, and a subtle background tint on row hover. */
.body-xl-rhythm .focus-grid {
  position: relative;
  padding: 8px 16px;
  background: var(--neutral-50, #fafafa);
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
}
.body-xl-rhythm .focus-grid li {
  padding: 18px 12px;
  border-bottom-color: var(--neutral-200);
  transition: background-color 0.18s ease;
  border-radius: 8px;
}
.body-xl-rhythm .focus-grid li:hover {
  background-color: rgba(21, 69, 224, 0.05);
}
.body-xl-rhythm .focus-grid li:last-child {
  border-bottom: 0;
}
.body-xl-rhythm .focus-grid li::before {
  font-size: 20px;
  color: var(--rm-blue-700);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.body-xl-rhythm .focus-grid li:hover::before {
  transform: translateX(4px);
}
.body-xl-rhythm .focus-grid__metric {
  font-size: clamp(17px, 1.3vw, 19px);
  background: linear-gradient(140deg, var(--rm-blue-500), var(--rm-blue-900));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.body-xl-rhythm .focus-grid__body {
  font-size: 15.5px;
  line-height: 1.55;
}

/* =========================================================
   ABOUT — Mission
   ========================================================= */
.about-mission {
  padding: 80px 0 120px;
  background: var(--body);
}
.about-mission__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.about-mission__title {
  margin-top: 20px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
}
.about-mission__copy p {
  margin-top: 20px; color: var(--neutral-600); font-size: 17px;
  max-width: 520px;
}
.check-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative; padding-left: 28px;
  font-size: 16px; color: var(--neutral-700);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--rm-blue-600);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.1);
}
.check-list li::after {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.about-mission__visual { position: relative; min-height: 540px; overflow: hidden; border-radius: 20px; }
.about-blob {
  position: absolute; inset: -5%;
  background:
    radial-gradient(50% 50% at 40% 40%, var(--rm-blue-400) 0%, transparent 60%),
    radial-gradient(60% 60% at 60% 60%, var(--rm-blue-600) 0%, transparent 70%);
  filter: saturate(105%);
  opacity: 1;
  border-radius: 50%;
}
.about-card {
  position: relative; z-index: 1;
  margin: 60px auto;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.about-card h3 {
  font-size: 36px; font-weight: 800; letter-spacing: -.02em;
  margin: 14px 0 12px;
}
.about-card p { color: var(--neutral-600); line-height: 1.5; }
.about-card__hours {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--rm-blue-600); font-weight: 600; font-size: 14px;
}

/* =========================================================
   VALUES
   ========================================================= */
.values { padding: 84px 0; background: var(--neutral-100); }
.values__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.values__title {
  margin: 20px 0 56px;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1;
}
.values__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.value {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--line);
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--rm-blue-200); }
.value__num {
  display: inline-block; font-size: 14px; font-weight: 700;
  color: var(--rm-blue-600); letter-spacing: .08em;
}
.value h3 {
  margin: 14px 0 12px;
  font-size: 24px; font-weight: 700; letter-spacing: -.01em;
}
.value p { color: var(--neutral-600); font-size: 15px; line-height: 1.55; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 40px 0 120px; background: var(--body); }
.contact__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  align-items: start;
}
.contact-form {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--neutral-700);
  letter-spacing: .02em; text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit; font-size: 15px; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  color: var(--ink);
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-family: inherit;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--rm-blue-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30,91,255,.12);
}
.contact-form__cta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-top: 12px;
}
.contact-form__note { font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }

.contact-form__sent {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form__sent h3 {
  font-size: 28px; font-weight: 700; letter-spacing: -.02em;
  max-width: 420px;
}
.contact-form.is-sent .contact-form__sent { display: flex; }

.contact-card {
  background: var(--neutral-900); color: var(--white);
  border-radius: var(--radius-lg); padding: 36px;
  display: flex; flex-direction: column; gap: 24px;
}
.contact-card h3 {
  font-size: 24px; font-weight: 700; letter-spacing: -.01em;
}
.contact-card__item { display: flex; flex-direction: column; gap: 4px; }
.contact-card__label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--neutral-400); font-weight: 600;
}
.contact-card__item a,
.contact-card__item p,
.contact-card__item address {
  color: var(--white); font-style: normal; font-size: 16px; line-height: 1.5;
}
.contact-card__item a:hover { color: var(--rm-blue-300); }
.contact-availability {
  margin-top: 24px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-pill);
  box-shadow:
    0 12px 28px -12px rgba(15,53,181,.20),
    0 1px 2px rgba(11,14,24,.04);
  font-size: 14px; font-weight: 600;
}
.contact-availability .status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #38c172; box-shadow: 0 0 0 4px rgba(56,193,114,.18);
  display: inline-block;
}

/* Responsive overrides for subpages */
@media (max-width: 1024px) {
  .about-mission__inner { grid-template-columns: 1fr; gap: 40px; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .values__grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .contact-form__row { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   GENERATED PAGE TEMPLATES — body + overview grids
   ========================================================= */
.page-hero__cta { margin-top: 28px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.page-body { max-width: 1280px; margin: 0 auto; padding: 40px var(--gutter) 56px; }
.page-body__inner { max-width: 820px; margin: 0 auto; line-height: 1.65; font-size: 17px; color: var(--neutral-900, #1c2230); }
.page-body__inner h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; margin: 56px 0 18px; letter-spacing: -0.01em; line-height: 1.2; }
.page-body__inner h2:first-child { margin-top: 0; }
.page-body__inner h3 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; line-height: 1.3; }
.page-body__inner h4 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.page-body__inner p { margin: 0 0 18px; }
.page-body__inner ul, .page-body__inner ol { padding-left: 24px; margin: 0 0 22px; }
.page-body__inner li { margin: 0 0 10px; }
.page-body__inner li > p { margin: 0 0 8px; }
.page-body__inner strong { font-weight: 700; color: var(--neutral-900, #0B0E18); }
.page-body__inner table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 53, 181, 0.05);
}
.page-body__inner th, .page-body__inner td {
  padding: 12px 14px; border-bottom: 1px solid #e8ecf2; text-align: left; vertical-align: top;
}
.page-body__inner th { background: #f4f6fb; font-weight: 700; color: #0B0E18; }
.page-body__inner blockquote {
  border-left: 3px solid var(--rm-blue-500, #1E5BFF);
  padding: 8px 0 8px 20px; margin: 28px 0;
  font-style: italic; color: var(--neutral-600, #4b5363);
}
.page-body__inner code { background: #f4f6fb; padding: 2px 6px; border-radius: 4px; font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.page-body__inner pre {
  background: #0B0E18; color: #e9eef8; padding: 18px 20px;
  border-radius: 10px; overflow-x: auto; margin: 24px 0; font-size: 14px;
}
.page-body__inner pre code { background: transparent; color: inherit; padding: 0; }
.page-body__inner a {
  color: var(--rm-blue-500, #1E5BFF);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.page-body__inner a:hover { text-decoration-thickness: 2px; }
.page-body__inner hr { border: 0; border-top: 1px solid #e8ecf2; margin: 40px 0; }

/* Overview grid pages (services, industries, case-studies, insights) */
.overview-grid-wrap { background: var(--body); padding: 20px 0 40px; }
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
}
.overview-card {
  background: #fff;
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: 0 8px 24px rgba(15, 53, 181, 0.06);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(15, 53, 181, 0.05);
  will-change: transform;
}
.overview-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(15, 53, 181, 0.18));
  border-color: rgba(30, 91, 255, 0.22);
}
.overview-card:hover .overview-card__more {
  transform: translateX(3px);
}
.overview-card__more {
  transition: transform .3s var(--ease-out);
}
.overview-card h3 {
  font-size: 22px; font-weight: 700; margin: 0;
  color: #0B0E18; letter-spacing: -0.01em; line-height: 1.25;
}
.overview-card p {
  font-size: 15px; line-height: 1.55; color: var(--neutral-600, #4b5363); margin: 0;
}
.overview-card__more {
  color: var(--rm-blue-500, #1E5BFF); font-weight: 600; font-size: 14px;
  margin-top: auto; padding-top: 4px;
}

/* ===== Badge → title spacing fix (prevents GSAP reveal overlap) ===== */
/* Section titles need more breathing room above so the reveal animation
   (y: 64 slide-up) never crosses the badge during animation. */
.about-us__title,
.process__title,
.benefits__title,
.capabilities__title,
.frameworks__title,
.team__title,
.works__title,
.outcomes__title,
.testimonials__title,
.faq__title,
.cta__title,
.intro__title,
.insights__title,
.consultants__title,
.services__title { margin-top: 32px; }

/* Badges in section heads get explicit bottom margin so titles aren't
   relying on the title's margin-top alone for vertical rhythm. */
section .badge,
.frameworks__head .badge,
.team__head .badge,
.benefits__head .badge,
.process__head .badge,
.capabilities__head .badge,
.about-us__head .badge,
.faq__head .badge { margin-bottom: 8px; display: inline-block; }

/* ===== Font system: Outfit for headings, Public Sans for body ===== */
h1, h2, h3, h4, h5, h6,
.hero__title,
.hero__title-accent,
.about-us__title,
.services__title,
.works__title,
.process__title,
.benefits__title,
.capabilities__title,
.frameworks__title,
.team__title,
.outcomes__title,
.testimonials__title,
.faq__title,
.cta__title,
.intro__title,
.insights__title,
.consultants__title,
.credentials__title,
.manifesto__title,
.page-hero__title,
.accordion__title,
.benefit-card h3,
.capability-card h3,
.framework-tile h3,
.member-card h3,
.process-step h3,
.cs-card__title,
.service-card__title,
.industry-card__name,
.overview-card h3,
.metric__value,
.btn,
.float-card__label,
.capability-hub__name,
.capability-hub__line { font-family: var(--font-heading); }

/* Public Sans gets a touch more letter-spacing relaxation on body copy
   since it's narrower and more accessible than Urbanist. */
body { font-family: var(--font-sans); letter-spacing: -0.005em; }

/* ============================================================
 * Article scaffolding (insights + case studies)
 * Skillbook-style: full-width breadcrumb strip, two-column shell,
 * left rail with author + chapter overview, right main column.
 * ============================================================ */

/* Full-width breadcrumb bar */
.article-crumbs {
  background: var(--neutral-50, #f9fafb);
  border-bottom: 1px solid var(--neutral-200, #e5e7eb);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--neutral-700, #374151);
}
.article-crumbs__list {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0;
  list-style: none;
}
.article-crumbs__item a {
  color: var(--neutral-700, #374151);
  text-decoration: none;
  transition: color 0.18s ease;
}
.article-crumbs__item a:hover { color: var(--rm-blue-700, #1d4ed8); text-decoration: underline; }
.article-crumbs__item--current {
  color: var(--neutral-900, #111827);
  font-weight: 500;
  max-width: 640px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-crumbs__sep { color: var(--neutral-400, #9ca3af); }

/* Two-column shell */
.article-shell {
  max-width: 1280px;
  margin-inline: auto;
  padding: 40px 28px 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: #fff;
}
@media (min-width: 1024px) {
  .article-shell {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 56px;
    padding-top: 48px;
  }
}

/* Left rail */
.article-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1024px) {
  .article-rail {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
  }
}
.rail-card {
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: 14px;
  padding: 20px 22px;
  background: #fff;
}
.rail-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--neutral-900, #111827);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--neutral-200, #e5e7eb);
}
.rail-card__icon { color: var(--rm-blue-700, #1d4ed8); flex-shrink: 0; }

.rail-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rail-author__avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rm-blue-600, #2563eb), var(--rm-blue-800, #1e3a8a));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.rail-author__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rail-author__name {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--neutral-900, #111827);
}
.rail-author__role {
  font-size: 13px;
  color: var(--neutral-600, #4b5563);
  line-height: 1.4;
}
.rail-author__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--neutral-200, #e5e7eb);
  width: 100%;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--rm-blue-700, #1d4ed8);
  text-decoration: none;
  transition: color 0.18s ease, gap 0.18s ease;
}
.rail-author__more:hover { color: var(--rm-blue-800, #1e3a8a); gap: 8px; }

/* Chapter Overview TOC */
.article-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article-toc__item a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--neutral-700, #374151);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.article-toc__item a:hover {
  background: rgba(37, 99, 235, 0.05);
  color: var(--rm-blue-700, #1d4ed8);
}
.article-toc__item.is-active > a {
  position: relative;
  background: rgba(37, 99, 235, 0.08);
  color: var(--rm-blue-700, #1d4ed8);
  font-weight: 600;
}
.article-toc__item.is-active > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: var(--rm-blue-600, #2563eb);
}
.article-toc__item--sub.is-active > a::before { top: 8px; bottom: 8px; }
.article-toc__item--sub {
  padding-left: 14px;
}
.article-toc__item--sub a {
  font-size: 13px;
  color: var(--neutral-500, #6b7280);
}

/* Main column */
.article-main {
  min-width: 0;
  max-width: 760px;
}
.topic-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--rm-blue-50, #eff6ff);
  color: var(--rm-blue-700, #1d4ed8);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease;
}
a.topic-chip:hover { background: var(--rm-blue-100, #dbeafe); }
.topic-chip--soft {
  background: var(--neutral-100, #f3f4f6);
  color: var(--neutral-700, #374151);
}
a.topic-chip--soft:hover { background: var(--neutral-200, #e5e7eb); }

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--neutral-900, #111827);
  margin: 18px 0 28px;
  text-align: left;
}

.article-divider {
  border: 0;
  border-top: 1px solid var(--neutral-200, #e5e7eb);
  margin: 0;
}

.article-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--neutral-600, #4b5563);
  margin: 22px 0;
}
.article-tags__label { font-weight: 500; }

.article-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 0 22px;
}
.article-bar__bits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--neutral-600, #4b5563);
}
.article-bar__bit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-bar__bit svg { color: var(--neutral-500, #6b7280); }
.article-bar__updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: rgb(21, 128, 61);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
}
.article-bar__updated svg { color: rgb(21, 128, 61); }
.article-bar__share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.article-bar__share a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--neutral-200, #e5e7eb);
  display: grid;
  place-items: center;
  color: var(--neutral-600, #4b5563);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.article-bar__share a:hover {
  background: var(--rm-blue-50, #eff6ff);
  color: var(--rm-blue-700, #1d4ed8);
  border-color: var(--rm-blue-200, #bfdbfe);
}
/* Copy-link button: same size/shape as the share anchors, plus a small
 * inline "Copied" tooltip that fades in for ~1.6s after a successful copy. */
.article-bar__copy {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--neutral-200, #e5e7eb);
  background: transparent;
  color: var(--neutral-600, #4b5563);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.article-bar__copy:hover {
  background: var(--rm-blue-50, #eff6ff);
  color: var(--rm-blue-700, #1d4ed8);
  border-color: var(--rm-blue-200, #bfdbfe);
}
.article-bar__copy-status {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--neutral-900);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.article-bar__copy.is-copied .article-bar__copy-status {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Article body typography (overrides where needed) */
.article-body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--neutral-800, #1f2937);
}
.article-body > * { scroll-margin-top: 100px; }
.article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin: 44px 0 18px;
  color: var(--neutral-900, #111827);
}
.article-body h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 32px 0 12px;
  color: var(--neutral-900, #111827);
}
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 22px; }
.article-body li { margin: 8px 0; }
.article-body a { color: var(--rm-blue-700, #1d4ed8); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--rm-blue-800, #1e3a8a); }
.article-body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--rm-blue-500, #3b82f6);
  color: var(--neutral-700, #374151);
  font-style: italic;
}

.article-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 32px 0;
  border-radius: 12px;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.22);
}

/* ============================================================
 * Case-study body overhaul (D-021).
 * ============================================================
 * Scoped to `.article-body--case-study` so Resources articles keep
 * their existing Skillbook-style rhythm. Resets case-study chapters
 * around a stronger editorial vocabulary:
 *   - Numbered chapter header (CSS counter on H2s)
 *   - Lede paragraph treatment on the first <p> after H2
 *   - Surface-card framing on <ul>/<ol>/<table>/<.article-infographic>
 *   - Pull-quote treatment on <blockquote>
 *   - Scroll-fade reveal on each H2 chapter
 *
 * The shell (left rail, scrollspy, reading progress, topic chip, title,
 * tags, share bar, process band) is untouched.
 */
.article-body--case-study {
  counter-reset: cs-chapter;
}
.article-body--case-study h2 {
  position: relative;
  counter-increment: cs-chapter;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--neutral-900);
  margin: 80px 0 24px;
  padding-top: 34px;
  border-top: 1px solid var(--neutral-200);
}
.article-body--case-study h2:first-child,
.article-body--case-study .process-band + h2 {
  margin-top: 32px;
}
/* Numbered chapter kicker — sits above the H2 with a blue accent dash */
.article-body--case-study h2::before {
  content: "Chapter " counter(cs-chapter, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rm-blue-700);
  padding-left: 38px;
  position: relative;
}
.article-body--case-study h2::after {
  content: "";
  position: absolute;
  left: 0;
  top: 34px;
  width: 28px;
  height: 1px;
  background: var(--rm-blue-700);
}
/* Animate each H2 chapter in on scroll. Apply to the H2 itself; the
 * subsequent paragraphs follow naturally. The reveal hook in main.js
 * is extended to add `.is-revealed` to `.article-body--case-study h2`. */
.article-body--case-study h2 {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-body--case-study h2.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Lede paragraph — first <p> after any H2 gets a slightly bigger, darker
 * treatment so the chapter opening reads as a setup, not just body copy. */
.article-body--case-study h2 + p {
  font-size: clamp(17px, 1.4vw, 19.5px);
  line-height: 1.65;
  color: var(--neutral-800);
  font-weight: 500;
  margin-bottom: 24px;
}

/* Lists — convert to surface cards with custom bullet markers. */
.article-body--case-study ul,
.article-body--case-study ol {
  list-style: none;
  margin: 24px 0 28px;
  padding: 24px 28px;
  background: var(--neutral-50, #fafafa);
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  counter-reset: cs-listitem;
}
.article-body--case-study li {
  position: relative;
  padding: 8px 0 8px 30px;
  margin: 0;
  border-bottom: 1px dashed var(--neutral-200);
  line-height: 1.6;
}
.article-body--case-study li:last-child { border-bottom: 0; }
.article-body--case-study ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  width: 14px;
  height: 1px;
  background: var(--rm-blue-700);
}
.article-body--case-study ol li {
  counter-increment: cs-listitem;
}
.article-body--case-study ol li::before {
  content: counter(cs-listitem, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--rm-blue-700);
}
.article-body--case-study li strong:first-child {
  /* Inline lead-in bold ("Active certifications.") gets a brand-mono
   * treatment so each list item reads as a labeled assertion. */
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--neutral-900);
}

/* Tables — wrap in a surface card and remove the existing harsh border. */
.article-body--case-study .table-scroll,
.article-body--case-study table {
  background: var(--neutral-50, #fafafa);
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 8px 8px;
  margin: 32px 0;
  overflow-x: auto;
}
.article-body--case-study table {
  padding: 0;
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  border: 0;
}
.article-body--case-study table th {
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-blue-700);
  padding: 14px 18px;
  border-bottom: 1px solid var(--neutral-200);
  background: var(--white);
}
.article-body--case-study table td {
  padding: 14px 18px;
  border-bottom: 1px dashed var(--neutral-200);
  font-size: 14.5px;
  line-height: 1.55;
}
.article-body--case-study table tr:last-child td { border-bottom: 0; }
.article-body--case-study table tbody tr:hover td {
  background: rgba(21, 69, 224, 0.03);
}

/* Pull-quote treatment for blockquotes — no left-stripe (D-016 bans it). */
.article-body--case-study blockquote {
  position: relative;
  margin: 36px 0;
  padding: 28px 32px 28px 64px;
  border-left: 0;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(21, 69, 224, 0.06) 0%, transparent 60%),
    var(--neutral-50, #fafafa);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  font-style: normal;
  color: var(--neutral-900);
  letter-spacing: -0.01em;
}
.article-body--case-study blockquote::before {
  content: "\201C";
  position: absolute;
  left: 22px;
  top: 14px;
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 1;
  color: var(--rm-blue-500);
  font-weight: 800;
}
.article-body--case-study blockquote p { margin: 0 0 8px; font-weight: 500; font-size: inherit; }
.article-body--case-study blockquote p:last-child { margin-bottom: 0; }

/* Strong inline text inside body paragraphs — give bold-led sentences
 * the same blue dash kicker the .body-xl-rhythm pages use. */
.article-body--case-study p strong:first-child {
  position: relative;
  display: inline;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--neutral-900);
}

/* Images — bigger, less shadow, more editorial. */
.article-body--case-study img {
  margin: 36px 0;
  border-radius: 16px;
  box-shadow: 0 28px 56px -32px rgba(8, 22, 64, 0.28);
}

/* Article infographic block (already rendered for the lede metrics in
 * each case study) — pull into the same surface-card vocabulary. */
.article-body--case-study .article-infographic {
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(21, 69, 224, 0.08) 0%, transparent 60%),
    var(--neutral-50, #fafafa);
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  padding: 28px 32px 30px;
  margin: 36px 0;
}
.article-body--case-study .article-infographic__title {
  font-family: var(--font-heading);
  font-weight: 700;
}
.article-body--case-study .article-infographic__num {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--neutral-900);
}
.article-body--case-study .article-infographic__num sup {
  font-size: 0.4em;
  color: var(--rm-blue-700);
  margin-left: 2px;
}

@media (max-width: 720px) {
  .article-body--case-study h2 { padding-top: 28px; margin-top: 56px; }
  .article-body--case-study h2::before { padding-left: 0; }
  .article-body--case-study h2::after { display: none; }
  .article-body--case-study ul,
  .article-body--case-study ol { padding: 18px 18px 18px 22px; }
  .article-body--case-study blockquote { padding: 22px 22px 22px 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-body--case-study h2 { opacity: 1; transform: none; transition: none; }
}
.article-body img + em,
.article-body img + p > em:first-child {
  display: block;
  margin-top: -18px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--neutral-500, #6b7280);
  font-style: italic;
  text-align: center;
}

/* Reading progress bar (fixed at top of viewport, articles only) */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}
.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rm-blue-500, #3b82f6) 0%, var(--rm-blue-700, #1d4ed8) 100%);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.35);
  transition: width 0.08s linear;
  will-change: width;
  transform-origin: left center;
}

.author-card {
  padding: 56px 24px;
  background: var(--neutral-50, #f9fafb);
  border-top: 1px solid var(--neutral-200, #e5e7eb);
  border-bottom: 1px solid var(--neutral-200, #e5e7eb);
}
.author-card__inner {
  max-width: 920px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.author-card__avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rm-blue-600, #2563eb), var(--rm-blue-800, #1e3a8a));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.author-card__body { flex: 1; min-width: 0; }
.author-card__kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-500, #6b7280);
  margin-bottom: 6px;
}
.author-card__name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--neutral-900, #111827);
}
.author-card__role {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--neutral-600, #4b5563);
}
.author-card__bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--neutral-700, #374151);
}

.related-articles {
  padding: 72px 24px 88px;
  background: var(--neutral-50, #f9fafb);
}
.related-articles__inner { max-width: 1120px; margin-inline: auto; }
.related-articles__head { text-align: center; margin-bottom: 36px; }
.related-articles__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  margin: 14px 0 0;
  color: var(--neutral-900, #111827);
}
.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.18);
  border-color: var(--rm-blue-300, #93c5fd);
}
.related-card__kicker {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-blue-600, #2563eb);
}
.related-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: var(--neutral-900, #111827);
}
.related-card__more {
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--rm-blue-600, #2563eb);
}

@media (max-width: 720px) {
  .author-card__inner { flex-direction: column; gap: 18px; }
  .article-summary { padding: 18px 20px; }
  .article-summary__body { font-size: 16px; }
  .related-articles { padding: 56px 18px 64px; }
}

/* ============================================================
 * Homepage: Logo band (Skillbook-style marquee)
 * ============================================================ */
.logo-band {
  background: #f8fafc;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 56px 0 60px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.logo-band__head {
  text-align: center;
  margin-bottom: 36px;
  padding: 0 24px;
}
.logo-band__kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
}
.logo-band__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
}
.logo-band__title span {
  color: var(--rm-blue-600, #2563eb);
  font-weight: 800;
}
.logo-band__marquee {
  position: relative;
  overflow: hidden;
}
.logo-band__marquee::before,
.logo-band__marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.logo-band__marquee::before { left: 0;  background: linear-gradient(to right, #f8fafc, transparent); }
.logo-band__marquee::after  { right: 0; background: linear-gradient(to left,  #f8fafc, transparent); }
.logo-band__track {
  display: flex;
  align-items: center;
  gap: 64px;
  animation: logoBandScroll 36s linear infinite;
  width: max-content;
}
.logo-band__track:hover { animation-play-state: paused; }
@keyframes logoBandScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-band__logo {
  height: 44px;
  width: 117px;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(30%);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}
.logo-band__logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.08);
}
@media (prefers-reduced-motion: reduce) {
  .logo-band__track { animation: none; }
}

/* ============================================================
 * Homepage: Industry slider (auto-scrolling card marquee)
 * ============================================================ */
.industry-slider {
  padding: 72px 0 56px;
  background: #fff;
  position: relative;
}
.industry-slider__head {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 24px;
  text-align: center;
}
.industry-slider__title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 14px 0 16px;
  color: var(--neutral-900, #111827);
}
.industry-slider__lede {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--neutral-600, #4b5563);
  margin: 0;
}
.industry-slider__marquee {
  position: relative;
  overflow: hidden;
}
.industry-slider__marquee::before,
.industry-slider__marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 96px;
  z-index: 2;
  pointer-events: none;
}
.industry-slider__marquee::before { left: 0;  background: linear-gradient(to right, #fff, transparent); }
.industry-slider__marquee::after  { right: 0; background: linear-gradient(to left,  #fff, transparent); }
.industry-slider__track {
  display: flex;
  gap: 20px;
  padding: 4px 24px;
  animation: industrySliderScroll 48s linear infinite;
  width: max-content;
}
.industry-slider__track:hover { animation-play-state: paused; }
@keyframes industrySliderScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.industry-card {
  flex: 0 0 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 24px 22px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.industry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.4);
}
.industry-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.04) contrast(1.02);
}
/* Bottom black band so text always reads */
.industry-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.28) 34%,
    rgba(0, 0, 0, 0.72) 72%,
    rgba(0, 0, 0, 0.9) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.industry-card__icon {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}
.industry-card__body {
  position: relative;
  z-index: 2;
}
.industry-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.industry-card p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  .industry-slider__track { animation: none; }
}

/* ============================================================
 * Homepage: Why-grid inside merged About + Why Rockmere
 * ============================================================ */
.why-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* Inline frameworks (now nested inside services section) */
.frameworks--inline { margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--neutral-200, #e5e7eb); }

/* Feature case study CTA button alignment */
.works__cta { margin-top: 18px; display: inline-flex; }

/* Item 1: bump body font size globally */
html { font-size: 17px; }
@media (max-width: 720px) { html { font-size: 16px; } }

/* ============================================================
 * Forms: contact checkbox group + careers application form
 * ============================================================ */
.contact-form__checks,
.apply-form__checks {
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 4px 0 0;
  /* Two-column grid for the option list; legend spans both columns. */
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  row-gap: 0;
}
.contact-form__checks legend,
.apply-form__checks legend {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--neutral-900, #111827);
  padding: 0 6px;
  grid-column: 1 / -1;
  margin-bottom: 8px;
}
@media (max-width: 560px) {
  .contact-form__checks,
  .apply-form__checks { grid-template-columns: 1fr; }
}
.contact-form__checks legend small,
.apply-form__checks legend small {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--neutral-500, #6b7280);
}
.contact-form__checks .checkbox,
.apply-form__checks .checkbox {
  display: flex;
  /* Reset: form labels default to flex-direction:column (label text above
   * input). A checkbox option must read as a row — box on the left, text on
   * the right, left-aligned. Without this it stacks centered on mobile. */
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
  padding: 10px 6px;
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--neutral-800, #1f2937);
  transition: background 0.18s ease;
}
.contact-form__checks .checkbox:hover,
.apply-form__checks .checkbox:hover {
  background: var(--rm-blue-50, #eff6ff);
}
.contact-form__checks .checkbox input,
.apply-form__checks .checkbox input {
  accent-color: var(--rm-blue-600, #2563eb);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0 16px;
  max-width: 760px;
}
.apply-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.apply-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-700, #374151);
}
.apply-form label > span:not(.checkbox > span) {
  color: var(--neutral-900, #111827);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
}
.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="url"],
.apply-form input[type="file"],
.apply-form textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--neutral-300, #d1d5db);
  border-radius: 10px;
  background: #fff;
  color: var(--neutral-900, #111827);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.apply-form input:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--rm-blue-500, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.apply-form textarea { resize: vertical; min-height: 110px; }
.apply-form__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}
.apply-form__note {
  font-size: 13px;
  color: var(--neutral-500, #6b7280);
  margin: 0;
}
.apply-form__sent {
  display: none;
  padding: 24px;
  background: var(--rm-blue-50, #eff6ff);
  border-radius: 12px;
  text-align: center;
}
.apply-form.is-sent .apply-form__sent { display: block; }
.apply-form.is-sent > *:not(.apply-form__sent):not(legend) { display: none; }
@media (max-width: 720px) {
  .apply-form__row { grid-template-columns: 1fr; }
}

/* About page Consultants preview section */
.about-consultants {
  padding: 96px 24px 80px;
  background: #fff;
}
.about-consultants__inner { max-width: 1120px; margin-inline: auto; }
.about-consultants__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.about-consultants__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin: 14px 0 12px;
  color: var(--neutral-900, #111827);
}
.about-consultants__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-600, #4b5563);
  margin: 0 0 22px;
}
.about-consultants__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

/* Overview card industry/topic chip */
.overview-card { position: relative; }
.overview-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: var(--rm-blue-50, #eff6ff);
  color: var(--rm-blue-700, #1d4ed8);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease;
}
a.overview-card__chip:hover { background: var(--rm-blue-100, #dbeafe); }

/* Article infographic — editorial "figure" treatment.
   Engineering-notebook style, not B2B marketing slide. No panel, no pill,
   no boxed stats. Just typography + a thin progress bar per stat. */
.article-infographic {
  margin: 44px 0;
  padding: 26px 0 28px;
  background: transparent;
  border-top: 1px solid var(--neutral-900, #111827);
  border-bottom: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: 0;
  position: relative;
  counter-increment: figure;
}
.article-infographic::before {
  content: "Fig. " counter(figure);
  position: absolute;
  top: -10px;
  left: 0;
  padding-right: 12px;
  background: #fff;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--neutral-900, #111827);
  text-transform: uppercase;
}
.article-body { counter-reset: figure; }
.article-infographic__head { margin-bottom: 26px; padding-top: 4px; }
.article-infographic__label {
  /* Hide the loud "BY THE NUMBERS" pill. The Fig. N caption replaces it. */
  display: none;
}
.article-infographic__title {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  color: var(--neutral-600, #4b5563);
  letter-spacing: 0;
  text-transform: none;
}
.article-infographic__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 36px 32px;
}
.article-infographic__stat {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.article-infographic__num {
  font-family: var(--font-heading);
  font-size: clamp(42px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: var(--neutral-900, #111827);
  letter-spacing: -0.025em;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.article-infographic__num sup {
  font-size: 0.42em;
  font-weight: 700;
  color: var(--rm-blue-700, #1d4ed8);
  margin-left: 3px;
  vertical-align: 0.65em;
  letter-spacing: 0;
}
/* Thin accent bar between number and label. Varies by position so the
   block reads as a chart, not three identical tiles. */
.article-infographic__stat::after {
  content: "";
  display: block;
  height: 3px;
  margin: 14px 0 12px;
  background: var(--neutral-900, #111827);
  border-radius: 2px;
  transform-origin: left;
}
.article-infographic__stat:nth-child(1)::after { width: 88%; background: var(--rm-blue-700, #1d4ed8); }
.article-infographic__stat:nth-child(2)::after { width: 56%; background: var(--neutral-900, #111827); }
.article-infographic__stat:nth-child(3)::after { width: 72%; background: var(--neutral-700, #374151); }
.article-infographic__stat:nth-child(4)::after { width: 44%; background: var(--rm-blue-500, #3b82f6); }
.article-infographic__lbl {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--neutral-700, #374151);
  font-weight: 500;
  max-width: 220px;
}

/* Article body: markdown table styling */
.article-body table,
.page-body__inner table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 15px;
}
.article-body table thead,
.page-body__inner table thead {
  background: var(--neutral-50, #f9fafb);
  border-bottom: 2px solid var(--neutral-200, #e5e7eb);
}
.article-body table th,
.page-body__inner table th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--neutral-700, #374151);
  text-transform: uppercase;
}
.article-body table td,
.page-body__inner table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--neutral-200, #e5e7eb);
  vertical-align: top;
  line-height: 1.55;
  color: var(--neutral-800, #1f2937);
}
.article-body table tr:hover td,
.page-body__inner table tr:hover td {
  background: rgba(37, 99, 235, 0.03);
}

/* Responsive markdown-table wrapper. Generator wraps every <table> from
 * markdown in `<div class="table-scroll">…</div>` so wide comparison tables
 * (4-column SAFe vs LeSS vs Nexus, case-study metric ledgers, etc.) scroll
 * horizontally inside the column instead of pushing the page wider than the
 * viewport. Fixes the 10 mobile-overflow pages flagged in QA 2026-05-26. */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  /* A faint inner shadow on the right edge hints that the table can be
   * scrolled when it's wider than the viewport. */
  background:
    linear-gradient(to right, var(--white) 30%, rgba(255,255,255,0)) left center / 32px 100% no-repeat,
    linear-gradient(to right, rgba(255,255,255,0), var(--white) 70%) right center / 32px 100% no-repeat,
    radial-gradient(farthest-side at left center, rgba(0,0,0,0.08), transparent) left center / 12px 100% no-repeat,
    radial-gradient(farthest-side at right center, rgba(0,0,0,0.08), transparent) right center / 12px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.table-scroll > table {
  margin: 0;
  min-width: 480px;
}

/* ============================================================
 * Page hero with banner image (industry pages)
 * ============================================================ */
.page-hero--banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  isolation: isolate;
  padding: 96px 24px 100px;
  color: #fff;
  overflow: hidden;
}
.page-hero--banner .page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}
.page-hero--banner .badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.page-hero--banner .badge__spark { color: #fff; }
.page-hero--banner .page-hero__title {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.32);
}
.page-hero--banner .page-hero__sub {
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  margin-inline: auto;
}
.page-hero__decor {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
  pointer-events: none;
  animation: heroDecorSpin 60s linear infinite;
}
@keyframes heroDecorSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}
@media (max-width: 720px) {
  .page-hero--banner { padding: 72px 20px 80px; }
  .page-hero__decor { width: 200px; height: 200px; right: 0; opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__decor { animation: none; }
}

/* ============================================================
 * H2 icon (decoration to break monotony in body sections)
 * ============================================================ */
.page-body__inner h2 {
  position: relative;
}
.page-body__inner h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rm-blue-500, #3b82f6), var(--rm-blue-700, #1d4ed8));
}

/* ============================================================
 * Empty-space decorative grid background for section transitions
 * ============================================================ */
.page-body__inner::before {
  content: "";
  position: absolute;
  top: 40%;
  right: -120px;
  width: 240px;
  height: 240px;
  background-image: radial-gradient(circle at center, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
.page-body { position: relative; overflow: hidden; }
.page-body__inner { position: relative; z-index: 1; }

/* ============================================================
 * Accent shapes for section transitions on industry / service pages
 * Quiet, mostly subliminal — just enough to break empty white.
 * ============================================================ */
.section-accent {
  position: relative;
  height: 1px;
  margin: 60px 0;
  background: linear-gradient(90deg, transparent, var(--neutral-200, #e5e7eb) 30%, var(--neutral-200, #e5e7eb) 70%, transparent);
}
.section-accent::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 14px;
  color: var(--rm-blue-500, #3b82f6);
  font-size: 14px;
}

/* ============================================================
 * Industries hub page (industries-overview.html)
 * ============================================================ */
.industries-hub-hero {
  position: relative;
  padding: 100px 24px 80px;
  /* Two-tone treatment matching home + resources heroes: soft Rockmere-blue
     radial glow at top fading into the body neutral. */
  background:
    radial-gradient(120% 80% at 50% -10%, var(--rm-blue-50) 0%, transparent 60%),
    var(--body);
  overflow: hidden;
  text-align: center;
}
.industries-hub-hero__decor {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 240px;
  opacity: 0.55;
  pointer-events: none;
}
.industries-hub-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin-inline: auto;
}
.industries-hub-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--neutral-900, #111827);
  margin: 14px 0 18px;
}
.industries-hub-hero__sub {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--neutral-600, #4b5563);
  max-width: 720px;
  margin: 0 auto 36px;
}
.industries-hub-hero__stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.industries-hub-hero__stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.industries-hub-hero__stats strong {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  color: var(--rm-blue-700, #1d4ed8);
  line-height: 1;
}
.industries-hub-hero__stats span {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--neutral-600, #4b5563);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.industries-hub-grid-wrap {
  padding: 72px 24px;
  background: #fff;
}
.industries-hub-grid {
  max-width: 1240px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.industry-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 28px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  isolation: isolate;
}
.industry-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -22px rgba(15, 23, 42, 0.4);
}
.industry-hub-card__icon {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(8px);
}
.industry-hub-card__body {
  position: relative;
  z-index: 2;
}
.industry-hub-card__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #fff;
}
.industry-hub-card__excerpt {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
}
.industry-hub-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #fff;
  transition: gap 0.18s ease;
}
.industry-hub-card:hover .industry-hub-card__more { gap: 10px; }

@media (max-width: 720px) {
  .industries-hub-hero { padding: 72px 20px 64px; }
  .industries-hub-hero__stats { gap: 32px; }
  .industry-hub-card { min-height: 280px; }
}

/* ============================================================
 * Case-studies hub (case-studies.html)
 * ============================================================ */
.case-hub-hero {
  position: relative;
  padding: 96px 24px 76px;
  /* Two-tone treatment matching home + resources heroes: soft Rockmere-blue
     radial glow at top fading into the body neutral. */
  background:
    radial-gradient(120% 80% at 50% -10%, var(--rm-blue-50) 0%, transparent 60%),
    var(--body);
  overflow: hidden;
  text-align: center;
}
.case-hub-hero__decor {
  position: absolute;
  inset: auto 0 -10px 0;
  width: 100%;
  height: 200px;
  opacity: 0.6;
  pointer-events: none;
}
.case-hub-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin-inline: auto;
}
.case-hub-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--neutral-900, #111827);
  margin: 14px 0 16px;
}
.case-hub-hero__sub {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--neutral-600, #4b5563);
  max-width: 680px;
  margin: 0 auto 32px;
}
.case-hub-hero__stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.case-hub-hero__stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.case-hub-hero__stats strong {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--rm-blue-700, #1d4ed8);
  line-height: 1;
}
.case-hub-hero__stats strong sup { font-size: 0.55em; font-weight: 700; vertical-align: super; }
.case-hub-hero__stats span {
  font-size: 12px;
  color: var(--neutral-600, #4b5563);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case-hub-grid-wrap {
  padding: 72px 24px;
  background: #fff;
}
.case-hub-grid {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  /* min() guard so the 380px track never exceeds the viewport on narrow phones
   * (was causing horizontal clip at 320-390px). */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 22px;
}
.case-hub-card {
  position: relative;
  min-height: 340px;
  padding: 28px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  isolation: isolate;
}
.case-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -22px rgba(15, 23, 42, 0.4);
}
.case-hub-card__chip {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.case-hub-card__body {
  position: relative;
  z-index: 2;
}
.case-hub-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #fff;
}
.case-hub-card__excerpt {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
}
.case-hub-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #fff;
  transition: gap 0.18s ease;
}
.case-hub-card:hover .case-hub-card__more { gap: 10px; }
@media (max-width: 720px) {
  .case-hub-hero { padding: 72px 20px 60px; }
  .case-hub-hero__stats { gap: 28px; }
  .case-hub-card { min-height: 290px; padding: 22px; }
}

/* ============================================================
 * Resources hub (resources.html) — Skillbook-style
 * ============================================================ */
.res-hero {
  position: relative;
  padding: 100px 24px 72px;
  background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
  text-align: center;
  overflow: hidden;
}
.res-hero__inner {
  max-width: 880px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
/* ---------- Resources hub XL hero ----------
 * Matches the canonical XL hero scale used on detail pages + the other
 * 5 hubs (D-020): 240px top padding, 96px bottom (tight because the
 * featured row sits right below the hero), title clamp(52, 7.4vw, 96px),
 * and the right-anchored gradient orb + 4 corner-anchored capability
 * floats. The duplicate-class specificity hack mirrors the pattern used
 * by the other custom hub heroes to beat the existing `.res-hero__title`
 * rule defined further down the file. */
.res-hero--xl.res-hero--xl {
  padding-top: 240px;
  padding-bottom: clamp(40px, 6vw, 72px);
  background: var(--body);
}
.res-hero--xl.res-hero--xl .res-hero__inner {
  max-width: 1080px;
}
.res-hero--xl.res-hero--xl .res-hero__title {
  font-size: clamp(40px, 6vw, 80px) !important;
  letter-spacing: -0.035em !important;
  line-height: 0.98 !important;
}
.res-hero--xl.res-hero--xl .res-hero__sub {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 32px;
}
.res-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--neutral-900, #111827);
  margin: 14px 0 20px;
}
.res-hero__sub {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--neutral-600, #4b5563);
  max-width: 720px;
  margin: 0 auto 32px;
}
.res-hero__cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.res-featured { padding: 72px 24px 56px; background: #fff; }
.res-featured__inner { max-width: 1240px; margin-inline: auto; }
.res-featured__head { text-align: center; margin-bottom: 28px; }
.res-featured__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  margin: 12px 0 0;
  color: var(--neutral-900, #111827);
}
.res-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.res-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--neutral-100, #f3f4f6);
  color: var(--neutral-700, #374151);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.res-chip.is-active {
  background: var(--rm-blue-600, #2563eb);
  color: #fff;
}
.res-chip:not(.is-active):hover { background: var(--rm-blue-50, #eff6ff); color: var(--rm-blue-700, #1d4ed8); }
/* Touch targets: meet the 44px minimum on phones so filter chips are easy to tap. */
@media (max-width: 768px) {
  .res-chip { min-height: 44px; padding: 10px 18px; }
}

.res-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.res-feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.res-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -22px rgba(15, 23, 42, 0.2);
  border-color: var(--rm-blue-300, #93c5fd);
}
.res-feature-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.res-feature-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-600, #4b5563);
}
.res-feature-card__topic {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--rm-blue-50, #eff6ff);
  color: var(--rm-blue-700, #1d4ed8);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.res-feature-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0;
  color: var(--neutral-900, #111827);
}
.res-feature-card__excerpt {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 6px;
  color: var(--neutral-600, #4b5563);
}
.res-feature-card__more {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--rm-blue-700, #1d4ed8);
}

.res-all { padding: 80px 24px 96px; background: var(--neutral-50, #f9fafb); }
.res-all__inner { max-width: 1240px; margin-inline: auto; }
.res-all__head { text-align: center; margin-bottom: 32px; }
.res-all__title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--neutral-900, #111827);
}
.res-all__sub { color: var(--neutral-600, #4b5563); font-size: 15px; margin: 0; }

.res-toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 32px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: 14px;
}
.res-search {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--neutral-50, #f9fafb);
  border: 1px solid transparent;
  transition: border-color 0.18s ease;
}
.res-search:focus-within { border-color: var(--rm-blue-300, #93c5fd); background: #fff; }
.res-search svg { color: var(--neutral-500, #6b7280); flex-shrink: 0; }
.res-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--neutral-900, #111827);
  outline: none;
}
.res-filters { display: flex; gap: 10px; }
.res-filters select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--neutral-200, #e5e7eb);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--neutral-700, #374151);
  cursor: pointer;
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.res-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.res-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.22);
}
.res-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--neutral-100, #f3f4f6);
}
.res-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--neutral-800, #1f2937);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.res-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}
.res-card__topic {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--rm-blue-50, #eff6ff);
  color: var(--rm-blue-700, #1d4ed8);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
}
.res-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin: 2px 0;
  color: var(--neutral-900, #111827);
}
.res-card__excerpt {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 6px;
  color: var(--neutral-600, #4b5563);
}
.res-card__more {
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--rm-blue-700, #1d4ed8);
}

/* ============================================================
 * Resource type variants: video / event / webinar
 * ============================================================ */
.res-card__badge--video   { background: rgba(220, 38, 38, 0.92); color: #fff; }
.res-card__badge--webinar { background: rgba(124, 58, 237, 0.92); color: #fff; }
.res-card__badge--event   { background: rgba(5, 150, 105, 0.92); color: #fff; }
.res-card__badge--guide   { background: rgba(245, 158, 11, 0.92); color: #fff; }

.res-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.res-card:hover .res-card__play { opacity: 1; }
.res-card__play svg {
  background: rgba(220, 38, 38, 0.92);
  border-radius: 50%;
  padding: 14px;
  width: 56px;
  height: 56px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.res-card__duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}
.res-card__datestamp {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--neutral-900, #111827);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

/* Video embed inside article body */
.video-embed {
  margin: 0 0 32px;
}
.video-embed__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.4);
}
.video-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--neutral-100, #f3f4f6);
  color: var(--neutral-700, #374151);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
}
.video-embed__meta svg { color: var(--neutral-500, #6b7280); }

/* Event/Webinar detail card inside article body */
.event-detail {
  margin: 0 0 32px;
  padding: 26px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rm-blue-50, #eff6ff), #fff 70%);
  border: 1px solid var(--rm-blue-100, #dbeafe);
}
.event-detail__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.event-detail__kicker {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-blue-700, #1d4ed8);
}
.event-detail__status {
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.event-detail__status--open    { background: rgba(5, 150, 105, 0.12); color: rgb(5, 95, 70); }
.event-detail__status--limited { background: rgba(245, 158, 11, 0.18); color: rgb(146, 64, 14); }
.event-detail__status--closed  { background: var(--neutral-200, #e5e7eb); color: var(--neutral-700, #374151); }
.event-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin: 0 0 20px;
}
.event-detail__grid > div { display: flex; flex-direction: column; gap: 4px; }
.event-detail__grid dt {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-500, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.event-detail__grid dd {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--neutral-900, #111827);
}
.event-detail__register {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Force legible white label on the saturated blue button (was inheriting a
   * dark slate text colour from the card context, failing WCAG AA). */
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.event-detail__register:link,
.event-detail__register:visited,
.event-detail__register:hover {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* Featured-card variant badges (override default colours) */
/* Featured cards reuse the type-badge classes for color, but the base
 * .res-card__badge is position:absolute (it overlays the thumbnail in the
 * regular grid). In a featured card there is no positioning context, so the
 * badges escaped and stacked at the page's top-left corner. Reset them to flow
 * inline inside .res-feature-card__row. */
.res-feature-card .res-card__badge {
  position: static;
  top: auto;
  left: auto;
}
.res-feature-card .res-card__badge--video   { background: rgba(220, 38, 38, 0.92); color: #fff; }
.res-feature-card .res-card__badge--webinar { background: rgba(124, 58, 237, 0.92); color: #fff; }
.res-feature-card .res-card__badge--event   { background: rgba(5, 150, 105, 0.92); color: #fff; }
.res-feature-card .res-card__badge--guide   { background: rgba(245, 158, 11, 0.92); color: #fff; }
.res-feature-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--neutral-700, #374151);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
}
.res-card__thumb { position: relative; }

/* Hub-card image dimming — keeps focal subject readable through the gradient overlay */
.industry-hub-card,
.case-hub-card {
  background-blend-mode: multiply, normal;
  background-color: #0f172a;
}
.industry-hub-card:hover,
.case-hub-card:hover {
  background-blend-mode: multiply, normal;
}

/* ============================================================
 * Card contrast pass: solid badges, solid chips, text shadows,
 * darker bottom gradient so titles always read.
 * ============================================================ */

/* RESOURCES — make all type badges fully opaque + drop-shadow */
.res-card__badge {
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
  font-size: 12.5px;
  /* default (Article) — bump to fully opaque dark slate */
  background: rgba(15, 23, 42, 0.95) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.res-card__badge--video   { background: #dc2626 !important; color: #fff !important; }
.res-card__badge--webinar { background: #7c3aed !important; color: #fff !important; }
.res-card__badge--event   { background: #059669 !important; color: #fff !important; }
.res-card__badge--guide   { background: #f59e0b !important; color: #111 !important; }
.res-card__duration,
.res-card__datestamp {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  font-weight: 700;
}

/* CASE-STUDIES HUB — chip becomes solid brand blue, title + excerpt get text-shadow,
   bottom gradient solidifies to near-black so text always lifts. */
.case-hub-card__chip {
  background: var(--rm-blue-600, #2563eb) !important;
  border: 1px solid var(--rm-blue-700, #1d4ed8);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  backdrop-filter: none;
}
.case-hub-card__title {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.case-hub-card__excerpt {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  font-weight: 500;
}
.case-hub-card__more {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
/* Add a solid dark band at the bottom of each card, behind the text block */
.case-hub-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 64%;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 35%,
    rgba(0, 0, 0, 0.85) 70%,
    rgba(0, 0, 0, 0.96) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.case-hub-card__body, .case-hub-card__chip { z-index: 2; }

/* INDUSTRIES HUB — same treatment */
.industry-hub-card__icon {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
  color: #fff !important;
}
.industry-hub-card__title {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.industry-hub-card__excerpt {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  font-weight: 500;
}
.industry-hub-card__more {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.industry-hub-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 35%,
    rgba(0, 0, 0, 0.82) 70%,
    rgba(0, 0, 0, 0.95) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.industry-hub-card__body, .industry-hub-card__icon { z-index: 2; }

/* ============================================================
 * Resources hub: two-row chip filters + empty state + grid align
 * ============================================================ */
.res-chips-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.res-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 0;
}
.res-chips__label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neutral-500, #6b7280);
  min-width: 48px;
  flex-shrink: 0;
}
.res-chips--type .res-chip { font-size: 13px; }
.res-chips--type .res-chip[data-filter="video"].is-active   { background: #dc2626; }
.res-chips--type .res-chip[data-filter="webinar"].is-active { background: #7c3aed; }
.res-chips--type .res-chip[data-filter="event"].is-active   { background: #059669; }
.res-chips--type .res-chip[data-filter="article"].is-active { background: #0f172a; }

/* Resources grid: pin cards to start so partial last row aligns left
   (Already default for grid; explicit for clarity.) */
.res-grid {
  justify-content: start;
  justify-items: stretch;
}

/* Empty state when filters produce no matches */
.res-empty {
  margin-top: 24px;
  padding: 48px 24px;
  border: 1px dashed var(--neutral-300, #d1d5db);
  border-radius: 16px;
  background: var(--neutral-50, #f9fafb);
  text-align: center;
}
.res-empty__inner {
  max-width: 480px;
  margin-inline: auto;
  color: var(--neutral-700, #374151);
}
.res-empty svg { color: var(--neutral-400, #9ca3af); margin-bottom: 16px; }
.res-empty h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--neutral-900, #111827);
}
.res-empty p {
  font-family: var(--font-sans);
  font-size: 15px;
  margin: 0;
}
.res-empty__reset {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--rm-blue-700, #1d4ed8);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.res-empty__reset:hover { color: var(--rm-blue-800, #1e3a8a); }

@media (max-width: 720px) {
  .res-chips-stack { gap: 10px; }
  .res-chips__label { min-width: auto; width: 100%; }
}

/* ============================================================
   Visual modules for internal pages (services, industries, about,
   case studies hub overflow, careers). Adds breadcrumbs that work
   across all pages plus a richer visual rhythm so content-heavy
   pages don't feel like a wall of text.
   Pass added 2026-05-26.
   ============================================================ */

/* --- Lighter breadcrumb variant for non-article internal pages ---
 * The site-header is `position: fixed; top: 18px` (~60px tall), so the
 * first ~98px of the viewport is covered by the floating pill nav.
 * Without top padding here, the breadcrumbs render UNDER the pill on
 * every internal page. 100px clears the pill comfortably (18 + 60 + 22
 * breathing room) and matches the nav offset used by other sticky
 * elements on the site (e.g. `.team__head { top: 120px }`).
 *
 * Because the breadcrumb now provides the nav clearance, the hero
 * directly below can shed most of its 240px top padding — see the
 * sibling-selector rule further down that targets every XL hero
 * variant when it follows a breadcrumb. */
.page-crumbs {
  background: #fff;
  border-bottom: 1px solid var(--neutral-100, #eef0f5);
  padding: 100px 28px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--neutral-700, #4b5563);
}
.page-crumbs__list {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0;
  list-style: none;
}
.page-crumbs__item a {
  color: var(--neutral-700, #4b5563);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease;
}
.page-crumbs__item a:hover { color: var(--rm-blue-700, #1d4ed8); }
.page-crumbs__item a svg { opacity: 0.7; }
.page-crumbs__item--current {
  color: var(--neutral-900, #111827);
  font-weight: 600;
  max-width: 640px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-crumbs__sep { color: var(--neutral-400, #b6bcc7); }

/* When the hero has a dark banner, the breadcrumb above it stays on white;
   add a subtle wash to make the seam feel intentional. */
.page-hero--banner + .page-body,
.page-crumbs + .page-hero--banner { /* no-op selector kept for clarity */ }

/* Trim hero top padding when a breadcrumb sits above it — breadcrumb
 * already provides the pill-nav clearance, so the hero doesn't need to
 * carry the full 240px buffer that was sized for breadcrumb-less pages. */
.page-crumbs + .page-hero,
.page-crumbs + .page-hero--xl.page-hero--xl,
.page-crumbs + .industries-hub-hero--xl.industries-hub-hero--xl,
.page-crumbs + .case-hub-hero--xl.case-hub-hero--xl,
.page-crumbs + .res-hero--xl.res-hero--xl {
  padding-top: clamp(52px, 6.5vw, 104px);
}


/* ============================================================
   Hub-distinctive editorial primitives (D-019 final).
   Outfit + Public Sans only. No serif. No pills, no blue
   left-border accents, no numbered circle badges. Each hub has
   its own distinct visual vocabulary so Industries, Services,
   and Case Studies do not look like color-swapped clones.
   ============================================================ */

/* --- Shared section wrapper. Used by hub-distinctive sections only.
   Never applied to homepage or Resources hub. --- */
.sec {
  position: relative;
  padding: 76px 28px;
  background: #fff;
  color: var(--neutral-900);
}
.sec[data-bg="paper"]   { background: #FAFBFD; }
.sec[data-bg="tint"]    { background: #F4F6FB; }
.sec[data-bg="navy"]    {
  background:
    radial-gradient(circle at 12% 18%, rgba(30,91,255,0.10) 0%, transparent 48%),
    radial-gradient(circle at 88% 78%, rgba(59,130,246,0.07) 0%, transparent 42%),
    #0B0E18;
  color: #fff;
}
.sec[data-bg="navy"] p,
.sec[data-bg="navy"] li,
.sec[data-bg="navy"] td { color: rgba(255,255,255,0.78); }
.sec[data-bg="navy"] h1,
.sec[data-bg="navy"] h2,
.sec[data-bg="navy"] h3,
.sec[data-bg="navy"] strong,
.sec[data-bg="navy"] th { color: #fff; }
.sec__inner {
  max-width: 1180px;
  margin-inline: auto;
}
.sec__head {
  margin-bottom: 56px;
  max-width: 880px;
}
/* Section titles match homepage H2 essence: Outfit 800, big, tight tracking. */
.sec__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: inherit;
  margin: 22px 0 20px;
  text-wrap: balance;
}
.sec__lead {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--neutral-600);
  margin: 0;
  font-weight: 400;
  max-width: 700px;
}
.sec[data-bg="navy"] .sec__lead { color: rgba(255,255,255,0.7); }

/* Restore the sparked ✦ Kicker badge used across the homepage so
   internal-page sections share the same eyebrow vocabulary. */
.sec__head .badge,
.sec .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--rm-blue-700, #1545E0);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--neutral-200);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.sec__head .badge__spark,
.sec .badge__spark { color: var(--rm-blue-600, #1E5BFF); }
.sec[data-bg="navy"] .badge {
  background: rgba(255,255,255,0.06);
  color: rgba(141, 174, 255, 1);
  border-color: rgba(255,255,255,0.10);
  box-shadow: none;
}

/* Page-hero on internal pages: match homepage H2 scale + weight (Outfit 800). */
.page-hero .page-hero__title.page-hero__title,
.page-hero--banner .page-hero__title.page-hero__title {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  font-size: clamp(48px, 6.5vw, 76px) !important;
  line-height: 1.05 !important;
}
/* XL hero variant overrides the locked-down sizing above — bigger title to
 * carry the larger composition, but capped so two-word service names still
 * fit on a single line inside the 1080px content container. Same specificity
 * hack so it wins cleanly against the earlier base rule. */
.page-hero--xl .page-hero__title.page-hero__title {
  /* Capped at 96px so 22-character brand titles like "RAG Systems & AI Agents"
   * fit on a single line inside the 1080px content container. */
  font-size: clamp(40px, 6vw, 80px) !important;
  letter-spacing: -0.035em !important;
  line-height: 0.98 !important;
}
.industries-hub-hero__title.industries-hub-hero__title,
.case-hub-hero__title.case-hub-hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(48px, 6.5vw, 76px);
  line-height: 1.05;
}

/* --- Services hub: horizontal delivery timeline --- */
.timeline {
  position: relative;
  margin-top: 24px;
}
.timeline__track {
  position: relative;
  height: 48px;
  border-top: 1px solid var(--neutral-300);
  margin: 0 0 36px;
}
.timeline__week {
  position: absolute;
  top: 18px;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neutral-500);
  font-weight: 600;
}
.timeline__week::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -24px;
  width: 1px;
  height: 14px;
  background: var(--neutral-400);
}
.timeline__week:first-of-type { transform: translateX(0); }
.timeline__week:first-of-type::before { left: 0; transform: none; }
.timeline__week:last-of-type { transform: translateX(-100%); }
.timeline__week:last-of-type::before { left: 100%; transform: translateX(-100%); }
.timeline__phases {
  display: grid;
  grid-template-columns: 18% 36% 36% 1fr;
  gap: 1px;
  background: var(--neutral-200);
  border: 1px solid var(--neutral-200);
}
.timeline__phase {
  background: #fff;
  padding: 32px 28px;
  min-height: 220px;
}
.timeline__phase--scope { background: linear-gradient(180deg, #ffffff, #fbfcff); }
.timeline__phase--pilot { background: linear-gradient(180deg, #ffffff, #f4f7ff); }
.timeline__phase--prod  { background: linear-gradient(180deg, #ffffff, #eef3ff); }
.timeline__phase--stab  { background: linear-gradient(180deg, #ffffff, #e6edff); }
.timeline__tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-blue-700);
  margin-bottom: 16px;
  display: block;
}
.timeline__phase h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  line-height: 1.2;
}
.timeline__phase p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--neutral-700);
  margin: 0;
}
@media (max-width: 900px) {
  .timeline__phases { grid-template-columns: 1fr; }
  .timeline__track { display: none; }
  .timeline__phase { min-height: 0; border-bottom: 1px solid var(--neutral-200); }
}

/* --- Services hub: comparison table (us vs them) --- */
.cmp-table-wrap {
  border: 1px solid var(--neutral-200);
  overflow-x: auto;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  background: #fff;
}
.cmp-table th,
.cmp-table td {
  padding: 22px 24px;
  vertical-align: top;
  text-align: left;
}
.cmp-table thead th {
  background: var(--neutral-50);
  border-bottom: 1px solid var(--neutral-200);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--neutral-900);
  text-transform: none;
}
.cmp-table thead th:first-child { width: 22%; }
.cmp-table__them-head { color: var(--neutral-500) !important; }
.cmp-table__us-head { color: var(--rm-blue-800) !important; }
.cmp-table tbody tr { border-bottom: 1px solid var(--neutral-100); }
.cmp-table tbody tr:last-child { border-bottom: 0; }
.cmp-table__row-head {
  font-weight: 600;
  color: var(--neutral-900);
  width: 22%;
  background: var(--neutral-50);
}
.cmp-table__them {
  color: var(--neutral-500);
  font-style: italic;
}
.cmp-table__us {
  color: var(--neutral-900);
}
.cmp-table__us::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 6px;
  height: 6px;
  background: var(--rm-blue-700);
  margin-right: 12px;
  border-radius: 50%;
}

/* --- Services hub: engagement shape (three sealed boxes on dark) --- */
.shape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.shape-card {
  background: #0B0E18;
  padding: 44px 36px 40px;
  position: relative;
}
.shape-card__num {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: 56px;
  color: rgba(255,255,255,0.18);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
}
.shape-card__label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(125,176,255,0.85);
  margin-bottom: 14px;
}
.shape-card__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 22px;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.shape-card__body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
@media (max-width: 900px) {
  .shape-grid { grid-template-columns: 1fr; }
}

/* --- Industries hub: regulator map (industry x regulators) --- */
.reg-map {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  border-top: 1px solid var(--neutral-200);
}
.reg-map th[scope="row"] {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.005em;
  text-align: left;
  padding: 24px 32px 24px 0;
  width: 28%;
  color: var(--neutral-900);
  border-bottom: 1px solid var(--neutral-200);
  vertical-align: top;
}
.reg-map td {
  padding: 24px 0;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reg-chip {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--neutral-700);
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  padding: 6px 12px;
  border-radius: 3px;
  display: inline-block;
}
@media (max-width: 720px) {
  .reg-map th[scope="row"] { display: block; padding: 16px 0 8px; border-bottom: 0; }
  .reg-map td { padding-top: 0; }
}

/* --- Industries hub: credentials wall (list of issuers + credentials) --- */
.cred-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--neutral-200);
  border-left: 1px solid var(--neutral-200);
}
.cred {
  padding: 28px 24px;
  border-right: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
  background: #fff;
}
.cred__issuer {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 10px;
}
.cred__credential {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 19px;
  color: var(--neutral-900);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.cred__note {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--neutral-600);
  line-height: 1.5;
}

/* --- Industries hub: service × industry matrix --- */
.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--neutral-200);
}
.matrix {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 14px;
  background: #fff;
}
.matrix th,
.matrix td {
  padding: 18px 14px;
  text-align: center;
  border-right: 1px solid var(--neutral-100);
}
.matrix thead th {
  background: var(--neutral-50);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  color: var(--neutral-700);
  border-bottom: 1px solid var(--neutral-200);
  letter-spacing: 0;
}
.matrix tbody th[scope="row"] {
  text-align: left;
  padding-left: 24px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  background: var(--neutral-50);
  border-right: 1px solid var(--neutral-200);
  color: var(--neutral-900);
  letter-spacing: -0.005em;
  width: 28%;
}
.matrix tbody tr { border-bottom: 1px solid var(--neutral-100); }
.matrix tbody tr:last-child { border-bottom: 0; }
.matrix-yes {
  color: var(--rm-blue-700);
  font-weight: 700;
}
.matrix-no {
  color: var(--neutral-300);
}

/* --- Case Studies hub: case anatomy (numbered ordered list, no chrome) --- */
.anatomy {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--neutral-200);
}
.anatomy__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--neutral-200);
  align-items: baseline;
}
.anatomy__num {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--neutral-400);
}
.anatomy__head {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  color: var(--neutral-900);
}
.anatomy__copy {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0;
  max-width: 760px;
}
@media (max-width: 720px) {
  .anatomy__row { grid-template-columns: 1fr; gap: 6px; }
  .anatomy__num { font-size: 22px; }
}

/* --- Case Studies hub: outcomes ledger (chronological table) --- */
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 15px;
  background: #fff;
}
.ledger thead th {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-500);
  font-weight: 700;
  text-align: left;
  padding: 14px 24px 14px 0;
  border-bottom: 1px solid var(--neutral-300);
}
.ledger tbody td {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--neutral-100);
  vertical-align: top;
}
.ledger tbody tr:hover { background: var(--neutral-50); }
.ledger__q {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--neutral-900);
  width: 12%;
  letter-spacing: -0.005em;
}
.ledger__client {
  width: 22%;
  color: var(--neutral-700);
  font-weight: 500;
}
.ledger__what {
  color: var(--neutral-700);
}
.ledger__result {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--neutral-900);
  letter-spacing: -0.005em;
  font-size: 16px;
}

/* --- Case Studies hub: anonymization rules (two-column rule list, on navy) --- */
.anon-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  border-left: 1px solid rgba(255,255,255,0.10);
}
.anon-col {
  padding: 32px 32px 36px;
  border-right: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.anon-col__label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125,176,255,0.85);
  margin-bottom: 18px;
}
.anon-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.anon-col__list li {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.76);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.anon-col__list li:last-child { border-bottom: 0; }
@media (max-width: 720px) {
  .anon-split { grid-template-columns: 1fr; }
}

/* --- Responsive section padding --- */
@media (max-width: 720px) {
  .sec { padding: 72px 18px; }
  .sec__head { margin-bottom: 36px; }
}


/* ============================================================
   Industries hub — editorial registry redesign.
   Three sections: regulators (white), credentials (paper),
   coverage (navy). All type-driven. Outfit + Public Sans only.
   No diagrams, no colored cells with stamped labels, no badges.
   ============================================================ */

/* --- Regulator registry: each industry an editorial entry --- */
.sec--regulators .reg-registry {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--neutral-200);
}
.reg-entry {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  padding: 44px 0;
  border-bottom: 1px solid var(--neutral-200);
  align-items: start;
}
.reg-entry__head { min-width: 0; }
.reg-entry__industry {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  color: var(--neutral-900);
  transition: color 0.2s ease;
}
.reg-entry__industry:hover { color: var(--rm-blue-700, #1545E0); }
.reg-entry__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  display: inline-block;
}
.reg-entry__arrow {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  color: var(--neutral-400);
  transition: transform 0.2s ease, color 0.2s ease;
}
.reg-entry__industry:hover .reg-entry__arrow {
  color: var(--rm-blue-700);
  transform: translateX(4px);
}
.reg-entry__regs {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.reg-entry__reg {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--neutral-900);
  letter-spacing: -0.005em;
  margin: 0;
  padding-top: 12px;
}
.reg-entry__desc {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--neutral-600);
  margin: 4px 0 16px;
  line-height: 1.45;
}
.reg-entry__regs > dd:last-of-type { margin-bottom: 0; }
@media (max-width: 760px) {
  .reg-entry { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
}

/* --- Credential list: numbered editorial registry --- */
.sec--credentials .cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--neutral-200);
  counter-reset: cred;
}
.cred-row {
  display: grid;
  grid-template-columns: 48px 240px 1fr 1.4fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--neutral-200);
  align-items: baseline;
}
.cred-row__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--neutral-400);
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.cred-row__issuer {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--neutral-500);
  padding-top: 4px;
}
.cred-row__credential {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--neutral-900);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.cred-row__note {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--neutral-600);
  line-height: 1.5;
}
@media (max-width: 960px) {
  .cred-row {
    grid-template-columns: 36px 1fr;
    grid-template-areas:
      "num issuer"
      "num credential"
      "num note";
    gap: 4px 18px;
    padding: 18px 0;
  }
  .cred-row__num { grid-area: num; }
  .cred-row__issuer { grid-area: issuer; padding-top: 2px; }
  .cred-row__credential { grid-area: credential; margin-top: 2px; }
  .cred-row__note { grid-area: note; margin-top: 4px; }
}

/* --- Coverage table: monochrome on navy, disc marks only --- */
.sec--coverage .cov-wrap {
  margin-top: 12px;
  overflow-x: auto;
}
.cov-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  color: #fff;
  min-width: 760px;
}
.cov-table thead th {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 18px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  white-space: nowrap;
}
.cov-table thead th a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cov-table thead th a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.6);
}
.cov-table tbody th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  text-align: left;
  letter-spacing: -0.005em;
  padding: 18px 32px 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  white-space: nowrap;
}
.cov-table tbody th a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.cov-table tbody th a:hover { border-bottom-color: rgba(255,255,255,0.6); }
.cov-table tbody td {
  text-align: center;
  padding: 18px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cov-table .cov__corner { border-bottom: 1px solid rgba(255,255,255,0.18); }

.cov-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
}
.cov-mark--none {
  background: transparent;
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.18);
}
.cov-mark--active {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.85);
}
.cov-mark--deep {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
}

.cov-legend {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.cov-legend li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* End Industries hub editorial registry. */

/* ============================================================
   Services hub — editorial registry pass.
   Same discipline as Industries hub: type-driven, no diagrams,
   hairline-divided rows, Outfit 800 headings.
   ============================================================ */

/* ---------- Cadence timeline (services hub) ----------
 * Replaces the old `.phase-registry` text-list with a visual 4-phase
 * timeline. Each phase is a card with a numbered disc, line-art icon,
 * weeks pill, name, and body. A thin horizontal rail runs across the
 * 4 cards at the disc's vertical center and animates a blue gradient
 * fill L→R when the section enters the viewport.
 */
.cadence-timeline {
  position: relative;
  margin-top: 24px;
}
.cadence-timeline__rail {
  position: absolute;
  /* Sits at the vertical center of the disc row (~56px from card top
   * once num + disc render). At narrower viewports the cards restack
   * and the rail hides entirely (see breakpoint below). */
  top: 76px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  pointer-events: none;
}
.cadence-timeline__track {
  height: 1px;
  background: var(--neutral-200);
  overflow: hidden;
}
.cadence-timeline__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rm-blue-500), var(--rm-blue-700));
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.cadence-timeline.is-revealed .cadence-timeline__fill { width: 100%; }

/* Traveling dot that loops L→R along the rail after the fill completes.
 * Decoupled from the reveal so the rail keeps moving once the user has
 * scrolled past, signaling the engagement arc as a living journey, not
 * a static diagram. */
.cadence-timeline__rail::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rm-blue-600);
  box-shadow:
    0 0 0 4px rgba(21, 69, 224, 0.16),
    0 0 16px 2px rgba(21, 69, 224, 0.45);
  transform: translate(-5px, -50%);
  opacity: 0;
  pointer-events: none;
}
.cadence-timeline.is-revealed .cadence-timeline__rail::after {
  animation: rmCadenceDot 7s cubic-bezier(0.65, 0, 0.35, 1) 1.6s infinite;
}
@keyframes rmCadenceDot {
  0%   { left: 0%;   opacity: 0; transform: translate(-5px, -50%) scale(0.8); }
  10%  { opacity: 1; transform: translate(-5px, -50%) scale(1); }
  90%  { opacity: 1; transform: translate(-5px, -50%) scale(1); }
  100% { left: 100%; opacity: 0; transform: translate(-5px, -50%) scale(0.8); }
}
/* Gentle continuous pulse on the destination (4th) disc so the
 * "you end up here" signal keeps reading after the initial reveal. */
.cadence-timeline.is-revealed .cadence-phase:nth-child(4) .cadence-phase__disc {
  animation: rmDiscPulse 3.4s ease-in-out 2s infinite;
}
@keyframes rmDiscPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21, 69, 224, 0.0); }
  50%      { box-shadow: 0 0 0 10px rgba(21, 69, 224, 0.12), 0 0 28px 4px rgba(21, 69, 224, 0.18); }
}
/* Small line-art icon micro-motion on the active (4th) disc — a subtle
 * float so the shield-check glyph reads as "alive". */
.cadence-timeline.is-revealed .cadence-phase:nth-child(4) .cadence-phase__disc svg {
  animation: rmDiscIconFloat 4.2s ease-in-out infinite;
}
@keyframes rmDiscIconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-2px) rotate(-2deg); }
}
.cadence-timeline__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.cadence-phase {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 14px;
  padding: 28px 24px 32px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.cadence-timeline.is-revealed .cadence-phase { opacity: 1; transform: translateY(0); }
.cadence-timeline.is-revealed .cadence-phase:nth-child(1) { transition-delay: 0.10s; }
.cadence-timeline.is-revealed .cadence-phase:nth-child(2) { transition-delay: 0.30s; }
.cadence-timeline.is-revealed .cadence-phase:nth-child(3) { transition-delay: 0.55s; }
.cadence-timeline.is-revealed .cadence-phase:nth-child(4) { transition-delay: 0.85s; }
.cadence-phase:hover {
  border-color: oklch(0.86 0.06 250);
  box-shadow: 0 18px 40px -28px rgba(8, 22, 64, 0.18);
}
.cadence-phase__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--rm-blue-500) 0%, var(--rm-blue-900) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cadence-phase__disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--rm-blue-50);
  color: var(--rm-blue-700);
  margin-bottom: 4px;
}
.cadence-phase:nth-child(2) .cadence-phase__disc { background: oklch(0.95 0.04 250); }
.cadence-phase:nth-child(3) .cadence-phase__disc { background: oklch(0.94 0.05 245); }
.cadence-phase:nth-child(4) .cadence-phase__disc {
  background: linear-gradient(135deg, var(--rm-blue-700) 0%, var(--rm-blue-900) 100%);
  color: var(--white);
}
.cadence-phase__weeks {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rm-blue-700);
}
.cadence-phase__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--neutral-900);
  margin: 0;
}
.cadence-phase__body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0;
}
@media (max-width: 1024px) {
  .cadence-timeline__grid { grid-template-columns: repeat(2, 1fr); }
  .cadence-timeline__rail { display: none; }
}
@media (max-width: 600px) {
  .cadence-timeline__grid { grid-template-columns: 1fr; }
  .cadence-phase { padding: 22px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .cadence-phase, .cadence-timeline__fill { transition: none; }
  .cadence-phase { opacity: 1; transform: none; }
  .cadence-timeline__fill { width: 100%; }
  .cadence-timeline__rail::after,
  .cadence-timeline.is-revealed .cadence-phase:nth-child(4) .cadence-phase__disc,
  .cadence-timeline.is-revealed .cadence-phase:nth-child(4) .cadence-phase__disc svg {
    animation: none !important;
  }
}

/* ---------- Comparison split (Us vs Typical) ----------
 * Replaces the old `.cmp-table` HTML <table> with a visual split-screen
 * ledger. Six dimension rows, each with two side-by-side cards: Typical
 * on the left (muted, ✗ chip) and Rockmere on the right (highlighted
 * with blue tint + corner glow, ✓ chip). The dimension label sits as
 * a numbered header above each card pair.
 */
.cmp-split {
  margin-top: 24px;
}
.cmp-split__head {
  display: grid;
  grid-template-columns: 260px 1fr 1fr;
  gap: 24px;
  padding: 0 28px 16px;
  border-bottom: 1px solid var(--neutral-200);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neutral-500);
}
.cmp-split__head-them { grid-column: 2; }
.cmp-split__head-us { grid-column: 3; color: var(--rm-blue-700); }
.cmp-split__list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.cmp-split__row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.cmp-split.is-revealed .cmp-split__row { opacity: 1; transform: translateY(0); }
.cmp-split.is-revealed .cmp-split__row:nth-child(1) { transition-delay: 0.05s; }
.cmp-split.is-revealed .cmp-split__row:nth-child(2) { transition-delay: 0.12s; }
.cmp-split.is-revealed .cmp-split__row:nth-child(3) { transition-delay: 0.19s; }
.cmp-split.is-revealed .cmp-split__row:nth-child(4) { transition-delay: 0.26s; }
.cmp-split.is-revealed .cmp-split__row:nth-child(5) { transition-delay: 0.33s; }
.cmp-split.is-revealed .cmp-split__row:nth-child(6) { transition-delay: 0.40s; }
.cmp-split__dim {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 22px 24px 22px 28px;
  border-right: 1px solid var(--neutral-200);
}
.cmp-split__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--rm-blue-500) 0%, var(--rm-blue-900) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  padding-top: 0;
}
.cmp-split__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(15px, 1.1vw, 17px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--neutral-900);
}
.cmp-split__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.cmp-split__them,
.cmp-split__us {
  position: relative;
  padding: 22px 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--neutral-200);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cmp-split__them {
  background: var(--neutral-50, #fafafa);
}
.cmp-split__them p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--neutral-500);
}
.cmp-split__us {
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(21, 69, 224, 0.06) 0%, transparent 60%),
    radial-gradient(70% 80% at 0% 100%, rgba(9, 36, 132, 0.04) 0%, transparent 60%),
    var(--white);
  border-color: oklch(0.88 0.06 250);
  box-shadow: 0 18px 36px -28px rgba(8, 22, 64, 0.16);
}
.cmp-split__us p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--neutral-800);
  font-weight: 500;
}
.cmp-split__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.cmp-split__chip--them {
  background: var(--neutral-200);
  color: var(--neutral-600);
}
.cmp-split__chip--us {
  background: linear-gradient(135deg, var(--rm-blue-700) 0%, var(--rm-blue-900) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
/* Ambient shimmer that sweeps across the Rockmere chip every few
 * seconds. Reads as the brand color "living" rather than static. */
.cmp-split.is-revealed .cmp-split__chip--us::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  animation: rmChipShimmer 4.5s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes rmChipShimmer {
  0%   { left: -40%; }
  30%  { left: 140%; }
  100% { left: 140%; }
}
/* Continuous gentle scale-breath on the ✓ glyph so the "yes" signal
 * stays kinetic even after the reveal sequence completes. */
.cmp-split.is-revealed .cmp-split__chip--us svg {
  animation: rmCheckBreath 3.2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes rmCheckBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
/* Hover lift on the Rockmere half — micro-interaction reward when the
 * user investigates a row. The Typical half stays static so the
 * comparison weighting reads as "this is the one." */
.cmp-split__us {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.cmp-split__row:hover .cmp-split__us {
  transform: translateY(-2px);
  border-color: oklch(0.82 0.09 250);
  box-shadow: 0 26px 48px -28px rgba(8, 22, 64, 0.22);
}
@media (prefers-reduced-motion: reduce) {
  .cmp-split__chip--us::after,
  .cmp-split__chip--us svg { animation: none !important; }
  .cmp-split__us, .cmp-split__row:hover .cmp-split__us { transition: none; transform: none; }
}
@media (max-width: 1024px) {
  .cmp-split__head { grid-template-columns: 1fr; padding-bottom: 8px; gap: 4px; }
  .cmp-split__head-them, .cmp-split__head-us { grid-column: 1; }
  .cmp-split__row { grid-template-columns: 1fr; gap: 12px; }
  .cmp-split__dim {
    border-right: 0;
    border-bottom: 1px solid var(--neutral-200);
    padding: 14px 6px 14px 6px;
  }
  .cmp-split__pair { grid-template-columns: 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-split__row { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
 * Shared visual primitives for the hub-section redesigns.
 * Used by .cred-grid (industries credentials), .anatomy-grid + .ledger-grid
 * (case studies hub), .shape-grid (services hub navy section), and the
 * .anon-cards split (case studies anonymisation). All four share the
 * same surface-card vocabulary: gradient numbers, icon discs, reveal-
 * on-scroll stagger. The shared `.is-revealed` class is added by the
 * single observer in main.js — see selector list there.
 * ============================================================ */

/* ---------- Credentials grid (industries hub) ---------- */
.cred-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.cred-card {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 8px;
  padding: 24px 24px 22px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(14px);
}
.cred-grid.is-revealed .cred-card { opacity: 1; transform: translateY(0); }
.cred-grid.is-revealed .cred-card:nth-child(1)  { transition-delay: 0.05s; }
.cred-grid.is-revealed .cred-card:nth-child(2)  { transition-delay: 0.10s; }
.cred-grid.is-revealed .cred-card:nth-child(3)  { transition-delay: 0.16s; }
.cred-grid.is-revealed .cred-card:nth-child(4)  { transition-delay: 0.22s; }
.cred-grid.is-revealed .cred-card:nth-child(5)  { transition-delay: 0.28s; }
.cred-grid.is-revealed .cred-card:nth-child(6)  { transition-delay: 0.34s; }
.cred-grid.is-revealed .cred-card:nth-child(7)  { transition-delay: 0.40s; }
.cred-grid.is-revealed .cred-card:nth-child(8)  { transition-delay: 0.46s; }
.cred-grid.is-revealed .cred-card:nth-child(9)  { transition-delay: 0.52s; }
.cred-grid.is-revealed .cred-card:nth-child(10) { transition-delay: 0.58s; }
.cred-card:hover {
  border-color: oklch(0.86 0.06 250);
  box-shadow: 0 18px 36px -28px rgba(8, 22, 64, 0.18);
}
.cred-card__issuer {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neutral-500);
}
.cred-card__abbrev {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--neutral-900);
}
/* Tiny accent line under the abbreviation — keeps the blue as a subtle
 * brand marker rather than 10 wall-of-blue gradient headlines. */
.cred-card__abbrev::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--rm-blue-500), var(--rm-blue-700));
  border-radius: 2px;
}
.cred-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(14.5px, 1.1vw, 17px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--neutral-900);
  margin: 4px 0 0;
}
.cred-card__scope {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--neutral-600);
}
.cred-card__recert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--neutral-200);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

/* ---------- Industries audience registry (industries hub) ----------
 * Replaces the prior 6 × 3 <dl> text registry. Each industry is one
 * editorial block: industry name large on the left with an arrow link
 * to the detail page, then 3 audience cards in a row (users / leaders
 * accountable / the broader public the work is for). Each card carries
 * a small icon disc, a label, and a one-line benefit. */
.industry-audience-list {
  margin-top: 32px;
  display: grid;
  gap: 28px;
}
.industry-audience {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 28px 0 0;
  border-top: 1px solid var(--neutral-200);
  align-items: start;
}
.industry-audience:first-child { padding-top: 8px; border-top: 0; }
.industry-audience__head { padding-top: 4px; }
.industry-audience__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.industry-audience__link:hover { color: var(--rm-blue-700); gap: 18px; }
.industry-audience__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--neutral-900);
}
.industry-audience__link:hover .industry-audience__name { color: var(--rm-blue-700); }
.industry-audience__arrow {
  font-size: 22px;
  color: var(--rm-blue-700);
  font-weight: 600;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.audience-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  padding: 20px 20px 22px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.audience-card:hover {
  border-color: oklch(0.86 0.06 250);
  box-shadow: 0 14px 32px -26px rgba(8, 22, 64, 0.20);
  transform: translateY(-1px);
}
.audience-card__disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--rm-blue-50);
  color: var(--rm-blue-700);
}
.audience-card__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--neutral-900);
  margin: 4px 0 0;
}
.audience-card__body {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--neutral-600);
  margin: 0;
}
@media (max-width: 1024px) {
  .industry-audience { grid-template-columns: 1fr; gap: 18px; }
  .audience-grid { grid-template-columns: 1fr; }
}

/* ---------- Anatomy grid (case studies hub) ---------- */
.anatomy-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.anatomy-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
  padding: 26px 24px 28px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.anatomy-grid.is-revealed .anatomy-card { opacity: 1; transform: translateY(0); }
.anatomy-grid.is-revealed .anatomy-card:nth-child(1) { transition-delay: 0.05s; }
.anatomy-grid.is-revealed .anatomy-card:nth-child(2) { transition-delay: 0.12s; }
.anatomy-grid.is-revealed .anatomy-card:nth-child(3) { transition-delay: 0.19s; }
.anatomy-grid.is-revealed .anatomy-card:nth-child(4) { transition-delay: 0.26s; }
.anatomy-grid.is-revealed .anatomy-card:nth-child(5) { transition-delay: 0.33s; }
.anatomy-grid.is-revealed .anatomy-card:nth-child(6) { transition-delay: 0.40s; }
.anatomy-grid.is-revealed .anatomy-card:nth-child(7) { transition-delay: 0.47s; }
.anatomy-card:hover {
  border-color: oklch(0.86 0.06 250);
  box-shadow: 0 18px 36px -28px rgba(8, 22, 64, 0.18);
}
.anatomy-card__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, var(--rm-blue-500) 0%, var(--rm-blue-900) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.anatomy-card__disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--rm-blue-50);
  color: var(--rm-blue-700);
}
.anatomy-card--result .anatomy-card__disc,
.anatomy-card--survived .anatomy-card__disc {
  background: linear-gradient(135deg, var(--rm-blue-700) 0%, var(--rm-blue-900) 100%);
  color: var(--white);
}
.anatomy-card__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--neutral-900);
  margin: 0;
}
.anatomy-card__body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0;
}

/* ---------- Outcomes ledger grid (case studies hub) ---------- */
.ledger-grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}
.ledger-row {
  display: grid;
  grid-template-columns: 110px 1.2fr 2fr 200px;
  gap: 28px;
  align-items: center;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.ledger-grid.is-revealed .ledger-row { opacity: 1; transform: translateY(0); }
.ledger-grid.is-revealed .ledger-row:nth-child(1) { transition-delay: 0.06s; }
.ledger-grid.is-revealed .ledger-row:nth-child(2) { transition-delay: 0.14s; }
.ledger-grid.is-revealed .ledger-row:nth-child(3) { transition-delay: 0.22s; }
.ledger-grid.is-revealed .ledger-row:nth-child(4) { transition-delay: 0.30s; }
.ledger-grid.is-revealed .ledger-row:nth-child(5) { transition-delay: 0.38s; }
.ledger-row:hover {
  border-color: oklch(0.86 0.06 250);
  box-shadow: 0 20px 40px -28px rgba(8, 22, 64, 0.20);
}
.ledger-row__q {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rm-blue-700);
  font-weight: 700;
}
.ledger-row__client {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--neutral-900);
  margin: 0 0 4px;
}
.ledger-row__sector {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--neutral-500);
}
.ledger-row__what {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--neutral-700);
  margin: 0;
}
.ledger-row__metric {
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--rm-blue-500) 0%, var(--rm-blue-900) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 900px) {
  .ledger-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ledger-row__metric { text-align: left; }
}

/* ---------- Anonymisation 2-card split (case studies, navy bg) ---------- */
.anon-cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.anon-card {
  padding: 28px 28px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.anon-cards.is-revealed .anon-card { opacity: 1; transform: translateY(0); }
.anon-cards.is-revealed .anon-card:nth-child(1) { transition-delay: 0.10s; }
.anon-cards.is-revealed .anon-card:nth-child(2) { transition-delay: 0.25s; }
.anon-card--keep {
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(21, 69, 224, 0.18) 0%, transparent 60%),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(120, 165, 255, 0.25);
}
.anon-card__head {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.anon-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.75);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.anon-card__chip--keep {
  background: linear-gradient(135deg, var(--rm-blue-500) 0%, var(--rm-blue-700) 100%);
  color: var(--white);
}
.anon-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0;
  color: var(--white);
}
.anon-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.anon-card__list li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.anon-card__list li:last-child { border-bottom: 0; }
.anon-card--hide .anon-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.5) 45%, rgba(255,255,255,0.5) 55%, transparent 55%),
              linear-gradient(-45deg, transparent 45%, rgba(255,255,255,0.5) 45%, rgba(255,255,255,0.5) 55%, transparent 55%);
}
.anon-card--keep .anon-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at center, var(--rm-blue-400, #4f7fff) 0 30%, transparent 31%);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M5 12 l5 5 9 -11"/></svg>') no-repeat center / contain;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M5 12 l5 5 9 -11"/></svg>') no-repeat center / contain;
  background: var(--rm-blue-400, #6b94ff);
}
@media (max-width: 820px) {
  .anon-cards { grid-template-columns: 1fr; }
}

/* ---------- Engagement-shape cards (services hub, navy bg) ---------- */
.shape-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.shape-card {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 12px;
  padding: 30px 28px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, transform 0.25s ease;
}
.shape-grid.is-revealed .shape-card { opacity: 1; transform: translateY(0); }
.shape-grid.is-revealed .shape-card:nth-child(1) { transition-delay: 0.12s; }
.shape-grid.is-revealed .shape-card:nth-child(2) { transition-delay: 0.28s; }
.shape-grid.is-revealed .shape-card:nth-child(3) { transition-delay: 0.44s; }
.shape-card:hover {
  border-color: rgba(120, 165, 255, 0.32);
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(21, 69, 224, 0.18) 0%, transparent 60%),
    rgba(255, 255, 255, 0.06);
}
.shape-card__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, #6b94ff 0%, var(--rm-blue-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shape-card__disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}
.shape-card--window .shape-card__disc {
  background: linear-gradient(135deg, var(--rm-blue-600) 0%, var(--rm-blue-800) 100%);
  color: var(--white);
}
.shape-card__label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.shape-card__headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0;
  color: var(--white);
}
.shape-card__body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}
@media (max-width: 820px) {
  .shape-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cred-card, .anatomy-card, .ledger-row, .anon-card, .shape-card {
    opacity: 1; transform: none; transition: none;
  }
}

/* --- Phase registry (legacy delivery cadence layout — kept for any
 *     consumer still rendering .phase-registry. Services hub now uses
 *     .cadence-timeline above.) --- */
.sec--cadence .phase-registry {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--neutral-200);
  counter-reset: phase;
}
.phase-entry {
  display: grid;
  grid-template-columns: 64px 200px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--neutral-200);
  align-items: baseline;
}
.phase-entry__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-400);
  letter-spacing: 0.08em;
  padding-top: 6px;
}
.phase-entry__weeks {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--neutral-500);
  padding-top: 8px;
}
.phase-entry__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--neutral-900);
  margin: 0 0 12px;
}
.phase-entry__body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0;
  grid-column: 3;
  margin-top: -2px;
}
@media (max-width: 820px) {
  .phase-entry { grid-template-columns: 1fr; gap: 6px; padding: 28px 0; }
  .phase-entry__body { grid-column: auto; }
}

/* --- Comparison table (Services us-vs-typical) clean editorial pass --- */
.sec .cmp-table-wrap { border: 0; overflow-x: auto; }
.sec .cmp-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15.5px;
  border-top: 1px solid var(--neutral-200);
}
.sec .cmp-table thead th {
  background: transparent !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-500);
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--neutral-300);
}
.sec .cmp-table thead th:first-child { width: 26%; }
.sec .cmp-table thead th.cmp-table__them-head { color: var(--neutral-500) !important; }
.sec .cmp-table thead th.cmp-table__us-head { color: var(--rm-blue-800) !important; }
.sec .cmp-table tbody tr {
  border-bottom: 1px solid var(--neutral-200);
}
.sec .cmp-table tbody td {
  padding: 22px 24px 22px 0;
  vertical-align: top;
  line-height: 1.55;
}
.sec .cmp-table__row-head {
  background: transparent !important;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--neutral-900);
  font-size: 16px;
  letter-spacing: -0.005em;
}
.sec .cmp-table__them {
  color: var(--neutral-500);
  font-style: italic;
}
.sec .cmp-table__us {
  color: var(--neutral-900);
}
.sec .cmp-table__us::before {
  display: none !important;
}

/* --- Shape registry (engagement shape, navy background) --- */
.sec--shape .shape-registry {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.shape-entry {
  display: grid;
  grid-template-columns: 64px 200px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  align-items: baseline;
}
.shape-entry__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  padding-top: 6px;
}
.shape-entry__label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(141, 174, 255, 0.9);
  padding-top: 8px;
}
.shape-entry__headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 12px;
}
.shape-entry__body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0;
  grid-column: 3;
  margin-top: -2px;
}
@media (max-width: 820px) {
  .shape-entry { grid-template-columns: 1fr; gap: 6px; padding: 32px 0; }
  .shape-entry__body { grid-column: auto; }
}

/* ============================================================
   Case Studies hub — editorial registry pass.
   ============================================================ */

/* --- Case anatomy (numbered entries, paper bg, like phase-entry) --- */
.anatomy {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--neutral-200);
}
.anatomy__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--neutral-200);
  align-items: baseline;
}
.anatomy__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-400);
  letter-spacing: 0.08em;
  padding-top: 6px;
}
.anatomy__head {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--neutral-900);
  margin: 0 0 10px;
}
.anatomy__copy {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0;
  max-width: 760px;
}

/* --- Outcomes ledger (white bg, clean monochrome table) --- */
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 15.5px;
  border-top: 1px solid var(--neutral-200);
}
.ledger thead th {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--neutral-500);
  text-align: left;
  padding: 18px 24px 18px 0;
  border-bottom: 1px solid var(--neutral-300);
}
.ledger tbody td {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--neutral-200);
  vertical-align: baseline;
  line-height: 1.5;
}
.ledger tbody tr:last-child td { border-bottom: 1px solid var(--neutral-200); }
.ledger__q {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--neutral-500);
  width: 12%;
  white-space: nowrap;
}
.ledger__client {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--neutral-900);
  width: 22%;
}
.ledger__what { color: var(--neutral-700); width: 32%; }
.ledger__result {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--rm-blue-800, #0F35B5);
  letter-spacing: -0.005em;
  font-size: 16px;
}

/* --- Anonymization two-column rules (navy bg) --- */
.anon-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 36px;
}
.anon-col__label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(141, 174, 255, 0.9);
  margin-bottom: 24px;
}
.anon-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.anon-col__list li {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.anon-col__list li:last-child { border-bottom: 0; }
@media (max-width: 820px) {
  .anon-split { grid-template-columns: 1fr; gap: 40px; }
}

/* End Services + Case Studies hub editorial pass. */


/* ============================================================
   Detail-page body modules (services/*, industries/*).
   These were rendering with NO CSS, dropping content into the
   page margins. Applied editorial-registry styling matching the
   hub sections.
   ============================================================ */

/* --- Page-stats snapshot row (sits between hero and body) --- */
.page-stats {
  background: #fff;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}
.page-stats__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}
.page-stat {
  padding: 0 28px;
  border-right: 1px solid var(--neutral-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-stat:first-child { padding-left: 0; }
.page-stat:last-child { border-right: 0; padding-right: 0; }
.page-stat__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(34px, 3.8vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--neutral-900);
}
.page-stat__num sup {
  font-size: 0.42em;
  font-weight: 700;
  color: var(--rm-blue-700);
  margin-left: 3px;
  vertical-align: super;
  top: -0.3em;
}
.page-stat__label {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--neutral-600);
  margin-top: 2px;
}
@media (max-width: 720px) {
  .page-stat { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--neutral-200); }
  .page-stat:last-child { border-bottom: 0; }
}

/* ---------- Hub engagement strip ----------
 * Hub-level horizontal arc that sits under the hero on services-overview,
 * industries-overview, case-studies, about, and careers. Replaces the dark
 * `.page-stats` blue-numbers band on hub pages with a journey primitive that
 * matches the XL detail-page family without re-using the metrics chrome.
 *
 * Structure:
 *   .hub-engagement-strip
 *     .hub-engagement-strip__inner
 *       .hub-engagement-strip__kicker  (monospace label up top)
 *       .hub-engagement-strip__rail    (the connector + nodes)
 *         .hub-engagement-strip__track  (1px hairline)
 *         .hub-engagement-strip__fill   (animated gradient L→R)
 *         .hub-engagement-strip__node × 4  (icon disk over the hairline)
 *       .hub-engagement-strip__legends (4-column label grid under the rail)
 *
 * Motion: reveals on scroll (IntersectionObserver) — fill grows 0 → 100%
 * over 1.6s, nodes fade in left-to-right on a 120ms stagger. Icons stay
 * line-art (1.5px stroke) to match the existing process-band icon style.
 */
.hub-engagement-strip {
  background: var(--body);
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
  padding: 48px var(--gutter) 56px;
  position: relative;
}
.hub-engagement-strip__inner {
  max-width: 1180px;
  margin: 0 auto;
}
.hub-engagement-strip__kicker {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neutral-500);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hub-engagement-strip__kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--rm-blue-700);
}
.hub-engagement-strip__rail {
  /* No horizontal margin — keep the 4-col node grid in lockstep with the
   * 4-col legends grid below so each node lines up with its label. The
   * track is then inset by 12.5% on each side so it starts at the
   * CENTER of node 1 and ends at the CENTER of node 4 (each node sits
   * at the center of a 25%-wide grid column = 12.5% from the column's
   * left edge). */
  position: relative;
  height: 56px;
  margin: 0;
}
.hub-engagement-strip__track {
  position: absolute;
  top: 50%;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--neutral-200);
  transform: translateY(-50%);
  overflow: hidden;
}
.hub-engagement-strip__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rm-blue-500), var(--rm-blue-700));
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hub-engagement-strip.is-revealed .hub-engagement-strip__fill { width: 100%; }
.hub-engagement-strip__nodes {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.hub-engagement-strip__node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  color: var(--rm-blue-700);
  margin: 0 auto;
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hub-engagement-strip__node svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hub-engagement-strip__node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  border: 1px solid transparent;
  transition: border-color 0.4s ease;
}
.hub-engagement-strip.is-revealed .hub-engagement-strip__node { opacity: 1; transform: translateY(0); }
.hub-engagement-strip.is-revealed .hub-engagement-strip__node:nth-child(1) { transition-delay: 0.10s; }
.hub-engagement-strip.is-revealed .hub-engagement-strip__node:nth-child(2) { transition-delay: 0.30s; }
.hub-engagement-strip.is-revealed .hub-engagement-strip__node:nth-child(3) { transition-delay: 0.55s; }
.hub-engagement-strip.is-revealed .hub-engagement-strip__node:nth-child(4) {
  transition-delay: 0.85s;
  background: linear-gradient(135deg, var(--rm-blue-700) 0%, var(--rm-blue-900) 100%);
  border-color: transparent;
  color: var(--white);
}
.hub-engagement-strip.is-revealed .hub-engagement-strip__node:nth-child(4)::after {
  border-color: rgba(21, 69, 224, 0.18);
}
.hub-engagement-strip__legends {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.hub-engagement-strip__legend {
  text-align: center;
  padding: 0 14px;
}
.hub-engagement-strip__phase {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rm-blue-700);
  display: block;
  margin-bottom: 6px;
}
.hub-engagement-strip__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 17px);
  letter-spacing: -0.01em;
  color: var(--neutral-900);
  display: block;
  margin-bottom: 4px;
}
.hub-engagement-strip__window {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--neutral-500);
  display: block;
}
@media (max-width: 820px) {
  .hub-engagement-strip__rail { margin: 0; }
  .hub-engagement-strip__rail,
  .hub-engagement-strip__nodes,
  .hub-engagement-strip__legends {
    grid-template-columns: 1fr 1fr;
  }
  .hub-engagement-strip__rail {
    height: auto;
  }
  .hub-engagement-strip__track { display: none; }
  .hub-engagement-strip__nodes {
    position: static;
    gap: 20px 16px;
    margin-bottom: 16px;
  }
  .hub-engagement-strip__node { width: 48px; height: 48px; border-radius: 14px; }
  .hub-engagement-strip__node svg { width: 19px; height: 19px; }
  .hub-engagement-strip__legends { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-engagement-strip__node,
  .hub-engagement-strip__fill { transition: none; }
  .hub-engagement-strip__node { opacity: 1; transform: none; }
  .hub-engagement-strip__fill { width: 100%; }
}

/* ---------- Portfolio templates ----------
 * Two reusable templates for individual consultant + training-partner detail
 * pages. Used by the content team when populating real bios in WordPress
 * (via the `consultant` and `training_partner` CPTs). The static prototype
 * ships one template of each at `/about/consultant-portfolio-template.html`
 * and `/about/partner-portfolio-template.html` so design + layout are
 * locked before content arrives.
 *
 * Sections inside both templates:
 *   - .portfolio-header   (portrait + bio + key facts row)
 *   - .portfolio-credentials  (verifiable certifications grid)
 *   - .portfolio-ledger   (anonymized sample engagements table)
 *
 * Other modules reuse the existing hub vocabulary:
 *   - .page-hero--xl + .page-hero--hub
 *   - .role-grid          (specialty matrix)
 *   - .pullquote          (testimonial)
 *   - .crosslink-band     (related case studies)
 *   - .cta                (footer CTA)
 */
.portfolio-header {
  background: var(--body);
  padding: 56px var(--gutter) 0;
}
.portfolio-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.portfolio-header__portrait {
  width: 240px;
  height: 240px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--rm-blue-700) 0%, var(--rm-blue-900) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 7vw, 88px);
  color: var(--white);
  letter-spacing: -0.05em;
  box-shadow: 0 24px 60px -28px rgba(8, 22, 64, 0.45);
  overflow: hidden;
  position: relative;
  padding: 16px;
  text-align: center;
  word-break: break-word;
  hyphens: auto;
}
/* When the portrait holds plain text (an initials span rather than an
 * <img>), keep the text inside its 240×240 frame. The clamp() above tunes
 * to 2–3 character initials; this caps anything longer at 28px and centers
 * it visually. The `:has` lets browsers that support it tighten further
 * when the text content is longer than a couple of characters; older
 * browsers fall back to the clamp + overflow clip already in place. */
.portfolio-header__portrait > span {
  /* Single-line, ellipsis on overflow — when the content team forgets to
   * shorten the placeholder, the visible result is `[T…]` rather than a
   * 5-line clipped mess that looks broken. Real initials (1-3 chars) fit
   * at 88px in a 240px box. */
  display: block;
  max-width: 100%;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portfolio-header__portrait::after {
  /* subtle radial highlight, never decorative gradient on text */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(56% 56% at 35% 28%, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.portfolio-header__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.portfolio-header__copy { padding-top: 8px; }
.portfolio-header__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(26px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  color: var(--neutral-900);
  margin: 0 0 6px;
}
.portfolio-header__role {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rm-blue-700);
  margin: 0 0 18px;
}
.portfolio-header__bio {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--neutral-700);
  max-width: 64ch;
  margin: 0 0 24px;
}
.portfolio-header__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 4px 28px;
  padding-top: 18px;
  border-top: 1px solid var(--neutral-200);
}
.portfolio-header__fact dt {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 4px;
}
.portfolio-header__fact dd {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--neutral-900);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
@media (max-width: 820px) {
  .portfolio-header__inner { grid-template-columns: 1fr; gap: 28px; }
  .portfolio-header__portrait { width: 160px; height: 160px; font-size: 60px; border-radius: 20px; }
  .portfolio-header__name { font-size: 28px; }
}

.portfolio-credentials {
  padding: 80px var(--gutter) 0;
}
.portfolio-credentials__inner {
  max-width: 1180px;
  margin: 0 auto;
}
.portfolio-credentials__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.portfolio-credentials__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 2vw, 30px);
  letter-spacing: -0.02em;
  color: var(--neutral-900);
  margin: 0;
}
.portfolio-credentials__note {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-500);
}
.portfolio-credentials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.portfolio-cred {
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 22px 22px 20px;
  background: var(--white);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.portfolio-cred:hover {
  border-color: var(--rm-blue-300, oklch(0.86 0.06 250));
  transform: translateY(-1px);
}
.portfolio-cred__abbrev {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
}
.portfolio-cred__name {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--neutral-700);
}
.portfolio-cred__verifier {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-blue-700);
  padding-top: 8px;
  border-top: 1px dashed var(--neutral-200);
  margin-top: 4px;
}

.portfolio-ledger {
  padding: 80px var(--gutter) 0;
}
.portfolio-ledger__inner {
  max-width: 1180px;
  margin: 0 auto;
}
.portfolio-ledger__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 2vw, 30px);
  letter-spacing: -0.02em;
  color: var(--neutral-900);
  margin: 0 0 28px;
}
.portfolio-ledger__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--neutral-200);
}
.portfolio-ledger__row {
  display: grid;
  grid-template-columns: 110px 1fr 200px;
  gap: 32px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--neutral-200);
  align-items: baseline;
}
.portfolio-ledger__year {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-500);
}
.portfolio-ledger__title-row {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(17px, 1.3vw, 19px);
  letter-spacing: -0.01em;
  color: var(--neutral-900);
  margin: 0 0 6px;
}
.portfolio-ledger__sub {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0;
}
.portfolio-ledger__metric {
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--rm-blue-500) 0%, var(--rm-blue-900) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 720px) {
  .portfolio-ledger__row { grid-template-columns: 1fr; gap: 8px; }
  .portfolio-ledger__metric { text-align: left; }
}

/* --- Hero chips (under the subhead): proper editorial pill row --- */
.page-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 32px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero__chip {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--neutral-700);
  background: #fff;
  border: 1px solid var(--neutral-200);
  padding: 7px 14px;
  border-radius: 999px;
  letter-spacing: 0;
}
.page-hero--banner .page-hero__chip {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
}

/* --- Role cards (Who it's for) --- *
 * Editorial registry: hairline-divided rows, role in Outfit 800,
 * situation in Public Sans. No card chrome, no icons.
 */
.role-grid {
  margin-top: 36px;
  border-top: 1px solid var(--neutral-200);
}
.role-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
  padding: 28px 0;
  border-bottom: 1px solid var(--neutral-200);
  align-items: baseline;
}
.role-card__icon { display: none; }
.role-card__role {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--neutral-900);
  margin: 0;
}
.role-card__sit {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0;
  max-width: 640px;
}
@media (max-width: 760px) {
  .role-card { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
}

/* --- Approach cards (Our approach): numbered editorial entries --- */
.approach-grid {
  margin-top: 36px;
  border-top: 1px solid var(--neutral-200);
  counter-reset: approach;
}
.approach-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--neutral-200);
  align-items: baseline;
  counter-increment: approach;
}
.approach-card > div { min-width: 0; }
.approach-card__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-400);
  letter-spacing: 0.08em;
  padding-top: 6px;
}
.approach-card__num::before {
  content: counter(approach, decimal-leading-zero);
}
.approach-card__head {
  grid-column: 2;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--neutral-900);
  margin: 0 0 10px;
}
.approach-card__body {
  grid-column: 2;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0;
  /* Cap at the body column inner width but allow grid to shrink without
     overflow. Long technical words (RAGAS, retrieval-augmented) wrap cleanly. */
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* --- Challenge-grid ("What we keep solving here", industry pages) ---
 *
 * Mirrors the approach-card layout — 64px numbered gutter, hairline divider
 * row, head + body in the right column. Without this rule the four cards on
 * every industry page render as raw block text crushed against the left
 * margin (which is the exact bug the QA pass found on healthcare/insurance/
 * etc.). render_challenge_grid emits this markup unconditionally on industries. */
.challenge-grid {
  margin-top: 36px;
  border-top: 1px solid var(--neutral-200);
  counter-reset: challenge;
}
.challenge-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--neutral-200);
  align-items: baseline;
  counter-increment: challenge;
}
.challenge-card__num {
  grid-column: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-400);
  letter-spacing: 0.08em;
  padding-top: 6px;
}
.challenge-card__head {
  grid-column: 2;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--neutral-900);
  margin: 0 0 10px;
}
.challenge-card__body {
  grid-column: 2;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* --- Focus-grid checklist (Outcomes + Deliverables) --- */
.focus-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--neutral-200);
}
.focus-grid li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--neutral-200);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--neutral-800);
  align-items: baseline;
}
.focus-grid li::before {
  content: "→";
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--rm-blue-700);
}
.focus-grid li strong {
  display: inline-block;
  min-width: 0;
}

/* --- Page pull-quote (editorial block quote) --- */
.page-pullquote {
  margin: 56px auto;
  max-width: 880px;
  padding: 32px 0;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}
.page-pullquote__q {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--neutral-900);
  margin: 0 0 16px;
}
.page-pullquote__cite {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

/* --- Crosslink band (services ↔ industries ↔ case studies on detail pages) ---
 *
 * Editorial-registry style: full-width band, hairline-divided cards on light
 * neutral surface, kicker label up top, big title below, "Read more →" right
 * arrow. Cards collapse to one column on mobile.
 *
 * Markup (generated by render_crosslinks):
 *   <section class="crosslink-band">
 *     <div class="crosslink-band__inner">
 *       <div class="crosslink-band__head">
 *         <h2 class="crosslink-band__title">…</h2>
 *       </div>
 *       <div class="crosslink-band__grid">
 *         <a class="crosslink-card" href="…">
 *           <span class="crosslink-card__kicker">Service</span>
 *           <h3 class="crosslink-card__title">…</h3>
 *           <span class="crosslink-card__arrow">Read more →</span>
 *         </a>
 *       </div>
 *     </div>
 *   </section>
 */
.crosslink-band {
  background: var(--neutral-50, #fafafa);
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
  margin: 40px 0 0;
  padding: 64px 0 80px;
}
.crosslink-band__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.crosslink-band__head {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--neutral-200);
}
.crosslink-band__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--neutral-900);
  margin: 0;
}
.crosslink-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.crosslink-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 32px 28px 28px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 240px;
}
/* Soft brand-blue corner glow in the top-right of every card. Sits under
 * the content via z-index so the title/kicker stay sharp. */
.crosslink-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -25%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 50% 50%, rgba(21, 69, 224, 0.12), transparent 65%);
  z-index: -1;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Case-study cards get a slightly deeper accent in the OPPOSITE corner so
 * they read as visually distinct from the industry cards. Attribute-based
 * detection via the kicker text (no markup change required). */
.crosslink-card:has(.crosslink-card__kicker:first-child)::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 50% 50%, rgba(9, 36, 132, 0.08), transparent 65%);
  z-index: -1;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.crosslink-card:hover {
  transform: translateY(-4px);
  border-color: var(--rm-blue-300, #c9d6ff);
  box-shadow: 0 24px 48px -24px rgba(8, 22, 64, 0.22);
}
.crosslink-card:hover::before { transform: scale(1.15); }
.crosslink-card:hover::after { transform: scale(1.15); }

.crosslink-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: start;
  width: max-content;
  padding: 6px 12px;
  background: var(--rm-blue-50);
  border: 1px solid var(--rm-blue-100);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-blue-700);
}
.crosslink-card__kicker::before {
  content: "✦";
  font-size: 10px;
  color: var(--rm-blue-500);
}
.crosslink-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(19px, 1.8vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--neutral-900);
  margin: 0;
  max-width: 22ch;
}
/* Industry / service icon — large line-art glyph at the top of the card.
 * Sits in a rounded blue-tinted tile. Stroke inherits brand blue via
 * `color`, then the SVG uses currentColor. Tile gently rotates on hover. */
.crosslink-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rm-blue-50) 0%, var(--white) 100%);
  border: 1px solid var(--rm-blue-100);
  color: var(--rm-blue-700);
  margin-bottom: 4px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}
.crosslink-card__icon svg { width: 30px; height: 30px; }
.crosslink-card:hover .crosslink-card__icon {
  transform: rotate(-6deg) scale(1.05);
  border-color: var(--rm-blue-300, #c9d6ff);
}
/* Case-study metric — big blue-gradient display number at the top of the
 * card. Same anchor role as the icon does on industry cards. */
.crosslink-card__metric {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(40px, 4.4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(140deg, var(--rm-blue-500) 0%, var(--rm-blue-900) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  margin-bottom: 4px;
  white-space: nowrap;
}
/* Tagline / supporting copy under the title. Plain neutral, short. */
.crosslink-card__tag {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--neutral-600);
  margin: 0;
  max-width: 32ch;
}
/* Variant kicker for case-study cards: deeper blue to differentiate them
 * from the industry tiles at a glance. Subtle but reads clearly side by side. */
.crosslink-card[data-kind="case"] .crosslink-card__kicker {
  background: var(--rm-blue-700);
  border-color: var(--rm-blue-700);
  color: var(--white);
}
.crosslink-card[data-kind="case"] .crosslink-card__kicker::before { color: var(--rm-blue-200); }
.crosslink-card__arrow {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--rm-blue-700);
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--neutral-100);
  transition: gap 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}
.crosslink-card:hover .crosslink-card__arrow {
  gap: 12px;
  color: var(--rm-blue-900);
}
@media (prefers-reduced-motion: reduce) {
  .crosslink-card,
  .crosslink-card::before,
  .crosslink-card::after,
  .crosslink-card__arrow { transition: none; }
}
@media (max-width: 720px) {
  .crosslink-card {
    padding: 24px 22px;
    min-height: 0;
    border-radius: 14px;
  }
}

/* --- Mid-page CTA (clean editorial horizontal banner) --- */
.mid-cta {
  margin: 56px auto;
  max-width: 1080px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--rm-blue-50) 0%, #fff 100%);
  border: 1px solid var(--rm-blue-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.mid-cta__copy { flex: 1 1 320px; }
.mid-cta__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  color: var(--neutral-900);
  margin: 0 0 6px;
}
.mid-cta__sub {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--neutral-600);
  margin: 0;
  line-height: 1.5;
}

/* --- Page body section headings get a chip kicker via existing page-h2 class --- */
.page-body__inner .page-h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--neutral-900);
  margin: 56px 0 22px;
}
.page-body__inner .page-h2:first-child { margin-top: 0; }
.page-body__inner .page-h2 .page-h2__text { display: inline; }

/* --- Hero title 2-color accent (matches home + resources) ---
   The .hero__title-accent class is already used on home + resources to
   apply a blue gradient text-clip to part of the H1. Replicating here
   for page-hero, industries-hub-hero, case-hub-hero headings. */
.page-hero__title .hero__title-accent,
.industries-hub-hero__title .hero__title-accent,
.case-hub-hero__title .hero__title-accent {
  display: inline;
  background: linear-gradient(120deg, var(--rm-blue-700) 0%, var(--rm-blue-900) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.page-hero--banner .page-hero__title .hero__title-accent {
  /* On dark banner hero, use light blue accent instead of dark navy */
  background: linear-gradient(120deg, var(--rm-blue-300) 0%, var(--rm-blue-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* End detail-page body modules. */



/* ============================================================
 * Mobile refinement pass (≤600px). Site-wide phone tuning that
 * sits after every component rule so it wins without !important
 * except where the XL title specificity hack requires it.
 * ============================================================ */
@media (max-width: 600px) {
  /* Hero titles: drop the desktop clamp floors so long words never clip
     on a 360-390px screen, and allow wrap as a final safety net. */
  .hero__title { font-size: clamp(31px, 8.6vw, 44px); line-height: 1.05; }
  .page-hero--xl .page-hero__title.page-hero__title,
  .industries-hub-hero--xl.industries-hub-hero--xl .industries-hub-hero__title,
  .case-hub-hero--xl.case-hub-hero--xl .case-hub-hero__title,
  .res-hero--xl.res-hero--xl .res-hero__title {
    font-size: clamp(31px, 8.4vw, 46px) !important;
    line-height: 1.06 !important;
  }
  .hero__title, .page-hero__title,
  .industries-hub-hero__title, .case-hub-hero__title, .res-hero__title {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* XL hero vertical padding: 240px top is enormous on a phone. The pill nav
     is ~60px; clear it without the cinematic gap. */
  .page-hero--xl.page-hero--xl,
  .industries-hub-hero--xl.industries-hub-hero--xl,
  .case-hub-hero--xl.case-hub-hero--xl,
  .res-hero--xl.res-hero--xl {
    padding-top: 116px;
    padding-bottom: 48px;
  }
  /* When a breadcrumb already provides the nav clearance, tighten further. */
  .page-crumbs + .page-hero--xl.page-hero--xl { padding-top: 28px; }
  .page-crumbs { padding-top: 90px; }

  /* Hero subhead: comfortable phone reading measure. */
  .page-hero__sub, .hero__sub,
  .industries-hub-hero__sub, .case-hub-hero__sub, .res-hero__sub {
    font-size: 16px !important;
    line-height: 1.55;
  }

  /* Section rhythm: trim the big desktop section paddings on phones. */
  .sec { padding-top: 56px; padding-bottom: 56px; }
  .faq { padding: 64px 0; }
  body:has(.hub-engagement-strip) .sec { padding-top: 52px; padding-bottom: 52px; }

  /* Section + FAQ headline scale down a touch on phones. */
  .sec__title { font-size: clamp(24px, 6.4vw, 30px); }
  .faq__title { font-size: clamp(28px, 8vw, 38px); }

  /* Engagement strip: stack to a single column on small phones so the
     4-up node row never crushes. */
  .hub-engagement-strip__nodes,
  .hub-engagement-strip__legends { grid-template-columns: 1fr 1fr; }
  .hub-engagement-strip { padding: 36px var(--gutter) 40px; }

  /* FAQ question rows: a little tighter so 18px headings don't wrap hard. */
  .faq-item__head { padding: 18px 20px; font-size: 16px; gap: 14px; }
  .faq-item__inner p { padding: 0 20px 20px; }

  /* CTA blocks: trim. */
  .cta { padding: 64px var(--gutter); }
  .cta__title { font-size: clamp(26px, 7vw, 34px); }

  /* Tap targets: ensure nav-mobile links + buttons clear 44px. */
  .nav-mobile__menu a { padding: 14px 0; display: block; }
  .btn { min-height: 44px; }

  /* Phones: drop the redundant pill CTA so the bar collapses to a single
   * logo + hamburger row (~60px). "Start a Project" still lives full-width
   * inside the hamburger panel (.nav-mobile__cta), so nothing is lost. */
  .nav-pill__cta { display: none; }
}

/* Very small phones (≤380px): final safety tightening. */
@media (max-width: 380px) {
  .hero__title,
  .page-hero--xl .page-hero__title.page-hero__title,
  .industries-hub-hero--xl.industries-hub-hero--xl .industries-hub-hero__title,
  .case-hub-hero--xl.case-hub-hero--xl .case-hub-hero__title,
  .res-hero--xl.res-hero--xl .res-hero__title {
    font-size: 30px !important;
  }
  .nav-pill { padding: 6px 6px 6px 16px; }
}

/* =========================================================
   DESIGN SYSTEM (D-025) Phase 4 — unified card chrome.
   One corner radius, one border, two-tier shadow, one hover-lift across every
   card family. Internal layout, padding, and photo/scrim treatments are left
   untouched; this only normalizes the shell so cards read as one component.
   Card radius was spread across 14/18/22/24/28px before this.
   ========================================================= */
.service-card, .industry-hub-card, .case-hub-card, .res-card, .res-feature-card,
.cs-slide, .cred-card, .crosslink-card, .quote-card, .member-card, .consultant-card,
.benefit-card, .status-card, .trust-card, .overview-card, .role-card, .approach-card,
.challenge-card, .audience-card, .about-card, .related-card {
  border-radius: var(--radius);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s ease;
}
/* Content / surface cards: one border + one resting shadow. */
.service-card, .res-card, .res-feature-card, .cred-card, .crosslink-card, .quote-card,
.member-card, .consultant-card, .benefit-card, .overview-card, .role-card, .approach-card,
.challenge-card, .audience-card, .about-card, .related-card, .status-card, .trust-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
/* Photo / feature cards keep a richer resting shadow (one value, not bespoke). */
.industry-hub-card, .case-hub-card, .cs-slide {
  box-shadow: var(--shadow);
}
/* One hover lift for every interactive card. */
.service-card:hover, .industry-hub-card:hover, .case-hub-card:hover, .res-card:hover,
.res-feature-card:hover, .cs-slide:hover, .crosslink-card:hover, .consultant-card:hover,
.member-card:hover, .related-card:hover, .audience-card:hover, .role-card:hover,
.approach-card:hover, .challenge-card:hover, .about-card:hover, .overview-card:hover,
.cred-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

body.home .hero__title {
  font-size: clamp(40px, 6vw, 80px); /* home hero capped at 80px (client request 2026-06-01) */
}
body.home .works__title,
body.home .about-us__title,
body.home .team__title,
body.home .industry-slider__title,
body.home .testimonials__title,
body.home .outcomes__title,
body.home .logo-band__title,
body.home .cta__title,
body.home .faq__title,
body.home .services__title,
body.home .process__title,
body.home .frameworks__title {
  font-size: clamp(26px, 4.2vw, 54px);
}

/* =========================================================
   DESIGN SYSTEM (D-025) Phase 2 — buttons + link-CTAs.
   The solid .btn set (primary/ghost/light/lg, pill) is already canonical and
   composed everywhere (incl. contact submit + event register). This only
   normalizes the inline "→" text-link CTAs, which varied 600/700 weight and
   13/14px between sections: one weight + size, blue on light, white on photo.
   ========================================================= */
.service-card__more, .res-card__more, .res-feature-card__more,
.role-card__more, .approach-card__more, .about-card__more, .related-card__more,
.overview-card__more, .insight-card__more, .accordion__more {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--rm-blue-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Homepage services accordion: the OPEN card is dark (--neutral-900), so the
   "Read more" link uses the light blue (not the rm-blue-700 from the grouped
   light-card rule above, which is near-invisible on dark). Indented to align
   with the card's 32px content padding, with bottom padding for breathing room. */
.accordion__more {
  color: var(--rm-blue-300);
  padding: 0 32px 32px;
  text-decoration: none;
  transition: gap .2s var(--ease-out);
}
.accordion__more:hover { gap: 10px; color: var(--rm-blue-200); }
.industry-hub-card__more, .case-hub-card__more, .cs-slide__cta {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---- FacetWP facets styled as Resources chips (D-017) ---- */
.res-chips-stack--facetwp{display:flex;gap:28px;flex-wrap:wrap;margin:24px 0 8px}
.res-chips-stack--facetwp .facetwp-facet{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0}
.res-chips-stack--facetwp .facetwp-facet::before{content:attr(data-name);text-transform:capitalize;font:600 .82rem/1 var(--font-sans,sans-serif);color:var(--ink-soft,#5b6577);margin-right:2px;align-self:center}
.facetwp-checkbox{display:inline-flex;align-items:center;gap:7px;padding:9px 17px;border:1px solid #d3ddf2;border-radius:999px;cursor:pointer;font:600 .9rem/1 var(--font-sans,sans-serif);background:#fff;color:var(--ink,#0b0e18);transition:all .15s ease;margin:0}
.facetwp-checkbox:hover{border-color:#1b4dff}
.facetwp-checkbox.checked{background:#1b4dff;color:#fff;border-color:#1b4dff}
.facetwp-checkbox .facetwp-counter{opacity:.55;font-size:.82em;font-weight:500}
.facetwp-checkbox.checked .facetwp-counter{opacity:.8}
.res-search--facetwp{max-width:560px;margin:0 auto 8px}
.res-search--facetwp .facetwp-search{position:relative}
.res-search--facetwp .facetwp-search input{width:100%;padding:14px 20px;border:1px solid #e2e8f0;border-radius:14px;font-size:1rem;font-family:var(--font-sans,sans-serif)}
.facetwp-template.is-loading{opacity:.45;transition:opacity .2s}

/* Resource video embed, responsive 16:9 player above the article body. */
.article-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 32px; border-radius: 14px; overflow: hidden; background: #070d1e; box-shadow: 0 12px 40px rgba(7,13,30,.18); }
.article-video iframe, .article-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Structured Site Content fallback renderer. */
.editable-sections {
  background: var(--neutral-50);
}
.editable-section {
  padding: var(--section-y, clamp(56px, 7vw, 84px)) 24px;
}
.editable-section + .editable-section {
  border-top: 1px solid var(--line);
}
.editable-section__inner {
  max-width: 980px;
  margin: 0 auto;
}
.editable-section__kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(21, 69, 224, .18);
  background: rgba(21, 69, 224, .07);
  color: var(--rm-blue-700);
  font: 700 12px/1 var(--font-heading);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.editable-section__title {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 54px);
  line-height: .98;
  letter-spacing: 0;
}
.editable-section__body {
  max-width: 760px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.72;
}
.editable-section__body p {
  margin: 0 0 18px;
}
.editable-section__body p:last-child {
  margin-bottom: 0;
}
.editable-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.editable-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.editable-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}
.editable-card__kicker {
  color: var(--rm-blue-700);
  font: 700 12px/1 var(--font-heading);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.editable-card__title {
  margin: 16px 0 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
}
.editable-card__body {
  margin-top: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.editable-card__more {
  margin-top: auto;
  padding-top: 18px;
  color: var(--rm-blue-700);
  font-weight: 800;
}
@media (max-width: 860px) {
  .editable-card-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Testimonials page
   ========================================================= */
.testimonials-hero .page-hero__sub { max-width: 760px; }
.testimonial-videos,
.testimonial-marquee {
  padding: var(--section-y) 0;
  background: var(--body);
}
.testimonial-videos__inner,
.testimonial-marquee__head {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.testimonial-videos .sec__head,
.testimonial-marquee__head {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 42px;
}
.sec__lede {
  margin: 18px auto 0;
  color: var(--neutral-600);
  font-size: 17px;
  line-height: 1.6;
  max-width: 760px;
}
.testimonial-videos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.testimonial-video-card,
.testimonial-written-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.testimonial-video-card {
  display: flex;
  flex-direction: column;
}
.testimonial-video-card__media {
  min-height: 260px;
  background: linear-gradient(135deg, var(--neutral-900), var(--rm-blue-900));
  background-position: center;
  background-size: cover;
  position: relative;
}
.testimonial-video-card__play {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.45);
}
.testimonial-video-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-left: 15px solid var(--rm-blue-700);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.testimonial-video-card__label {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--white);
  background: rgba(8,16,40,.48);
  font: 700 12px/1 var(--font-sans);
}
.testimonial-video-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 310px;
}
.testimonial-video-card__logo,
.testimonial-written-card__logo {
  max-width: 118px;
  max-height: 34px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .74;
}
.testimonial-video-card h3 {
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
}
.testimonial-video-card p,
.testimonial-written-card__quote {
  color: var(--neutral-650, #4b5565);
  line-height: 1.58;
}
.testimonial-video-card__person,
.testimonial-written-card__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.testimonial-video-card__person { display: block; }
.testimonial-video-card__person strong,
.testimonial-written-card__foot strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}
.testimonial-video-card__person span,
.testimonial-written-card__foot span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.testimonial-card-link {
  color: var(--rm-blue-700);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.testimonial-marquee { overflow: hidden; }
.testimonial-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.testimonial-marquee__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: testimonialMarquee 48s linear infinite;
}
.testimonial-marquee:hover .testimonial-marquee__track { animation-play-state: paused; }
@keyframes testimonialMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.testimonial-written-card {
  width: min(420px, calc(100vw - 48px));
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-written-card__quote {
  font-size: 17px;
  color: var(--neutral-700);
}
.testimonial-written-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 8px 20px -12px rgba(15,53,181,.45);
}
.testimonials-cases .crosslink-band__lede {
  color: rgba(255,255,255,.74);
  max-width: 720px;
  line-height: 1.55;
}
@media (max-width: 980px) {
  .testimonial-videos__grid { grid-template-columns: 1fr; }
  .testimonial-video-card {
    display: grid;
    grid-template-columns: minmax(260px, 42%) 1fr;
  }
  .testimonial-video-card__media { min-height: 100%; }
}
@media (max-width: 680px) {
  .testimonial-video-card { display: flex; }
  .testimonial-video-card__media { min-height: 230px; }
  .testimonial-video-card__body,
  .testimonial-written-card { padding: 22px; }
  .testimonial-videos .sec__head,
  .testimonial-marquee__head { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}

/* ============================================================
 * Mobile QA hardening pass, 2026-06-01.
 * Shared fixes for phone and small tablet layouts across WP pages.
 * ============================================================ */
@media (max-width: 720px) {
  .site-header {
    top: 10px;
    padding-inline: 10px;
  }
  .nav-pill {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    gap: 8px;
    padding: 6px 6px 6px 14px;
    border-radius: 18px;
  }
  .nav-mobile {
    top: 74px;
    left: 10px;
    right: 10px;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hero-xl-decor,
  .hero-xl-floats,
  .word-marquee {
    display: none;
  }
  .page-crumbs,
  .article-crumbs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-crumbs__list,
  .article-crumbs__list {
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
    padding-bottom: 2px;
  }
  .page-crumbs__item--current,
  .article-crumbs__item--current {
    max-width: min(62vw, 280px);
  }
  .logo-band__marquee,
  .industry-slider__marquee,
  .testimonial-marquee__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .logo-band__marquee::before,
  .logo-band__marquee::after,
  .industry-slider__marquee::before,
  .industry-slider__marquee::after {
    display: none;
  }
  .logo-band__track,
  .industry-slider__track,
  .testimonial-marquee__track {
    animation: none;
    width: max-content;
    transform: none !important;
  }
  .logo-band__track {
    gap: 28px;
    padding-inline: 20px;
  }
  .industry-slider__track {
    gap: 14px;
    padding-inline: 16px;
  }
  .industry-card {
    flex-basis: min(78vw, 300px);
    min-height: 300px;
  }
  .testimonial-written-card {
    width: min(84vw, 360px);
  }
  .mid-cta {
    margin: 40px auto;
    padding: 24px;
    align-items: stretch;
  }
  .mid-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .crosslink-band__grid,
  .editable-card-grid,
  .testimonial-videos__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer__legal {
    flex-wrap: wrap;
  }
}

/* ============================================================
   Home tweaks — client request 2026-06-01
   1. Hero + section headers reduced ~10px (home only)
   2. Testimonials + Frameworks cards: shimmer only (no hover lift/shadow)
   ============================================================ */
body.home .about-us__title { font-size: clamp(28px, 5.4vw, 66px); }
body.home .services__title { font-size: clamp(34px, 6vw, 66px); }
body.home .works__title,
body.home .process__title,
body.home .benefits__title,
body.home .frameworks__title,
body.home .outcomes__title,
body.home .testimonials__title,
body.home .faq__title { font-size: clamp(26px, 5vw, 54px); }
body.home .team__title { font-size: clamp(24px, 4.6vw, 54px); }
body.home .cta__title { font-size: clamp(30px, 6vw, 70px); }

/* Testimonials: keep resting shadow on hover (drop the lift/emphasis); the
   existing .quote-card::after sweep is the only hover feedback. */
body.home .quote-card:hover {
  box-shadow: 0 12px 32px -12px rgba(15,53,181,.18), 0 2px 4px rgba(11,14,24,.04);
  border-color: var(--line);
  transform: none;
}
/* Frameworks: add the same shimmer sweep + drop the hover lift/emphasis. */
body.home .framework-tile { position: relative; overflow: hidden; }
body.home .framework-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(54,128,255,.12) 50%, transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
  transition: transform .9s var(--ease-out);
  z-index: 1;
}
body.home .framework-tile:hover::after { transform: translateX(100%); }
body.home .framework-tile > * { position: relative; z-index: 2; }
body.home .framework-tile:hover {
  box-shadow: 0 8px 20px -12px rgba(15,53,181,.16), 0 1px 2px rgba(11,14,24,.04);
  border-color: var(--line);
  transform: none;
}

/* ============================================================
   Section headers — all pages standardized to 50px (client request 2026-06-01).
   Renders 50px on desktop, scales down responsively. Excludes hero titles
   (capped separately at 80px) and card/sub-element titles. Appended last +
   !important to win over the per-section + body.home + hub rules above.
   ============================================================ */
.intro__title,
.about-us__title,
.services__title,
.works__title,
.process__title,
.benefits__title,
.capabilities__title,
.frameworks__title,
.team__title,
.outcomes__title,
.testimonials__title,
.faq__title,
.cta__title,
.manifesto__title,
.industry-slider__title,
.logo-band__title,
.sec__title,
.page-h2,
.page-h2__text,
.mid-cta__title,
.about-mission__title,
.about-consultants__title,
.consultants__title,
.credentials__title,
.values__title,
.insights__title,
.related-articles__title,
.portfolio-credentials__title,
.portfolio-ledger__title,
.res-featured__title,
.res-all__title,
.crosslink-band__title {
  font-size: clamp(30px, 4.5vw, 50px) !important;
}

/* ============================================================
   Services scroll-stack showcase (home) — client request 2026-06-01.
   Boyc-style stacked-card reveal, built in Rockmere colors (navy/blue,
   Outfit + Public Sans). Robust position:sticky stacking (no ScrollTrigger
   pin) so it can't fight Lenis. Content reveals via .is-in (IntersectionObserver).
   ============================================================ */
.svc-showcase { position: relative; padding: clamp(56px,7vw,104px) var(--gutter) clamp(32px,5vw,72px); background: var(--body); }
.svc-showcase__head { max-width: 760px; margin: 0 auto clamp(32px,5vw,60px); text-align: center; }
.svc-showcase__head .services__lede { color: var(--neutral-700, #44505f); margin-top: 14px; font-size: clamp(15px,1.2vw,18px); }
.svc-deck { max-width: 1080px; margin: 0 auto; }
.svc-card {
  position: sticky;
  top: calc(clamp(88px, 12vh, 128px) + (var(--i, 0) * 14px));
  margin: 0 auto clamp(26px, 4vw, 52px);
  background: linear-gradient(180deg, #fff 0%, var(--neutral-50, #f6f8fc) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 28px 56px -28px rgba(11,14,24,.22), 0 4px 10px -4px rgba(11,14,24,.06);
  padding: clamp(28px, 3.4vw, 52px);
  overflow: hidden;
  min-height: clamp(360px, 54vh, 500px);
  display: flex; align-items: center;
}
.svc-card:last-child { margin-bottom: 0; }
.svc-card__ghost {
  position: absolute; left: clamp(20px,3vw,44px); top: clamp(10px,2vw,20px);
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(64px, 12vw, 184px); line-height: .82; letter-spacing: -.04em;
  text-transform: uppercase; color: rgba(15,53,181,.05);
  white-space: nowrap; pointer-events: none; user-select: none; z-index: 0; max-width: 92%; overflow: hidden;
}
.svc-card__main { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1fr .92fr; gap: clamp(24px,4vw,56px); align-items: center; }
.svc-card__index { font-family: var(--font-mono, ui-monospace, "SFMono-Regular", monospace); font-weight: 700; font-size: 14px; letter-spacing: .12em; color: var(--rm-blue-600, #2563eb); margin-bottom: 16px; }
.svc-card__index span { color: var(--neutral-400, #9aa3b2); }
.svc-card__title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); margin: 0 0 14px; }
.svc-card__desc { color: var(--neutral-700, #44505f); font-size: clamp(15px,1.1vw,17px); line-height: 1.6; max-width: 52ch; margin: 0 0 22px; }
.svc-card__tags { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-card__tags li { font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--neutral-800, #2b3442); background: var(--neutral-100, #eef1f6); border: 1px solid var(--line); padding: 6px 12px; border-radius: 20px; }
.svc-card__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--rm-blue-600, #2563eb); text-decoration: none; }
.svc-card__link::after { content: "\2192"; transition: transform .25s var(--ease-out, ease); }
.svc-card__link:hover::after { transform: translateX(5px); }
.svc-card__visual { position: relative; align-self: stretch; min-height: clamp(320px, 34vw, 430px); border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: clamp(6px,1vw,14px);
  background: radial-gradient(125% 125% at 18% 8%, var(--rm-blue-500, #3b6ef5) 0%, var(--rm-blue-700, #1d3fb5) 46%, var(--rm-blue-900, #0b1d6b) 100%); }
.svc-card__visual::after { content:""; position:absolute; inset:0; background: radial-gradient(60% 60% at 80% 90%, rgba(255,255,255,.16) 0%, transparent 60%); pointer-events:none; }
/* Hub-and-spoke diagram (One Team centre + service nodes accumulate per card).
   Reveal is scroll-scrubbed: --p (0..1, set per card by JS) drives a per-node
   local progress --lp = clamp(0, p*activeCount - nodeIndex, 1), so spokes draw
   and nodes pop sequentially as the card rises into view. */
.svc-hub-svg { position: relative; z-index: 1; width: 100%; height: 100%; display: block; overflow: visible; }
.svc-hub-ring { stroke: rgba(255,255,255,.12); stroke-width: 1; stroke-dasharray: 2 7; }
.svc-hub-line, .svc-hub-flow, .svc-hub-node { --lp: clamp(0, calc(var(--p, 0) * var(--n, 1) - var(--k, 0)), 1); }
.svc-hub-line { stroke: rgba(255,255,255,.5); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--lp)); }
.svc-hub-flow { stroke: #fff; stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: .12 .88; stroke-dashoffset: 1; opacity: calc(var(--lp) * .95); animation: svcHubFlow 1.9s linear infinite; }
@keyframes svcHubFlow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.svc-hub-node { opacity: var(--lp); transform: scale(calc(.4 + .6 * var(--lp))); transform-box: fill-box; transform-origin: center; }
.svc-hub-node circle { fill: rgba(255,255,255,.1); stroke: rgba(255,255,255,.5); stroke-width: 1.8; }
.svc-hub-node text { fill: rgba(255,255,255,.92); font-family: var(--font-heading); font-weight: 700; font-size: 15px; text-anchor: middle; dominant-baseline: middle; letter-spacing: -.01em; }
.svc-hub-node.is-new circle { fill: rgba(255,255,255,.2); stroke: #fff; stroke-width: 2.2; filter: drop-shadow(0 0 9px rgba(255,255,255,.6)); }
.svc-hub-node.is-new text { fill: #fff; }
.svc-hub-center circle { fill: rgba(255,255,255,.18); stroke: rgba(255,255,255,.66); stroke-width: 2; filter: drop-shadow(0 0 12px rgba(255,255,255,.45)); }
.svc-hub-spark { fill: rgba(255,255,255,.8); font-size: 17px; text-anchor: middle; dominant-baseline: middle; }
.svc-hub-label { fill: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-anchor: middle; dominant-baseline: middle; }
/* content reveal (card itself never transformed — keeps sticky intact) */
.svc-card__text { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out, ease), transform .6s var(--ease-out, ease); }
.svc-card.is-in .svc-card__text { opacity: 1; transform: none; }
.svc-card__visual { opacity: 0; transform: translateY(22px) scale(.98); transition: opacity .7s var(--ease-out, ease), transform .7s var(--ease-out, ease); }
.svc-card.is-in .svc-card__visual { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .svc-card { position: relative; top: auto; min-height: 0; }
  .svc-card__main { grid-template-columns: 1fr; gap: 22px; }
  .svc-card__visual { min-height: clamp(260px, 64vw, 340px); order: -1; }
  .svc-card__ghost { font-size: clamp(52px, 17vw, 88px); }
}
@media (prefers-reduced-motion: reduce) {
  .svc-card { position: relative; top: auto; }
  .svc-card__text, .svc-card__visual, .svc-hub-node { opacity: 1; transform: none; transition: none; }
  .svc-hub-line { stroke-dashoffset: 0; transition: none; }
  .svc-hub-flow { display: none; }
}

/* Mobile overflow fix (QA 2026-06-02): the editorial hero used on About + the
   Resources hub (.ch-title-zone, a flex container injected via stored-content
   inline <style>) left its <h1> at min-width:auto, so a long single-line title
   refused to wrap and overflowed the viewport at <=860px. Force the flex child
   to shrink + wrap. !important beats the body-injected inline <style>. */
@media (max-width: 860px) {
  .ch-title-zone { min-width: 0 !important; max-width: 100% !important; flex-wrap: wrap !important; }
  .ch-title-zone > *,
  .ch-title-zone h1 { min-width: 0 !important; max-width: 100% !important; overflow-wrap: break-word !important; }
}
