/* Homepage service cards inspired by the hierarchy of BCG's capabilities page. */
body .qm-service-chart {
  --qm-service-ink: #17212b;
  --qm-service-muted: #616b75;
  --qm-service-line: #d8dfe6;
  --qm-service-accent: #2673ba;
  background: #fff;
  color: var(--qm-service-ink);
  padding: clamp(64px, 7vw, 108px) clamp(24px, 5vw, 72px);
}
.qm-service-chart, .qm-service-chart * { box-sizing: border-box; }
.qm-service-chart .qm-service-wrap { max-width: 1440px; margin: 0 auto; }
.qm-service-chart .qm-service-header { margin-bottom: 40px; }
.qm-service-chart .qm-service-eyebrow { margin: 0 0 20px; color: var(--qm-service-muted); font-size: 11px; line-height: 1.6; letter-spacing: .1em; }
.qm-service-chart .qm-service-intro { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: 64px; }
.qm-service-chart .qm-service-intro h2 { margin: 0; color: inherit; font-size: clamp(32px, 4vw, 56px); font-weight: 400; line-height: 1.28; letter-spacing: -.03em; }
.qm-service-chart .qm-service-intro h2 > span { display: block; }
.qm-service-chart .qm-service-intro > p { max-width: 450px; margin: 0 0 4px; color: var(--qm-service-muted); font-size: 16px; line-height: 1.85; }
.qm-service-chart .qm-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 24px; }
.qm-service-chart .qm-service-option { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #e8ecf0; border-radius: 20px; background: #f2f4f6; }
.qm-service-chart .qm-service-image { overflow: hidden; aspect-ratio: 16 / 10; background: #dbe2e8; }
.qm-service-chart .qm-service-image img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 600ms cubic-bezier(.2,.65,.3,1); }
.qm-service-chart .qm-service-option:hover .qm-service-image img,
.qm-service-chart .qm-service-option:focus-within .qm-service-image img { transform: scale(1.035); }
.qm-service-chart .qm-service-card-content { padding: 28px; }
.qm-service-chart .qm-service-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.qm-service-chart .qm-service-kicker { color: #416483; font-size: 11px; font-weight: 500; line-height: 1.6; letter-spacing: .04em; }
.qm-service-chart .qm-service-number { color: #798996; font-size: 11px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.qm-service-chart .qm-service-option h3 { min-height: 76px; margin: 0; color: var(--qm-service-ink); font-size: clamp(23px, 2.1vw, 30px); font-weight: 400; line-height: 1.4; letter-spacing: -.02em; overflow-wrap: anywhere; }
.qm-service-chart .qm-service-option h3 > span:not(.qm-service-sr) { display: block; }
.qm-service-chart .qm-service-value { min-height: 108px; margin: 20px 0 0; color: #465461; font-size: 15px; line-height: 1.85; }
.qm-service-chart .qm-service-scope { margin-top: 20px; border-top: 1px solid var(--qm-service-line); border-bottom: 1px solid var(--qm-service-line); }
.qm-service-chart .qm-service-scope summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 0; color: #3b4e60; font-size: 12px; font-weight: 500; line-height: 1.7; list-style: none; cursor: pointer; }
.qm-service-chart .qm-service-scope summary::-webkit-details-marker { display: none; }
.qm-service-chart .qm-service-scope summary::marker { content: ''; }
.qm-service-chart .qm-service-toggle { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.qm-service-chart .qm-service-toggle::before,
.qm-service-chart .qm-service-toggle::after { position: absolute; content: ''; background: #4f6a84; }
.qm-service-chart .qm-service-toggle::before { width: 14px; height: 1px; top: 8px; left: 2px; }
.qm-service-chart .qm-service-toggle::after { width: 1px; height: 14px; top: 2px; left: 8px; transition: transform 200ms ease; }
.qm-service-chart .qm-service-scope[open] .qm-service-toggle::after { transform: rotate(90deg); }
.qm-service-chart .qm-service-scope-body { padding: 4px 0 24px; }
.qm-service-chart .qm-service-scope-body dl { margin: 0; }
.qm-service-chart .qm-service-scope-body dt { margin: 20px 0 8px; color: #6c7680; font-size: 11px; font-weight: 500; line-height: 1.6; }
.qm-service-chart .qm-service-scope-body dt:first-child { margin-top: 8px; }
.qm-service-chart .qm-service-scope-body dd { margin: 0; color: #44515e; font-size: 14px; line-height: 1.85; }
.qm-service-chart .qm-service-deliveries { margin: 0; padding: 0; list-style: none; }
.qm-service-chart .qm-service-deliveries li { position: relative; margin: 0 0 12px; padding-left: 16px; }
.qm-service-chart .qm-service-deliveries li:last-child { margin-bottom: 0; }
.qm-service-chart .qm-service-deliveries li::before { position: absolute; top: .8em; left: 0; width: 5px; height: 1px; content: ''; background: var(--qm-service-accent); }
.qm-service-chart .qm-service-period { color: var(--qm-service-ink); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.qm-service-chart .qm-service-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; margin-top: 22px; padding: 4px 0; background: transparent; color: #243e56; font-size: 14px; font-weight: 500; line-height: 1.6; text-decoration: none; }
.qm-service-chart .qm-service-arrow { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #dce8f3; color: #214f79; transition: background-color 200ms ease; }
.qm-service-chart .qm-service-arrow svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 200ms ease; }
.qm-service-chart .qm-service-cta:hover { color: var(--qm-service-accent); }
.qm-service-chart .qm-service-cta:hover .qm-service-arrow { background: #c8ddec; }
.qm-service-chart .qm-service-cta:hover svg { transform: translateX(2px); }
.qm-service-chart .qm-service-scope summary:focus-visible,
.qm-service-chart .qm-service-cta:focus-visible { outline: 2px solid var(--qm-service-accent); outline-offset: 5px; }
.qm-service-chart .qm-service-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes qm-service-details-in { from { opacity: .35; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.qm-service-chart .qm-service-scope[open] .qm-service-scope-body { animation: qm-service-details-in 220ms ease-out; }
@media (min-width: 1440px) {
  .qm-service-chart .qm-service-option h3 { min-height: 84px; }
}
@media (max-width: 1100px) {
  .qm-service-chart .qm-service-grid { gap: 18px; }
  .qm-service-chart .qm-service-card-content { padding: 24px 22px; }
  .qm-service-chart .qm-service-option h3 { font-size: 24px; }
  .qm-service-chart .qm-service-intro { gap: 36px; }
  .qm-service-chart .qm-service-value { min-height: 112px; font-size: 14px; }
}
@media (max-width: 900px) {
  .qm-service-chart .qm-service-intro { grid-template-columns: 1fr; gap: 20px; }
  .qm-service-chart .qm-service-intro > p { max-width: 620px; margin: 0; }
  .qm-service-chart .qm-service-grid { grid-template-columns: 1fr; gap: 24px; max-width: 620px; margin: 0 auto; }
  .qm-service-chart .qm-service-image { aspect-ratio: 16 / 8; }
  .qm-service-chart .qm-service-card-content { padding: 28px; }
  .qm-service-chart .qm-service-option h3 { min-height: 0; font-size: 28px; }
  .qm-service-chart .qm-service-value { min-height: 0; font-size: 15px; }
}
@media (max-width: 600px) {
  body .qm-service-chart { padding: 56px 20px; }
  .qm-service-chart .qm-service-header { margin-bottom: 28px; }
  .qm-service-chart .qm-service-intro h2 { font-size: 32px; line-height: 1.35; }
  .qm-service-chart .qm-service-intro > p { font-size: 14px; }
  .qm-service-chart .qm-service-image { aspect-ratio: 16 / 10; }
  .qm-service-chart .qm-service-card-content { padding: 24px; }
  .qm-service-chart .qm-service-option h3 { font-size: 25px; }
  .qm-service-chart .qm-service-scope summary { min-height: 52px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .qm-service-chart *, .qm-service-chart *::before, .qm-service-chart *::after { animation: none !important; transition: none !important; }
  .qm-service-chart .qm-service-option:hover .qm-service-image img,
  .qm-service-chart .qm-service-option:focus-within .qm-service-image img { transform: none; }
}

/* Subtle motion for the three homepage service cards. */
body #home-service-comparison .qm-service-option {
 transition:translate 420ms cubic-bezier(.22,1,.36,1),box-shadow 420ms ease;
}
body #home-service-comparison .qm-service-arrow {
 transition:background-color 250ms ease,color 250ms ease,transform 350ms cubic-bezier(.22,1,.36,1);
}
@media(hover:hover) and (pointer:fine) {
 body #home-service-comparison .qm-service-option:hover { translate:0 -8px; box-shadow:0 18px 38px rgba(0,0,0,.22); }
 body #home-service-comparison .qm-service-option:hover .qm-service-image img { transform:scale(1.055); }
 body #home-service-comparison .qm-service-option:hover .qm-service-arrow { transform:translateX(4px); }
}
body #home-service-comparison .qm-service-option:focus-within { translate:0 -4px; }
body #home-service-comparison .qm-service-option:focus-within .qm-service-arrow { transform:translateX(4px); }
body.qm-home-motion[data-home-motion="paused"] #home-service-comparison .qm-service-option { translate:none; transition:none; }
body.qm-home-motion[data-home-motion="paused"] #home-service-comparison .qm-service-arrow,
body.qm-home-motion[data-home-motion="paused"] #home-service-comparison .qm-service-arrow svg { transform:none; transition:none; }
@media(prefers-reduced-motion:reduce) {
 body #home-service-comparison .qm-service-option { translate:none; }
 body #home-service-comparison .qm-service-arrow,
 body #home-service-comparison .qm-service-arrow svg,
 body #home-service-comparison .qm-service-option:hover .qm-service-image img { transform:none; }
}
