/* Shared desktop roles. Existing universal tokens remain the source of truth. */
@media(min-width:951px){
[data-type-role="hero"]{font-family:var(--font-display)!important;font-size:var(--type-hero)!important;font-weight:600!important;line-height:1.08!important;letter-spacing:-.025em!important}
[data-type-role="section"]{font-family:var(--font-display)!important;font-size:var(--type-section)!important;font-weight:500!important;line-height:1.12!important;letter-spacing:-.025em!important}
main p.eyebrow,main h2.eyebrow{font-family:var(--font-body)!important;font-size:var(--type-label)!important;font-weight:300!important;letter-spacing:.16em!important;line-height:1.6!important;text-transform:uppercase}
.about-hero .hero-lead{line-height:calc(var(--type-body) * var(--leading-body))}
}

/* One consistent active navigation state, independent of page-specific styles. */
.site-header #main-nav a[aria-current="page"]{color:var(--color-accent,#ff3c89)}

/* English type hierarchy: one weight per semantic role, not per colour. */
html[lang="en"]{
  --weight-brand-name:300;
  --weight-brand-growth:700;
  --weight-navigation:300;
  --weight-navigation-accent:500;
  --weight-section-label:300;
  --weight-hero-label:400;
  --weight-group-label:500;
  --weight-column-title:500;
}
html[lang="en"] .site-header .brand{font-weight:var(--weight-brand-name)!important}
html[lang="en"] .site-header .brand>span{font-weight:var(--weight-brand-growth)!important}
html[lang="en"] .site-header #main-nav a{font-weight:var(--weight-navigation)}
html[lang="en"] .site-header #main-nav a:is(:hover,:focus-visible,[aria-current="page"]){
  color:var(--color-accent,#ff3c89);
}
html[lang="en"] main :is(p,h2).eyebrow,
html[lang="en"] main .client-strip>h2{
  font-family:var(--font-body)!important;
  font-size:var(--type-label,var(--size-label,15px))!important;
  font-weight:var(--weight-section-label)!important;
  line-height:1.6!important;
  letter-spacing:.16em!important;
}
html[lang="en"] main :is(.hero,.who-hero,.about-hero,.contact-hero,.qhero,.neural-hero) .eyebrow{
  font-weight:var(--weight-hero-label)!important;
}
html[lang="en"] main :is(.assurance-layout,.assurance-recognition,.dma-value,.support) .eyebrow,
html[lang="en"] main .service-group-title{
  font-family:var(--font-body)!important;
  font-size:var(--type-label,var(--size-label,15px))!important;
  font-weight:var(--weight-group-label)!important;
  line-height:1.6!important;
  letter-spacing:.16em!important;
}
html[lang="en"] :is(.personal-facts,.who-photo-section .who-grid,.scene .three) h3{
  font-family:var(--font-display);
  font-weight:var(--weight-column-title);
  font-size:var(--type-personal,20px);
  line-height:1.3;
}

