/* Recruitment case study */
.hero-copy { width: min(66%, 735px); }
.hero h1 { font-size: clamp(32px, 3.9vw, 60px); line-height: 1.28; }
.hero h1 .hero-job { display: block; margin-top: 14px; color: #b5e4ff; font-size: .62em; letter-spacing: .08em; }
.case-section {
  --band-0: #163f71;
  --band-1: #2567a4;
  --band-2: #5aa9d6;
  --band-3: #9edffd;
  background: #092744;
  color: #f8fbff;
}
.case-section .eyebrow { color: #9edffd; }
.case-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: end; }
.case-intro p { color: #c5daeb; max-width: 37ch; }
.case-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 34px; background: #54738d; border: 1px solid #54738d; }
.case-charts article { padding: clamp(18px, 3vw, 32px); background: #f3f7fa; color: #102c49; }
.case-charts ul, .field-profiles { list-style: none; padding: 0; }
.share-bar { display: flex; height: 24px; margin-top: 19px; gap: 2px; }
.share-bar i { flex: var(--share); background: var(--band); }
.share-key { display: grid; gap: 8px; margin: 16px 0 0; }
.share-key li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 9px; font-size: 13px; }
.share-key i { background: var(--band); width: 10px; height: 10px; }
.share-key b, .age-bars b { color: #0a55a2; font-weight: 850; font-variant-numeric: tabular-nums; }
.share-key small, .age-bars small { font-size: .74em; }
.age-bars { display: grid; gap: 9px; margin: 17px 0 0; }
.age-bars li { display: grid; grid-template-columns: 65px 1fr 38px; gap: 8px; align-items: center; font-size: 13px; }
.age-bars i { height: 8px; background: linear-gradient(90deg, #2567a4 var(--share), #dbe6f0 var(--share)); }
.age-bars b { text-align: right; }
.profiles-head { margin: 40px 0 15px; }
.profiles-head p, .case-note { color: #c5daeb; font-size: 13px; }
.field-profiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0 0 10px; gap: 1px; background: #496881; border: 1px solid #496881; }
.field-profiles li { background: #113553; padding: 18px; min-width: 0; }
.field-profiles .profile-age { color: #9edffd; font-size: 13px; margin: 0 0 7px; }
.field-profiles strong { font-size: clamp(16px,1.8vw,21px); }
.field-profiles p { margin: 5px 0 0; color: #c5daeb; font-size: 13px; }
.case-trial { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #54738d; margin-top: 32px; padding-top: 20px; }
.case-trial strong { font: 850 clamp(45px,7vw,67px)/1.1 system-ui,sans-serif; }
.case-trial strong span { font-weight: 750; font-size: 18px; margin-left: 5px; }
.case-trial .button { background: #f4faff; border-color: #f4faff; color: #083f79; }
.case-trial .button:hover { background: #cfeaff; }
@media(max-width:720px) {
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(27px,7vw,44px); }
  .case-intro,.case-charts { grid-template-columns: 1fr; gap: 12px; }
  .case-charts { gap: 1px; margin-top: 23px; }
  .field-profiles { grid-template-columns: 1fr 1fr; }
  .field-profiles li { padding: 12px; }
  .case-trial { align-items: flex-start; flex-direction: column; }
}


/* Progressive enhancement: charts remain complete without JavaScript. */
.age-bars i { position: relative; overflow: hidden; background: #dbe6f0; }
.age-bars i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--share); background: #2567a4; transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .charts-motion .share-bar,
  .charts-motion .age-bars i::after { transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(.22,1,.36,1); }
  .charts-motion.charts-playing .share-bar,
  .charts-motion.charts-playing .age-bars i::after { transform: scaleX(1); }
  .charts-motion .age-bars li:nth-child(1) i::after { transition-delay: .22s; }
  .charts-motion .age-bars li:nth-child(2) i::after { transition-delay: .305s; }
  .charts-motion .age-bars li:nth-child(3) i::after { transition-delay: .39s; }
  .charts-motion .age-bars li:nth-child(4) i::after { transition-delay: .475s; }
  .charts-motion .age-bars li:nth-child(5) i::after { transition-delay: .56s; }
  .charts-motion .age-bars li:nth-child(6) i::after { transition-delay: .645s; }
}

/* Field portraits and a soft, staggered entrance. */
.field-profiles li { position: relative; padding: 24px 22px 24px 112px; min-height: 166px; overflow: hidden; }
.profile-portrait { position: absolute; left: 16px; top: 29px; width: 78px; height: 98px; }
.profile-portrait svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .charts-motion .share-bar, .charts-motion .age-bars i::after { transition-duration: 1.8s; transition-timing-function: cubic-bezier(.16,1,.3,1); }
  .field-profiles .profile-motion { opacity: 0; transform: translateY(34px) scale(.97); transition: opacity .8s ease, transform 1s cubic-bezier(.16,1,.3,1); }
  .field-profiles .profile-visible { opacity: 1; transform: translateY(0) scale(1); }
  .profile-motion .profile-portrait { transform: translateY(12px); transition: transform 1.2s cubic-bezier(.16,1,.3,1); transition-delay: inherit; }
  .profile-visible .profile-portrait { transform: translateY(0); }
}
@media (max-width: 1000px) {
  .field-profiles li { padding: 20px 16px; padding-top: 115px; }
  .profile-portrait { top: 16px; left: 14px; width: 70px; height: 88px; }
}

.case-simulation { margin-top: 48px; padding: clamp(22px,3.5vw,40px); background: #f3f7fa; color: #102c49; border-top: 4px solid #78c5f0; }
.case-simulation .eyebrow { color: #0a55a2; }
.simulation-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; }
.simulation-heading h3 { font-size: clamp(23px,3vw,34px); margin: 10px 0 0; line-height: 1.4; }
.simulation-heading p { margin: 0; font-size: 14px; color: #49627a; }
.simulation-costs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 30px 0 24px; }
.simulation-costs > div { padding: 4px 24px; border-left: 1px solid #c9d9e6; }
.simulation-costs > div:first-child { padding-left: 0; border: 0; }
.simulation-costs dt { font-weight: 750; font-size: 16px; }
.simulation-costs dt > span { color: #5885aa; font: 600 12px system-ui,sans-serif; margin-right: 8px; }
.simulation-costs dd { margin: 13px 0 0; color: #0a55a2; }
.simulation-costs strong { font: 750 clamp(34px,4vw,57px)/1.15 system-ui,sans-serif; letter-spacing: -.045em; white-space: nowrap; }
.simulation-costs strong span { font-size: .52em; padding: 0 4px; }
.cost-unit { display: block; font-size: 15px; font-weight: 750; margin-top: 5px; }
.simulation-costs p { margin: 8px 0 0; color: #49627a; font-size: 12px; }
.simulation-support { display: flex; gap: 22px; align-items: center; padding: 20px 0; border-top: 1px solid #c9d9e6; border-bottom: 1px solid #c9d9e6; }
.simulation-support > span { font-size: 12px; font-weight: 750; color: #0a55a2; white-space: nowrap; }
.simulation-support p { font-size: 14px; margin: 0; }
.simulation-support strong { font-size: 21px; color: #0a55a2; }
.simulation-note { margin: 16px 0 0; font-size: 12px; line-height: 1.9; color: #49627a; }
.mobile-break { display: none; }
@media(max-width:720px) {
  .simulation-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
  .simulation-costs { gap: 0; }
  .simulation-costs > div { padding: 4px 10px; }
  .simulation-costs dt { font-size: 13px; }
  .simulation-costs dt > span { display: block; margin-bottom: 5px; }
  .simulation-costs strong { font-size: clamp(25px,6.8vw,44px); }
  .simulation-costs strong span { padding: 0 1px; }
  .cost-unit { font-size: 12px; }
  .simulation-support { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mobile-break { display: block; }
}

/* Data responds directly to a pointer, tap or keyboard focus. */
.interactive-data { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; outline-offset: 5px; }
.interactive-data:focus-visible { outline: 3px solid #54b9ef; }
.simulation-costs strong { display: inline-block; font-variant-numeric: tabular-nums; }
.simulation-costs > div::after { content: ''; display: block; height: 3px; margin-top: 18px; background: #0a55a2; transform: scaleX(.18); transform-origin: left; opacity: .35; }
.case-charts article { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .interactive-data { transition: background .3s ease, box-shadow .3s ease; }
  .interactive-data:hover, .interactive-data:focus-visible { background: #e5f1fa; box-shadow: inset 0 3px 0 #2395da; }
  .data-replay .share-bar, .data-replay .age-bars i::after { animation: data-grow 1.45s cubic-bezier(.16,1,.3,1) both; }
  .data-replay .age-bars li:nth-child(2) i::after { animation-delay: .07s; }
  .data-replay .age-bars li:nth-child(3) i::after { animation-delay: .14s; }
  .data-replay .age-bars li:nth-child(4) i::after { animation-delay: .21s; }
  .data-replay .age-bars li:nth-child(5) i::after { animation-delay: .28s; }
  .data-replay .age-bars li:nth-child(6) i::after { animation-delay: .35s; }
  .data-replay b, .data-replay dd strong { animation: data-number 1.1s cubic-bezier(.16,1,.3,1) both; }
  .simulation-costs > div::after { transition: transform .6s cubic-bezier(.16,1,.3,1), opacity .3s; }
  .simulation-costs > div:hover::after, .simulation-costs > div:focus-visible::after { transform: scaleX(1); opacity: 1; }
  .simulation-costs .data-replay::after { animation: data-sweep 1.4s cubic-bezier(.16,1,.3,1) both; }
  @keyframes data-grow { from { transform: scaleX(.015); } to { transform: scaleX(1); } }
  @keyframes data-number { 0% { transform: translateY(12px) scale(.9); opacity: .35; } 45% { transform: translateY(-3px) scale(1.06); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
  @keyframes data-sweep { from { transform: scaleX(.03); opacity: .2; } to { transform: scaleX(1); opacity: 1; } }
  .share-key b, .age-bars b { display: inline-block; }
}
.share-bar { transform-origin: left; }

.simulation-audience { margin-top: 28px; padding: 24px; border: 1px solid #d0e1ed; background: #fff; }
.simulation-audience + .simulation-audience { margin-top: 16px; }
.audience-heading { display: flex; align-items: center; gap: 22px; }
.audience-illustration { flex: 0 0 88px; width: 88px; height: 100px; border-radius: 50%; background: #e7f4fc; overflow: hidden; }
.audience-illustration svg { width: 100%; height: 100%; }
.audience-label { display: inline-block; color: #0a55a2; background: #e8f3fb; padding: 5px 12px; font-size: 13px; font-weight: 750; }
.audience-heading h4 { font-size: clamp(18px,2.2vw,25px); line-height: 1.5; margin: 9px 0 5px; }
.audience-heading p { font-size: 13px; color: #49627a; margin: 0; }
.audience-experienced { border-top: 3px solid #1b5790; }
.audience-experienced .audience-illustration { background: #d9e9f6; }
.simulation-audience .simulation-costs { margin-bottom: 0; }
.simulation-audience .simulation-costs strong { font-size: clamp(30px,3.9vw,55px); }
.simulation-support { margin-top: 24px; }
@media(max-width:720px) {
  .simulation-audience { padding: 18px 14px; }
  .audience-heading { gap: 12px; align-items: flex-start; }
  .audience-illustration { flex-basis: 62px; width: 62px; height: 76px; }
  .audience-label { font-size: 11px; padding: 4px 7px; }
  .audience-heading h4 { font-size: 17px; }
  .audience-heading p { font-size: 12px; }
  .simulation-audience .simulation-costs strong { font-size: clamp(23px,6vw,40px); }
  .simulation-audience .simulation-costs > div { padding-right: 5px; padding-left: 7px; }
  .simulation-audience .simulation-costs > div:first-child { padding-left: 0; }
}

/* Independent interactions within the ATS illustration. */
#ats .checks li { padding: 7px 12px 7px 30px; margin-left: -12px; border-radius: 5px; cursor: pointer; }
#ats .checks li::before { left: 12px; }
#ats .ats-object:focus-visible { outline: 2px solid #269ade; outline-offset: 3px; }
#ats .checks .ats-active { background: #dceefa; color: #07559a; box-shadow: inset 3px 0 #269ade; }
#ats .metrics > div { border-radius: 4px; overflow: hidden; }
#ats .metrics strong { display: block; transform-origin: left center; font-variant-numeric: tabular-nums; }
#ats tbody tr { cursor: pointer; }
#ats tbody .ats-active { background: #e8f4fd; color: #07559a; }
#ats td span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  #ats .checks li, #ats tbody tr { transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
  #ats .metrics > div { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, background .25s ease; }
  #ats .metrics > div:hover, #ats .metrics > div:focus-visible { transform: translateY(-6px); background: #d4eafb; box-shadow: 0 9px 18px #0a55a21c, inset 0 3px #269ade; }
  #ats .data-replay strong { animation: data-number 1.1s cubic-bezier(.16,1,.3,1) both; }
}
