/* QualifCRM case study: a functional story grounded in the delivered scope. */
.study-hero { padding-top: 36px; background: radial-gradient(ellipse at 12% 0, #f5f7f980, transparent 50%); }
.study-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; color: #6d737c; font-size: 10px; }
.study-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: #424653; }
.study-breadcrumb a:hover { color: var(--teal); }
.study-breadcrumb > span[aria-current] { color: #424653; }
.study-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, .65fr); align-items: start; gap: clamp(48px, 7vw, 112px); }
.study-client { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.study-client img { width: 44px; height: 44px; border-radius: 10px; }
.study-client > span { color: #282b30; font-size: 18px; font-weight: 600; letter-spacing: -.03em; line-height: 1.5; }
.study-client small { display: block; color: #6d737c; font-size: 9px; font-weight: 450; letter-spacing: .08em; text-transform: uppercase; }
.study-hero h1 { max-width: 20ch; margin-bottom: 28px; font-size: clamp(42px, 4.9vw, 68px); font-weight: 650; line-height: 1.08; letter-spacing: -.055em; }
.study-hero h1 > span { color: var(--teal); }
.study-lead { max-width: 62ch; margin-bottom: 28px; color: #424653; font-size: 16px; line-height: 1.85; }
.study-hero .btn { min-height: 48px; font-size: 13px; }
.study-facts { margin: 4px 0 0; padding-left: 32px; border-left: 1px solid var(--line); }
.study-facts > div { padding-block: 14px; border-bottom: 1px solid #e4e7ec; }
.study-facts > div:first-child { padding-top: 0; }
.study-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.study-facts dt { color: #6d737c; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.study-facts dd { margin: 6px 0 0; color: #424653; font-size: 13px; line-height: 1.65; }
.study-facts dd a { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; color: var(--teal); border-bottom: 1px solid #b9bec6; }
.study-architecture { margin: 52px 0 0; padding: 24px 28px 20px; overflow: hidden; border: 1px solid #282b30; border-radius: 12px; background: #282b30; }
.study-architecture-label { display: flex; align-items: center; gap: 10px; color: #b9bec6; font-size: 10px; }
.study-architecture-label > span { width: 5px; height: 5px; background: #336ab6; }
.study-architecture img { width: 100%; height: auto; max-width: 1120px; margin-inline: auto; }
.study-architecture figcaption { padding-top: 14px; border-top: 1px solid #282b30; color: #6d737c; font-size: 10px; line-height: 1.7; }
.study-section { margin-top: clamp(72px, 7vw, 112px); }
.study-context { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); }
.study-context h2 { margin-bottom: 0; }
.study-context > div > p { margin-bottom: 20px; color: #6d737c; font-size: 15px; line-height: 1.85; }
.study-context > div > p:last-child { margin-bottom: 0; }
.study-scope { padding-block: 72px; border-block: 1px solid #e4e7ec; background: #fdfdfe; }
.study-scope .section-heading { margin-bottom: 48px; }
.study-scope-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: start; gap: 48px; }
.study-index { position: sticky; top: 116px; }
.study-index > p { margin-bottom: 16px; color: #6d737c; font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.study-index nav { display: flex; flex-direction: column; max-height: calc(100vh - 190px); overflow-y: auto; border-left: 1px solid #e4e7ec; scrollbar-width: thin; }
.study-index a { display: flex; align-items: center; min-height: 44px; margin-left: -1px; padding: 10px 14px; border-left: 2px solid transparent; color: #6d737c; font-size: 11px; line-height: 1.6; transition: color .18s, background .18s; }
.study-index a:hover { color: #282b30; background: #f5f7f9; }
.study-index a[aria-current="location"] { border-left-color: #424653; color: #282b30; background: #f5f7f9; }
.study-module-list { display: grid; gap: 24px; min-width: 0; }
.study-module { min-width: 0; padding: 32px; border: 1px solid #e4e7ec; border-radius: 8px; background: #ffffff; }
.study-module-heading { display: flex; align-items: flex-start; gap: 18px; }
.study-module-heading.has-illustration > div { flex: 1; min-width: 0; }
.study-module-miniature { flex: 0 0 clamp(160px, 18vw, 240px); width: clamp(160px, 18vw, 240px); min-width: 0; margin: 0 0 0 8px; }
.study-module-miniature img { display: block; width: 100%; height: auto; }
.study-module-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid #e4e7ec; border-radius: 6px; background: #f5f7f9; color: #6d737c; }
.study-module-label { margin: 0 0 10px; color: #6d737c; font-size: 10px; font-weight: 500; line-height: 1.6; }
.study-module h3 { max-width: 38ch; margin-bottom: 0; color: #282b30; font-size: 25px; font-weight: 550; line-height: 1.3; letter-spacing: -.035em; }
.study-module-intro { max-width: 72ch; margin: 22px 0 0; color: #6d737c; font-size: 14px; line-height: 1.85; }
.study-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 24px 0; padding: 24px 0; border-block: 1px solid #e4e7ec; list-style: none; }
.study-features li { position: relative; padding-left: 14px; color: #424653; font-size: 12px; line-height: 1.75; }
.study-features li::before { content: ''; position: absolute; top: 9px; left: 0; width: 3px; height: 3px; border-radius: 50%; background: #6d737c; }
.study-objects { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.study-objects-label { color: #6d737c; font-size: 9px; }
.study-objects > div { display: flex; flex-wrap: wrap; gap: 8px; }
.study-objects > div > span { padding: 4px 8px; border: 1px solid #e4e7ec; border-radius: 4px; color: #6d737c; background: #fdfdfe; font-size: 9px; line-height: 1.5; }
.study-feedback-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: end; margin-bottom: 32px; }
.study-feedback-heading .eyebrow { grid-column: 1 / -1; }
.study-feedback-heading h2 { margin-bottom: 0; }
.study-feedback-heading > p { max-width: 46ch; margin-bottom: 0; color: #6d737c; font-size: 14px; line-height: 1.85; }
.study-next { padding-block: 64px; border-top: 1px solid #e4e7ec; background: #f5f7f9; }
.study-next > .container { display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.study-next p { max-width: 59ch; margin-bottom: 0; color: #6d737c; font-size: 15px; line-height: 1.85; }
.study-next .btn { flex-shrink: 0; }
@media (max-width: 1000px) {
  .study-scope-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 28px; }
  .study-module { padding: 28px; }
  .study-module h3 { font-size: 23px; }
  .study-features { gap: 12px 20px; }
}
@media (max-width: 900px) {
  .study-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .study-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .study-facts > div { padding: 0; border-bottom: 0; }
  .study-facts dd { font-size: 12px; }
  .study-scope-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .study-index { position: static; }
  .study-index nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; overflow: visible; border-left: 0; gap: 4px; }
  .study-index a { margin-left: 0; border-left-width: 2px; padding: 10px 12px; }
  .study-next > .container { align-items: flex-start; flex-direction: column; gap: 28px; }
}
@media (max-width: 640px) {
  .study-hero { padding-top: 24px; }
  .study-breadcrumb { margin-bottom: 28px; gap: 10px; }
  .study-client { margin-bottom: 24px; }
  .study-hero h1 { font-size: clamp(36px, 9.2vw, 50px); line-height: 1.12; }
  .study-lead { font-size: 15px; }
  .study-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .study-facts > div:last-child { grid-column: 1 / -1; }
  .study-architecture { margin-top: 32px; padding: 18px 12px 16px; border-radius: 8px; }
  .study-architecture-label { padding-inline: 4px; font-size: 9px; }
  .study-architecture figcaption { padding-inline: 4px; font-size: 9px; }
  .study-context { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .study-context > div > p { font-size: 14px; }
  .study-scope { padding-block: 48px; }
  .study-scope .section-heading { margin-bottom: 32px; }
  .study-index nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-module { padding: 24px; }
  .study-module-heading { gap: 14px; }
  .study-module-heading.has-illustration { display: grid; grid-template-columns: 34px minmax(0, 1fr); }
  .study-module-heading.has-illustration > .study-module-icon { grid-column: 1; grid-row: 2; }
  .study-module-heading.has-illustration > div { grid-column: 2; grid-row: 2; }
  .study-module-miniature { grid-column: 1 / -1; grid-row: 1; justify-self: end; width: min(220px, 100%); margin: 0 0 4px; }
  .study-module-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .study-module-icon svg { width: 18px; height: 18px; }
  .study-module h3 { font-size: 22px; }
  .study-module-label { font-size: 10px; margin-bottom: 8px; }
  .study-module-intro { margin-top: 20px; font-size: 14px; }
  .study-features { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-block: 20px; padding-block: 20px; }
  .study-features li { font-size: 13px; }
  .study-objects { gap: 10px; }
  .study-objects-label { flex-basis: 100%; }
  .study-feedback-heading { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .study-feedback-heading .eyebrow { margin-bottom: 0; }
  .study-feedback-heading > p { font-size: 14px; }
  .study-next { padding-block: 48px; }
  .study-next p { font-size: 14px; }
}
@media (max-width: 380px) {
  .study-module { padding: 20px; }
  .study-module-heading { gap: 12px; }
  .study-module h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .study-index a { transition: none; } }
/* Client-reported outcome, distinct from the illustrative demos. */
.study-facts .study-gain-note { display: block; margin-top: 5px; color: #8a96a8; font-size: 11px; line-height: 1.6; }
