/* ═══════════════════════════════════════════════════════════════
   home.css — Premium Homepage
   Theme: deep navy × professional blue × white
   ═══════════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --hm-blue:        #4176e7;
  --hm-blue-deep:   #2f63d4;
  --hm-blue-soft:   rgba(65,118,231,.10);
  --hm-blue-glow:   rgba(65,118,231,.20);
  --hm-navy:        #171C45;
  --hm-navy-2:      #1e2454;
  --hm-slate:       #2d3464;
  --hm-muted:       #667085;
  --hm-line:        rgba(15,39,64,.09);
  --hm-line-light:  rgba(255,255,255,.14);
  --hm-bg-soft:     #f7f9fc;
  --hm-bg-softer:   #f2f5fa;
}

/* ── Shared utilities ──────────────────────────────────────── */
.hm-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--hm-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .26em;
  text-transform: uppercase;
  line-height: 1;
}

.hm-eyebrow--light {
  color: rgba(255,255,255,.60);
}

.hm-text-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hm-blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: color .18s ease, gap .18s ease;
}

.hm-text-cta:hover {
  color: var(--hm-blue-deep);
  gap: 10px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.hm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  border-radius: 8px;
  background: var(--hm-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(65,118,231,.30);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hm-btn-primary:hover {
  background: var(--hm-blue-deep);
  box-shadow: 0 8px 26px rgba(65,118,231,.38);
  transform: translateY(-1px);
}

.hm-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.06);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}

.hm-btn-ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.56);
}

/* ═══════════════════════════════════════════════════════════
   1 — HERO
   ═══════════════════════════════════════════════════════════ */

.hm-hero {
  --hm-navy: #0D1236;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 941px;
  overflow: hidden;
  isolation: isolate;
  background: var(--hm-navy);
}

.hm-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 60% at 12% 55%, rgba(65,118,231,.14), transparent),
    radial-gradient(ellipse 45% 50% at 88% 20%, rgba(65,118,231,.08), transparent),
    linear-gradient(180deg, rgba(13,18,54,.30) 0%, rgba(13,18,54,.10) 100%);
}

.hm-hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 941px;
  padding-top: var(--header-height, 88px);
  padding-bottom: 88px;
}

/* Copy column */
.hm-hero-copy {
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.hm-hero-copy h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(3rem, 4.8vw, 5.4rem);
  line-height: 1.01;
  letter-spacing: -.06em;
  font-weight: 900;
}

.hm-hero-line-1,
.hm-hero-line-2 {
  display: block;
  white-space: nowrap;
}

[data-i18n="home.hero.title.highlight"] {
  color: var(--hm-blue);
}

.hm-hero-copy > p {
  margin: 0 0 44px;
  max-width: 54ch;
  color: rgba(255,255,255,.75);
  font-size: clamp(1rem, 1.14vw, 1.22rem);
  line-height: 1.62;
  font-weight: 500;
}

.hm-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Full-bleed background image */
.hm-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hm-hero-fig {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.hm-hero-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .88;
}

.hm-hero-fig-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      var(--hm-navy)           0%,
      var(--hm-navy)           26%,
      rgba(13,18,54,.80)      38%,
      rgba(13,18,54,.38)      52%,
      rgba(13,18,54,.12)      66%,
      rgba(13,18,54,.04)     100%);
}

/* Proof pills */
.hm-proof-pill {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,.14), 0 1px 6px rgba(0,0,0,.08);
  color: var(--hm-navy-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.hm-proof-pill-dot {
  display: block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hm-blue);
  box-shadow: 0 0 0 3px var(--hm-blue-soft);
}

.hm-proof-pill { display: none; }

@media (max-width: 640px) {
  .hm-hero,
  .hm-hero-layout {
    max-height: none;
  }

  .hm-hero-layout {
    padding-top: calc(var(--header-height, 70px) + 24px);
    padding-bottom: 52px;
  }

  .hm-hero-copy h1 { font-size: clamp(2.6rem, 10vw, 3.8rem); }
  .hm-hero-copy > p { margin-bottom: 32px; }

  .hm-hero-fig-overlay {
    background:
      linear-gradient(180deg, rgba(13,18,54,.72) 0%, rgba(13,18,54,.55) 100%),
      linear-gradient(0deg, var(--hm-navy) 0%, transparent 40%);
  }
}

