/* Small visual refinements only. Existing content, grids and order are retained. */
html body.qm-home-black{
  --hf-ink:#25333e;--hf-muted:#61717d;--hf-paper:#f3f4f2;--hf-silver:#dce1e4;
  --hf-red:#982734;--hf-red-light:#df919b;--hf-line:#cbd3d9;
  --hf-charcoal:#30383e;--hf-light:#edf1f3;--hf-light-copy:#c5cfd6;
  --hf-radius-card:18px;--hf-radius-feature:24px;--hf-radius-research:22px;--hf-ease:cubic-bezier(.22,.65,.3,1);
  --home-section-space:clamp(48px,3.2vw,56px);--home-section-heading-gap:32px;
}
/* A shared family of rounded shapes, with a softer radius on large features. */
html body.qm-home-black #home-selected-projects .qh-project-photo,
html body.qm-home-black #home-industries .qm-home-industry-card,
html body.qm-home-black #home-capabilities .qm-capability-group,
html body.qm-home-black #home-milestones .qm-milestones-list li,
html body.qm-home-black #home-perspectives .qhp-article,
html body.qm-home-black .qmqmctr .qmqm-item-card{
  border-radius:var(--hf-radius-card)!important;
}
html body.qm-home-black #home-selected-projects .qh-project-photo,
html body.qm-home-black #home-perspectives .qhp-article,
html body.qm-home-black #qm-research-exchange .qm-research-article{overflow:hidden}
html body.qm-home-black #home-project-evidence .qm-evidence-wrap,
html body.qm-home-black #home-brand-system .qm-system-feature,
html body.qm-home-black #qm-research-exchange .qm-research-columns{
  border-radius:var(--hf-radius-feature)!important;
}
html body.qm-home-black #home-brand-system .qm-system-feature,
html body.qm-home-black #qm-research-exchange .qm-research-columns{overflow:hidden}
/* Keep four capability colours, with a slightly more restrained saturation. */
html body.qm-home-black #home-capabilities .qm-capability-group:nth-child(1){--cap-surface:#254dcc;--cap-copy:#e6edff}
html body.qm-home-black #home-capabilities .qm-capability-group:nth-child(2){--cap-surface:#147258;--cap-copy:#e5f2ed}
html body.qm-home-black #home-capabilities .qm-capability-group:nth-child(3){--cap-surface:#b93242;--cap-copy:#fff0f2}
html body.qm-home-black #home-capabilities .qm-capability-group:nth-child(4){--cap-surface:#60308f;--cap-copy:#f1e9fa}
html body.qm-home-black #home-project-evidence{
  --qm-experience-ink:#f5f5f7;--qm-experience-muted:#bfc9d1;
  --qm-experience-red:#cbd3d9;--qm-experience-line:#34383c;
}
html body.qm-home-black #home-project-evidence .qm-evidence-wrap{background:#000!important;border:1px solid var(--qm-experience-line)}
html body.qm-home-black #home-project-evidence .qm-evidence-links a{border-bottom-color:var(--qm-experience-line)}
html body.qm-home-black #home-project-evidence .qm-evidence-footer a:first-child{background:#087c45;color:#fff!important}
html body.qm-home-black #home-project-evidence .qm-evidence-footer a:first-child:hover{background:#066439}
/* One light grey for the industry, service and project-record card surfaces. */
html body.qm-home-black #home-service-comparison :is(.qm-service-option,.qm-service-card-content),
html body.qm-home-black #home-perspectives :is(.qhp-article,.qhp-card,.qhp-copy){background:var(--hf-silver)!important}
html body.qm-home-black #home-brand-system .qm-system-heading,
html body.qm-home-black #home-industries .qm-industry-copy{background:var(--hf-silver)!important}
html body.qm-home-black #home-brand-system .qm-system-heading :is(h2,.qm-system-link),
html body.qm-home-black #home-industries .qm-industry-copy h3{color:var(--hf-ink)!important}
html body.qm-home-black #home-brand-system .qm-system-heading :is(p,.qm-system-eyebrow),
html body.qm-home-black #home-industries .qm-industry-copy :is(p,small,.qm-industry-examples){color:var(--hf-muted)!important}
html body.qm-home-black #home-milestones{
  --qm-history-silver:#e7ebee;--qm-history-red:var(--hf-ink);
  --qm-history-ink:var(--hf-ink);--qm-history-muted:var(--hf-ink);
}
html body.qm-home-black #qm-research-exchange{background:var(--hf-paper)!important}
html body.qm-home-black #qm-research-exchange .qm-research-article{
  border-radius:var(--hf-radius-research,22px)!important;overflow:hidden;isolation:isolate;
  box-shadow:0 1px 0 rgba(37,51,62,.05);
}
html body.qm-home-black #qm-research-exchange .qm-research-article-image{
  border-radius:calc(var(--hf-radius-research,22px) - 1px) calc(var(--hf-radius-research,22px) - 1px) 0 0;
}
html body.qm-home-black #qm-research-exchange :is(.qm-research-head>a,.qm-research-article>small,.qm-research-event-arrow),
html body.qm-home-black #home-industries .qm-industry-examples,
html body.qm-home-black #home-explore .ql-explore-number{color:var(--hf-red)!important}
html body.qm-home-black #home-innovation-lab .qm-lab-entry-eyebrow{color:#fff!important}
html body.qm-home-black #home-innovation-lab .qm-lab-entry-link{border-radius:8px;background:#087c45}
html body.qm-home-black #home-innovation-lab .qm-lab-entry-link:hover{background:#066439}
/* The research statement and exchange list form one continuous panel. */
html body.qm-home-black #qm-research-exchange .qm-research-columns,
html body.qm-home-black #qm-research-exchange :is(.qm-research-thesis,.qm-research-events){background:#202c37!important}
html body.qm-home-black #qm-research-exchange .qm-research-columns{border-color:#46535e}
html body.qm-home-black #qm-research-exchange .qm-research-events :is(h3,h4){color:#f6f7f8!important}
html body.qm-home-black #qm-research-exchange .qm-research-events :is(small,p){color:#bfc9d1!important}
html body.qm-home-black #qm-research-exchange .qm-research-thesis small,
html body.qm-home-black #qm-research-exchange .qm-research-events .qm-research-event-arrow{color:#bfc9d1!important}
html body.qm-home-black #qm-research-exchange .qm-research-events :is(article,h3),
html body.qm-home-black #qm-research-exchange .qm-research-thesis p{border-color:#55616c!important}
html body.qm-home-black #qm-research-exchange .qm-research-event-link:focus-visible{outline:2px solid #bfc9d1;outline-offset:6px}
/* Dark grey surfaces requested for the selected brand, overseas and service cards. */
html body.qm-home-black #home-brand-system .qm-system-heading,
html body.qm-home-black #home-industries .qm-home-industry-card.qm-home-international .qm-industry-copy{
  --hf-silver:var(--hf-charcoal);--hf-ink:var(--hf-light);--hf-muted:var(--hf-light-copy);
}
html body.qm-home-black #home-industries .qm-home-industry-card.qm-home-international .qm-industry-cta{
  color:var(--hf-light)!important;border-color:#56636c!important;
}
html body.qm-home-black #home-industries .qm-home-industry-card.qm-home-international .qm-industry-cta b{
  color:var(--hf-light)!important;border-color:#73808a!important;
}
html body.qm-home-black #home-service-comparison{
  --hf-silver:var(--hf-charcoal);--qm-service-ink:var(--hf-light);--qm-service-muted:var(--hf-light-copy);
  --qm-service-line:#56636c;--qm-service-accent:#df919b;
}
html body.qm-home-black #home-service-comparison .qm-service-option{border-color:#46535c!important}
html body.qm-home-black #home-service-comparison .qm-service-option :is(h3,.qm-service-cta,.qm-service-cta span,.qm-service-period){
  color:var(--hf-light)!important;
}
html body.qm-home-black #home-service-comparison .qm-service-option :is(.qm-service-kicker,.qm-service-number,.qm-service-value,summary,dt,dd,li){
  color:var(--hf-light-copy)!important;
}
html body.qm-home-black #home-service-comparison .qm-service-scope{border-color:#56636c!important}
html body.qm-home-black #home-service-comparison .qm-service-toggle:before,
html body.qm-home-black #home-service-comparison .qm-service-toggle:after{background:var(--hf-light-copy)!important}
html body.qm-home-black #home-service-comparison .qm-service-arrow{
  background:#43515b!important;border-color:#73808a!important;color:var(--hf-light)!important;
}
html body.qm-home-black #home-service-comparison .qm-service-cta:hover .qm-service-arrow{background:#536571!important}
html body.qm-home-black #home-perspectives{
  --hf-silver:var(--hf-charcoal);--qhp-ink:var(--hf-light);--qhp-copy:var(--hf-light-copy);--qhp-green:var(--hf-light);
}
html body.qm-home-black #home-perspectives .qhp-copy :is(h3,h3 a){color:var(--hf-light)!important}
html body.qm-home-black #home-perspectives .qhp-copy :is(p,p a){color:var(--hf-light-copy)!important}
html body.qm-home-black #home-milestones .qm-milestone-links a:hover,
html body.qm-home-black #home-milestones .qm-milestones-list li:first-child .qm-milestone-links a:hover{
  color:var(--qm-history-ink)!important;
}
html body.qm-home-black #qm-research-exchange .qm-research-thesis{background:#000!important}
html body.qm-home-black #qm-research-exchange .qm-research-thesis h3{color:var(--hf-light)!important}
html body.qm-home-black #qm-research-exchange .qm-research-thesis :is(small,p){color:var(--hf-light-copy)!important}
html body.qm-home-black #qm-research-exchange .qm-research-thesis p{border-color:#46535c!important}
/* Fine rules and measured text spacing connect the existing editorial sections. */
html body.qm-home-black #home-selected-projects .qh-project-meta{border-color:rgba(210,220,227,.2)}
html body.qm-home-black #home-selected-projects .qh-project-meta small{letter-spacing:.035em;line-height:1.65}
html body.qm-home-black #qm-research-exchange .qm-research-events article,
html body.qm-home-black #qm-research-exchange .qm-research-meta{border-color:var(--hf-line)}
html body.qm-home-black #qm-research-exchange .qm-research-article h3{line-height:1.55}
html body.qm-home-black #home-explore .ql-explore-link-desc,
html body.qm-home-black #home-explore .ql-explore-description{line-height:1.85}
html body.qm-home-black #home-project-evidence :is(.qm-evidence-links,.qm-evidence-stats),
html body.qm-home-black #home-milestones .qm-milestone-year{font-variant-numeric:tabular-nums}
/* Retain the lime hero action, softened slightly to sit with the other colours. */
html body.qm-home-black .qmh-C .qmh-client-index-link{
  background:#b7ed6f!important;border-color:#b7ed6f!important;color:#182218!important;
  transition:background-color .24s var(--hf-ease),border-color .24s var(--hf-ease)!important;
}
html body.qm-home-black .qmh-C .qmh-client-index-link:hover{background:#c8f18d!important;border-color:#c8f18d!important}
/* One restrained movement vocabulary: small lifts, quiet zoom and short arrows. */
html body.qm-home-black :is(.qh-project-photo,.qm-home-industry-card,.qm-capability-group,.qm-research-article){
  transition:transform .32s var(--hf-ease),border-color .24s var(--hf-ease),box-shadow .32s var(--hf-ease)!important;
}
html body.qm-home-black :is(.qh-project-photo img,.qm-industry-image,.qm-research-article-image,.qmqm-cover-img){
  transition:transform .68s var(--hf-ease)!important;
}
html body.qm-home-black #home-industries .qm-industry-cta b{
  transition:transform .24s var(--hf-ease),background-color .24s,border-color .24s,color .24s!important;
}
html body.qm-home-motion .hm-parallax-image{scale:1.02}
html body.qm-home-motion .hm-reading-progress{height:1px;background:linear-gradient(90deg,#982734,#df919b)}
html body.qm-home-motion .hm-step-track:after{background:var(--hf-red-light);height:1px}
html body.qm-home-motion :is(.qh-project-photo,.qhp-media,.qm-service-image):after{border-color:rgba(225,230,234,.25)}
html body.qm-home-motion .hm-explore{color:#bdc7ce}
html body.qm-home-motion .hm-explore>span{background:rgba(190,203,213,.25)}
html body.qm-home-motion .hm-explore>span:after{background:#d0d8dd;animation-duration:3.2s}
html body.qm-home-motion .hm-motion-toggle{color:#c6d0d7;border-color:#58656e;background:rgba(37,51,62,.15)}
html body.qm-home-motion .hm-motion-toggle:hover{border-color:#94a2ac;background:rgba(75,91,104,.2)}
html body.qm-home-motion[data-home-motion="paused"] .hm-parallax-image{scale:1}
/* The gallery stays in its current flow when motion is enabled. */
html body.qm-home-black #home-industries.is-card-motion-ready .qm-industry-copy{
  position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;
  width:100%!important;height:auto!important;background:var(--hf-silver)!important;
}
@media(hover:hover) and (pointer:fine){
  html body.qm-home-black #home-selected-projects .qh-project:hover .qh-project-photo,
  html body.qm-home-black #home-capabilities .qm-capability-group:hover,
  html body.qm-home-black #qm-research-exchange .qm-research-article:hover{transform:translateY(-2px)}
  html body.qm-home-black #home-industries .qm-home-industry-card:hover{
    transform:translateY(-3px)!important;border-color:#8b626b;box-shadow:0 12px 28px rgba(0,0,0,.14)!important;
  }
  html body.qm-home-black #home-industries .qm-home-industry-card:hover .qm-industry-image,
  html body.qm-home-black #home-selected-projects .qh-project:hover img,
  html body.qm-home-black #qm-research-exchange .qm-research-article:hover .qm-research-article-image,
  html body.qm-home-black .qmqm-item-card:hover .qmqm-cover-img{transform:scale(1.025)!important}
  html body.qm-home-black #home-industries .qm-home-industry-card:hover .qm-industry-cta b{
    transform:translate(2px,-2px)!important;background:var(--hf-red)!important;border-color:var(--hf-red)!important;color:#fff!important;
  }
  html body.qm-home-black #home-brand-system .qm-system-link:hover{border-color:var(--hf-red)!important}
}
html body.qm-home-black :is(#home-selected-projects,#home-capabilities,#home-industries,#home-perspectives,#qm-research-exchange,#home-explore) a:focus-visible{outline:2px solid #ba6975;outline-offset:5px}
@media(max-width:760px){
  html body.qm-home-black{--home-section-space:32px;--home-section-heading-gap:24px;--hf-radius-card:16px;--hf-radius-feature:20px;--hf-radius-research:18px}
}
html body.qm-home-motion[data-home-motion="paused"] :is(.qh-project-photo,.qm-capability-group,.qm-research-article){transition:none!important}
html body.qm-home-motion[data-home-motion="paused"] :is(.qh-project:hover .qh-project-photo,.qm-capability-group:hover,.qm-research-article:hover){transform:none!important}
html body.qm-home-black[data-home-motion="paused"] :is(#home-industries .qm-home-industry-card:hover,#home-industries .qm-home-industry-card:hover .qm-industry-image,#home-selected-projects .qh-project:hover img,#qm-research-exchange .qm-research-article:hover .qm-research-article-image,.qmqm-item-card:hover .qmqm-cover-img){transform:none!important}
@media(prefers-reduced-motion:reduce){
  html body.qm-home-black :is(.qh-project-photo,.qm-home-industry-card,.qm-capability-group,.qm-research-article,.qm-industry-image,.qm-research-article-image,.qh-project-photo img,.qmqm-cover-img){transition:none!important;animation:none!important}
  html body.qm-home-black :is(.qh-project:hover .qh-project-photo,.qm-home-industry-card:hover,.qm-capability-group:hover,.qm-research-article:hover){transform:none!important}
  html body.qm-home-motion .hm-parallax-image{scale:1}
  html body.qm-home-black :is(#home-industries .qm-home-industry-card:hover .qm-industry-image,#home-selected-projects .qh-project:hover img,#qm-research-exchange .qm-research-article:hover .qm-research-article-image,.qmqm-item-card:hover .qmqm-cover-img){transform:none!important}
}
