/* ════════════════════════════════════════════════════════════════
   PRESNSE — SERVICES HUB  ·  bespoke per-page module layer
   ----------------------------------------------------------------
   Archetype: HUB / ROUTER. The page IS a router — the navigation
   logic is the hero (no hero-mod). Invented modules: Router matrix,
   Layer-weakness insight, Service routes, System weave (dark),
   Method credential. Reused signatures: .entity dark shell, FAQ
   accordion (.acc), stat-chip evidence, nav/footer/blueprint/motion.
   Consumes tokens from foundation.css ONLY — no raw colour.
   ════════════════════════════════════════════════════════════════ */

/* shared narrow measure for this page's prose blocks */
.sh-measure{max-width:64ch;}

/* ───────────────────────────────────────────────────────────────
   MODULE 01 · ROUTER  [INVENTED — the page's own hero]
   A diagnostic routing instrument. Left: H1 + problem + CTAs.
   Right: a 4-row symptom→route matrix. The instrument is the hero.
   ─────────────────────────────────────────────────────────────── */
.router{padding-top:clamp(28px,4vw,56px);}
.router-panel{border:1px dashed var(--line-em);background:var(--tx-on-70);backdrop-filter:blur(2px);}
.router-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:14px 22px;border-bottom:1px dashed var(--line-dash);
  font-family:var(--mono);font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);}
.router-head .st{display:inline-flex;align-items:center;gap:8px;color:var(--ink);font-weight:500;}
.router-head .st .d{width:7px;height:7px;border-radius:50%;background:var(--lime);
  box-shadow:0 0 0 3px var(--lime-glow);animation:omnia-pulse 1.8s infinite;}
.router-grid{display:grid;grid-template-columns:1.12fr .88fr;}
.router-intro{padding:clamp(28px,4vw,52px);border-right:1px dashed var(--line-dash);}
.router-intro .cc{display:block;margin-bottom:20px;}
.router-intro h1{font-size:clamp(2rem,3.9vw,3.4rem);line-height:1.06;letter-spacing:-.03em;font-weight:600;}
.router-intro h1 .sym{font-family:var(--serif);font-style:italic;font-weight:400;color:inherit;}
.router-intro p{margin-top:22px;max-width:52ch;color:var(--ink-soft);font-size:clamp(1rem,1.1vw,1.12rem);line-height:1.6;}
.router-cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px;}

/* the routing matrix — symptom → service route */
.router-matrix{display:flex;flex-direction:column;}
.matrix-cap{padding:16px 22px 12px;font-family:var(--mono);font-size:.62rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--faint);border-bottom:1px dashed var(--line-dash);}
.route-row{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;
  padding:18px 22px;border-bottom:1px dashed var(--line-dash);color:inherit;
  transition:background .2s var(--ease),padding-left .25s var(--ease);}
.route-row:last-child{border-bottom:none;}
.route-row:hover{background:var(--wash-soft);padding-left:28px;}
.route-row .rc{font-family:var(--mono);font-size:.62rem;color:var(--lime-ink);letter-spacing:.06em;padding-top:3px;}
.route-row .sym-t{font-size:.92rem;color:var(--ink-soft);line-height:1.45;}
.route-row .arrow-to{display:flex;align-items:center;gap:8px;margin-top:8px;
  font-family:var(--mono);font-size:.74rem;font-weight:500;color:var(--ink);}
.route-row .arrow-to .ar{color:var(--lime-deep);transition:transform .25s var(--ease);}
.route-row:hover .arrow-to .ar{transform:translateX(4px);}

/* ───────────────────────────────────────────────────────────────
   MODULE 02 · INSIGHT  [INVENTED — layer-weakness answer card]
   The expert angle as a highlighted answer, with a 4-layer status
   ornament (one layer reads "weak" — data-as-ornament).
   ─────────────────────────────────────────────────────────────── */
.insight-panel{display:grid;grid-template-columns:1.25fr .75fr;gap:clamp(28px,4vw,56px);
  margin-top:40px;border:1px solid var(--line-mid);border-top:2px solid var(--ink);
  background:var(--paper-card);padding:clamp(26px,3.4vw,46px);}
.insight-panel .lede{font-size:clamp(1.25rem,2vw,1.7rem);line-height:1.3;letter-spacing:-.01em;
  font-weight:500;color:var(--ink);max-width:30ch;}