/* ═══════════════════════════════════════════════════════════
   2 — STRATEGIC POSITIONING
   ═══════════════════════════════════════════════════════════ */

.hm-positioning {
  padding: 64px 0;
  background: #ffffff;
}

/* Large rounded premium module */
.hm-pos-module {
  background: #edf1f9;
  border-radius: 40px;
  padding: 72px 64px;
}

.hm-positioning-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

/* ── Left copy column ── */
.hm-positioning-copy {
  position: relative;
}

.hm-positioning-copy h2 {
  margin: 0 0 20px;
  max-width: 540px;
  color: var(--hm-navy-2);
  font-size: clamp(1.9rem, 2.4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.08;
  text-wrap: balance;
}

.hm-pos-nowrap { white-space: nowrap; }

/* Keyword word-play: escalating size + blue-family color shift */
.hm-kw { font-weight: 900; display: inline; }
.hm-kw--1 { color: #6b9df2; font-size: .88em; }
.hm-kw--2 { color: var(--hm-blue); font-size: 1.0em; }
.hm-kw--3 { color: #1e45b8; font-size: 1.14em; letter-spacing: -.04em; }

.hm-positioning-copy > p {
  margin: 0 0 0;
  color: var(--hm-muted);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 500;
}

/* Problem list panel */
.hm-pos-panel {
  margin: 24px 0 28px;
  padding: 20px 22px 22px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15,27,45,.07);
  border-radius: 16px;
}

.hm-pos-panel-label {
  margin: 0 0 14px;
  color: rgba(15,27,45,.42);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
}

.hm-pos-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}

.hm-pos-panel-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15,27,45,.08);
  color: var(--hm-navy-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.hm-pos-panel-list li:first-child { padding-top: 0; }
.hm-pos-panel-list li:last-child { border-bottom: none; padding-bottom: 0; }

.hm-pos-panel-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hm-blue);
  opacity: .85;
}

/* ── Visual column ── */
.hm-pos-visual {
  position: relative;
}

/* Editorial image collage */
.hm-pos-collage {
  position: relative;
  height: 460px;
}

/* Accent shapes — layered editorial depth */
.hm-pos-accent {
  position: absolute;
}

/* Accent shapes: frame the 3-image composition */
/* 5 o'clock of main image — lower-right, behind it */
.hm-pos-accent--a {
  top: 32%;
  right: 6%;
  width: 63%;
  height: 66%;
  border-radius: 38px;
  background: rgba(172, 198, 238, 0.32);
}

/* Top-right corner of main image */
.hm-pos-accent--b {
  top: 8%;
  left: 38%;
  width: 40%;
  height: 36%;
  border-radius: 28px;
  background: rgba(172, 198, 238, 0.26);
}

/* 7 o'clock corner of main image — lower-left */
.hm-pos-accent--c {
  top: 50%;
  left: 5%;
  width: 34%;
  height: 32%;
  border-radius: 26px;
  background: rgba(172, 198, 238, 0.22);
}

/* Shared image card styles */
.hm-pos-img {
  position: absolute;
  margin: 0;
  overflow: hidden;
  box-shadow:
    0 12px 36px rgba(15,27,45,.16),
    0 4px 12px rgba(15,27,45,.09);
}

.hm-pos-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.hm-pos-img:hover img {
  transform: scale(1.04);
}

/* Main — upper-left, not full height so SM2 can sit below */
.hm-pos-img--main {
  top: 14%;
  left: 14%;
  width: 52%;
  height: 60%;
  border-radius: 30px;
  z-index: 2;
}

/* SM1 — 4 o'clock: right side, vertically centered on main's lower half */
.hm-pos-img--sm1 {
  top: 42%;
  right: -5%;
  width: 29%;
  height: 30%;
  border-radius: 24px;
  z-index: 3;
}

/* SM2 — centered below main and SM1 */
.hm-pos-img--sm2 {
  bottom: -6%;
  left: 48%;
  width: 22%;
  height: 22%;
  border-radius: 22px;
  z-index: 3;
}

@media (max-width: 1040px) {
  .hm-positioning { padding: 48px 0; }
  .hm-pos-module { padding: 56px 48px; border-radius: 32px; }

  .hm-positioning-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hm-pos-collage { height: 400px; }
}

