/* ==========================================================================
   VHH Recruits — Design Tokens
   Palette: Ink navy + brass accent (staffing/workforce, trust + premium)
   Type: Fraunces (display serif) / Inter (body) / Space Mono (data, labels)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* colors */
  --ink-900: #0E1D33;
  --ink-800: #16294A;
  --ink-700: #1F3760;
  --ink-500: #3C5680;
  --paper: #F6F4EF;
  --paper-dim: #ECE8DE;
  --brass-500: #C08A3E;
  --brass-400: #D6A25C;
  --brass-100: #F1DFBB;
  --slate-600: #4B5566;
  --slate-400: #7C8798;
  --green-600: #2F6E51;
  --white: #FFFFFF;

  /* type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.4vw, 3.8rem);
  --step-5: clamp(3rem, 2.2rem + 3.8vw, 5.2rem);

  /* layout */
  --content-max: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --edge: 1px solid rgba(14, 29, 51, 0.1);

  /* premium elevation */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-xs: 0 2px 8px -4px rgba(14, 29, 51, 0.12);
  --shadow-sm: 0 6px 18px -8px rgba(14, 29, 51, 0.16);
  --shadow-md: 0 16px 36px -16px rgba(14, 29, 51, 0.24);
  --shadow-lg: 0 28px 60px -20px rgba(14, 29, 51, 0.32);
  --shadow-brass: 0 14px 30px -12px rgba(192, 138, 62, 0.45);

  /* mobile-safe fluid gutters */
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-900);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  overflow-x: hidden;
  width: 100%;
  text-align: left;
}

img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--brass-400); color: var(--ink-900); }

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-500);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  text-align: left;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 { font-size: var(--step-5); font-weight: 500; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; color: var(--slate-600); text-align: left; text-wrap: pretty; }
.lede { font-size: var(--step-1); color: var(--slate-600); max-width: 72ch; line-height: 1.7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 46px;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:focus-visible { outline: 2px solid var(--brass-500); outline-offset: 3px; }
.btn-primary { background: var(--brass-500); color: var(--white); box-shadow: var(--shadow-brass); }
.btn-primary:hover { background: var(--brass-400); transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(192, 138, 62, 0.55); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); border-color: rgba(255,255,255,0.6); }
.btn-ink { border-color: var(--ink-900); color: var(--ink-900); }
.btn-ink:hover { background: var(--ink-900); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ink:active, .btn-outline:active { transform: translateY(0); }

/* ==========================================================================
   Header
   ========================================================================== */
:root { --header-h: 84px; }
@media (max-width: 640px) { :root { --header-h: 64px; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: var(--edge);
  transition: box-shadow 0.25s var(--ease);
  isolation: isolate;
}
/* Blur/background live on a pseudo-element (not on .site-header itself) so that
   .site-header never becomes a CSS containing block for its position:fixed
   mobile-menu descendant. (backdrop-filter/filter/transform on an ancestor
   forces fixed children to size against that ancestor instead of the viewport,
   which was the root cause of the collapsed mobile nav panel.) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s var(--ease);
}
.site-header.scrolled::before {
  background: rgba(246, 244, 239, 0.98);
}
.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(14, 29, 51, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  height: var(--header-h);
  transition: height 0.25s var(--ease);
}
.logo {
  display: flex;
  align-items: center;
  color: var(--ink-900);
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.logo:hover { opacity: 0.85; }
.logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.logo-footer .logo-img { height: 30px; }
@media (max-width: 640px) {
  .logo-img { height: 26px; }
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: clamp(1rem, 2vw, 2.2rem);
}
.nav-links a {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-800);
  position: relative;
  padding: 0.3em 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brass-500);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--brass-500); font-weight: 700; }

/* ---- Services dropdown ---- */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown > a { display: flex; align-items: center; gap: 0.35em; }
.nav-item-dropdown .caret { width: 9px; height: 9px; flex-shrink: 0; transition: transform 0.2s ease; }
.nav-item-dropdown:hover .caret,
.nav-item-dropdown.open .caret { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 300px;
  background: var(--white);
  border: var(--edge);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(14, 29, 51, 0.14);
  padding: 0.6rem;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 40;
}
.nav-item-dropdown:hover .dropdown-panel,
.nav-item-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-800);
  padding: 0.55em 0.8em;
  border-radius: var(--radius-sm);
  white-space: normal;
}
.dropdown-panel a::after { display: none; content: none; }
.dropdown-panel a:hover { background: var(--paper); color: var(--brass-500); }

@media (max-width: 980px) {
  .nav-item-dropdown { width: 100%; border-bottom: 1px solid rgba(14,29,51,0.07); padding-bottom: 0.4rem; }
  .nav-item-dropdown > a { padding: 0.85em 0.1em; font-size: 1rem; min-height: 44px; justify-content: space-between; }
  .nav-item-dropdown > a::after { display: none; }
  .dropdown-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0.4rem 0 0.2rem 0.8rem;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    display: grid;
    gap: 0.15rem;
    border-left: 2px solid rgba(192,138,62,0.3);
    margin-left: 0.15rem;
  }
  .nav-item-dropdown.open .dropdown-panel { max-height: 700px; padding-top: 0.6rem; padding-bottom: 0.6rem; transform: none; }
  .dropdown-panel a { padding: 0.65em 0.8em; font-size: 0.86rem; border-radius: var(--radius-sm); min-height: 40px; display: flex; align-items: center; }
}

