@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --forest:  #2A4742;
  --lime:    #C0FD71;
  --emerald: #0E673B;
  --mint:    #D9EBDD;
  --silver:  #E8E6E7;
  --periwinkle: #D9EBDD;
  --white:   #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--forest);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; background: var(--silver); }
::-webkit-scrollbar-thumb { background: var(--forest); border-radius: 2px; }

h1, h2, h3 { font-family: 'DM Serif Display', serif; }

/* ── BUTTONS ── */
.btn-lime {
  background: var(--lime); color: var(--forest); border: none;
  padding: 14px 36px; font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; transition: all 0.22s;
  border-radius: 0; display: inline-block; text-decoration: none;
}
.btn-lime:hover { background: #d4ff8a; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(192,253,113,0.35); }

.btn-outline-forest {
  background: transparent; color: var(--forest); border: 2px solid var(--forest);
  padding: 13px 34px; font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; transition: all 0.22s;
  display: inline-block; text-decoration: none;
}
.btn-outline-forest:hover { background: var(--forest); color: var(--lime); transform: translateY(-2px); }

.btn-outline-white {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.45);
  padding: 13px 34px; font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; transition: all 0.22s;
  display: inline-block; text-decoration: none;
}
.btn-outline-white:hover { border-color: var(--lime); color: var(--lime); }

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--forest); height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px; border-bottom: 3px solid var(--lime);
}
.nav-logo { display: flex; align-items: center; cursor: pointer; text-decoration: none; flex-shrink: 0; }
.nav-logo:focus-visible,
.footer-logo:focus-visible {
  outline: 2px solid #C0FD71;
  outline-offset: 4px;
  border-radius: 2px;
}
.footer-logo { display: inline-block; text-decoration: none; }
.nav-logo-img { height: 46px; width: auto; display: block; }
.nav-logo-desktop { display: block; }
.nav-logo-mobile { display: none; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links > * { white-space: nowrap; }
.nav-link { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; transition: color 0.2s; padding: 6px 0; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--lime); }
.nav-link-ext { opacity: 0.6; }

/* ── FOOTER ── */
footer.site-footer {
  background: #1d312d; border-top: 1px solid rgba(192,253,113,0.15);
  padding: 48px 52px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { flex-shrink: 0; }
.footer-brand a { display: inline-block; }
.footer-logo-img { height: 59px; width: auto; display: block; margin-bottom: 16px; }
.footer-logo-desktop { display: block; }
.footer-logo-mobile { display: none; }
.footer-tagline { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 220px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.footer-nav a:hover { color: var(--lime); }
.footer-contact-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(192,253,113,0.5); margin-bottom: 12px; }
.footer-contact a, .footer-contact div { font-size: 14px; color: rgba(255,255,255,0.6); font-weight: 500; text-decoration: none; display: block; margin-bottom: 6px; }
.footer-address { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); letter-spacing: 0.04em; }
.footer-links { display: flex; gap: 24px; align-items: center; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(192,253,113,0.6); }
.footer-social a { color: rgba(255,255,255,0.35); font-size: 12px; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.footer-social a:hover { color: var(--lime); }

/* ── PAGE SECTIONS ── */
.wrap { max-width: 1200px; margin: 0 auto; }

.label {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--lime); flex-shrink: 0; }
.label.light { color: rgba(192,253,113,0.7); }

/* ── FADE IN ── */
.fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in[data-delay="0.15"] { transition-delay: 0.15s; }