@media (max-width: 640px) {
  .hm-positioning { padding: 24px 0; }
  .hm-pos-module { padding: 40px 28px; border-radius: 24px; }
  .hm-pos-collage { height: 320px; }
  .hm-pos-accent--a, .hm-pos-accent--b, .hm-pos-accent--c { border-radius: 22px; }
  .hm-pos-img--main { border-radius: 22px; }
  .hm-pos-img--sm1, .hm-pos-img--sm2 { border-radius: 18px; }
  .hm-pos-panel { padding: 18px 20px 20px; }
  .hm-pos-panel-list { grid-template-columns: 1fr; }
  .hm-pos-panel-list li { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   3 — WORKFORCE SOLUTIONS
   ═══════════════════════════════════════════════════════════ */

.hm-solutions {
  padding: 104px 0 116px;
  background: var(--hm-bg-soft);
}

.hm-solutions-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 52px;
}

.hm-solutions-header h2 {
  margin: 0;
  max-width: 560px;
  color: var(--hm-navy-2);
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.08;
  overflow: visible;
}

[data-i18n="home.services.headingHighlight"] {
  color: var(--hm-blue);
}

.hm-solutions-aside > p {
  margin: 0 0 24px;
  color: var(--hm-muted);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
}

/* Showcase grid */
.hm-solutions-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Featured card */
.hm-sol-featured {
  grid-column: 1 / -1;
  position: relative;
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--hm-navy-2);
  box-shadow: 0 20px 56px rgba(15,27,45,.15);
  transition: transform .22s ease, box-shadow .22s ease;
}

.hm-sol-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(15,27,45,.20);
}

.hm-sol-featured-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(23,28,69,.94) 0%, rgba(23,28,69,.60) 52%, rgba(23,28,69,.32) 100%),
    url('../assets/home-solutions-feature.jpg') center / cover no-repeat;
}

.hm-sol-featured-content {
  position: relative;
  z-index: 1;
  padding: 52px 56px;
}

.hm-sol-featured-content small {
  display: block;
  margin-bottom: 16px;
  color: rgba(255,255,255,.50);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .26em;
  text-transform: uppercase;
  line-height: 1;
}

.hm-sol-featured-content h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(1.9rem, 2.6vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -.05em;
  font-weight: 900;
}

.hm-sol-featured-content p {
  margin: 0 0 32px;
  max-width: 480px;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.62;
}

.hm-sol-featured-content a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--hm-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(65,118,231,.30);
  transition: background .18s ease, transform .18s ease;
}

.hm-sol-featured-content a:hover {
  background: var(--hm-blue-deep);
  transform: translateY(-1px);
}

/* Supporting tiles */
.hm-sol-tile {
  padding: 32px 34px;
  border: 1px solid rgba(23,32,69,.09);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15,27,45,.05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hm-sol-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(65,118,231,.22);
  box-shadow: 0 16px 44px rgba(15,27,45,.09);
}

.hm-sol-tile h3 {
  margin: 0 0 10px;
  color: var(--hm-navy-2);
  font-size: clamp(1.05rem, 1.2vw, 1.3rem);
  line-height: 1.14;
  letter-spacing: -.04em;
  font-weight: 900;
  transition: color .2s ease;
}

.hm-sol-tile:hover h3 { color: var(--hm-blue); }

.hm-sol-tile p {
  margin: 0;
  color: var(--hm-muted);
  font-size: 15px;
  line-height: 1.6;
}

.hm-sol-tile--accent {
  border-color: rgba(65,118,231,.18);
  background: rgba(65,118,231,.04);
}

@media (max-width: 1040px) {
  .hm-solutions { padding: 80px 0 88px; }
  .hm-solutions-header { grid-template-columns: 1fr; gap: 28px; }
  .hm-solutions-showcase { grid-template-columns: 1fr; }
  .hm-sol-featured { min-height: 300px; }
  .hm-sol-featured-content { padding: 40px 42px; }
}

@media (max-width: 640px) {
  .hm-solutions { padding: 64px 0 72px; }
  .hm-sol-featured-content { padding: 30px 28px; }
}

/* ═══════════════════════════════════════════════════════════
   4 — CLIENT RESULTS
   ═══════════════════════════════════════════════════════════ */

.hm-results {
  padding: 104px 0 96px;
  background: #ffffff;
}