/* Reading size: shared by introductions and prose. UI and compact data keep their own roles. */
:root { --type-prose: 20px; }
@media (max-width: 950px) {
  :root { --type-prose: 18px; }
}
main :is(
  p.hero-description, p.hero-lead, p.intro-lead, p.intro-overview,
  p.right-copy, p.about-person-intro, p.contact-hero-deck, p.contact-form-intro,
  p.qdefinition, p.ideas-deck, p.origin-lead,
  .hero-message > p:not([class]),
  .contact-content > p:not([class]),
  .intro-copy > p:not([class]),
  .personal-facts > div > p:not([class]),
  .who-grid > div > p:not([class]),
  .navigator-intro > p:not(.eyebrow),
  .navigator-card > p:not(.eyebrow),
  .service-panel > p:not(.eyebrow),
  .dma-copy > p:not(.eyebrow),
  .dma-value > p:not(.eyebrow),
  #person > div > p:not(.eyebrow),
  .about-panels [role="tabpanel"] > p:not(.eyebrow),
  .about-page .assurance-layout > article > p:not(.eyebrow),
  .about-page .assurance-recognition > p:not(.eyebrow),
  .neural-hero-copy > p.lead,
  .neural-origin-editorial .origin-composition p:not(.eyebrow),
  .origin-grid p:not(.eyebrow),
  .method-heading > p.lead,
  .stage-panel .face-copy > p,
  #dma-business-value p.lead,
  .neural-benefits > article > p:not(.eyebrow),
  .portfolio-hero p.lead,
  .reference-hero p.lead,
  .who-copy > p:not(.eyebrow),
  .who-content > p:not([class]),
  .who-page #fit .intro > p:not(.eyebrow),
  .who-page .need-panel p:not(.eyebrow),
  .partnership-intro > p:not(.eyebrow),
  .partnership-points article > div > p:not(.eyebrow),
  .partnership-proof > p:not(.eyebrow),
  .qheading > p:not(.eyebrow),
  .qfit > p:not(.eyebrow),
  .qchannels > p:not(.eyebrow),
  .qchannel-disclosure > p:not(.eyebrow),
  .qstep > p:not(.eyebrow),
  .qscope p:not(.eyebrow),
  .trust-inline > p:not(.eyebrow),
  .qresult p:not(.eyebrow),
  .qquestion > p:not(.eyebrow),
  .ih-stream-heading > p:not(.eyebrow),
  .ih-radar-story > p:not(.eyebrow),
  .ih-archive-heading > div > p:not(.eyebrow),
  .ideas-central > p:not(.eyebrow),
  .ideas-body > section :is(p,li,blockquote):not(.eyebrow)
),
main.legal-page > section :is(p,li) {
  /* Local page styles load in different orders; the prose size takes precedence. */
  font-size: var(--type-prose) !important;
}
main .ih-radar-story > p { -webkit-line-clamp: unset; }

/* Shared type sizes. The two homepages also opt in to their approved text palette. */
.type-system {
  --type-hero: clamp(64px, 5.7vw, 86px);
  --type-section: 48px;
  --type-subheading: 24px;
  --type-lead: 20px;
  --type-prose: 18px;
  --type-label: 16px;
  --type-meta: 14px;
  --type-country: var(--type-meta);
  --type-metric: 58px;
}

.type-system:where([data-page="home"]) {
  --color-white: #f4f3ef;
  --color-accent: #ff3c89;
  --color-gray: #a3a3aa;
  --fg: var(--color-white);
  --muted: var(--color-gray);
  --pink: var(--color-accent);
  --pink-brand: var(--color-accent);
  --pink-photo: var(--color-accent);
  --pink-dark-surface: var(--color-accent);
  --pink-photo-accent: var(--color-accent);
  color: var(--color-gray);
}

.home-page.type-system {
  color: var(--color-white);
}

@media (max-width: 950px) {
  .type-system {
    --type-hero: clamp(38px, 8.5vw, 56px);
    --type-section: 34px;
    --type-subheading: 20px;
    --type-lead: 18px;
    --type-prose: 16px;
    --type-label: 13px;
    --type-meta: 13px;
    --type-metric: clamp(44px, 8vw, 48px);
  }
}

.type-system main [data-type-role="hero"] {
  font-size: var(--type-hero);
}

.type-system main :is([data-type-role="section"], .contact-content h2) {
  font-size: var(--type-section);
}

.type-system main :is(h3:not(.eyebrow), .insight-post h4) {
  font-size: var(--type-subheading);
}

.type-system:where([data-page="home"]) main :is(h3:not(.eyebrow), .insight-post h4) {
  color: var(--color-white);
}

.type-system:where([data-page="home"]) main :is(p.eyebrow, h2.eyebrow) {
  color: var(--color-accent);
}

.type-system main :is(#home .hero-description, .intro-lead, .right-copy, .dma-copy > .lead, .contact-content > h2 + p) {
  --type-prose: var(--type-lead);
  font-size: var(--type-lead);
}