.insight-panel .lede .sym{font-family:var(--serif);font-style:italic;font-weight:400;}
.insight-body p{font-size:.95rem;color:var(--ink-soft);line-height:1.62;margin-top:16px;max-width:60ch;}
.insight-body p:first-child{margin-top:0;}
/* layer-status ornament */
.layer-gauge{align-self:start;border:1px dashed var(--line-rule);background:var(--bg);padding:20px;}
.layer-gauge .gl{font-family:var(--mono);font-size:.6rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--faint);margin-bottom:16px;display:block;}
.lyr{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px dashed var(--line);}
.lyr:last-child{border-bottom:none;}
.lyr .ld{width:8px;height:8px;border-radius:50%;background:var(--lime);
  box-shadow:0 0 0 3px var(--lime-glow);flex:0 0 auto;}
.lyr.weak .ld{background:var(--amber);box-shadow:0 0 0 3px var(--amber-glow);}
.lyr .ln{font-size:.86rem;color:var(--ink);font-weight:500;flex:1;}
.lyr .lt{font-family:var(--mono);font-size:.62rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);}
.lyr.weak .lt{color:var(--amber);}

/* ───────────────────────────────────────────────────────────────
   MODULE 03 · SERVICE ROUTES  [INVENTED — route cards]
   Distinct from the homepage 2×2 sys-grid: each card leads with a
   route coordinate + glyph, an italic "For …" qualifier, then body.
   ─────────────────────────────────────────────────────────────── */
.route-grid{display:grid;grid-template-columns:repeat(2,1fr);border:1px solid var(--line-mid);
  margin-top:40px;background:var(--bg);}
.route-card{padding:clamp(26px,3vw,40px);border-right:1px dashed var(--line-soft);
  border-bottom:1px dashed var(--line-soft);position:relative;transition:background .2s;
  display:flex;flex-direction:column;}
.route-card:nth-child(2n){border-right:none;}
.route-card:nth-last-child(-n+2){border-bottom:none;}
.route-card:hover{background:var(--wash-soft);}
.route-card .rc-top{display:flex;align-items:center;justify-content:space-between;gap:14px;}
.route-card .rc-glyph{width:34px;height:34px;color:var(--ink);}
.route-card .rc-no{font-family:var(--mono);font-size:.66rem;letter-spacing:.06em;color:var(--lime-ink);}
.route-card h3{font-size:1.28rem;font-weight:600;letter-spacing:-.01em;margin-top:18px;}
.route-card .rc-for{font-family:var(--serif);font-style:italic;font-size:1.02rem;color:var(--muted);
  margin-top:10px;line-height:1.4;}
.route-card .rc-body{font-size:.92rem;color:var(--ink-soft);margin-top:11px;line-height:1.55;}
.route-card .go{margin-top:auto;padding-top:18px;font-family:var(--mono);font-size:.76rem;
  display:inline-flex;gap:8px;align-items:center;color:var(--ink);}
.route-card .go .arr{transition:transform .25s var(--ease);}
.route-card:hover .go .arr{transform:translateX(4px);}

/* ───────────────────────────────────────────────────────────────
   MODULE 04 · SYSTEM WEAVE  [INVENTED — interconnection diagram]
   Dark bookend (reuses .entity shell). Left: the 5-layer stack.
   Right: a 4-node weave showing the layers reinforce each other.
   ─────────────────────────────────────────────────────────────── */
.weave-wrap{display:grid;grid-template-columns:.92fr 1.08fr;gap:clamp(28px,4.5vw,64px);
  margin-top:44px;align-items:center;}
/* the 5-layer stack */
.layer-stack{border-top:1px dashed var(--line-on-mid);}
.lstack-row{display:grid;grid-template-columns:auto 1fr;gap:16px;padding:18px 0;
  border-bottom:1px dashed var(--line-on-dash);align-items:start;}
.lstack-row .ln-no{font-family:var(--mono);font-size:.9rem;font-weight:600;color:var(--lime);line-height:1.4;}
.lstack-row h3{font-size:1.05rem;font-weight:600;color:var(--white);letter-spacing:-.01em;}
.lstack-row p{font-size:.86rem;color:var(--tx-on-62);line-height:1.5;margin-top:5px;}
/* the weave diagram */
.weave-vis{border:1px solid var(--line-on);background:var(--wash-on-min);
  padding:clamp(24px,3vw,40px);}