.hm-results-head {
  max-width: 860px;
  margin: 0 auto 60px;
  text-align: center;
}

.hm-results-head h2 {
  margin: 0 0 16px;
  color: var(--hm-navy-2);
  font-size: clamp(1.9rem, 2.6vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.06;
  text-wrap: pretty;
}

.hm-results-head > p {
  margin: 0 auto;
  max-width: 62ch;
  color: var(--hm-muted);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
}

/* Metrics row */
.hm-results-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 44px 0;
  border-top: 1px solid var(--hm-line);
  border-bottom: 1px solid var(--hm-line);
}

.hm-metric {
  position: relative;
  padding: 0 32px;
  text-align: center;
}

.hm-metric:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--hm-line);
}

.hm-metric strong {
  display: block;
  color: var(--hm-blue);
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
  margin-bottom: 10px;
}

.hm-metric span {
  display: block;
  color: var(--hm-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
}

/* Testimonial layout */
.hm-results-layout {
  display: grid;
  grid-template-columns: 1.1fr .85fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 44px;
}

/* Featured testimonial */
.testimonial-featured.hm-results-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 52px 52px 46px;
  border-radius: 22px;
  background: var(--hm-navy-2);
  border: none;
  box-shadow: 0 20px 56px rgba(23,28,69,.18);
  overflow: hidden;
}

.hm-results-featured-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 100% 0%, rgba(65,118,231,.14), transparent),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(65,118,231,.08), transparent);
}

.testimonial-featured.hm-results-featured blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.testimonial-featured.hm-results-featured blockquote p {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.05rem, 1.5vw, 1.26rem);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -.01em;
}

.hm-results-featured blockquote::before {
  content: '\201C';
  display: block;
  color: rgba(65,118,231,.40);
  font-size: 84px;
  line-height: .8;
  font-weight: 900;
  font-family: Georgia, serif;
  margin-bottom: 16px;
  user-select: none;
}

.hm-results-rule {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 2px;
  margin: 26px 0 18px;
  background: var(--hm-blue);
  border-radius: 2px;
}

.hm-results-author {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hm-results-author strong {
  color: rgba(255,255,255,.90);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.hm-results-author span {
  color: rgba(255,255,255,.48);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.hm-results-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  align-self: flex-start;
  margin-top: 22px;
  padding: 5px 14px;
  border: 1px solid rgba(65,118,231,.28);
  border-radius: 20px;
  background: rgba(65,118,231,.12);
  color: rgba(255,255,255,.75);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Side mini quotes */
.hm-results-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-mini.hm-results-mini {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 34px 36px;
  border: 1px solid rgba(23,32,69,.09);
  border-radius: 18px;
  background: var(--hm-bg-soft);
  box-shadow: 0 4px 16px rgba(15,27,45,.04);
}

.testimonial-mini.hm-results-mini blockquote {
  margin: 0;
  padding: 0;
  flex: 1;
}

.testimonial-mini.hm-results-mini blockquote p {
  margin: 0;
  color: #1f2a44;
  font-size: 16.5px;
  line-height: 1.6;
  font-weight: 500;
}

.testimonial-mini.hm-results-mini .hm-results-author {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hm-line);
}

.testimonial-mini.hm-results-mini .hm-results-author strong {
  color: var(--hm-navy-2);
}

.testimonial-mini.hm-results-mini .hm-results-author span {
  color: #7a8799;
}

/* Credibility strip */
.hm-results-credibility {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 26px;
  border: 1px solid var(--hm-line);
  border-radius: 18px;
  background: var(--hm-bg-soft);
}

.hm-results-credibility-label {
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 28px;
  border-right: 1px solid rgba(23,32,69,.12);
  color: #556173;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.hm-results-credibility-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hm-results-credibility .trust-logo-badge {
  height: 38px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  opacity: .80;
}

@media (max-width: 1040px) {
  .hm-results { padding: 80px 0 72px; }
  .hm-results-metrics { grid-template-columns: repeat(2, 1fr); row-gap: 40px; margin-bottom: 48px; }
  .hm-metric:nth-child(2)::after { display: none; }
  .hm-results-layout { grid-template-columns: 1fr; gap: 20px; }
  .testimonial-featured.hm-results-featured { padding: 42px 40px; }
}

@media (max-width: 640px) {
  .hm-results { padding: 64px 0 56px; }
  .hm-results-head { margin-bottom: 44px; text-align: left; }
  .hm-results-metrics { grid-template-columns: 1fr 1fr; padding: 36px 0; }
  .hm-metric { padding: 0 16px; }
  .testimonial-featured.hm-results-featured { padding: 32px 28px; }
  .testimonial-mini.hm-results-mini { padding: 26px 28px; }

  .hm-results-credibility {
    flex-wrap: wrap;
    gap: 18px;
  }

  .hm-results-credibility-label {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(23,32,69,.12);
    padding-bottom: 14px;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   5 — CANDIDATE PATHWAY
   ═══════════════════════════════════════════════════════════ */

.hm-candidate {
  padding: 100px 0 108px;
  background: var(--hm-bg-soft);
  border-top: 1px solid var(--hm-line);
  border-bottom: 1px solid var(--hm-line);
}

.hm-candidate-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 72px;
  align-items: center;
}

/* Image column */
.hm-candidate-fig-wrap {
  position: relative;
  /* padding creates room for accent panel to peek behind image */
  padding: 0 20px 20px 0;
}

.hm-candidate-fig {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(65,118,231,.12);
  box-shadow:
    0 20px 52px rgba(23,28,69,.11),
    0 4px 14px rgba(23,28,69,.06);
  aspect-ratio: 3 / 4;
  max-height: 520px;
}

.hm-candidate-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hm-candidate-fig-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(23,28,69,.16) 100%);
}

/* Stacked accent panel behind image */
.hm-candidate-fig-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 20px;
  background: rgba(65,118,231,.07);
  border: 1px solid rgba(65,118,231,.16);
  z-index: 0;
}