.type-system:where([data-page="home"]) main :is(#home .hero-description, .intro-lead, .right-copy, .dma-copy > .lead, .contact-content > h2 + p) {
  color: var(--color-white);
}

.type-system main :is(#home .hero-description, #about .intro-lead, #about .personal-facts p, #contact .contact-content > h2 + p, #contact .contact-signature, #contact .contact-signature span) {
  --type-prose: var(--type-lead);
  font-family: var(--font-body);
  font-size: var(--type-lead);
  font-weight: 400;
  line-height: 1.55;
}

.type-system:where([data-page="home"]) #about .personal-facts h3 {
  color: var(--color-accent);
}

.type-system:where([data-page="home"]) main :is(#about .personal-facts p, #services .navigator-card p, #dma .dma-copy p:not(.eyebrow, .lead), #results .metrics span) {
  color: var(--color-gray);
}

.type-system main :is(#services .navigator-card p, #results .metrics span) {
  font-family: var(--font-body);
  font-size: var(--type-prose);
}

.type-system:where([data-page="home"]) #services .navigator-card :is(h3, .service-title-link) {
  color: var(--color-accent);
}

.type-system main :is(.client-item > span, .photo-label, .client-name) {
  font-size: var(--type-meta);
}

.type-system:where([data-page="home"]) main :is(.client-item > span, .photo-label, .client-name) {
  color: var(--color-gray);
}

.type-system #contact .contact-button {
  margin-top: 40px;
}

@media (max-width: 750px) {
  .type-system #contact .contact-description-break {
    display: none;
  }
}

.type-system main .selected-work .metrics strong {
  font-size: var(--type-metric);
}

.type-system:where([data-page="home"]) main .selected-work .metrics strong {
  color: var(--color-accent);
}


.type-system:where([data-page="home"]) #dma .dma-copy > .lead {
  color: var(--color-white);
}

.type-system #results .metrics {
  gap: clamp(24px, 4vw, 48px);
}

.type-system .footer-identity .brand {
  font-size: 30px;
}

.type-system .footer-main :is(.footer-identity p, .footer-column a) {
  font-size: var(--type-prose);
}

.type-system .site-footer .footer-credentials {
  flex-wrap: wrap;
}

.type-system .site-footer .footer-credential {
  font-size: 16px;
}

@media (max-width: 950px) {
  .type-system .footer-identity .brand {
    font-size: 26px;
  }

  .type-system .site-footer .footer-credential {
    font-size: 15px;
  }
}


.type-system #results .metrics {
  margin-bottom: 10px;
}

.type-system #results .work-metrics-source {
  font-size: var(--type-meta);
  margin: 0 0 16px;
}

.type-system:where([data-page="home"]) #results .work-metrics-source {
  color: var(--color-gray);
}

.type-system .footer-main .footer-column {
  gap: 6px;
  line-height: 1.45;
}

.type-system .footer-main .footer-column address {
  font-size: var(--type-prose);
  font-style: normal;
}

.type-system:where([data-page="home"]) .footer-main .footer-column address {
  color: var(--color-gray);
}

.type-system .solid:is(:hover, :focus-visible) {
  background: #891242;
  filter: none;
}

.type-system:where([data-page="home"]) .solid:is(:hover, :focus-visible) {
  color: var(--color-white);
}

.type-system #insights .home-insight-preview .insight-post:is(:hover, :focus-visible) h4 {
  text-decoration: none;
}

.type-system:where([data-page="home"]) #insights .home-insight-preview .insight-post:is(:hover, :focus-visible) h4 {
  color: var(--color-accent);
}


.type-system .footer-contact dl,
.type-system .footer-contact dd {
  margin: 0;
}

.type-system .footer-contact dl {
  display: grid;
  gap: 12px;
}