.nav-cta { display: flex; align-items: center; gap: 1.2rem; }
.nav-cta .phone {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  display: none;
}
.menu-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--ink-900); display: block; transition: transform 0.28s var(--ease), opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 860px) {
  .nav-cta .phone { display: block; }
}
@media (max-width: 980px) {
  .nav-cta { gap: 0.8rem; }
  .nav-cta .btn-ink { padding: 0.75em 1.2em; font-size: 0.82rem; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 0 0;
    z-index: 90;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    gap: 0.3rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.25s ease, visibility 0.3s;
    border-top: var(--edge);
    overflow-y: auto;
    max-height: calc(100dvh - var(--header-h));
    box-shadow: 0 24px 40px -20px rgba(14,29,51,0.25);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links > a { width: 100%; padding: 0.85em 0.1em; font-size: 1rem; border-bottom: 1px solid rgba(14,29,51,0.07); min-height: 44px; display: flex; align-items: center; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 380px) {
  .nav-cta { gap: 0.5rem; }
  .nav-cta .btn-ink { padding: 0.65em 0.9em; font-size: 0.76rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--white);
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(192,138,62,0.18), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(63,90,140,0.35), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.hero-copy { max-width: 760px; min-width: 0; text-align: left; }
.hero h1 { max-width: 14ch; }
.hero .lede { max-width: 72ch; margin-bottom: 0; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 2.5rem; text-align: left; justify-items: start; }
  .hero-copy { max-width: 760px; }
  .hero .lede { margin-left: 0; margin-right: 0; }
}

.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--brass-400); }
.hero .lede { color: rgba(255,255,255,0.72); }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-actions { justify-content: flex-start; } }

.hero-stats {
  display: flex; gap: 2.2rem; margin-top: 3rem; flex-wrap: wrap;
}
@media (max-width: 900px) { .hero-stats { justify-content: flex-start; } }
.hero-stats .stat-num {
  font-family: var(--font-mono); font-size: var(--step-2); color: var(--brass-400); font-weight: 700;
}
.hero-stats .stat-label { font-size: var(--step--1); color: rgba(255,255,255,0.6); }



/* Homepage hero title on one line for larger desktops */
@media (min-width: 1180px) {
  .hero .container {
    grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.55fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  .hero-copy {
    max-width: none;
  }
  .hero h1 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(3.4rem, 4.6vw, 5rem);
    line-height: 1.02;
    margin-bottom: 0.42em;
  }
  .hero .lede {
    max-width: 58ch;
  }
  .network-graphic {
    align-self: center;
    max-width: 360px;
  }
}

/* signature element: network graphic */
.network-graphic { position: relative; aspect-ratio: 1/1; width: 100%; max-width: 420px; margin: 0 0 0 auto; }
.network-graphic svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .network-graphic { max-width: 300px; margin-left: 0; } }
@media (max-width: 480px) { .network-graphic { max-width: 240px; } }
.network-graphic .node-dot { fill: var(--brass-400); }
.network-graphic .node-ring { fill: none; stroke: rgba(255,255,255,0.25); stroke-width: 1; }
.network-graphic .link-line {
  stroke: rgba(214,162,92,0.55);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  animation: dash 26s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -400; } }
.network-graphic .city-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Sections generic
   ========================================================================== */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 760px; margin: 0 0 clamp(2rem, 4vw, 3rem); text-align: left; }

/* Homepage hierarchy: make the section identity prominent and the supporting line lighter. */
.why-vhh-head .eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.8vw, 3.15rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink-900);
}
.why-vhh-head h2 {
  max-width: 44ch;
  margin-bottom: 0.75rem;
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--slate-600);
}
.section-alt { background: var(--paper-dim); }
.section-ink { background: var(--ink-900); color: var(--white); }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink p { color: rgba(255,255,255,0.68); }

/* why-choose / feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 2vw, 1.5rem); align-items: stretch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.1rem, 2vw, 1.5rem); align-items: stretch; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: var(--edge);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(192,138,62,0.28); }
@media (hover: none) {
  .card:hover, .service-card:hover { transform: none; }
}
.card .num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--brass-500);
  margin-bottom: 0.8rem;
  display: block;
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: var(--step--1); line-height: 1.65; }
/* When a card's list is shorter than its sibling's, center it in the
   remaining space instead of leaving a dangling gap at the bottom. */