/* Copy column */
.hm-candidate-copy h2 {
  margin: 0 0 18px;
  color: var(--hm-navy-2);
  font-size: clamp(2rem, 2.6vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.04;
  text-wrap: balance;
}

.hm-candidate-copy > p {
  margin: 0 0 28px;
  color: var(--hm-muted);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
  max-width: 50ch;
}

/* Role tags */
.hm-candidate-roles {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hm-candidate-roles li {
  padding: 6px 14px;
  border: 1px solid rgba(65,118,231,.22);
  border-radius: 100px;
  background: rgba(65,118,231,.06);
  color: var(--hm-slate);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
}

@media (max-width: 1040px) {
  .hm-candidate { padding: 80px 0 88px; }

  .hm-candidate-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hm-candidate-fig-wrap { padding: 0 16px 16px 0; }

  .hm-candidate-fig {
    aspect-ratio: 16 / 10;
    max-height: 360px;
    border-radius: 18px;
  }

  .hm-candidate-fig-accent {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 18px;
  }

  .hm-candidate-copy > p { max-width: none; }
}

@media (max-width: 640px) {
  .hm-candidate { padding: 64px 0 72px; }

  .hm-candidate-fig-wrap { padding: 0 14px 14px 0; }

  .hm-candidate-fig {
    max-height: 300px;
    border-radius: 16px;
  }

  .hm-candidate-fig-accent {
    width: calc(100% - 14px);
    height: calc(100% - 14px);
    border-radius: 16px;
  }

  .hm-candidate-copy > p { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   6 — INSIGHTS
   ═══════════════════════════════════════════════════════════ */

.hm-insights {
  padding: 104px 0 116px;
  background: #ffffff;
}

.hm-insights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}

.hm-insights-head h2 {
  margin: 0;
  color: var(--hm-navy-2);
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 900;
}

/* ── Insight card grid — equal 3-column ── */
.hm-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .hm-insights { padding: 80px 0 88px; }

  .hm-insights-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 36px;
  }

  .hm-insights-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hm-insights { padding: 64px 0 72px; }
  .hm-insights-head h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }

  .hm-insights-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   7 — FINAL CTA
   ═══════════════════════════════════════════════════════════ */

.hm-final-cta {
  padding: 100px 0 112px;
  background: var(--hm-bg-soft);
}

.hm-final-cta-head {
  max-width: 860px;
  margin: 0 auto 52px;
  text-align: center;
}

.hm-final-cta-head h2 {
  margin: 0 0 18px;
  color: var(--hm-navy-2);
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.04;
  text-wrap: balance;
}

.hm-final-cta-head > p {
  margin: 0;
  color: var(--hm-muted);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 500;
}

/* Card grid */
.hm-final-cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hm-cta-card {
  position: relative;
  display: block;
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 16px 48px rgba(23,28,69,.13), 0 4px 14px rgba(23,28,69,.07);
  transition: transform .22s ease, box-shadow .22s ease;
}

.hm-cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(23,28,69,.18), 0 8px 22px rgba(23,28,69,.10);
}