.weave-cap{font-family:var(--mono);font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--tx-on-45);margin-bottom:14px;display:flex;align-items:center;gap:9px;}
.weave-cap .dot{width:6px;height:6px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 3px var(--lime-glow-2);}
.weave-svg{width:100%;height:auto;display:block;overflow:visible;}
.weave-svg .wl{fill:none;stroke:var(--line-on-em);stroke-width:1.3;
  stroke-dasharray:560;stroke-dashoffset:560;transition:stroke-dashoffset 1.2s var(--ease);transition-delay:var(--d,0s);}
.weave-svg.drawn .wl{stroke-dashoffset:0;}
.weave-svg .wnode{fill:var(--inverse-bg);stroke:var(--line-on-mid);stroke-width:1;}
.weave-svg .wlabel{fill:var(--white);font-family:var(--mono);font-size:11px;letter-spacing:.04em;}
.weave-svg .wsub{fill:var(--tx-on-50);font-family:var(--mono);font-size:8.5px;letter-spacing:.06em;}
.weave-svg .wcore{fill:none;stroke:var(--lime);stroke-width:1.4;opacity:0;}
.weave-svg.drawn .wcore{animation:hubPulse 3s ease-out infinite;}
.weave-svg .wcore-dot{fill:var(--lime);}
/* the integration rationale prose under the weave */
.weave-note{margin-top:clamp(32px,4vw,52px);border-top:1px dashed var(--line-on-dash);
  padding-top:clamp(28px,3.5vw,44px);}
.weave-note h3{font-size:1.15rem;font-weight:600;color:var(--white);letter-spacing:-.01em;max-width:30ch;}
.weave-note p{font-size:.95rem;color:var(--tx-on-70);line-height:1.62;margin-top:14px;max-width:74ch;}
.weave-note .excl{margin-top:16px;font-family:var(--mono);font-size:.78rem;color:var(--tx-on-55);
  border-left:2px solid var(--lime);padding-left:16px;max-width:60ch;}

/* ───────────────────────────────────────────────────────────────
   MODULE 05 · METHOD  [INVENTED — research credential + CTA]
   Method-before-scope, with the 1,200+ / 40+ research figures as
   data-as-ornament (count-up). Light. Reuses .btn.
   ─────────────────────────────────────────────────────────────── */
.method-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(32px,5vw,72px);
  margin-top:40px;align-items:start;}
.method-grid p{font-size:1rem;color:var(--ink-soft);line-height:1.62;margin-top:18px;max-width:58ch;}
.method-cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px;}
.method-figs{border-top:2px solid var(--ink);}
.mfig{display:flex;align-items:baseline;gap:18px;padding:22px 0;border-bottom:1px dashed var(--line-dash);}
.mfig .fn{font-family:var(--sans);font-size:clamp(2.4rem,5vw,3.6rem);font-weight:700;
  letter-spacing:-.04em;line-height:.9;color:var(--ink);}
.mfig .fn .sym{font-family:var(--serif);font-style:italic;font-weight:400;color:var(--lime-deep);}
.mfig .fl{font-size:.9rem;color:var(--ink-soft);line-height:1.45;max-width:24ch;}

/* ───────────────────────────────────────────────────────────────
   RELATED PAGES — compact mono index (light, pre-footer)
   ─────────────────────────────────────────────────────────────── */
.rel-grid{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px;}
.rel{font-family:var(--mono);font-size:.76rem;letter-spacing:.02em;color:var(--ink);
  border:1px dashed var(--line-rule);border-radius:var(--radius-tag);padding:8px 14px;
  display:inline-flex;align-items:center;gap:8px;transition:background .2s,border-color .2s;}
.rel:hover{background:var(--wash-soft);border-color:var(--ink);}
.rel .ar{color:var(--lime-deep);}

/* ───────────────────────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────────────────────── */
@media(max-width:900px){
  .router-grid{grid-template-columns:1fr;}
  .router-intro{border-right:none;border-bottom:1px dashed var(--line-dash);}
  .insight-panel{grid-template-columns:1fr;gap:32px;}
  .route-grid{grid-template-columns:1fr;}
  .route-card{border-right:none;}
  .route-card:nth-last-child(-n+2){border-bottom:1px dashed var(--line-soft);}
  .route-card:last-child{border-bottom:none;}
  .weave-wrap{grid-template-columns:1fr;gap:36px;}
  .method-grid{grid-template-columns:1fr;gap:36px;}
}

/* reduced-motion / no-JS fallback: never leave the weave lines hidden */
@media(prefers-reduced-motion:reduce){
  .weave-svg .wl{stroke-dashoffset:0;}
  .router-head .st .d{animation:none;}
}