.type-system .footer-contact dt {
  font-size: var(--type-meta);
  font-weight: 300;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.type-system:where([data-page="home"]) .footer-contact dt {
  color: var(--color-white);
}

.type-system .footer-contact a {
  overflow-wrap: anywhere;
}

.type-system .footer-main .footer-contact a[href^="tel:"] {
  font-size: calc(var(--type-prose) - 1px);
}

@media (min-width: 951px) {
  .type-system .footer-main:has(> .footer-contact) {
    grid-template-columns: minmax(0, 1.4fr) minmax(max-content, .75fr) minmax(0, 1.1fr) max-content;
    gap: clamp(24px, 3vw, 44px);
  }

  .type-system .footer-main:has(> .footer-contact) > .footer-column:not(:last-child) {
    margin-inline-start: 50px;
  }
}


.type-system #home .hero-actions .textlink {
  align-items: flex-end;
  padding-bottom: 7px;
}

.type-system .dma-link .dma-wordmark {
  white-space: nowrap;
}

.type-system .dma-link sup {
  font-size: .4em;
  line-height: 0;
  vertical-align: super;
}


.type-system #dma {
  background: var(--bg);
  border-bottom: 0;
}

.type-system #insights {
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: no-preference) {
  .type-system :is(a, button, summary, .insight-post h4) {
    transition: color .5s ease, border-color .5s ease, background-color .5s ease, filter .5s ease;
  }
}


.type-system #services .navigator-card .service-title-link:is(:hover, :focus-visible) {
  text-decoration: none;
}

.type-system:where([data-page="home"]) #services .navigator-card .service-title-link:is(:hover, :focus-visible) {
  color: #ff85b5;
}

.type-system #results :is(.client-name, .photo-label) {
  font-size: var(--type-label);
  line-height: 1.35;
}

.type-system #results .client-name {
  margin-bottom: 2px;
}

.type-system:where([data-page="home"]) #results .client-name {
  color: var(--color-white);
}

.type-system #results .photo-label {
  margin: 0 0 16px;
  letter-spacing: inherit;
  text-transform: none;
}

.type-system #insights .home-insight-preview .insight-group-title {
  font-family: var(--font-body);
  font-size: var(--type-body, 15px);
  font-weight: 300;
  letter-spacing: .03em;
  line-height: 1.6;
  text-transform: none;
}

.type-system:where([data-page="home"]) #insights .home-insight-preview .insight-group-title {
  color: var(--color-accent);
}


.type-system #insights .home-insight-frame {
  position: relative;
  display: block;
  margin-bottom: 13px;
}

.type-system #insights .home-insight-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  box-sizing: border-box;
  border: 1px solid var(--color-gray);
  transform: scale(.5);
  transform-origin: top left;
  pointer-events: none;
}

.type-system #insights .home-insight-frame .home-insight-thumb {
  margin-bottom: 0;
}


/* Interior pages use the same roles without importing homepage layouts. */
.type-system main :is(.services-hero, .ih-hero) h1 {
  font-family: var(--font-display);
  font-size: var(--type-hero);
  font-weight: 600;
}

.type-system main :is(.hero, .about-hero, .who-hero, .qhero, .contact-hero, .portfolio-hero, .neural-hero-copy)
  :is(.hero-description, .hero-lead, .qdefinition, .contact-hero-deck, .lead),
.type-system main :is(.qheading > p:not(.eyebrow), .contact-form-intro, .navigator-intro > p:not(.eyebrow), .reference-hero .lead) {
  --type-prose: var(--type-lead);
  font-family: var(--font-body);
}

.type-system:where([data-page="home"]) main :is(.hero, .about-hero, .who-hero, .qhero, .contact-hero, .portfolio-hero, .neural-hero-copy)
  :is(.hero-description, .hero-lead, .qdefinition, .contact-hero-deck, .lead),
.type-system:where([data-page="home"]) main :is(.qheading > p:not(.eyebrow), .contact-form-intro, .navigator-intro > p:not(.eyebrow), .reference-hero .lead) {
  color: var(--color-white);
}

.type-system:where([data-page="home"]) main :is(.navigator-card, .service-panel, .qfit, .qstep, .qquestion, .qscope) p:not(.eyebrow) {
  color: var(--color-gray);
}

.type-system main .ideas-deck {
  --type-prose: var(--type-lead);
}