/* ── PRICE CARDS ── */
.price-card { padding: 28px 26px; background: #fff; border: 1.5px solid var(--silver); transition: all 0.25s; }
.price-card:hover { border-color: var(--forest); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(42,71,66,0.12); }

/* ── BENEFIT CARDS ── */
.benefit-card { padding: 28px 24px; background: #fff; border: 1.5px solid var(--silver); transition: all 0.25s; text-align: center; }
.benefit-card:hover { border-color: var(--lime); background: #FBFFF5; }

/* ── SECTION UTILITY ─────────────────────────────────────────────────
 * Tier 4 refactor: replaces dozens of inline `padding:100px 52px` blocks
 * that previously needed brittle [style*="..."] attribute selectors to
 * override on mobile. One class, three breakpoints, no !important.
 *
 * Backgrounds, position:relative, overflow:hidden stay inline since they
 * vary per section. Only the box-model layout lives here. */
.section { padding: 100px 52px; }
.section--tight { padding: 80px 52px; }
@media (max-width: 1000px) {
  .section,
  .section--tight { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 768px) {
  .section,
  .section--tight { padding: 60px 20px; }
}
@media (max-width: 480px) {
  .section,
  .section--tight { padding: 48px 16px; }
}

/* ── PAGE HERO ── */
.page-hero { background: var(--forest); padding: 188px 52px 80px; position: relative; overflow: hidden; }
.page-hero.light { background: var(--white); }
.page-hero .hero-orb { position: absolute; right: -80px; top: -80px; width: 500px; height: 500px; border: 70px solid rgba(192,253,113,0.05); border-radius: 50%; pointer-events: none; }
.page-hero h1 { font-family: 'DM Serif Display', serif; font-size: clamp(36px,4.5vw,64px); font-weight: 400; line-height: 1.08; letter-spacing: -0.025em; color: #fff; max-width: 800px; margin-bottom: 24px; }
.page-hero.light h1 { color: var(--forest); }
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.55); max-width: 600px; line-height: 1.8; margin-bottom: 40px; }
.page-hero.light p { color: rgba(42,71,66,0.6); }

/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--lime);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
  /* Soft fade-out at the edges so text doesn't get hard-cut by the viewport
   * — feels more like a continuous loop than a clip. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.marquee-track { display: inline-block; animation: marquee 22s linear infinite; }
.marquee-wrap:hover .marquee-track,
.marquee-wrap:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ── REVIEWS CAROUSEL ── */
.carousel-section { background: var(--lime); padding: 100px 52px; }
.carousel-card { background: #fff; padding: 56px 64px; position: relative; min-height: 240px; }
.carousel-quote-mark { font-family: 'DM Serif Display', serif; font-size: 96px; color: var(--lime); line-height: 0.6; position: absolute; top: 40px; left: 52px; opacity: 0.6; user-select: none; }
.carousel-blockquote { font-family: 'DM Serif Display', serif; font-size: clamp(18px,2.2vw,26px); font-weight: 400; color: var(--forest); line-height: 1.55; letter-spacing: -0.01em; margin-bottom: 40px; padding-top: 32px; position: relative; z-index: 1; }
.carousel-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.carousel-avatar { width: 48px; height: 48px; background: var(--forest); display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: 'DM Serif Display', serif; font-size: 16px; color: var(--lime); }
.carousel-name { font-size: 14px; font-weight: 700; color: var(--forest); }
.carousel-role { font-size: 12px; color: rgba(42,71,66,0.5); margin-top: 2px; font-weight: 500; }
.carousel-controls { display: flex; align-items: center; gap: 16px; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dot { height: 8px; border: none; background: rgba(42,71,66,0.2); border-radius: 4px; cursor: pointer; padding: 0; transition: all 0.25s; width: 8px; }
.carousel-dot.active { background: var(--forest); width: 24px; }
.carousel-btn { width: 40px; height: 40px; border: 1.5px solid var(--forest); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.carousel-btn.next { background: var(--forest); border-color: var(--forest); }

/* ── ENGAGEMENT MODEL DIAGRAM (legal explainer on /hire-smarter, /outsourcing) ── */
.engagement-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 32px;
}
.engagement-card {
  background: #F4F2EE;
  border-top: 3px solid var(--forest);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.engagement-card-mid {
  background: #D9EBDD;
  border-top-color: var(--lime);
}
.engagement-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(42,71,66,0.5);
  margin-bottom: 12px;
}
.engagement-card-name {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--forest);
  line-height: 1.15;
  margin-bottom: 8px;
}
.engagement-card-sub {
  font-size: 13px;
  color: rgba(42,71,66,0.6);
  line-height: 1.5;
}
.engagement-arrow {
  padding: 0 18px;
  text-align: center;
  align-self: center;
  min-width: 120px;
}
.engagement-arrow-top, .engagement-arrow-bottom {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.engagement-arrow-top { color: #0E673B; margin-bottom: 6px; }
.engagement-arrow-bottom { color: rgba(42,71,66,0.5); margin-top: 6px; font-weight: 400; letter-spacing: 0.04em; text-transform: none; font-size: 11px; }
.engagement-arrow-svg { width: 100%; max-width: 80px; display: block; margin: 0 auto; }
.engagement-note {
  text-align: left;
  padding: 22px 24px;
  background: #F4F2EE;
  border-left: 3px solid var(--lime);
  margin-top: 16px;
}
.engagement-note-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0E673B;
  margin-bottom: 6px;
}
.engagement-note-body { font-size: 15px; color: var(--forest); line-height: 1.55; }
.engagement-table {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 0;
  border-top: 1px solid #E8E6E7;
}
.engagement-row {
  display: contents;
}
.engagement-row-q {
  padding: 18px 24px 18px 0;
  border-bottom: 1px solid #E8E6E7;
  font-size: 14px;
  color: rgba(42,71,66,0.6);
}
.engagement-row-a {
  padding: 18px 0;
  border-bottom: 1px solid #E8E6E7;
  font-size: 14px;
  color: var(--forest);
  font-weight: 600;
}
@media (max-width: 768px) {
  /* Engagement diagram: collapse the 5-element row (card → arrow → card →
   * arrow → card) into a vertical flow. The SVG arrow is hidden in favour
   * of a CSS down-chevron so the visual reads as a real connecting flow
   * rather than a side-by-side layout that's been awkwardly rotated. */
  .engagement-diagram {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .engagement-card { text-align: center; padding: 22px 20px; }
  .engagement-card-name { font-size: 22px; }
  .engagement-arrow {
    padding: 14px 0;
    min-width: 0;
    position: relative;
  }
  .engagement-arrow-svg { display: none; }
  /* Down-pointing chevron via border tricks - no asset needed. */
  .engagement-arrow::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 auto;
    border-right: 2px solid #0E673B;
    border-bottom: 2px solid #0E673B;
    transform: rotate(45deg);
    margin-bottom: 8px;
  }
  .engagement-arrow-top, .engagement-arrow-bottom {
    text-align: center;
    line-height: 1.4;
  }
  .engagement-arrow-top { margin-top: 6px; }

  .engagement-table { grid-template-columns: 1fr; }
  .engagement-row-q { padding: 18px 0 6px; border-bottom: none; }
  .engagement-row-a { padding: 0 0 18px; }
}

/* ── FINAL CTA ── */
.final-cta { background: var(--silver); padding: 100px 52px; position: relative; overflow: hidden; text-align: center; }

/* ── DEPT BUTTONS ── */
.dept-btn { border: none; padding: 12px 22px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; cursor: pointer; transition: all 0.22s; text-transform: uppercase; border-bottom: 3px solid transparent; background: rgba(42,71,66,0.06); color: var(--forest); }

/* ── HERO ANIMATIONS ── */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%,49% { opacity:1; } 50%,100% { opacity:0; } }

.hero-line-1 { animation: heroFadeUp 0.7s ease 0.1s both; }
.hero-line-2 { animation: heroFadeUp 0.7s ease 0.25s both; }
.hero-line-3 { animation: heroFadeUp 0.7s ease 0.4s both; }
.hero-sub    { animation: heroFadeUp 0.7s ease 0.55s both; }
.hero-cta    { animation: heroFadeUp 0.7s ease 0.68s both; }
.hero-proof  { animation: heroFadeUp 0.7s ease 0.82s both; }

.tw-cursor { display: inline-block; width: 2px; height: 0.78em; background: var(--emerald); animation: blink 1.1s step-end infinite; vertical-align: baseline; margin-left: 3px; position: relative; top: -2px; }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 6px 0; }
.nav-dropdown-trigger::after { content: ''; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; transition: transform 0.2s; }
.nav-dropdown.open .nav-dropdown-trigger::after, .nav-dropdown:hover .nav-dropdown-trigger::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: -12px;
  background: var(--forest); border: 1px solid rgba(192,253,113,0.15);
  min-width: 200px; padding: 8px 0;
  opacity: 0; pointer-events: none; transform: translateY(4px);
  transition: all 0.2s; z-index: 210;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 13px;
  color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 500;
  transition: all 0.15s;
}
.nav-dropdown-menu a:hover { color: var(--lime); background: rgba(255,255,255,0.04); }

/* ── HAMBURGER MENU ── */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: all 0.3s; }

