@font-face {
  font-family: "Instrument Sans";
  src: url("./instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

/* Services use the final brand guide, with warm component surfaces. Orange is
   limited to large process numbers and diagram linework, never filled panels. */
body:is(.brand-services,.brand-services-home) {
  --surface: #F7F2E9;
  --paper: #FBF8F1;
  --ink: #202028;
  --muted: #626269;
  --line: rgba(32,32,40,.18);
  --brand: #515CA2;
  --signal: #EC5A35;
  font-family: "Instrument Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:is(.brand-services,.brand-services-home) :is(h1,h2,h3,h4) {
  font-family: "Instrument Sans", Arial, sans-serif;
  font-weight: 500;
  font-style: normal;
}
body.brand-services :is(.service-detail-hero,.service-highlight,.service-process,.service-deliverables,.service-differentiator,.service-faq) {
  background: var(--paper);
}
body.brand-services :is(.service-highlight,.service-process,.service-deliverables,.service-differentiator,.service-faq,.service-cta) { padding-block: 80px; }
body.brand-services :is(.service-detail-hero,.highlight-card,.service-cta)::before,
body.brand-services :is(.service-detail-hero,.highlight-card)::after { display: none; }
body.brand-services .service-detail-hero { padding: 136px 0 64px; border-bottom: 1px solid var(--line); }
body.brand-services .hero-content { max-width: 1000px; }
body.brand-services .service-detail-hero h1 {
  font-size: clamp(56px,6vw,88px); line-height: 1.02; letter-spacing: -.04em;
  color: var(--ink); margin-bottom: 24px;
}
body.brand-services .service-detail-hero .hero-sub { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 68ch; }
body.brand-services .service-detail-hero .breadcrumb :is(a,span) { color: var(--muted); }
body.brand-services .service-detail-hero .breadcrumb .current { color: var(--ink); }
body.brand-services .hero-cta { margin-top: 32px; gap: 16px; }
body.brand-services .section-tag { color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.brand-services .section-tag::before { display: none; }
body.brand-services :is(.section-header,.diff-content) { max-width: 820px; margin: 0 auto 32px; text-align: center; }
body.brand-services :is(.section-header,.diff-content,.service-cta) h2 {
  color: var(--ink); font-size: clamp(40px,4.5vw,60px); font-weight: 500;
  line-height: 1.08; letter-spacing: -.04em; margin: 0 0 24px;
}
body.brand-services :is(.section-header,.diff-content) p,
body.brand-services .service-deliverables .intro-text { color: var(--muted); font-size: 18px; line-height: 1.6; }
body.brand-services .service-deliverables .intro-text { max-width: 70ch; margin-bottom: 32px; }
body.brand-services .highlight-card {
  max-width: none; padding: 40px; gap: 40px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
body.brand-services .highlight-body h2 { font-size: clamp(32px,3.5vw,48px); line-height: 1.08; letter-spacing: -.04em; color: var(--ink); font-weight: 500; margin-bottom: 24px; }
body.brand-services .highlight-body > p { font-size: 18px; line-height: 1.6; margin-bottom: 24px; }
body.brand-services .highlight-bullets li { font-size: 16px; line-height: 1.6; }
body.brand-services .highlight-bullets li i { background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
body.brand-services :is(.process-grid,.deliverables-grid) { gap: 24px; }
body.brand-services .deliverables-grid { max-width: none; }
body.brand-services :is(.process-card,.deliverable-card,.implementation-card,.service-card,.use-case-card,.lc-tech-card,.lc-feature-item,.lc-deliverable-item,.process-step-card,.readiness-checklist,.spine-card,.problem-points li) {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px; box-shadow: none; transform: none;
}
body.brand-services :is(.process-card,.deliverable-card,.implementation-card,.service-card,.use-case-card,.lc-tech-card,.lc-feature-item,.lc-deliverable-item,.process-step-card):hover {
  background: var(--surface); border-color: var(--line); box-shadow: none; transform: none;
}
body.brand-services :is(.process-card,.implementation-card,.service-card,.use-case-card,.lc-tech-card)::before { display: none; }
body.brand-services .service-process .process-number,
body.brand-services .process-step-card .step-number {
  background: none; color: var(--signal); -webkit-text-fill-color: currentColor;
  font: 500 40px/1.15 "Instrument Sans",Arial,sans-serif; letter-spacing: -.025em;
  border: 0; padding: 0; border-radius: 0; width: auto; height: auto; margin-bottom: 24px;
}
body.brand-services :is(.process-card h3,.deliverable-card h4,.implementation-card h4,.service-card h3,.use-case-card h3,.lc-tech-card h3,.lc-deliverable-item h4,.process-step-card h3,.spine-card h3,.readiness-checklist h3) {
  color: var(--ink); font-size: 24px; font-weight: 500; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 16px;
}
body.brand-services :is(.process-card,.deliverable-card,.implementation-card,.service-card,.use-case-card,.lc-tech-card,.lc-feature-item,.lc-deliverable-item,.process-step-card,.spine-card,.problem-points,.section-copy,.hero-support,.lc-example) :is(p,li) {
  color: var(--muted); font-size: 16px; line-height: 1.6; font-weight: 400;
}
body.brand-services :is(.deliverable-icon,.sc-icon,.uc-icon,.lc-tech-card-icon) {
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
}
body.brand-services :is(.deliverable-icon i,.sc-icon i,.uc-icon i,.lc-tech-card-icon i,.lc-feature-item i,.lc-deliverable-item i,.principles-list i,.service-includes i,.checklist-items i,.spine-items i,.proof-list i,.deliverable-list i) {
  color: var(--ink); background: none; -webkit-text-fill-color: currentColor;
}
body.brand-services .service-differentiator { border-block: 1px solid var(--line); }
body.brand-services .diff-content { margin-bottom: 0; }
body.brand-services .service-faq .faq-grid { max-width: 880px; }
body.brand-services .service-faq .faq-item { border-bottom: 1px solid var(--line); }
body.brand-services .service-faq .faq-question { min-height: 64px; padding-block: 24px; color: var(--ink); font-size: 20px; font-weight: 500; line-height: 1.4; }
body.brand-services .service-faq .faq-question:hover { color: var(--brand); }
body.brand-services .service-faq .faq-question i { color: var(--brand); }
body.brand-services .service-faq .faq-answer p { font-size: 17px; line-height: 1.6; }
body.brand-services .service-cta { background: var(--brand); }
body.brand-services .service-cta :is(h2,p) { color: var(--paper); }
body.brand-services .service-cta p { font-size: 18px; line-height: 1.6; max-width: 65ch; margin-bottom: 32px; }
body.brand-services .service-cta .btn-primary { background: var(--paper); color: var(--brand); }
body.brand-services .service-cta .btn-primary:hover { background: var(--surface); color: var(--brand-hover); }
body.brand-services .service-cta .btn-outline { color: var(--paper); border-color: var(--paper); }
body.brand-services .service-cta .btn-outline:hover { background: rgba(251,248,241,.1); }
body.brand-services .trust-badges { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 40px; }
body.brand-services .trust-badge:hover { transform: none; }
body.brand-services .trust-badge-stars i { color: var(--ink); }
body.brand-services .trust-badge-label { font-size: 13px; line-height: 1.4; }

/* SaaS-to-Agent detail: preserve its content hierarchy and readable grids. */
body.brand-services .market-note { background: var(--surface); border-color: var(--ink); color: var(--muted); }
body.brand-services .spine-flow { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
body.brand-services .engagement-meta { background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
body.brand-services .risk-grid .deliverable-card { background: var(--surface); }

/* LangChain: neutral diagrams with orange connectors, separate from controls. */
body.brand-services .lc-hero-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 40px; }
body.brand-services .lc-hero-grid > * { min-width: 0; }
body.brand-services .lc-hero-grid h1 { font-size: clamp(48px,4.5vw,64px); }
body.brand-services :is(.trust-chip,.lc-example) { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
body.brand-services .trust-chip { font-size: 13px; font-weight: 500; }
body.brand-services .trust-chip i { color: var(--ink); }
body.brand-services :is(.lc-feature-item span,.stack-desc,.stack-label) { color: var(--ink); font-family: inherit; font-size: 16px; line-height: 1.6; }
body.brand-services :is(.lc-feature-grid,.lc-deliverable-grid,.implementation-grid,.services-grid,.use-cases-grid,.lc-tech-stack) { gap: 24px; }
body.brand-services :is(.lc-deliverable-grid,.use-cases-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); }
body.brand-services .process-steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
/* Plain orange numerals: no inherited badge, colored glow, or timeline rail. */
body.brand-services .process-steps::before { display: none; }
body.brand-services .process-step-card .step-number {
  width: fit-content; margin-inline: auto; background: transparent;
  border: 0; box-shadow: none; text-shadow: none;
}
body.brand-services .lc-diagram {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px; box-shadow: none; backdrop-filter: none; color: var(--ink);
}
body.brand-services .lc-diagram::before,
body.brand-services .lc-diagram::after,
body.brand-services .lc-diagram-title::after,
body.brand-services .lc-hub::before,
body.brand-services .lc-loop-center::before { display: none; }
body.brand-services .lc-diagram [class] { color: var(--ink); -webkit-text-fill-color: currentColor; background-image: none; box-shadow: none; }
body.brand-services .lc-diagram-title { font-size: 14px; line-height: 1.4; font-weight: 500; letter-spacing: 0; text-transform: none; background: none; margin-bottom: 24px; }
body.brand-services .lc-diagram :is(.lc-pillar,.lc-flow-node,.lc-cap,.lc-pipeline-marker,.lc-pipeline-num,.lc-hub,.lc-spoke,.lc-hub-output,.lc-rag-source,.lc-rag-stage,.lc-stack-layer,.lc-stack-tag,.lc-loop-center,.lc-loop-bubble,.lc-loop-num) {
  background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: none;
}
body.brand-services .lc-diagram :is(.lc-pillar-icon,.lc-rag-stage-icon,.lc-stack-icon,.lc-loop-center-icon,.lc-hub-output-icon) { background: transparent; color: var(--ink); border-color: var(--line); }
body.brand-services .lc-diagram :is(.lc-pillar-name,.lc-flow-node,.lc-pipeline-label,.lc-spoke,.lc-rag-source,.lc-rag-stage,.lc-stack-title,.lc-loop-label) { font-size: 14px; line-height: 1.4; font-weight: 500; }
body.brand-services .lc-diagram :is(.lc-pillar-role,.lc-cap,.lc-stack-tag) { font-size: 13px; line-height: 1.4; font-weight: 400; }
body.brand-services .lc-diagram :is(.lc-pillar,.lc-flow-node,.lc-pipeline-marker,.lc-hub-output,.lc-rag-source,.lc-rag-stage,.lc-stack-layer,.lc-loop-bubble):hover { background: var(--paper); transform: none; border-color: var(--line); }
body.brand-services .lc-diagram .lc-spoke:hover { background: var(--paper); border-color: var(--line); }
body.brand-services .lc-diagram .lc-pipeline-step:hover .lc-pipeline-marker { background: var(--paper); color: var(--ink); transform: none; }
body.brand-services :is(.lc-flow-strip,.lc-pipeline-track)::before { background: var(--signal); }
body.brand-services .lc-pipeline-track::before { height: 2px; opacity: .55; }
body.brand-services .lc-pillar::after { display: none; }
body.brand-services .lc-diagram :is(.lc-hub-out,.lc-loop-node-bubble,.lc-loop-node-num,.lc-stack-tag-pill) { background: var(--paper); border-color: var(--line); color: var(--ink); }
body.brand-services .lc-hub-outputs { border-color: var(--line); }
body.brand-services .lc-diagram :is(.lc-flow-node-label,.lc-loop-node-label,.lc-rag-stage-title,.lc-stack-title,.lc-loop-center-label,.lc-hub-out) { font-size: 14px; line-height: 1.4; font-weight: 500; }
body.brand-services .lc-diagram :is(.lc-pipeline-num,.lc-loop-node-num,.lc-rag-col-title,.lc-rag-stage-sub,.lc-stack-sub,.lc-stack-tag-pill,.lc-loop-center-sub) { font-size: 13px; line-height: 1.4; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.brand-services .lc-diagram .lc-loop-node:hover .lc-loop-node-bubble { background: var(--paper); border-color: var(--line); transform: none; }
body.brand-services .lc-diagram .lc-hub-out:hover { background: var(--paper); border-color: var(--line); transform: none; }
body.brand-services .lc-hub-out::after { color: var(--signal); }
body.brand-services .lc-diagram .lc-spoke:hover { transform: none; }
body.brand-services .lc-diagram :is(.lc-spoke--n,.lc-spoke--s):hover { transform: translateX(-50%); }
body.brand-services .lc-diagram :is(.lc-spoke i,.lc-hub-out i,.lc-stack-body i,.lc-rag-source i) { background: transparent; color: var(--ink); box-shadow: none; }
body.brand-services .lc-hub { border: 1px solid var(--line); font-weight: 500; }
body.brand-services .lc-example h4 { color: var(--ink); font-size: 24px; line-height: 1.15; font-weight: 500; margin-bottom: 16px; }
body.brand-services .principles-list li { font-size: 16px; line-height: 1.6; color: var(--muted); border-color: var(--line); }
body.brand-services .principles-list li::before { color: var(--ink); background: none; }
body.brand-services .lc-rag-stage:not(:last-child)::after { border-top-color: var(--signal); }
body.brand-services .checklist-items li { color: var(--muted); font-size: 16px; line-height: 1.6; }
body.brand-services .service-cta .lc-pipeline-track::before { background: var(--ink); }
body.brand-services .lc-stack-layer::before { background: var(--line); }
body.brand-services .lc-diagram .lc-stack-num { color: var(--signal); font-size: 28px; font-weight: 500; background: none; }
body.brand-services .lc-hero-visual .lc-pillars { grid-template-columns: 1fr; }
body.brand-services .lc-hero-visual .lc-flow-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }

/* Overview keeps its existing interactions and artwork, using the same tokens. */
body.brand-services-home { --cream: var(--paper); }
body.brand-services-home .hero h1 { letter-spacing: -.04em; }
body.brand-services-home .hero h1 :is(span,small) { white-space: normal; }
body.brand-services-home :is(.eyebrow>span,.index,.service-number,.drawer-number,.process-tab>span,#story-count) { font-family: "Instrument Sans",Arial,sans-serif; }
body.brand-services-home .eyebrow { color: var(--ink); font-size: 13px; letter-spacing: .04em; }
body.brand-services-home .eyebrow i { background: currentColor; }
body.brand-services-home :is(.advantage,.service-card,.service-drawer,.core-service,.process-panel,.process-panel>div,.industry-shell,.case-slider,.research-card,.research-body,.menu-feature,.services-dropdown) { background: var(--surface); }
body.brand-services-home .core-service { border-color: var(--line); }
body.brand-services-home .core-service::before { background: var(--ink); }
body.brand-services-home .core-star { color: var(--ink); }
body.brand-services-home .roadmap-cta>span { background: transparent; color: inherit; }
body.brand-services-home .service-drawer[open] .drawer-plus { background: transparent; border-color: var(--brand); color: var(--brand); }
body.brand-services-home .signal-icon { background: transparent; border: 1px solid var(--line); }
body.brand-services-home :is(.core-star,.signal-icon) { -webkit-text-fill-color: currentColor; }
body.brand-services-home :is(.wp-badge,.wp-desc,.wp-title,.wp-cta) { color: var(--paper); }
body.brand-services-home .wp-badge::before { background: var(--paper); }
body.brand-services-home :is(.hero-framework,.shield-band,.langchain-band,.contact-section) .eyebrow { color: var(--paper); }
body.brand-services-home .stats strong { color: var(--signal); font-weight: 500; letter-spacing: -.04em; }
body.brand-services-home .stats>div::before { display: none; }
body.brand-services-home :is(.compact-process .process-tab[aria-selected=true]::after,.industry-tabs [aria-selected=true]::after,.trust-strip>a::after) { background: var(--brand); }
body.brand-services-home .case-slider::before { display: none; }
body.brand-services-home :is(.advantage>p,.service-card p,.drawer-body p,.included-list li,.industry-content p,.research-body p,.story-copy blockquote p,.wp-desc) { font-size: 16px; line-height: 1.6; }
body.brand-services-home :is(.tags span,.hero-trust,.trust-strip .review-label,.core-rules p,.process-panel figcaption,.architecture-figure figcaption,.wp-badge) { font-size: 13px; line-height: 1.4; }
body.brand-services-home :is(.service-drawer summary h3,.drawer-body h4) { font-size: 24px; line-height: 1.15; font-weight: 500; letter-spacing: -.025em; }
body.brand-services-home .drawer-body h4 { font-size: 13px; line-height: 1.4; letter-spacing: 0; color: var(--ink); }
body.brand-services-home .included-list li { font-size: 13px; line-height: 1.4; }
body.brand-services-home :is(.compact-process .process-panel p,.core-lead>p:last-child,.research-card p) { font-size: 16px; line-height: 1.6; }
body.brand-services-home :is(.compact-process .process-panel .tags span,.compact-process .process-tab>span,.industry-tabs button,.compact-industries .industry-details h4,.core-rules h4) { font-size: 13px; line-height: 1.4; }
body.brand-services-home .compact-industries .industry-details .check-list li { font-size: 16px; line-height: 1.6; }
body.brand-services-home :is(.wp-cta,.story-controls>button,.story-dots button,.industry-tabs button) { min-height: 44px; }
body.brand-services-home .wp-cta { background: var(--paper); color: var(--brand); font-size: 14px; }
body.brand-services-home .story-controls>button { min-width: 44px; }
body.brand-services-home .trust-strip>a:hover { transform: none; box-shadow: none; }

@media (max-width: 1200px) {
  body.brand-services .lc-hero-grid { grid-template-columns: 1fr; }
  body.brand-services .lc-hero-visual .lc-pillars { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.brand-services .lc-hero-grid h1 { font-size: clamp(48px,6vw,80px); max-width: 1000px; }
}
@media (max-width: 880px) {
  body.brand-services :is(.lc-feature-grid,.lc-tech-stack,.process-steps) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.brand-services .lc-diagram { padding: 24px; }
  body.brand-services .lc-pipeline-track::before { width: 2px; height: auto; }
}
@media (max-width: 767px) {
  body.brand-services .service-detail-hero { padding: 112px 0 48px; }
  body.brand-services .service-detail-hero h1 { font-size: clamp(42px,9vw,56px); line-height: 1.08; }
  body.brand-services :is(.service-highlight,.service-process,.service-deliverables,.service-differentiator,.service-faq,.service-cta) { padding-block: 48px; }
  body.brand-services :is(.section-header,.diff-content,.service-cta) h2 { font-size: 36px; line-height: 1.08; }
  body.brand-services .highlight-body h2 { font-size: 32px; }
  body.brand-services .highlight-card { padding: 24px; }
  body.brand-services :is(.process-card,.deliverable-card,.implementation-card,.service-card,.use-case-card,.lc-tech-card,.lc-feature-item,.lc-deliverable-item,.process-step-card,.readiness-checklist,.spine-card,.problem-points li) { padding: 24px; }
  body.brand-services :is(.spine-flow,.lc-feature-grid,.lc-deliverable-grid,.implementation-grid,.services-grid,.use-cases-grid,.lc-tech-stack,.process-steps) { grid-template-columns: minmax(0,1fr); }
  body.brand-services .lc-hero-visual .lc-pillars { grid-template-columns: 1fr; }
  body.brand-services .lc-hero-visual .lc-flow-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.brand-services .lc-diagram { padding: 24px 16px; }
  body.brand-services .lc-diagram :is(.lc-rag-stage,.lc-rag-source,.lc-stack-layer) { min-width: 0; }
  body.brand-services-home .hero h1 { font-size: clamp(42px,10vw,56px); }
  body.brand-services-home :is(.hero-description,.langchain-grid p:not(.eyebrow)) { font-size: 17px; line-height: 1.6; }
  body.brand-services-home .hero-framework { flex-direction: column; align-items: stretch; padding: 24px; }
  body.brand-services-home .framework-visual { align-self: center; width: 160px; flex-basis: auto; height: 210px; }
  body.brand-services-home .hero-framework .framework-visual .wp-cover { width: 116px; }
  body.brand-services-home .wp-title { font-size: 32px; }
  body.brand-services-home .wp-cta { font-size: 14px; }
  body.brand-services-home .section { padding-bottom: 64px; }
  body.brand-services-home .section-head h2 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  body:is(.brand-services,.brand-services-home) *,
  body:is(.brand-services,.brand-services-home) *::before,
  body:is(.brand-services,.brand-services-home) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