.card .checklist {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* If a row in a 3-up grid ends with a single leftover card (e.g. 1, 4, 7…
   items), stretch that card across the full row instead of leaving two
   empty slots beside it. */
.grid-3 > *:last-child:nth-child(3n+1) {
  grid-column: 1 / -1;
}
.grid-3 > .card:last-child:nth-child(3n+1) {
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}
.grid-3 > .card:last-child:nth-child(3n+1) h3 {
  font-size: var(--step-2);
  margin-bottom: 1.3rem;
}
.grid-3 > .card:last-child:nth-child(3n+1) .checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem 2.5rem;
}
.grid-3 > .card:last-child:nth-child(3n+1) .checklist li { margin-bottom: 0; }
.grid-3 > .service-card:last-child:nth-child(3n+1) {
  align-items: flex-start;
  text-align: left;
  padding: clamp(2rem, 4vw, 2.8rem) clamp(2rem, 6vw, 4rem);
}
.grid-3 > .service-card:last-child:nth-child(3n+1) .icon-badge { margin-left: 0; margin-right: 0; }
.grid-3 > .service-card:last-child:nth-child(3n+1) p { max-width: 52ch; margin-left: 0; margin-right: 0; }
.grid-3 > .service-card:last-child:nth-child(3n+1) a.more { margin-left: 0; margin-right: 0; }

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--ink-900);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.icon-badge svg { width: 22px; height: 22px; stroke: var(--brass-400); }

/* split layout */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; align-items: start; } }
.split > * { min-width: 0; }
.split > div > p { max-width: 70ch; }
.split img, .split .media-block { border-radius: var(--radius-md); }

/* media-block: photo block.
   To use your own image, just swap the src="" on the <img class="media-block-img">
   inside — no other markup or CSS needs to change. */
.media-block {
  aspect-ratio: 4/3;
  position: relative;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.media-block-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
.media-block .mono-tag, .graphic-panel .mono-tag {
  position: absolute; bottom: 1.2rem; left: 1.2rem;
  font-family: var(--font-mono); color: var(--white); font-size: 0.72rem;
  letter-spacing: 0.08em;
  z-index: 2;
  padding: 0.4em 0.7em;
  background: rgba(14, 29, 51, 0.55);
  backdrop-filter: blur(3px);
  border-radius: var(--radius-sm);
}
@media (max-width: 900px) {
  .media-block { position: relative; top: 0; }
}

/* graphic-panel: decorative visual used on service pages that don't have a
   dedicated photograph, so the overview section never reads as a lopsided
   half-empty layout. Purely decorative — no copy lives inside it. */
.graphic-panel {
  aspect-ratio: 4/3;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border-radius: var(--radius-md);
  background: var(--ink-900);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) { .graphic-panel { position: relative; top: 0; } }
.graphic-panel::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 55% at 25% 20%, rgba(192,138,62,0.28), transparent 70%),
    radial-gradient(50% 50% at 85% 90%, rgba(63,90,140,0.4), transparent 70%);
}
.graphic-panel::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}
.graphic-panel-inner {
  position: relative;
  width: 128px; height: 128px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.graphic-panel-inner::before {
  content: "";
  position: absolute; inset: -30px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.14);
}
.graphic-panel-inner::after {
  content: "";
  position: absolute; inset: -60px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.graphic-panel-inner svg {
  width: 54px; height: 54px;
  stroke: var(--brass-400);
  fill: none;
  position: relative; z-index: 1;
}

/* checklist */
.checklist { margin: 1.5rem 0; }
.checklist li { display: flex; gap: 0.7em; align-items: flex-start; margin-bottom: 0.7em; font-size: var(--step--1); color: var(--slate-600); }
.checklist svg { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; stroke: var(--brass-500); }

/* stats bar */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: var(--edge); border-bottom: var(--edge);
  padding: 2.5rem 0;
}
@media (max-width: 760px) { .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1.2rem; padding: 2rem 0; } }
.stats-bar .stat { text-align: left; }
.stats-bar .stat-num {
  font-family: var(--font-mono); font-size: var(--step-3); font-weight: 700; color: var(--ink-900);
}
.stats-bar .stat-num .suffix { color: var(--brass-500); }
.stats-bar .stat-label { font-size: var(--step--1); color: var(--slate-400); margin-top: 0.3rem; }


/* reusable metric cards used in dark statistic sections */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}
.metric-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  min-height: 150px;
  justify-content: center;
}
.metric-value {
  font-family: var(--font-mono);
  font-size: var(--step-3);
  color: var(--brass-400);
  font-weight: 700;
}
.metric-label { color: rgba(255,255,255,0.65); margin: 0.4rem 0 0; }

/* progress bars (recruitment/development/interview) */
.progress-row { margin-bottom: 1.4rem; }
.progress-row .p-label {
  display: flex; justify-content: space-between; font-size: var(--step--1);
  margin-bottom: 0.4rem; color: var(--white);
  font-family: var(--font-mono);
}
.progress-track { height: 6px; background: rgba(255,255,255,0.14); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brass-400); width: 0; border-radius: 4px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }

/* services grid on services page */
.service-card {
  background: var(--white);
  border: var(--edge);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex; flex-direction: column; height: 100%;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(192,138,62,0.35);
}
.service-card .icon-badge { background: var(--paper-dim); }
.service-card .icon-badge svg { stroke: var(--ink-900); }
.service-card h3 { font-size: var(--step-1); }
.service-card p { line-height: 1.65; }
.service-card a.more {
  margin-top: auto; padding-top: 1rem;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; color: var(--brass-500);
  letter-spacing: 0.025em;
  display: inline-flex; align-items: center; gap: 0.4em;
}

