/* Visual navigation 2.1: shared components, independent of page slugs. */
:root {
  --mode-audit: #547068;
  --mode-implementation: #18352f;
  --mode-stabilization: #98483f;
  --visual-text-muted: #46544f;
}
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.button--ghost:hover { background: var(--brand-pine-900); color: var(--brand-paper-50); }
.button--light:hover { background: var(--brand-lichen-300); border-color: var(--brand-lichen-300); color: var(--brand-ink-950); }
.visual-motif { width: 100%; height: 100%; color: var(--brand-pine-900); }
.visual-motif .motif-line { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .3; }
.visual-motif .motif-node { fill: var(--brand-paper-50); stroke: currentColor; stroke-width: 1.6; }
.visual-motif .motif-focus { fill: var(--brand-lichen-300); stroke: currentColor; stroke-width: 1.8; }
.visual-motif .motif-strong { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.work-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work-mode {
  --mode-color: var(--mode-audit);
  display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 2.8vw, 36px);
  background: var(--brand-paper-50); border: 1px solid var(--color-border); border-top: 3px solid var(--mode-color);
  border-radius: 8px; text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.work-mode--implementation { --mode-color: var(--mode-implementation); }
.work-mode--stabilization { --mode-color: var(--mode-stabilization); }
.work-mode__intent { display: flex; align-items: center; gap: 10px; color: var(--visual-text-muted); font-size: .84rem; font-weight: 650; }
.work-mode__intent .kh-icon { width: 22px; height: 22px; color: var(--mode-color); }
.work-mode > .visual-motif { height: 134px; margin: 16px 0 20px; flex: none; color: var(--mode-color); }
.work-mode h3 { font-size: clamp(1.8rem, 2.5vw, 2.45rem); line-height: 1.12; hyphens: none; }
.work-mode > p { font-size: 1rem; color: var(--visual-text-muted); margin-bottom: 28px; }
.work-mode__result { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--color-border); display: grid; gap: 5px; }
.work-mode__result > span { font-size: .75rem; color: var(--visual-text-muted); }
.work-mode__result strong { font-size: 1rem; line-height: 1.4; }
.work-mode__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .92rem; font-weight: 750; }
.work-mode__link .kh-icon { width: 22px; height: 22px; }
.work-mode:hover { border-color: var(--mode-color); box-shadow: 0 10px 30px rgb(27 36 33 / 6%); }
.work-mode:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

.competency-section { background: var(--brand-paper-100); }
.competency-map__legend { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 20px; }
.competency-map__legend p { margin: 0; font-weight: 700; font-size: .9rem; }
.competency-map__legend > span { font-size: .8rem; color: var(--visual-text-muted); }
.competency-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.competency-card {
  min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--brand-paper-50); border: 1px solid var(--color-border); border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.competency-card:focus-within { border-color: var(--brand-pine-700); box-shadow: 0 8px 24px rgb(27 36 33 / 6%); }
.competency-card__visual { height: 138px; padding: 12px 36px; background: linear-gradient(130deg, var(--brand-sand-200), var(--brand-paper-100)); border-bottom: 1px solid var(--color-border); }
.competency-card--data .competency-card__visual, .competency-card--ai .competency-card__visual { background: #edf0e5; }
.competency-card__copy { padding: 26px 26px 20px; }
.competency-card__copy h3 { display: flex; align-items: center; gap: 12px; font-size: 1.85rem; hyphens: none; }
.competency-card__copy h3 .kh-icon { width: 25px; height: 25px; color: var(--brand-sage-500); flex: none; }
.competency-card__copy p { margin: 0; color: var(--visual-text-muted); font-size: 1rem; line-height: 1.55; }
.competency-card__routes { display: grid; grid-template-columns: 1fr; margin-top: auto; padding: 0 26px 18px; }
.competency-route { display: flex; align-items: center; gap: 10px; min-height: 46px; border-top: 1px solid var(--color-border); font-size: .88rem; text-decoration: none; font-weight: 650; }
.competency-route > .kh-icon { width: 18px; height: 18px; margin-left: auto; }
.route-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mode-audit); flex: none; }
.competency-route--implementation .route-dot { background: var(--mode-implementation); }
.competency-route--stabilization .route-dot { background: var(--mode-stabilization); }
.competency-route:hover { text-decoration: underline; text-underline-offset: .2em; }
.competency-route:focus-visible { outline-offset: 1px; }
.visual-section-heading { max-width: 48rem; margin-bottom: 40px; }
.visual-section-heading > p:last-child { color: var(--visual-text-muted); }
.commercial-content > .competency-section { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--color-border); border-radius: 8px; }