.hm-cta-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.hm-cta-card:not(.hm-cta-card--seekers) .hm-cta-card-bg {
  background-image: url('../assets/home-final-cta.jpg');
}

.hm-cta-card--seekers .hm-cta-card-bg {
  background-image: url('../assets/4.JPG');
}

.hm-cta-card:hover .hm-cta-card-bg {
  transform: scale(1.05);
}

.hm-cta-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,17,52,.38) 0%,
    rgba(13,17,52,.60) 50%,
    rgba(13,17,52,.82) 100%
  );
}

.hm-cta-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 32px 36px;
}

.hm-cta-card-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .26em;
  text-transform: uppercase;
  line-height: 1;
}

.hm-cta-card:not(.hm-cta-card--seekers) .hm-cta-card-eyebrow {
  color: #7ef07e;
}

.hm-cta-card--seekers .hm-cta-card-eyebrow {
  color: #ff8c42;
}

.hm-cta-card-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 2.8vw, 3rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.02;
}

@media (max-width: 1040px) {
  .hm-final-cta { padding: 80px 0 88px; }
  .hm-cta-card { height: 280px; }
}

@media (max-width: 640px) {
  .hm-final-cta { padding: 64px 0 72px; }
  .hm-final-cta-cards { grid-template-columns: 1fr; }
  .hm-cta-card { height: 260px; border-radius: 18px; }
  .hm-cta-card-content { padding: 24px 28px; }
}

/* ═══════════════════════════════════════════════════════════
   PRESERVED: home-insight-* (JS-rendered card classes)
   ═══════════════════════════════════════════════════════════ */

.home-insight-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-insight-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.home-insight-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15,27,45,.09);
  transition: transform .22s ease, box-shadow .22s ease;
}

.home-insight-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(15,39,64,.10), rgba(15,39,64,.22)),
    var(--insight-image, linear-gradient(135deg, #dde5f1, #eef2f8));
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease;
}

.home-insight-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(180deg, transparent 40%, rgba(23,28,69,.14) 100%),
    linear-gradient(135deg, rgba(65,118,231,.06), rgba(23,28,69,.06));
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.home-insight-link:hover .home-insight-media {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(15,27,45,.13);
}

.home-insight-link:hover .home-insight-media::before {
  transform: scale(1.07);
  filter: saturate(1.05);
}

.home-insight-link:hover .home-insight-media::after { opacity: 1; }

.home-insight-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 0 0;
}