/* ── FOOTER COLUMNS ── */
.footer-nav-grouped { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px 48px; }
.footer-nav-heading {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(192,253,113,0.5);
  margin-bottom: 12px;
}
.footer-nav-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; font-weight: 500; transition: color 0.2s; margin-bottom: 8px; }
.footer-nav-col a:hover { color: var(--lime); }

/* ── SERVICE CARDS ── */
.service-card {
  padding: 36px 32px; border-top: 3px solid var(--lime);
  transition: all 0.25s; background: #fff; border-left: 1.5px solid var(--silver); border-right: 1.5px solid var(--silver); border-bottom: 1.5px solid var(--silver);
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(42,71,66,0.12); }

/* ── LOGO GRID ── */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.logo-grid-item {
  background: #fff; border: 1.5px solid var(--silver);
  padding: 40px 32px; display: flex; align-items: center;
  justify-content: center; transition: all 0.25s;
}
.logo-grid-item:hover { border-color: var(--lime); }

/* ── CASE STUDY CARD ── */
.case-study-card {
  background: #fff; border: 1.5px solid var(--silver);
  padding: 44px 40px; transition: all 0.25s; margin-bottom: 3px;
}
.case-study-card:hover { border-color: var(--forest); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(42,71,66,0.12); }

/* ── JOB CARD ── */
.job-card {
  background: #fff; border: 1.5px solid var(--silver);
  padding: 36px 32px; transition: all 0.25s;
}
.job-card:hover { border-color: var(--lime); background: #FBFFF5; }

/* ── LEGAL PAGE ── */
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 22px; margin-top: 48px; margin-bottom: 16px; }
.legal-content h3 { font-size: 18px; margin-top: 32px; margin-bottom: 12px; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.legal-content p { font-size: 15px; color: rgba(42,71,66,0.7); line-height: 1.85; margin-bottom: 16px; }
.legal-content ul { margin-left: 24px; margin-bottom: 16px; list-style: none; }
.legal-content li { font-size: 15px; color: rgba(42,71,66,0.7); line-height: 1.85; margin-bottom: 8px; padding-left: 16px; position: relative; }
.legal-content li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 2px; background: var(--lime); }