/* industries chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  padding: 0.55em 1.1em;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: var(--step--1);
  font-family: var(--font-mono);
}

/* FAQ accordion */
.accordion { border-top: var(--edge); }
.acc-item { border-bottom: var(--edge); }
.acc-trigger {
  width: 100%;
  background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink-900);
  text-align: left;
}
.acc-trigger .plus {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--brass-500);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.acc-item.open .acc-trigger .plus { transform: rotate(45deg); }
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.acc-panel-inner { padding-bottom: 1.4rem; max-width: 68ch; }
.acc-panel-inner p { margin: 0; }

/* testimonials/partners */
.partner-card {
  background: var(--white); border: var(--edge); border-radius: var(--radius-md);
  padding: 1.8rem;
}
.partner-card .p-name { font-family: var(--font-display); font-size: var(--step-1); margin-bottom: 0.3rem; }
.partner-card .p-role { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--brass-500); margin-bottom: 1rem; display: block; }

/* CTA band */
.cta-band {
  background: var(--ink-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(2.5rem, 6vw, 4rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,138,62,0.35), transparent 70%);
}
.cta-band h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255,255,255,0.68); margin: 0; max-width: 62ch; }
.cta-band > * { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .cta-band { grid-template-columns: 1fr; text-align: left; align-items: start; }
  .cta-band .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--ink-900); color: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(2rem, 4vw, 2.6rem);
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card p, .contact-form-card > p { max-width: 58ch; line-height: 1.7; }
.contact-info-card p { color: rgba(255,255,255,0.65); }
.info-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.info-row:first-of-type { border-top: none; }
.info-row .icon-badge { background: rgba(255,255,255,0.08); flex-shrink: 0; margin-bottom: 0; }
.info-row .icon-badge svg { stroke: var(--brass-400); }
.info-row .label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); text-transform: uppercase; margin-bottom: 0.2rem; }
.info-row .value { font-size: var(--step-0); color: var(--white); }
.info-row a.value:hover { color: var(--brass-400); }

.social-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.social-row a {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-row a:hover { background: var(--brass-500); border-color: var(--brass-500); }
.social-row svg { display: block; width: 22px; height: 22px; fill: var(--white); stroke: none; }

.contact-form-card {
  background: var(--white); border: var(--edge); border-radius: var(--radius-md);
  padding: clamp(2rem, 4vw, 2.6rem);
}
.contact-form-card form { max-width: 700px; }
.form-row { margin-bottom: 1.3rem; }
.form-row label {
  display: block; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-400);
  margin-bottom: 0.5rem;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid rgba(14,29,51,0.16);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step--1);
  color: var(--ink-900);
  min-height: 46px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--brass-500); background: var(--white);
  box-shadow: 0 0 0 4px rgba(192,138,62,0.14);
}
/* Prevent iOS Safari from auto-zooming the viewport when a field is focused */
@media (max-width: 640px) {
  .form-row input, .form-row select, .form-row textarea { font-size: 16px; }
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 560px) { .form-two { grid-template-columns: 1fr; } }
.form-note { font-size: 0.8rem; color: var(--slate-400); margin-top: 0.8rem; }
.form-status { font-size: var(--step--1); margin-top: 1rem; display: none; }
.form-status.success { color: var(--green-600); display: block; }
.form-status.error { color: #B4432E; display: block; }

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--edge);
  margin-top: 2rem;
  filter: grayscale(0.3) contrast(1.05);
}
.map-wrap iframe { width: 100%; height: 340px; border: none; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.6);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; text-align: left; }
  .footer-grid .logo { justify-content: flex-start; }
  .footer-grid p { max-width: none; margin-left: 0; margin-right: 0; }
  .social-row { justify-content: flex-start; }
}
.footer-grid h4 {
  color: var(--white); font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700;
}
.footer-grid .logo { color: var(--white); margin-bottom: 1rem; }
.footer-grid p { font-size: var(--step--1); max-width: 32ch; }
.footer-links li { margin-bottom: 0.7em; }
.footer-links a { font-size: var(--step--1); transition: color 0.2s; }
.footer-links a:hover { color: var(--brass-400); }
.footer-links a.social-link {
  display: inline-flex; align-items: center; gap: 0.55em;
}
.footer-links a.social-link svg {
  display: block; width: 16px; height: 16px; flex-shrink: 0;
  fill: currentColor;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.6rem; font-size: 0.8rem; flex-wrap: wrap; gap: 1rem;
}
@media (max-width: 560px) { .footer-bottom { justify-content: flex-start; text-align: left; } }
.footer-bottom .made { font-family: var(--font-mono); font-size: 0.72rem; }

/* whatsapp float */
.whatsapp-float {
  position: fixed;
  right: calc(1.4rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 30px -8px rgba(0,0,0,0.5); }
.whatsapp-float svg { width: 26px; height: 26px; fill: var(--white); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .network-graphic .link-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* page hero (interior pages) */
.page-hero {
  background: var(--ink-900); color: var(--white);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 90% 0%, rgba(192,138,62,0.2), transparent 70%);
}
.page-hero .container { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.25vw, 4rem); max-width: 25ch; margin-bottom: 0.45em; }
.page-hero .lede { color: rgba(255,255,255,0.72); max-width: 78ch; margin: 0; }
.page-hero .lede + .lede { margin-top: 1rem; }
.breadcrumb {
  font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem; display: flex; gap: 0.5em;
}
.breadcrumb a:hover { color: var(--brass-400); }