.type-system:where([data-page="home"]) :is(.services, .services-hub) .service-tabs [role="tab"] {
  color: var(--color-white);
}

.type-system :is(.services, .services-hub) .service-tabs [role="tab"][aria-selected="true"] {
  font-weight: 700;
}

.type-system:where([data-page="home"]) :is(.services, .services-hub) .service-tabs [role="tab"][aria-selected="true"] {
  color: var(--color-accent);
}

.type-system :is(.services, .services-hub) .service-tabs [role="tab"][aria-selected="true"]::after {
  background: var(--color-accent, #ff3c89);
}

.type-system:where([data-page="home"]) :is(.services, .services-hub) .navigator-card .service-title-link {
  color: var(--color-accent);
}

.type-system :is(.services, .services-hub) .navigator-card .service-title-link:is(:hover, :focus-visible) {
  text-decoration: none;
}

.type-system:where([data-page="home"]) :is(.services, .services-hub) .navigator-card .service-title-link:is(:hover, :focus-visible) {
  color: #ff85b5;
}


@media (max-width: 480px) {
  .type-system .site-header {
    gap: 10px;
  }

  .type-system .site-header .brand {
    font-size: clamp(17px, 5.1vw, 23px);
  }

  .type-system .site-header .header-controls {
    gap: 12px;
  }
}

/* Common interactive components and section boundaries. */
.type-system main .textlink {
  text-underline-offset: .2em;
}

.type-system main :is(.ideas-body, .legal-page, .contact-form-note) p a {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.type-system :is(#services, .services-hub) .service-tabs [role="tab"]:not([aria-selected="true"])::after {
  background: var(--line, #343434);
  height: 1px;
}

.type-system main :is(.ih-stream-heading > .eyebrow, .ih-archive-story .ih-meta > span:first-child) {
  font-family: var(--font-body);
  font-size: var(--type-body, 15px) !important;
  font-weight: 300 !important;
  letter-spacing: .03em !important;
  text-transform: none;
}

.type-system:where([data-page="home"]) main :is(.ih-stream-heading > .eyebrow, .ih-archive-story .ih-meta > span:first-child) {
  color: var(--color-accent);
}

.type-system main :is(.ih-latest-copy, .ih-radar-list) h3 a.ih-title-link,
.type-system main .ih-archive-story h3 {
  text-decoration: none;
}

.type-system:where([data-page="home"]) main :is(.ih-latest-copy, .ih-radar-list) h3 a.ih-title-link,
.type-system:where([data-page="home"]) main .ih-archive-story h3 {
  color: var(--color-white);
}

.type-system main :is(.ih-latest-copy, .ih-radar-list) h3 a.ih-title-link:is(:hover, :focus-visible),
.type-system main .ih-archive-story:is(:hover, :focus-visible) h3 {
  text-decoration: none;
}

.type-system:where([data-page="home"]) main :is(.ih-latest-copy, .ih-radar-list) h3 a.ih-title-link:is(:hover, :focus-visible),
.type-system:where([data-page="home"]) main .ih-archive-story:is(:hover, :focus-visible) h3 {
  color: var(--color-accent);
}

.type-system main :is(.ih-latest-card, .ih-archive-story) {
  border-color: transparent;
}

.type-system main :is(.ih-latest-card, .ih-archive-story)::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 .5px var(--color-gray, #a3a3aa);
  pointer-events: none;
}

.type-system main .ih-archive-story:hover {
  border-color: transparent;
}

.type-system main :is(.ih-archive, .library-section, .about-block.container + .about-block.container) {
  border-top: 1px solid var(--line, #343434);
}

/* The homepage divider stays within the shared content gutters. */
.type-system #insights {
  position: relative;
  border-top: 0;
}

.type-system #insights::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line, #343434);
}

@media (prefers-reduced-motion: no-preference) {
  .type-system main .ih-archive-story h3 {
    transition: color .5s ease;
  }
}

@media (min-width: 751px) and (max-width: 950px) {
  .type-system .footer-main:has(> .footer-contact) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 36px;
  }
}

@media (max-width: 750px) {
  .type-system .footer-main:has(> .footer-contact) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .type-system .footer-main:has(> .footer-contact) > .footer-identity {
    grid-column: 1 / -1;
  }

  .type-system #contact .contact-button {
    margin-top: 28px;
  }
}