/* ── NARROW DESKTOP / TABLET LANDSCAPE NAV ── */
/* Collapse to hamburger before items start wrapping. Triggers above the
   mobile breakpoint so 768-1000px viewports get a clean drawer instead of
   a cramped 7-item desktop bar. */
@media (max-width: 1000px) {
  .nav-logo-desktop { display: none; }
  .nav-logo-mobile { display: block; height: 40px; }
  .nav-links {
    display: none; position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--forest);
    flex-direction: column; padding: 32px 28px;
    gap: 0; overflow-y: auto; z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 15px; }
  .nav-dropdown-menu { position: static; opacity: 1; pointer-events: auto; transform: none; border: none; margin: 0; padding: 0 0 0 20px; min-width: auto; display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-trigger::after { margin-left: auto; }
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  nav.site-nav { padding: 0 20px; }
  .nav-logo-desktop { display: none; }
  .nav-logo-mobile { display: block; height: 40px; }
  .nav-links { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--forest); flex-direction: column; padding: 32px 28px; gap: 0; overflow-y: auto; z-index: 200; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 15px; }
  .nav-dropdown-menu { position: static; opacity: 1; pointer-events: auto; transform: none; border: none; margin: 0; padding: 0 0 0 20px; min-width: auto; display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-trigger::after { margin-left: auto; }

  .page-hero { padding: 140px 28px 60px; }
  .page-hero.light { padding: 140px 28px 60px; }
  /* Catch-all for legacy sections that haven't been migrated to the
   * .section utility. The :not() chain lets each owning class drive its
   * own padding (otherwise this !important would clobber the utility). */
  section:not(.section):not(.section--tight):not(.carousel-section):not(.page-hero) {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
  .wrap { padding: 0; }
  footer.site-footer { padding: 36px 28px; }
  .footer-top { flex-direction: column; }
  .footer-logo-desktop { display: none; }
  .footer-logo-mobile { display: block; height: 44px; }
  .footer-nav-grouped { grid-template-columns: 1fr 1fr; }
  .carousel-section { padding: 60px 28px; }
  .carousel-card { padding: 32px 28px; }
  .client-logos { gap: 24px 32px; max-width: 100%; }
  .client-logos img { height: 32px; }

  /* Force inline grid layouts to single column */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  [style*="repeat(5,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  [style*="repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Reduce large gaps */
  [style*="gap:80px"], [style*="gap: 80px"] {
    gap: 32px !important;
  }
  [style*="gap:3px"] {
    gap: 0 !important;
  }

  /* Section padding is now handled by the .section utility class (see top
   * of file). Only `padding:0 52px` (used by the hero stats strip) still
   * lives inline and needs the override. */
  [style*="padding:0 52px"], [style*="padding: 0 52px"] {
    padding: 0 20px !important;
  }

  /* Carousel touch targets — WCAG 2.1 requires 44×44 minimum.
   * The visual dot stays 12px but content-box padding inflates the hit
   * area to 44×44. Negative margin on the row keeps spacing tight. */
  .carousel-dots {
    gap: 0;
    margin: 0 -12px;
  }
  .carousel-dot {
    width: 12px;
    height: 12px;
    padding: 16px;
    box-sizing: content-box;
    background-clip: content-box;
  }
  .carousel-dot.active {
    width: 28px;
    height: 12px;
  }
  .carousel-btn {
    width: 44px;
    height: 44px;
  }

  /* Hero image container height */
  [style*="height:480px"] {
    height: 320px !important;
  }

  /* Nav touch targets */
  .nav-hamburger {
    min-width: 44px;
    min-height: 44px;
  }

  /* Wizard card grids to 1-column on mobile (all page prefixes) */
  [class*="wizard-cards-grid"] { grid-template-columns: 1fr !important; }

  /* Nav overflow fix */
  nav.site-nav { max-width: 100vw; overflow: hidden; }

  /* Prevent iOS Safari zoom-on-focus. Any focusable text input under 16px
   * causes the viewport to zoom in when tapped, which then doesn't zoom back
   * out cleanly. Bumping to 16px on mobile fixes it without affecting the
   * desktop look. Affects every form on the site (contact wizard, 11 inline
   * dept-page wizards, calculator gates) since they all have their own
   * .{prefix}-field-input rule defined inline at ~14px. */
  input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
  input[type="number"], input[type="search"], input[type="password"],
  input:not([type]), select, textarea {
    font-size: 16px !important;
  }

  /* ── Tier 2 mobile polish ────────────────────────────────────────── */

  /* Hero orb is a decorative 500x500 ring positioned 80px off the right
   * edge. Even with overflow:hidden on .page-hero, it adds layout cost
   * and visual noise on narrow screens. Hide it on mobile entirely. */
  .page-hero .hero-orb { display: none; }

  /* Hero h1 / p ranges sometimes overflow on the longer headlines
   * ("Senior remote teams. 40-60% cost savings.") at 360px Android. */
  .page-hero h1 { font-size: clamp(28px, 8vw, 40px); max-width: 100%; }
  .page-hero p  { font-size: 16px; max-width: 100%; }

  /* Footer link tap targets - default was ~20px tall, well under the
   * 44px WCAG minimum. Adds vertical padding without changing visual
   * weight (still display:block with same colour/weight). */
  footer.site-footer .footer-nav-col a {
    padding: 12px 0;
    min-height: 44px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
  }
  footer.site-footer .footer-links a {
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  /* CTA button padding on mobile. Buttons with inline padding:16px 52px
   * (e.g. "Start Hiring Today" on final-cta blocks across most pages)
   * eat 104px of horizontal space - too much on a 393px viewport. */
  [style*="padding:16px 52px"], [style*="padding: 16px 52px"] {
    padding: 14px 24px !important;
  }

  /* Wizard buttons (all 12 inline wizards + main contact form) - bump to
   * 48px min-height so the tap target hits WCAG comfortably. Class names
   * use various prefixes (.bs-, .bm-, .ba-, .br-, .bt-, .af-, .cf-,
   * .tf-, .hs-, .os-, .hp-, plus the prefix-less .wizard-btn-* on /contact). */
  [class*="wizard-btn-next"], [class*="wizard-btn-back"], [class*="wizard-btn-submit"] {
    min-height: 48px;
  }

  /* Nav "See Your Savings" CTA was 9px padding × 12px font = ~30px tall,
   * well under the 44px tap target. Override the inline style. The CTA
   * lives inside the mobile menu overlay on phones; widen + tall-ify
   * so it feels deliberate, not crammed alongside the menu links. */
  .nav-links .btn-lime {
    padding: 14px 28px !important;
    font-size: 14px !important;
    margin-left: 0 !important;
    margin-top: 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Currency toggle in mobile nav - make the GBP/USD buttons tappable. */
  .nav-links .cur-toggle { margin: 12px 0; }
  .nav-links .cur-toggle button {
    min-width: 56px;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Marquee text - 12px is fine for legibility, but reduce horizontal
   * padding on the wrap so it doesn't scroll past the viewport edge. */
  .marquee-wrap { padding: 11px 0; }
  /* Slow down so 11px text is readable on a moving phone. */
  .marquee-track { animation-duration: 32s; }
  .marquee-track span { font-size: 11px; letter-spacing: 0.1em; }
}

/* ── Ultra-narrow specifics (Android down to 360px) ─────────────────── */
@media (max-width: 480px) {
  /* Section padding for converted .section instances handled by the utility
   * (see top of file). This fallback catches any sections that don't yet
   * have the class — should be a no-op after Tier 4 refactor. */
  section:not(.section):not(.carousel-section):not(.page-hero) {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .page-hero { padding: 120px 16px 48px; }
  .page-hero.light { padding: 120px 16px 48px; }
  footer.site-footer { padding: 28px 16px; }
  .final-cta { padding: 60px 16px; }

  /* Hero h1 fits within 360-393px without awkward wraps on long headlines. */
  .page-hero h1 { font-size: clamp(26px, 7.5vw, 36px); }

  /* Cookie banner: 10px font is unreadable on small screens. */
  .bosmart-consent-inner { padding: 16px 16px !important; gap: 14px; }
  .bosmart-consent-btn { padding: 11px 12px !important; font-size: 12px !important; }
  .bosmart-consent-copy h3 { font-size: 14px; }
  .bosmart-consent-copy p { font-size: 12px; line-height: 1.55; }

  /* Modal padding - calculator gate modals have 32px padding which
   * eats 64px of a 360px viewport. Tighten to 20px. */
  #smart-calculator .modal-header,
  #smart-calculator .modal-body { padding: 20px !important; }

  /* Carousel padding tighter. */
  .carousel-section { padding: 40px 16px; }
  .carousel-card { padding: 24px 20px; }
}

/* ── CLIENT LOGO STRIP ── */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px 56px;
  padding: 8px 0;
  max-width: 1000px;
  margin: 0 auto;
}
.client-logos img {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.client-logos img:hover {
  opacity: 1;
}


/* ── DUAL-CURRENCY PRICE TOGGLE ── */
/* Both prices live in the HTML (good for SEO + crawlers); body class picks which is visible. */
/* Default state hides everything until JS resolves currency, then it adds .show-gbp or .show-usd */
.price-gbp, .price-usd { display: none; }
body.show-gbp .price-gbp { display: inline; }
body.show-usd .price-usd { display: inline; }

/* Geo-aware label swap (e.g. "UK hire cost" vs "Local hire cost") */
.geo-label-gbp, .geo-label-usd { display: none; }
body.show-gbp .geo-label-gbp { display: inline; }
body.show-usd .geo-label-usd { display: inline; }

/* ── CURRENCY TOGGLE PILL (in nav) ── */
.cur-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-left: 4px;
}
.cur-toggle button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  transition: background 0.15s, color 0.15s;
}
.cur-toggle button:hover { color: #fff; }
.cur-toggle button:focus-visible {
  outline: 2px solid #C0FD71;
  outline-offset: 2px;
  color: #fff;
}
body.show-gbp .cur-toggle button[data-cur="gbp"],
body.show-usd .cur-toggle button[data-cur="usd"] {
  background: #C0FD71;
  color: #2A4742;
}

/* ── COOKIE CONSENT BANNER ───────────────────────────────────────── */
.bosmart-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: var(--forest);
  color: #fff;
  border-top: 3px solid var(--lime);
  box-shadow: 0 -16px 48px rgba(0,0,0,0.25);
  font-family: 'DM Sans', sans-serif;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bosmart-consent.is-open { transform: translateY(0); }

.bosmart-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.bosmart-consent-copy h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.bosmart-consent-copy p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
}
.bosmart-consent-copy a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bosmart-consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.bosmart-consent-btn {
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 0;
  transition: all 0.18s;
  white-space: nowrap;
}
.bosmart-consent-btn-primary { background: var(--lime); color: var(--forest); }
.bosmart-consent-btn-primary:hover { background: #d4ff8a; transform: translateY(-1px); }
.bosmart-consent-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
}
.bosmart-consent-btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.bosmart-consent-btn-link {
  background: transparent;
  color: rgba(255,255,255,0.55);
  padding: 12px 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bosmart-consent-btn-link:hover { color: #fff; }

/* Customise panel (collapsible) */
.bosmart-consent-panel {
  grid-column: 1 / -1;
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.bosmart-consent.is-customising .bosmart-consent-panel { display: block; }
.bosmart-consent-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bosmart-consent-row:last-child { border-bottom: none; }
.bosmart-consent-row-info h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}
.bosmart-consent-row-info p {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
}
.bosmart-consent-toggle {
  position: relative;
  width: 44px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 4px;
}
.bosmart-consent-toggle input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.bosmart-consent-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: background 0.2s;
}
.bosmart-consent-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  transition: transform 0.2s;
}
.bosmart-consent-toggle input:checked + .bosmart-consent-toggle-slider { background: var(--lime); }
.bosmart-consent-toggle input:checked + .bosmart-consent-toggle-slider::before {
  transform: translateX(22px);
  background: var(--forest);
}
.bosmart-consent-toggle input:disabled + .bosmart-consent-toggle-slider {
  background: var(--lime);
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .bosmart-consent-inner {
    grid-template-columns: 1fr;
    padding: 20px 24px;
    gap: 16px;
  }
  .bosmart-consent-actions { width: 100%; }
  /* Was font-size:10px - barely legible on a phone. Bumped to 13px and
   * widened tap area. Min-height ensures WCAG-comfortable touch targets. */
  .bosmart-consent-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
    min-height: 44px;
  }
  .bosmart-consent-btn-link { flex-basis: 100%; text-align: center; }
}

/* ── WIZARD ERROR BANNER + FIELD HINTS ── */
.wizard-error-banner {
  margin: 0 0 24px 0;
  padding: 14px 18px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #b91c1c;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #2A4742;
  line-height: 1.5;
}
.wizard-error-banner[hidden] { display: none; }
.wizard-error-banner-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #b91c1c;
}
.wizard-error-banner-msg { flex: 1 1 auto; }
.wizard-error-banner-close {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
  color: rgba(42,71,66,0.5);
  font-family: inherit;
}
.wizard-error-banner-close:hover { color: #2A4742; }

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  padding: 6px 10px;
  border-left: 3px solid;
}
.field-hint[hidden] { display: none; }
.field-hint-error {
  color: #b91c1c;
  background: #fef2f2;
  border-left-color: #b91c1c;
}
.field-hint-warn {
  color: #8a6d00;
  background: #fef9e7;
  border-left-color: #e5b800;
}

/* ── SKIP LINK + MAIN LANDMARK ── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #2A4742;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #C0FD71;
  outline-offset: -2px;
}
main:focus { outline: none; }

/* ── PAIN-POINTS LIST (homepage "End of hiring headaches") ── */
.pain-points { list-style: none; margin: 0; padding: 0; }
.pain-points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 18px;
  border-left: 3px solid;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.pain-points li:last-child { margin-bottom: 0; }
/* Decorative cross icon. mask-image lets us re-tint per row by changing
   background-color, without duplicating the SVG payload. */
.pain-points li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 3L13 13M13 3L3 13' stroke='black' stroke-width='2.5' stroke-linecap='round' fill='none'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 3L13 13M13 3L3 13' stroke='black' stroke-width='2.5' stroke-linecap='round' fill='none'/></svg>");
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}
.pain-points .is-dark    { background:#2A4742; color:#fff; border-left-color:#C0FD71; }
.pain-points .is-dark::before    { background-color:#C0FD71; }
.pain-points .is-emerald { background:#0E673B; color:#fff; border-left-color:#C0FD71; }
.pain-points .is-emerald::before { background-color:#C0FD71; }
.pain-points .is-lime    { background:#C0FD71; color:#2A4742; border-left-color:#2A4742; }
.pain-points .is-lime::before    { background-color:#2A4742; }