/* ==========================================================================
   Extra small-screen refinements
   ========================================================================== */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: flex-start; }
  .hero-stats { gap: 1.4rem; justify-content: space-between; }
  .hero-stats > div { flex: 1 1 40%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp-float {
    width: 48px; height: 48px;
    right: calc(1rem + env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  .whatsapp-float svg { width: 22px; height: 22px; }
  .section-head { text-align: left; }
  section { padding: clamp(2.75rem, 9vw, 4rem) 0; }
}

@media (max-width: 400px) {
  h1 { letter-spacing: -0.005em; }
  .btn { padding: 0.85em 1.3em; font-size: 0.86rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
}

/* ==========================================================================
   Global overflow / premium safety nets (all breakpoints)
   ========================================================================== */
html, body { max-width: 100%; }
body.menu-open { overflow: hidden; }
table { max-width: 100%; display: block; overflow-x: auto; }

/* Fluid iframe map height so it doesn't dominate small screens */
@media (max-width: 640px) {
  .map-wrap iframe { height: 260px; }
}


@media (max-width: 900px) {
  .page-hero h1 { max-width: 30ch; }
  .media-block, .graphic-panel { width: 100%; max-width: 720px; }
}

@media (max-width: 640px) {
  :root { --gutter: clamp(1rem, 5vw, 1.35rem); }
  .hero { padding-top: 3.25rem; }
  .hero h1 { max-width: 15ch; font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .page-hero { padding-top: 3rem; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); max-width: 100%; }
  .section-head { max-width: 100%; }
  .contact-info-card, .contact-form-card { padding: 1.5rem; }
  .metric-grid { grid-template-columns: 1fr; gap: 1rem; }
  .metric-card { min-height: 120px; }
  .info-row { gap: 0.8rem; }
  .info-row .value { overflow-wrap: anywhere; }
}

/* Make hover-only micro-interactions safe on touch devices */
@media (hover: none) {
  .btn-primary:hover, .btn-ink:hover, .btn-outline:hover { transform: none; }
}


/* ==========================================================================\n   Refined left-centric footer\n   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(194, 145, 80, 0.16), transparent 28rem),
    linear-gradient(145deg, #101735 0%, #152655 58%, #17366e 100%);
  color: rgba(255,255,255,0.72);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 1.8rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brass-400), rgba(194,145,80,0.15) 70%, transparent);
}
.footer-callout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.13);
}
.footer-callout > div { max-width: 760px; }
.footer-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--brass-400);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-callout h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 0.65rem;
  max-width: 18ch;
}
.footer-callout p {
  max-width: 62ch;
  margin: 0;
  color: rgba(255,255,255,0.7);
}
.footer-cta {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.5);
  background: var(--brass-400);
  color: var(--ink-900);
  font-weight: 800;
  white-space: nowrap;
}
.footer-cta:hover { background: var(--white); color: var(--ink-900); }
.site-footer .footer-grid {
  grid-template-columns: 1.45fr 0.85fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.13);
  text-align: left;
}
.footer-brand {
  padding-right: clamp(0rem, 2vw, 1.5rem);
}
.footer-brand .logo-footer { display: inline-flex; margin-bottom: 1.25rem; }
.footer-brand .logo-img { height: 34px; width: auto; }
.footer-brand p {
  max-width: 34ch;
  margin: 0 0 1.45rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
}
.footer-column h4,
.site-footer .footer-grid h4 {
  position: relative;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.45rem;
  padding-bottom: 0.7rem;
  font-weight: 800;
}
.footer-column h4::after,
.site-footer .footer-grid h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--brass-400);
}
.site-footer .footer-links li { margin-bottom: 0.78rem; }
.site-footer .footer-links a {
  display: inline-block;
  color: rgba(255,255,255,0.74);
  font-size: 0.93rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.site-footer .footer-links a:hover {
  color: var(--white);
  transform: translateX(3px);
}
.footer-details li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.93rem;
  line-height: 1.55;
}
.footer-details strong {
  color: rgba(255,255,255,0.94);
  font-size: 0.9rem;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer-social:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.36);
  color: var(--white);
}
.footer-social svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}
.footer-legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-legal-links a {
  color: var(--brass-400);
  font-size: 0.9rem;
  font-weight: 700;
}
.footer-legal-links a:hover { color: var(--white); }
.site-footer .footer-bottom {
  padding-top: 1.7rem;
  color: rgba(255,255,255,0.58);
}
.site-footer .footer-bottom .made {
  color: rgba(255,255,255,0.68);
  letter-spacing: 0.04em;
}

.legal-content {
  max-width: 860px;
  margin-left: 0;
}
.legal-content .legal-updated {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--brass-700);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-content h2 { margin: 2rem 0 0.75rem; }
.legal-content h3 { margin: 1.5rem 0 0.55rem; }
.legal-content p, .legal-content li { line-height: 1.8; }
.legal-content ul { padding-left: 1.25rem; list-style: disc; }
.legal-content li { margin-bottom: 0.45rem; }
.legal-note {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--brass-400);
  background: var(--brass-50);
}

@media (max-width: 960px) {
  .footer-callout { align-items: flex-start; flex-direction: column; }
  .site-footer .footer-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 620px) {
  .site-footer { padding-top: 3rem; }
  .footer-callout { gap: 1.4rem; }
  .footer-callout h2 { max-width: 100%; }
  .footer-cta { width: 100%; justify-content: center; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer-brand { padding-right: 0; }
  .footer-brand p { max-width: none; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================================
   Compact service-detail hero and heading alignment
   ========================================================================== */
.service-detail-hero {
  padding: clamp(2.25rem, 4.5vw, 3.75rem) 0 clamp(1.85rem, 3.5vw, 2.75rem);
}
.service-detail-hero .breadcrumb {
  margin-bottom: 0.75rem;
}
.service-detail-hero h1 {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2.15rem, 3.1vw, 3.35rem);
  line-height: 1.06;
  text-wrap: balance;
}

.service-detail-page section:not(.page-hero) {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.service-detail-hero + section {
  padding-top: clamp(2.25rem, 3.5vw, 3.25rem);
}
.service-detail-page .split h2,
.service-detail-page .card h3,
.service-detail-page .cta-band h2 {
  max-width: none;
  text-wrap: balance;
}

@media (min-width: 1100px) {
  .service-detail-hero h1 {
    white-space: nowrap;
    letter-spacing: -0.025em;
  }
}

@media (max-width: 640px) {
  .service-detail-hero {
    padding-top: 2.35rem;
    padding-bottom: 2rem;
  }
  .service-detail-hero h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.1;
  }
  .service-detail-hero + section {
    padding-top: 2.25rem;
  }
}


/* ==========================================================================
   RPO page visibility and whitespace correction
   ========================================================================== */
.rpo-detail-page .reveal {
  opacity: 1 !important;
  transform: none !important;
}
.rpo-detail-page section:not(.page-hero) {
  padding-top: clamp(2.25rem, 3.5vw, 3.5rem);
  padding-bottom: clamp(2.25rem, 3.5vw, 3.5rem);
}
.rpo-detail-page .service-detail-hero + section {
  padding-top: clamp(2rem, 3vw, 2.75rem);
}
.rpo-detail-page .split {
  align-items: start;
}
.rpo-detail-page .media-block {
  align-self: start;
}
@media (min-width: 901px) {
  .rpo-detail-page .media-block {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
@media (max-width: 900px) {
  .rpo-detail-page .media-block {
    position: relative;
    top: 0;
  }
}
.rpo-detail-page .section-alt,
.rpo-detail-page .cta-band {
  visibility: visible;
}

/* Keep the homepage About heading in a clean 2-line layout on desktop. */
@media (min-width: 1180px) {
  .home-about-heading {
    max-width: 24ch;
    white-space: normal;
    font-size: clamp(1.9rem, 2.35vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }
}

@media (max-width: 1179px) {
  .home-about-heading {
    max-width: 100%;
    white-space: normal;
  }
}


/* Compact cards: remove unnecessary white space while preserving clean alignment */
.services-grid {
  align-items: start;
}
.services-grid .service-card {
  height: auto;
  align-self: start;
}
.services-grid .service-card a.more {
  margin-top: 1rem;
  padding-top: 0;
}

.service-detail-page .grid-2,
.service-detail-page .grid-3 {
  align-items: start;
}
.service-detail-page .card {
  align-self: start;
  height: auto;
}
.service-detail-page .card .checklist {
  flex: 0 0 auto;
  justify-content: flex-start;
  margin-top: 0.65rem;
}
.service-detail-page .card .checklist li:last-child {
  margin-bottom: 0;
}

.rpo-summary-grid .card {
  min-height: 0;
}

@media (min-width: 901px) {
  .rpo-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ==========================================================================
   Premium alignment refinement pass
   ========================================================================== */
.services-page .grid-3,
.service-detail-page .grid-2,
.service-detail-page .grid-3,
.contact-grid,
.metric-grid,
.footer-grid {
  align-items: start;
}

.services-page .service-card,
.service-detail-page .card,
.contact-info-card,
.contact-form-card,
.metric-card {
  align-self: start;
  box-shadow: 0 18px 38px -28px rgba(14,29,51,0.18);
}

.services-page .service-card {
  height: auto;
  min-height: 0;
  justify-content: flex-start;
}
.services-page .service-card h3 {
  line-height: 1.08;
  margin-bottom: 0.7rem;
  min-height: 2.35em;
}
.services-page .service-card p {
  margin-bottom: 0;
  max-width: 30ch;
}
.services-page .service-card a.more {
  margin-top: 1rem;
  padding-top: 0;
  align-self: flex-start;
}

.service-detail-page .split,
.service-detail-page .contact-grid,
.site-footer .footer-grid,
.cta-band,
.footer-callout {
  align-items: start;
}
.service-detail-page .media-block,
.service-detail-page .graphic-panel {
  margin-top: 0.25rem;
}
.service-detail-page .card {
  height: auto;
}
.service-detail-page .card h3 {
  margin-bottom: 0.85rem;
  line-height: 1.12;
}
.service-detail-page .card .checklist {
  margin: 0.2rem 0 0;
}
.service-detail-page .card .checklist li {
  margin-bottom: 0.85rem;
}
.service-detail-page .card .checklist li:last-child {
  margin-bottom: 0;
}

.section-head,
.split > div,
.cta-band > div,
.contact-info-card > div {
  min-width: 0;
}

.contact-info-card,
.contact-form-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.contact-form-card form {
  width: 100%;
}
.form-two,
.form-group {
  width: 100%;
}

.footer-brand,
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-brand p {
  max-width: 34ch;
}
.site-footer .footer-links,
.footer-details,
.footer-legal-links {
  width: 100%;
}
.footer-legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}
.site-footer .footer-bottom {
  gap: 0.8rem;
}

@media (min-width: 901px) {
  .services-page .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .services-page .grid-3 > .service-card:last-child:nth-child(3n+1) {
    grid-column: auto;
    padding: clamp(1.5rem, 3vw, 2rem);
  }
}

@media (max-width: 900px) {
  .services-page .service-card h3 {
    min-height: 0;
  }
}


/* ==========================================================================
   Homepage hero alignment refinement
   ========================================================================== */
@media (min-width: 1180px) {
  .hero {
    padding: clamp(4rem, 7vw, 5.5rem) 0 clamp(3rem, 5vw, 4rem);
  }
  .hero .container {
    grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.58fr);
    gap: clamp(1.75rem, 3.2vw, 3.25rem);
    align-items: center;
  }
  .hero-copy {
    max-width: 840px;
  }
  .hero h1 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(3.05rem, 4vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 0.42em;
  }
  .hero .lede {
    max-width: 44ch;
    font-size: clamp(1rem, 1.14vw, 1.16rem);
    line-height: 1.72;
  }
  .hero-actions {
    margin-top: 1.45rem;
  }
  .hero-stats {
    margin-top: 2rem;
    gap: 1.9rem;
  }
  .network-graphic {
    width: 100%;
    max-width: 280px;
    justify-self: end;
    align-self: center;
    margin: 1.5rem 0 0 auto;
  }
}


/* ==========================================================================
   Single-line inner-page hero headlines on desktop
   ========================================================================== */
@media (min-width: 1100px) {
  .about-page .page-hero .container,
  .contact-page .page-hero .container {
    max-width: none;
  }

  .about-page .page-hero h1 {
    max-width: none;
    width: 100%;
    white-space: nowrap;
    font-size: clamp(0.85rem, 1.18vw, 1.12rem);
    line-height: 1.28;
    letter-spacing: -0.012em;
    text-wrap: nowrap;
  }

  .contact-page .page-hero h1 {
    max-width: none;
    width: 100%;
    white-space: nowrap;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: nowrap;
  }
}

/* ==========================================================================
   Recruitment Process Outsourcing scroll-down experience
   ========================================================================== */
.rpo-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.1rem;
  color: rgba(255,255,255,0.72);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.rpo-scroll-cue:hover { color: var(--brass-400); }
.rpo-scroll-cue svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: rpo-scroll-arrow 1.45s ease-in-out infinite;
}
@keyframes rpo-scroll-arrow {
  0%, 100% { transform: translateY(-2px); opacity: 0.62; }
  50% { transform: translateY(5px); opacity: 1; }
}

.rpo-detail-page.rpo-scroll-ready .rpo-scroll-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.2,.75,.25,1);
}
.rpo-detail-page.rpo-scroll-ready .rpo-scroll-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.rpo-detail-page.rpo-scroll-ready .rpo-scroll-section .card {
  opacity: 0;
  transform: translateY(18px);
}
.rpo-detail-page.rpo-scroll-ready .rpo-scroll-section.is-visible .card {
  animation: rpo-card-in 0.62s ease forwards;
}
.rpo-detail-page.rpo-scroll-ready .rpo-scroll-section.is-visible .card:nth-child(2) { animation-delay: 0.12s; }
.rpo-detail-page.rpo-scroll-ready .rpo-scroll-section.is-visible .card:nth-child(3) { animation-delay: 0.24s; }
@keyframes rpo-card-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rpo-scroll-cue svg { animation: none; }
  .rpo-detail-page.rpo-scroll-ready .rpo-scroll-section,
  .rpo-detail-page.rpo-scroll-ready .rpo-scroll-section .card {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

@media (max-width: 1099px) {
  .about-page .page-hero h1,
  .contact-page .page-hero h1 {
    white-space: normal;
    text-wrap: balance;
  }
}


/* About hero headline: intentional two-line desktop layout */
@media (min-width: 1100px) {
  .about-page .page-hero .about-hero-title {
    max-width: none;
    width: 100%;
    white-space: normal;
    font-size: clamp(1.65rem, 2.15vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: initial;
  }
  .about-page .page-hero .about-hero-title span {
    display: block;
    white-space: nowrap;
  }
}

@media (max-width: 1099px) {
  .about-page .page-hero .about-hero-title span {
    display: inline;
  }
  .about-page .page-hero .about-hero-title span + span::before {
    content: " ";
  }
}


/* Contact hero supporting line: one line on desktop, responsive below */
@media (min-width: 1100px) {
  .contact-page .page-hero .lede {
    max-width: none;
    width: 100%;
    white-space: nowrap;
    text-wrap: nowrap;
    font-size: clamp(0.95rem, 1.18vw, 1.08rem);
    line-height: 1.5;
  }
}

@media (max-width: 1099px) {
  .contact-page .page-hero .lede {
    max-width: 78ch;
    white-space: normal;
    text-wrap: pretty;
  }
}


/* About mission section: remove the large gap between intro and body copy */
.about-page .mission-section .section-head {
  margin-bottom: 0.3rem;
}
.about-page .mission-section .section-head .lede {
  margin-bottom: 0;
}
.about-page .mission-section .mission-copy {
  margin-top: 0;
  margin-bottom: 0;
}


/* Industries hero headline: keep on one line on wide screens */
@media (min-width: 1100px) {
  .industries-page .page-hero h1 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(2.75rem, 4vw, 4rem);
    letter-spacing: -0.025em;
  }
}

@media (max-width: 1099px) {
  .industries-page .page-hero h1 {
    white-space: normal;
  }
}


/* About hero headline: force clean 2-line layout on desktop */
@media (min-width: 1100px) {
  .about-page .page-hero .about-hero-title {
    max-width: none;
    width: 100%;
    white-space: normal;
    font-size: clamp(1.62rem, 2.08vw, 2.28rem);
    line-height: 1.12;
    letter-spacing: -0.022em;
    text-wrap: initial;
  }
  .about-page .page-hero .about-hero-title span {
    display: block;
    white-space: nowrap;
  }
}
@media (max-width: 1099px) {
  .about-page .page-hero .about-hero-title span {
    display: inline;
  }
  .about-page .page-hero .about-hero-title span + span::before {
    content: ' ';
  }
}

/* Home About heading: keep it in 2 lines on desktop */
@media (min-width: 1180px) {
  .home-about-heading {
    max-width: 23ch;
    text-wrap: initial;
  }
  .home-about-heading span {
    display: block;
    white-space: nowrap;
  }
}
@media (max-width: 1179px) {
  .home-about-heading span {
    display: inline;
  }
  .home-about-heading span + span::before {
    content: ' ';
  }
}

/* About highlight section: reduce extra white space around the photo/text area */
.about-page .about-highlight-section {
  padding-top: clamp(2rem, 3.2vw, 2.75rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.4rem);
}
.about-page .about-highlight-section .split {
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.8rem);
}
.about-page .about-highlight-section .media-block {
  margin-top: 0;
}
.about-page .about-highlight-section .reveal > p:last-child {
  margin-bottom: 0;
}


/* About expert-team heading: keep on one line on desktop */
@media (min-width: 901px) {
  .about-page .expert-team-heading {
    max-width: none;
    white-space: nowrap;
    text-wrap: nowrap;
    font-size: clamp(1.8rem, 2.4vw, 2.8rem);
    letter-spacing: -0.025em;
  }
}
@media (max-width: 900px) {
  .about-page .expert-team-heading {
    white-space: normal;
    text-wrap: balance;
  }
}


/* Footer callout heading: keep on one line on desktop */
@media (min-width: 1100px) {
  .footer-callout h2 {
    max-width: none;
    white-space: nowrap;
    text-wrap: nowrap;
    font-size: clamp(1.6rem, 2.3vw, 2.5rem);
    letter-spacing: -0.022em;
  }
}
@media (max-width: 1099px) {
  .footer-callout h2 {
    white-space: normal;
    text-wrap: balance;
  }
}

/* Final lock: About Us expert-team heading remains on one line */
.about-page .expert-team-heading {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(1.55rem, 2.25vw, 2.55rem);
  line-height: 1.08;
}

@media (max-width: 640px) {
  .about-page .expert-team-heading {
    font-size: clamp(1.18rem, 5.2vw, 1.55rem);
    letter-spacing: -0.03em;
  }
}


/* About page: remove unused hero space and pull the next content upward */
.about-page .page-hero {
  padding-top: clamp(2.5rem, 4.2vw, 3.5rem);
  padding-bottom: clamp(1.35rem, 2.2vw, 2rem);
}
.about-page .page-hero .breadcrumb {
  margin-bottom: 0.65rem;
}
.about-page .page-hero .eyebrow {
  margin-bottom: 0.3rem;
}
.about-page .page-hero .about-hero-title {
  margin-bottom: 0.32em;
}
.about-page .page-hero .lede {
  max-width: 112ch;
  width: 100%;
  line-height: 1.55;
}
.about-page .about-highlight-section {
  padding-top: clamp(1.15rem, 1.8vw, 1.7rem);
}

/* About Highlight heading: one clean line on desktop */
@media (min-width: 901px) {
  .about-page .about-highlight-section .split {
    grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
    gap: clamp(1.25rem, 2.5vw, 2.4rem);
  }
  .about-page .about-highlight-heading {
    width: max-content;
    max-width: none;
    margin-top: 0.15rem;
    margin-bottom: 0.7rem;
    white-space: nowrap;
    text-wrap: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    font-size: clamp(1.05rem, 1.35vw, 1.45rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }
}
@media (max-width: 900px) {
  .about-page .about-highlight-heading {
    width: auto;
    max-width: 100%;
    white-space: normal;
    text-wrap: balance;
  }
}