/* Keep the shared mobile control and diagram accents after restoring text colours. */
@media (max-width: 950px) {
  .type-system :where(.solid, .circle-arrow, .status-dot, .radar-dot) {
    background-color: #ff3c89;
  }

  .type-system .corner {
    border-color: #ff3c89;
  }
}

/* Approved English desktop footer and closing CTA. */
@media (min-width: 951px) {
  html[lang="en"] .type-system .footer-identity > p:first-of-type {
    margin-top: 5px;
  }

  html[lang="en"] .type-system .footer-contact dt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  html[lang="en"] .type-system .footer-contact dl {
    gap: 24px;
  }

  html[lang="en"] .type-system .footer-identity > p.muted {
    margin-top: 24px;
    line-height: 1.35;
  }

  html[lang="en"] .type-system main #contact .contact-content > .eyebrow {
    color: var(--color-accent);
  }

  html[lang="en"] .type-system main #contact .contact-content > h2 + p,
  html[lang="en"] .type-system #contact .contact-button:is(:hover, :focus-visible) {
    color: var(--color-white);
  }
}

/* The closing photo already draws its own full-width top divider. */
@media (min-width: 951px) {
  html[lang="en"] main > .section-rule:has(+ section.contact#contact) {
    display: none;
  }

  html[lang="en"] main > section:has(+ section.contact#contact) {
    border-bottom-width: 0;
  }
}

/* Short section introductions use up to 80% of their content column on desktop. */
@media (min-width: 951px) {
  html[lang="en"] .type-system main :is(.neural-origin-editorial .origin-heading, #dma-method .method-heading, .qheading) {
    max-width: none;
  }

  html[lang="en"] .type-system main :is(
    .services .sectionhead .right-copy,
    .intro-copy > .intro-lead,
    .reference-hero .lead,
    .neural-origin-editorial .origin-lead,
    #dma-method .method-heading .lead,
    .who-page #fit .intro > p:not(.eyebrow),
    #dma-business-value .value-lead,
    .about-person-intro,
    .about-innovation-lead,
    .about-evidence h2 + p,
    .ih-stream-heading > p:not(.eyebrow),
    .ih-archive-heading > div > p:not(.eyebrow),
    .contact-form-intro,
    .qheading > p:not(.eyebrow),
    .qresult p:not(.eyebrow)
  ) {
    max-width: 80%;
  }
}


/* Shared headline scale for service detail and Insights articles. */
.type-system:is(.qservice, .ideas-article-page) {
  --type-interior-hero: clamp(32px, 4.2vw, 56px);
}

/* v362 shared type contract: desktop/mobile lead 20/18, body 18/16.
   Introduction roles must not inherit the generic prose size. */
.type-system main :is(
 .hero-description, .hero-lead, .contact-hero-deck,
 .who-copy > p:not(.eyebrow), .qdefinition, .ideas-deck,
 .neural-hero-copy > .lead, .portfolio-hero p.lead, .reference-hero p.lead,
 .intro-lead, .intro-overview, .sectionhead > .right-copy,
 #fit .intro > p:not(.eyebrow), .partnership-intro > p:not(.eyebrow),
 .qheading > p:not(.eyebrow), .qresult-inner > p:not(.eyebrow),
 .about-person-intro, .about-innovation-lead, .about-evidence h2 + p,
 .origin-lead, .origin-grid > div:first-child > p:not(.eyebrow),
 .method-heading > p.lead, .value-lead,
 .ih-stream-heading > p:not(.eyebrow), .ih-archive-heading > div > p:not(.eyebrow),
 .contact-form-intro, .contact-content > h2 + p
) {
 --type-prose: var(--type-lead);
 font-size: var(--type-lead) !important;
}