.work-mode-nav-wrap { padding-block: 24px; }
.work-mode-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.work-mode-nav__item { --mode-color: var(--mode-audit); min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 16px 20px; border: 1px solid var(--color-border); border-radius: 6px; text-decoration: none; font-weight: 650; font-size: .95rem; }
.work-mode-nav__item--implementation { --mode-color: var(--mode-implementation); }
.work-mode-nav__item--stabilization { --mode-color: var(--mode-stabilization); }
.work-mode-nav__item .kh-icon { width: 22px; height: 22px; flex: none; color: var(--mode-color); }
.work-mode-nav__item .kh-icon:last-child { margin-left: auto; width: 18px; height: 18px; }
.work-mode-nav__item[aria-current] { border-color: var(--mode-color); background: var(--brand-paper-50); box-shadow: inset 0 -3px var(--mode-color); }
.work-mode-nav__item:hover { background: var(--brand-paper-50); text-decoration: underline; }

/* Visual catalogue: one semantic card, one link and one clearly related CTA. */
.service-index { gap: 20px; }
.service-index__card { position: relative; padding: 0; border-radius: 8px; transition: border-color .2s, box-shadow .2s; }
.service-index__card > .service-index__visual { display: block; height: 112px; padding: 10px 44px; background: var(--brand-paper-100); border-bottom: 1px solid var(--color-border); }
.service-index__card > .service-index__visual .visual-motif { max-width: 260px; margin-inline: auto; }
.service-index__body { padding: 22px 24px 20px; }
.service-index__card h3 { margin: 14px 0 12px; font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.17; }
.service-index__card p { font-size: 1rem; color: var(--visual-text-muted); }
.service-index__cta { font-size: .9rem; }
.service-index__card:hover { background: var(--brand-paper-50); border-color: var(--brand-sage-500); box-shadow: 0 8px 24px rgb(27 36 33 / 6%); }
.service-index__card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* Ordered HTML is the source of truth; the circle is a decorative enhancement. */
.method-preview__grid { gap: clamp(32px, 5vw, 64px); align-items: center; }
.method-preview__grid > div:first-child { max-width: 30rem; }
.method-preview h2 { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.12; hyphens: none; }
.method-visual { container: method / inline-size; width: 100%; min-width: 0; }
.method-orbit { margin: 0; }
.method-orbit__canvas { position: relative; }
.method-orbit__ring, .method-orbit__core { display: none; }
.method-orbit__steps { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--brand-sage-500); }
.method-orbit__step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 22px 0; position: relative; }
.method-orbit__step + .method-orbit__step { border-top: 1px solid var(--color-border); }
.method-orbit__number { display: grid; place-items: center; width: 32px; height: 32px; background: var(--brand-pine-900); color: var(--brand-paper-50); border-radius: 50%; font: 700 .72rem var(--font-mono); }
.method-orbit__step > div > .kh-icon { display: none; }
.method-orbit__step h3 { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.15; hyphens: none; }
.method-orbit__step strong { display: block; margin-bottom: 4px; font-size: .88rem; line-height: 1.4; }
.method-orbit__step p { margin: 0; font-size: .86rem; color: var(--visual-text-muted); line-height: 1.45; }
.method-orbit figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 20px; font-size: .82rem; color: var(--visual-text-muted); }
.method-orbit figcaption > span { font-size: 1.4rem; color: var(--brand-pine-700); }
.direction-method, .method-page-visual { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.direction-method > div:first-child, .method-page-visual > div:first-child { max-width: 30rem; }
.page-visual--method { padding-block: clamp(48px, 6vw, 80px); background: var(--brand-paper-100); }
@container method (min-width: 30rem) {
  .method-orbit__canvas { aspect-ratio: 1; }
  .method-orbit__ring { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .method-orbit__ring circle { fill: none; stroke: var(--brand-sage-500); stroke-width: 1; opacity: .17; }
  .method-orbit__ring path { fill: none; stroke: var(--brand-sage-500); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .method-orbit__core { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; left: 36%; top: 36%; width: 28%; height: 28%; border-radius: 50%; background: var(--brand-pine-900); color: var(--brand-paper-50); box-shadow: 0 0 0 8px var(--brand-paper-100); }
  .method-orbit__core .kh-icon { width: 24px; height: 24px; color: var(--brand-lichen-300); margin-bottom: 8px; }
  .method-orbit__core strong { font-family: var(--font-display); font-size: clamp(1rem, 3.4cqi, 1.35rem); line-height: 1.2; }
  .method-orbit__core span { font-size: .7rem; color: #dce3df; line-height: 1.4; margin-top: 5px; }
  .method-orbit__steps { padding: 0; border: 0; position: absolute; inset: 0; }
  .method-orbit__step { display: block; position: absolute; width: 36%; padding: 16px 12px; border: 1px solid var(--color-border); border-radius: 7px; background: var(--brand-paper-50); box-shadow: 0 3px 14px rgb(27 36 33 / 4%); text-align: center; }
  .method-orbit__step + .method-orbit__step { border: 1px solid var(--color-border); }
  .method-orbit__step--1 { left: 32%; top: 0; }
  .method-orbit__step--2 { right: 0; top: 35%; }
  .method-orbit__step--3 { left: 32%; bottom: 0; }
  .method-orbit__step--4 { left: 0; top: 35%; }
  .method-orbit__number { width: 26px; height: 26px; margin: -29px auto 12px; font-size: .66rem; }
  .method-orbit__step h3 { font-size: clamp(1.1rem, 3.5cqi, 1.45rem); margin-bottom: 7px; }
  .method-orbit__step strong { font-size: clamp(.73rem, 2.2cqi, .86rem); }
  .method-orbit__step p { font-size: clamp(.72rem, 2.1cqi, .82rem); }
  .method-orbit figcaption { padding-top: 24px; }
}

@media (max-width: 1050px) {
  .work-modes { gap: 12px; }
  .work-mode { padding: 24px 20px; }
  .work-mode h3 { font-size: 1.8rem; }
  .competency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-preview__grid, .direction-method, .method-page-visual { grid-template-columns: 1fr; }
  .method-preview__grid > div:first-child, .direction-method > div:first-child, .method-page-visual > div:first-child { max-width: 44rem; }
  .method-visual { max-width: 42rem; margin-inline: auto; }
  .work-mode-nav__item { padding: 14px; font-size: .85rem; gap: 8px; }
}
@media (max-width: 700px) {
  .work-modes { grid-template-columns: 1fr; gap: 16px; }
  .work-mode { position: relative; padding: 26px; }
  .work-mode > .visual-motif { height: 104px; margin: 16px 0; }
  .work-mode h3 { font-size: clamp(1.65rem, 8vw, 2rem); }
  .work-mode > p { margin-bottom: 20px; }
  .work-mode__result { padding-top: 16px; }
  .work-mode__link { padding-top: 20px; }
  .work-mode-nav { grid-template-columns: 1fr; gap: 8px; }
  .work-mode-nav__item { min-height: 54px; padding: 12px 16px; font-size: .9rem; }
  .work-mode-nav__item[aria-current] { box-shadow: inset 3px 0 var(--mode-color); }
  .competency-map__legend { display: grid; gap: 4px; }
  .competency-grid { gap: 14px; }
  .competency-card__visual { height: 104px; padding: 8px 12px; }
  .competency-card__copy { padding: 20px 18px 16px; }
  .competency-card__copy h3 { font-size: 1.5rem; gap: 8px; }
  .competency-card__copy h3 .kh-icon { width: 20px; height: 20px; }
  .competency-card__copy p { font-size: .93rem; }
  .competency-card__routes { padding: 0 18px 12px; }
  .competency-route { font-size: .8rem; gap: 8px; }
  .commercial-content > .competency-section { padding: 24px 18px; }
}
@media (max-width: 520px) {
  .competency-grid { grid-template-columns: 1fr; }
  .competency-card__visual { height: 124px; padding: 10px 48px; }
  .competency-card__copy h3 { font-size: 1.8rem; }
  .competency-card__copy { padding: 24px 24px 20px; }
  .competency-card__copy p { font-size: 1rem; }
  .competency-card__routes { padding: 0 24px 16px; }
  .competency-route { font-size: .88rem; min-height: 48px; }
  .commercial-content > .competency-section { padding: 24px 0; border-inline: 0; border-radius: 0; }
  .method-preview h2 { font-size: 2rem; }
  .service-index__card > .service-index__visual { height: 104px; padding-inline: 32px; }
  .service-index__body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .work-mode, .competency-card, .service-index__card { transition: none; }
}