.home-insight-body small {
  display: block;
  margin-bottom: 10px;
  color: var(--hm-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
}

.home-insight-body h3 {
  margin: 0;
  color: var(--hm-navy-2);
  font-size: clamp(1.05rem, 1.4vw, 1.32rem);
  line-height: 1.14;
  letter-spacing: -.04em;
  font-weight: 900;
  transition: color .2s ease;
}

.home-insight-link:hover h3 { color: var(--hm-blue); }

.home-insight-body p {
  margin: 12px 0 0;
  color: #556173;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
}

.home-insight-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-top: 14px;
  color: var(--hm-blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
}

.home-insight-read-more span {
  font-size: 16px;
  line-height: .8;
  transform: translateX(0);
  transition: transform .22s ease;
}

.home-insight-link:hover .home-insight-read-more,
.home-insight-link:focus-visible .home-insight-read-more {
  opacity: 1;
  transform: translateY(0);
}

.home-insight-link:hover .home-insight-read-more span,
.home-insight-link:focus-visible .home-insight-read-more span {
  transform: translateX(4px);
}

@media (hover: none) {
  .home-insight-read-more { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-insight-media::before,
  .home-insight-media::after,
  .home-insight-read-more,
  .home-insight-read-more span { transition: none; }

  .home-insight-link:hover .home-insight-media::before { transform: none; }
  .home-insight-link:hover .home-insight-read-more span { transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   Scroll reveal (JS-driven via home.js)
   ═══════════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity .7s cubic-bezier(.2,.8,.2,1),
    transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════════════════════════════════════════════
   Homepage — Background Zone System

   Zone 1  Hero → Strategic Positioning
           Dark navy opener → clean white anchor content
           Re-entry gradient bridges the hard dark-to-white cut

   Zone 2  Workforce Solutions → Client Results
           Continuous cool-neutral field (--hm-bg-soft)
           Cards elevate to white; section seam disappears

   Zone 3  Candidate Pathway → Insights
           Continuous white — open, approachable, borderless

   Zone 4  Final CTA → Footer
           Dark navy closing moment mirrors the hero;
           scoped footer transition continues the atmosphere
   ══════════════════════════════════════════════════════════════ */

/* ── Zone 1: hero → positioning bridge ──────────────────────── */
/* Positioning needs position:relative to host the ::before veil */
.hm-positioning {
    position: relative;
}

/* Soft dark veil at the top — absorbs the hard cut from the hero */
.hm-positioning::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(13,18,54,.07), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ── Zone 2: Solutions → Results, unified employer proof field ── */
/* Bring Results into the same cool-neutral tone as Solutions;
   the navy-on-blue-gray featured card reads more premium here */
.hm-results {
    background: var(--hm-bg-soft);
}

/* Mini testimonial cards: were same-color-as-section — elevate to white */
.testimonial-mini.hm-results-mini {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(15,27,45,.07);
}

/* Credibility strip: elevate to white for legibility on the neutral field */
.hm-results-credibility {
    background: #ffffff;
}

/* ── Zone 3: Candidate + Insights, borderless white field ────── */
/* Remove the border-top/border-bottom lines that boxed in Candidate;
   Insights is already white — both sections now share one open field */
.hm-candidate {
    background: #ffffff;
    border-top: none;
    border-bottom: none;
}

/* ── Zone 4: Final CTA — dark navy closing moment ────────────── */
/* Mirrors the hero's dark atmosphere — page opens and closes in navy.
   The two CTA photo cards are already dark and read naturally here. */
.hm-final-cta {
    position: relative;
    background:
        radial-gradient(ellipse 60% 55% at 18% 50%, rgba(65,118,231,.09), transparent),
        linear-gradient(160deg, var(--hm-navy) 0%, var(--hm-navy-2) 60%, var(--hm-slate) 100%);
}

/* Text on dark background */
.hm-final-cta-head h2 {
    color: #ffffff;
}

.hm-final-cta-head > p {
    color: rgba(255,255,255,.65);
}

/* CTA card shadows: switch from navy-opacity to true black-opacity,
   visible against the dark field */
.hm-cta-card {
    box-shadow: 0 20px 56px rgba(0,0,0,.32), 0 6px 18px rgba(0,0,0,.16);
}

.hm-cta-card:hover {
    box-shadow: 0 32px 80px rgba(0,0,0,.42), 0 10px 28px rgba(0,0,0,.22);
}

/* ── Homepage: CTA → footer color bridge ──────────────────────────
   The CTA section's gradient ends at --hm-slate (#2d3464, a lighter
   blue-navy). The footer starts at #171c45 (darker navy). Without a
   bridge, the tone jump creates a visible seam.

   ::after on the CTA section fades its bottom 96px from transparent
   to #171c45, so the section exits at exactly the colour the footer
   enters. The footer's top glow then seals the join atmospherically.
   ──────────────────────────────────────────────────────────────── */

/* Fade the bottom of the CTA section to match the footer entry colour */
.hm-final-cta::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 96px;
    background: linear-gradient(to bottom, transparent, #171c45);
    pointer-events: none;
    z-index: 0;
}

/* Scoped footer: continues the dark navy closing atmosphere.
   Widened top glow seals the seam; gradient starts from the same
   #171c45 the CTA ::after fades to — zero-gap colour continuity. */
.home-page > footer {
    background:
        /* Widened blue glow — softens and seals the join at the top */
        radial-gradient(ellipse 84% 44% at 50% 0%, rgba(65,118,231,.13), transparent),
        /* Side ambient glow — retains footer's characteristic depth */
        radial-gradient(circle at 14% 44%, rgba(65,118,231,.12), transparent 22rem),
        /* Start from exact CTA exit colour → deepen to footer base */
        linear-gradient(160deg, #171c45 0%, #1e2454 50%, #18315e 100%);
}
