/* ─────────────────────────────────────────────────────────────
   Acerti Website — additions on top of the kit styles
   Scroll reveals, AI band, talent teaser, tweak-driven helpers
   ───────────────────────────────────────────────────────────── */

/* Scroll reveal — fade-up on viewport entry */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms var(--ease-emphatic),
    transform 520ms var(--ease-emphatic);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-d="1"] { transition-delay: 60ms; }
.reveal[data-d="2"] { transition-delay: 120ms; }
.reveal[data-d="3"] { transition-delay: 180ms; }
.reveal[data-d="4"] { transition-delay: 240ms; }

/* Slight refinement: reset some "smart-quotes" feel on display headers */
.h1, h1 { text-wrap: balance; }
h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ── Hero variants ────────────────────────────────────────── */
.hero.is-editorial { grid-template-columns: 1fr; gap: 0; padding-top: 120px; padding-bottom: 120px; }
.hero.is-editorial .hero-sub { max-width: 720px; font-size: 22px; line-height: 1.55; }
.hero.is-editorial h1 { max-width: 1000px; font-size: 88px; line-height: 1.02; letter-spacing: -2px; }
.hero.is-editorial .hero-art-wrap { display: none; }

/* ── Hero dashboard artifact ──────────────────────────────── */
.hero-art.dash { font-family: var(--font-body); padding: 0; }
.hero-art.dash .dash-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--hairline-dark);
}
.hero-art.dash .dash-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--on-dark-soft); font-weight: 500;
}
.hero-art.dash .dash-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-teal);
  box-shadow: 0 0 0 0 rgba(62,138,125,0.55);
  animation: pulse 2s ease-out infinite, pulseFlicker 1.1s steps(1, end) infinite;
}
@keyframes pulseFlicker {
  0%, 55%, 100% { opacity: 1; }
  60%, 64% { opacity: 0.25; }
  68% { opacity: 1; }
  72%, 74% { opacity: 0.35; }
  78% { opacity: 1; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62,138,125,0.55); }
  60% { box-shadow: 0 0 0 10px rgba(62,138,125,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,138,125,0); }
}
.hero-art.dash .dash-body { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.dash-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dash-kpi {
  background: var(--surface-dark-soft); border: 1px solid var(--hairline-dark);
  border-radius: 10px; padding: 14px;
}
.dash-kpi .lbl { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--on-dark-soft); }
.dash-kpi .val { font-family: var(--font-display); font-size: 28px; line-height: 1; margin-top: 8px; color: var(--on-dark); letter-spacing: -0.5px; }
.dash-kpi .delta { font-size: 11px; color: var(--accent-teal); margin-top: 6px; font-weight: 500; }
.dash-list-title { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: -2px; }
.dash-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px;
  padding: 12px 0; align-items: center;
  border-top: 1px solid var(--hairline-dark);
  font-size: 13px;
}
.dash-row:first-of-type { border-top: none; padding-top: 0; }
.dash-row .who { color: var(--on-dark); font-weight: 500; }
.dash-row .sub { font-size: 11px; color: var(--on-dark-soft); margin-top: 2px; }
.dash-row .tag {
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
  background: rgba(244,144,30,0.15); color: var(--primary); font-weight: 500;
  letter-spacing: 0.5px;
}
.dash-row .rate { color: var(--on-dark); font-variant-numeric: tabular-nums; font-size: 13px; }
.dash-row .match-bar { width: 56px; height: 4px; background: var(--hairline-dark); border-radius: 2px; overflow: hidden; }
.dash-row .match-bar > span { display:block; height:100%; background: var(--accent-teal); border-radius: 2px; }

/* ── Hero map artifact ───────────────────────────────────── */
.hero-art.map { padding: 0; background: var(--surface-dark); }
.hero-art.map .map-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--hairline-dark); color: var(--on-dark-soft); font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.hero-art.map svg { display: block; width: 100%; height: auto; }
.hero-art.map .map-foot {
  padding: 14px 22px;  border-top: 1px solid var(--hairline-dark);
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 12px; color: var(--on-dark-soft); font-family: var(--font-body);
}
.hero-art.map .map-foot strong { color: var(--on-dark); font-weight: 500; }

/* ── AI band (full-bleed dark) ───────────────────────────── */
.ai-band {
  background: var(--surface-dark);
  color: var(--on-dark);
  padding: 96px 0;
  margin-top: 0;
}
.ai-band .container { max-width: var(--max-content); }
.ai-band h2 { color: var(--on-dark); }
.ai-band .section-header p { color: var(--on-dark-soft); }
.ai-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.ai-points { display: flex; flex-direction: column; gap: 28px; }
.ai-point { display: grid; grid-template-columns: 32px 1fr; gap: 18px; align-items: start; }
.ai-point .num {
  font-family: var(--font-display); font-size: 22px;
  color: var(--primary); line-height: 1; padding-top: 4px;
}
.ai-point h4 { color: var(--on-dark); margin-bottom: 6px; }
.ai-point p { color: var(--on-dark-soft); font-size: 15px; line-height: 1.6; }

/* Terminal voice-agent transcript */
.voice-terminal {
  background: var(--surface-dark-soft);
  border: 1px solid var(--hairline-dark);
  border-radius: 12px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.7;
  color: var(--on-dark-soft);
}
.voice-terminal .vline { display: flex; gap: 12px; }
.voice-terminal .vline .who { width: 64px; flex-shrink: 0; color: var(--accent-amber); }
.voice-terminal .vline.user .who { color: var(--accent-teal); }
.voice-terminal .vline.sys .who { color: var(--muted-soft); }
.voice-terminal .vline.sys { color: var(--muted-soft); font-style: italic; font-size: 12px; }
.voice-terminal .said { color: var(--on-dark); }
.voice-meter {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline-dark);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body); font-size: 12px; color: var(--on-dark-soft);
}
.voice-meter .wave {
  display: inline-flex; gap: 3px; align-items: center; height: 18px;
}
.voice-meter .wave span {
  width: 3px; background: var(--primary); border-radius: 1px;
  animation: vwave 1.4s var(--ease-standard) infinite;
}
.voice-meter .wave span:nth-child(2) { animation-delay: 0.1s; }
.voice-meter .wave span:nth-child(3) { animation-delay: 0.2s; }
.voice-meter .wave span:nth-child(4) { animation-delay: 0.3s; }
.voice-meter .wave span:nth-child(5) { animation-delay: 0.4s; }
@keyframes vwave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* ── Talent / careers teaser ─────────────────────────────── */
.talent {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.talent > .talent-card { order: -1; }
.talent-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.talent-tags .tag {
  font-family: var(--font-body); font-size: 13px; padding: 6px 14px;
  border-radius: 9999px; background: var(--canvas);
  border: 1px solid var(--hairline); color: var(--ink);
}
.talent-card {
  background: var(--surface-card);
  border-radius: 16px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.talent-card .row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--hairline);
}
.talent-card .row:first-of-type { border-top: none; padding-top: 0; }
.talent-card .row .who { font-weight: 500; color: var(--ink); font-size: 15px; }
.talent-card .row .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.talent-card .row .ava {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent-amber), var(--primary));
  color: var(--on-primary); font-family: var(--font-body); font-weight: 500;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.talent-card .row .skill {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px; border-radius: 6px;
  background: var(--canvas); border: 1px solid var(--hairline); color: var(--body-strong);
}

/* ── Section heading flag (decorative deep-orange tick) ── */
.flag {
  width: 24px; height: 1px; background: var(--accent-deep);
  display: inline-block; vertical-align: middle; margin-right: 12px;
  position: relative; top: -3px;
}

/* ── Tweak: solutions presentation toggles ──────────────── */
.solutions-list-mode {
  display: flex; flex-direction: column; gap: 0;
}
.solutions-list-mode .sol-row {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 32px;
  padding: 28px 0; border-top: 1px solid var(--hairline);
  align-items: start;
}
.solutions-list-mode .sol-row:last-of-type { border-bottom: 1px solid var(--hairline); }
.solutions-list-mode .sol-row:hover { background: rgba(244,144,30,0.03); }
.solutions-list-mode .sol-row .name {
  font-family: var(--font-display); font-weight: 500; font-size: 22px;
  letter-spacing: -0.3px; color: var(--ink);
}
.solutions-list-mode .sol-row .body { font-size: 15px; color: var(--body); max-width: 540px; line-height: 1.55; }
.solutions-list-mode .sol-row .arrow {
  color: var(--primary); font-family: var(--font-body); font-size: 14px; font-weight: 500;
  align-self: center;
}

/* ── Solution flip cards ──────────────────────────────── */
.solution-flip {
  perspective: 1200px;
  min-height: 220px;
  display: flex;
}
.solution-flip-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.solution-flip:hover .solution-flip-inner,
.solution-flip:focus-within .solution-flip-inner {
  transform: rotateY(180deg);
}
.solution-flip-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}
.solution-flip-front {
  position: relative;
}
.solution-flip-back {
  transform: rotateY(180deg);
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: flex-end;
}
.solution-flip-back-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(250,249,245,0.55) 0%, rgba(250,249,245,0.9) 100%),
    linear-gradient(0deg, rgba(250,249,245,0.6), rgba(250,249,245,0.6));
  backdrop-filter: saturate(0.6) brightness(1.08);
  -webkit-backdrop-filter: saturate(0.6) brightness(1.08);
}
.solution-flip-back-content {
  position: relative;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  width: 100%;
}
.solution-flip-phrase {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-wrap: pretty;
}
@media (prefers-reduced-motion: reduce) {
  .solution-flip-inner { transition: none; }
}

/* ── Tweak: orange "scarce" mode mutes accents on solution-cards ── */
[data-orange="scarce"] .solution-card .solution-meta span { background: var(--muted-soft) !important; }
[data-orange="scarce"] .feature-icon { color: var(--ink) !important; }
[data-orange="scarce"] .step-num { color: var(--muted) !important; }
[data-orange="scarce"] .eyebrow .mark { background: var(--accent-deep) !important; }

[data-orange="generous"] .feature-card { background: linear-gradient(180deg, var(--surface-card), var(--primary-soft)); }
[data-orange="generous"] .stats { background: var(--primary-soft); border-radius: 12px; padding: 48px; border-top:none; border-bottom:none; }

/* ── Container padding for full-bleed sections ──────────── */
.bleed { background: var(--surface-dark); }
.bleed.cream { background: var(--surface-soft); }
.bleed-inner { padding: 96px 0; }

/* ── Logo cloud ────────────────────────────────────────── */
.logo-cloud {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px;
  align-items: center; padding: 32px 0 8px;
}
.logo-cloud .logo-slot {
  height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-soft);
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; letter-spacing: -0.3px;
  opacity: 0.65;
  transition: opacity 240ms var(--ease-standard), color 240ms var(--ease-standard);
}
.logo-cloud .logo-slot:hover { opacity: 1; color: var(--ink); }

/* ── Logo marquee (scrolling stacks strip) ─────────────── */
.logo-marquee {
  position: relative;
  overflow: hidden;
  padding: 32px 0 8px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: logoMarquee 45s linear infinite;
  will-change: transform;
}
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-marquee .logo-slot {
  flex: 0 0 auto;
  height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.2px;
  color: var(--muted-soft);
  opacity: 0.9;
  white-space: nowrap;
  transition: opacity 240ms var(--ease-standard), color 240ms var(--ease-standard);
}
.logo-marquee .logo-slot:hover { opacity: 1; color: var(--ink); }
@keyframes logoMarquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ── Nav refinements ──────────────────────────────────── */
.topnav-menu { gap: 32px; }
.topnav-link { font-weight: 500; }

/* Quote avatar: switch to portrait image when present */
.avatar.avatar-img {
  padding: 0;
  background: transparent;
  overflow: hidden;
  width: 48px;
  height: 48px;
}
.avatar.avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer social icons */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.sociallnk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--hairline-dark);
  color: var(--on-dark-soft);
  transition: background 180ms var(--ease-standard),
              color 180ms var(--ease-standard),
              border-color 180ms var(--ease-standard),
              transform 180ms var(--ease-standard);
}
.sociallnk:hover {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Global: no underline on any anchor by default — color-only hover */
a, a:link, a:visited, a:hover, a:focus, a:active {
  text-decoration: none !important;
}
.topnav-link, .topnav-why, .topnav-left a, .topnav-right a,
.footer-col .lnk, .breadcrumb a, .related-card, .roles-tabs__banner-eyebrow--btn {
  text-decoration: none !important;
  border-bottom: 0 !important;
}
.topnav-link:hover, .topnav-why:hover, .topnav-left a:hover, .topnav-right a:hover,
.footer-col .lnk:hover, .breadcrumb a:hover, .related-card:hover {
  text-decoration: none !important;
  border-bottom: 0 !important;
}

/* "Why Nearshoring" call-out link, sits left of CONTACT US */
.topnav-why {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.1px;
  padding: 6px 2px;
  transition: color 160ms var(--ease-standard);
  white-space: nowrap;
}
.topnav-why:hover,
.topnav-why:focus-visible { color: var(--ink); }
@media (max-width: 720px) {
  .topnav-why { display: none; }
}

/* ── Quote refinements ───────────────────────────────── */
.quote-card { padding: 56px; }

/* ── Hairline section dividers (alternative to surface shift) ── */
.section-divider {
  height: 1px; background: var(--hairline); margin: 0;
}

/* ── Annotation chip floating over hero ─────────────── */
.hero-pill-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px;
  font-family: var(--font-body); font-size: 12px; color: var(--muted);
}
.hero-pill-row .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent-deep);
  display: inline-block; margin: 0 12px; vertical-align: middle;
}

/* ── Sticky-on-hover for callout button group ───────── */
.callout-arrow {
  display: inline-block; transition: transform 240ms var(--ease-standard);
}
.btn-on-coral:hover .callout-arrow { transform: translateX(4px); }

/* ── Hover lift only enabled in default and generous modes ── */
[data-orange="scarce"] .feature-card:hover { transform: none; box-shadow: none; }

/* ── Inner section spacing override for ai-band ──────── */
.ai-band .section-header { margin-bottom: 48px; }

/* ── Footer: brighten all text to cream-white per request ── */
.footer { color: var(--on-dark); }
.footer-col .lnk {
  color: var(--on-dark);
  background: transparent;
  text-align: left;
  font-family: var(--font-body);
}
.footer-col .lnk:hover { color: var(--primary); background: transparent; }
.footer-brand p { color: var(--on-dark); }
.footer-bottom { color: var(--on-dark); }

/* ── Nav dropdown ──────────────────────────────────────── */
.nav-drop {
  position: absolute; top: 100%; left: -16px;
  padding-top: 12px;
  z-index: 60;
}
.nav-drop-inner {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  width: 260px;
  display: flex; flex-direction: column;
  gap: 2px;
}
.nav-drop-item {
  display: block; padding: 6px 8px;
  font-size: 14px; color: var(--ink);
  text-decoration: none; border-radius: 6px;
  font-family: var(--font-body); font-weight: 500;
  border-bottom: none !important;
  transition: background 120ms var(--ease-standard), color 120ms;
}
.nav-drop-item:hover { background: var(--surface-soft); color: var(--primary-active); }
.nav-drop-item.sub { padding-left: 22px; font-size: 13px; color: var(--muted); font-weight: 400; }
.nav-drop-item.sub:hover { color: var(--ink); }

/* ── Inner-page hero (smaller than homepage hero) ──────── */
.page-hero {
  padding: 80px 0 64px;
}
.page-hero h1 { font-size: 68px; line-height: 1.05; letter-spacing: -1.2px; max-width: 900px; }
.page-hero .lede {
  font-size: 21px; line-height: 1.55; color: var(--body);
  max-width: 720px; margin-top: 20px;
}
.page-hero .breadcrumb {
  font-size: 12px; color: var(--muted); letter-spacing: 1.2px;
  text-transform: uppercase; margin-bottom: 18px;
}
.page-hero .breadcrumb a {
  color: var(--muted); border-bottom: none;
}
.page-hero .breadcrumb a:hover { color: var(--primary); }
.page-hero .breadcrumb .sep { margin: 0 8px; color: var(--muted-soft); }

@media (max-width: 1024px) {
  .page-hero h1 { font-size: 44px; }
  .page-hero.has-art { grid-template-columns: 1fr; }
  .page-hero.has-art .page-hero-art { margin-top: 24px; }
}

/* ── Inner-page hero with contextual art ─────────────────── */
.page-hero.has-art {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.page-hero.has-art h1 {
  font-size: 56px;
  letter-spacing: -1px;
  max-width: 100%;
}
.page-hero.has-art .lede {
  max-width: 100%;
  font-size: 19px;
}
.page-hero-art .hero-art {
  /* Inner-page heroes are a touch shorter than the homepage hero card. */
  padding: 22px;
}

/* ── PageHeroArts (PHA) — shared visual language for inner-hero arts ── */
.hero-art.pha { padding: 0; font-family: var(--font-body); }
.hero-art.pha .hero-art-toolbar {
  padding: 14px 18px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--hairline-dark);
}
.pha-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pha-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--hairline-dark);
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 11px; color: var(--on-dark-soft);
  flex-wrap: wrap;
}
.pha-badge {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--on-dark-soft);
  border: 1px solid var(--hairline-dark);
  border-radius: 4px; padding: 3px 8px;
  font-family: var(--font-mono);
}
.pha-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 6px; vertical-align: 1px;
}
.pha-dot.pulse {
  box-shadow: 0 0 0 0 rgba(244,144,30,0.55);
  animation: pha-pulse 1.8s infinite;
}
@keyframes pha-pulse {
  0% { box-shadow: 0 0 0 0 rgba(244,144,30,0.55); }
  60% { box-shadow: 0 0 0 8px rgba(244,144,30,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,144,30,0); }
}

/* Tile grids */
.pha-grid-2, .pha-grid-3, .pha-grid-4 { display: grid; gap: 8px; }
.pha-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pha-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pha-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pha-tile {
  background: var(--surface-dark-elevated, #232120);
  border: 1px solid var(--hairline-dark);
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 60px;
  display: flex; flex-direction: column; gap: 2px;
}
.pha-tile-k {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--primary);
}
.pha-tile-v {
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 500;
}
.pha-tile-sub {
  font-size: 10px; color: var(--on-dark-soft);
}

/* Row list */
.pha-rows { display: flex; flex-direction: column; gap: 8px; }
.pha-rows-tight { gap: 6px; }
.pha-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--hairline-dark);
  border-radius: 6px;
  background: var(--surface-dark-elevated, #232120);
  font-size: 12px;
  color: var(--on-dark);
}
.pha-row-left { flex: 1; min-width: 0; }
.pha-row-mid { color: var(--on-dark-soft); font-size: 11px; }
.pha-row-right {
  color: var(--on-dark-soft); font-size: 11px;
  font-family: var(--font-mono);
  margin-left: auto;
}

/* Inline progress bar */
.pha-bar {
  display: inline-block;
  width: 90px; height: 6px;
  background: var(--surface-dark-soft, #1d1c1a);
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
}
.pha-bar > span {
  display: block; height: 100%;
  background: var(--primary);
  border-radius: 3px;
}

/* CRM kanban */
.pha-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pha-kanban-col { display: flex; flex-direction: column; gap: 6px; }
.pha-kanban-h {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--on-dark-soft);
}
.pha-kanban-card {
  background: var(--surface-dark-elevated, #232120);
  border: 1px solid var(--hairline-dark);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--on-dark);
}
.pha-kanban-card.hot { border-color: var(--primary); }
.pha-kanban-card.win { color: var(--accent-teal); border-color: var(--accent-teal); }

/* Call-center waveform */
.pha-wave {
  display: flex; align-items: center; gap: 3px;
  height: 38px;
  padding: 4px 8px;
  background: var(--surface-dark-soft, #1d1c1a);
  border: 1px solid var(--hairline-dark);
  border-radius: 6px;
}
.pha-wave > span {
  flex: 1;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0.85;
}
.pha-transcript { display: flex; flex-direction: column; gap: 6px; }
.pha-line {
  display: flex; gap: 8px;
  font-size: 11.5px;
  color: var(--on-dark);
  line-height: 1.4;
}
.pha-line .who {
  flex-shrink: 0;
  width: 50px;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--on-dark-soft);
  padding-top: 2px;
}
.pha-line.ai .who { color: var(--primary); }

/* BPO split */
.pha-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pha-split-col {
  background: var(--surface-dark-elevated, #232120);
  border: 1px solid var(--hairline-dark);
  border-radius: 6px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.pha-split-h {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--primary);
}
.pha-split-bar {
  height: 6px; background: var(--surface-dark-soft, #1d1c1a);
  border-radius: 3px; overflow: hidden;
}
.pha-split-bar > span { display: block; height: 100%; border-radius: 3px; }
.pha-split-stat {
  font-size: 11px; color: var(--on-dark-soft);
}
.pha-split-stat strong { color: var(--on-dark); font-weight: 500; }

/* Blog featured card */
.pha-feature {
  background: var(--surface-dark-elevated, #232120);
  border: 1px solid var(--hairline-dark);
  border-radius: 6px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.pha-feature-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--primary);
}
.pha-feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--on-dark);
}
.pha-feature-meta {
  font-size: 11px; color: var(--on-dark-soft);
}

/* Legal doc */
.pha-doc { display: flex; flex-direction: column; gap: 8px; padding: 6px; }
.pha-doc-line {
  height: 7px;
  background: var(--surface-dark-elevated, #232120);
  border-radius: 4px;
}
.pha-doc-line.w90 { width: 90%; }
.pha-doc-line.w85 { width: 85%; }
.pha-doc-line.w80 { width: 80%; }
.pha-doc-line.w75 { width: 75%; }
.pha-doc-line.w70 { width: 70%; }
.pha-doc-line.w65 { width: 65%; }
.pha-doc-line.w50 { width: 50%; }

/* Code-art (pha-code) — body padding matches the homepage hero code card */
.hero-art.pha-code { font-family: var(--font-mono); font-size: 13px; padding: 22px 22px 16px; line-height: 1.7; color: var(--on-dark-soft); }
.hero-art.pha-code .hero-art-toolbar { margin-bottom: 12px; padding: 0 0 12px; border-bottom: 1px solid var(--hairline-dark); }
.hero-art.pha-code .pha-foot {
  margin-top: 12px;
  padding: 12px 0 0;
  border-top: 1px solid var(--hairline-dark);
  font-family: var(--font-body);
  font-size: 12px;
}

/* ── Section grouping inside solution pages ───────────── */
.split-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start;
}
.split-2-narrow {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px;
  align-items: start;
}
@media (max-width: 1024px) {
  .split-2, .split-2-narrow { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Bulleted spec list (solution detail pages) ──────── */
.spec-list { display: flex; flex-direction: column; gap: 18px; }
.spec-list .spec {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  align-items: start;
}
.spec-list .spec .n {
  font-family: var(--font-mono); font-size: 11px; color: var(--primary);
  padding-top: 6px;
}
.spec-list .spec h5 { margin-bottom: 4px; }
.spec-list .spec p { font-size: 15px; line-height: 1.6; color: var(--body); }

/* ── AI process infographic ──────────────────────────── */
.ai-flow {
  background: var(--surface-card);
  border-radius: 16px;
  padding: 40px;
  display: flex; flex-direction: column; gap: 12px;
}
.ai-flow .row {
  display: grid; grid-template-columns: 28px 1fr 24px;
  gap: 14px; align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}
.ai-flow .row:first-of-type { border-top: none; padding-top: 0; }
.ai-flow .row .n { font-family: var(--font-mono); font-size: 12px; color: var(--primary); }
.ai-flow .row .lbl { color: var(--ink); font-weight: 500; font-size: 15px; }
.ai-flow .row .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.ai-flow .row .arr { color: var(--primary); font-size: 14px; }

/* ── Case study card ──────────────────────────────── */
.case-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: center;
}
.case-card .kicker {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px; font-weight: 500;
}
.case-card .quote {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; line-height: 1.4; color: var(--ink); letter-spacing: -0.3px;
}
.case-card .meta { margin-top: 16px; font-size: 13px; color: var(--muted); }
.case-card .results {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  border-left: 1px solid var(--hairline);
  padding-left: 32px;
}
.case-card .results .num {
  font-family: var(--font-display); font-size: 36px; line-height: 1; color: var(--ink); letter-spacing: -0.5px;
}
.case-card .results .res-lbl { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
@media (max-width: 1024px) {
  .case-card { grid-template-columns: 1fr; }
  .case-card .results { border-left: none; border-top: 1px solid var(--hairline); padding-left: 0; padding-top: 24px; }
}

/* ── Related solutions strip ──────────────────────── */
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.related-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 150ms;
}
.related-card:hover { border-color: var(--primary); border-bottom: 1px solid var(--primary); }
.related-card .rel-tag { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.related-card .rel-name { font-size: 17px; font-weight: 500; color: var(--ink); font-family: var(--font-body); }
.related-card .rel-arr { color: var(--primary); font-size: 13px; margin-top: 4px; }
@media (max-width: 1024px) { .related-grid { grid-template-columns: 1fr; } }

/* ── Job-board ────────────────────────────────────── */
.job-board {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.job-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 24px; align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.job-row:first-of-type { border-top: none; }
.job-row .role { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.3px; color: var(--ink); }
.job-row .meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.job-row .col { font-size: 13px; color: var(--body); }
.job-row .arrow {
  color: var(--primary); font-size: 14px; font-weight: 500;
}
@media (max-width: 1024px) {
  .job-row { grid-template-columns: 1fr; }
  .job-row .col { font-size: 12px; color: var(--muted); }
}

/* ── Leadership / team grid ──────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 1024px) { .team-grid { grid-template-columns: 1fr 1fr; } }

/* ── Industries — interactive tabs + business case ── */
.industry-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.industry-tab {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 180ms var(--ease-standard);
  white-space: nowrap;
}
.industry-tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.industry-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-dark);
}

.industry-case {
  border: 1px solid rgba(41,38,27,0.06);
  border-radius: 16px;
  padding: 36px 40px;
  animation: industryFade 320ms var(--ease-standard);
  transition: background 320ms var(--ease-standard);
}
@keyframes industryFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.industry-case-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(41,38,27,0.08);
}
.industry-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--accent-amber);
}
.industry-client {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.4px;
  color: var(--ink);
}
.industry-case-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}
.industry-block:nth-child(3) { grid-column: 1 / -1; }
.industry-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.industry-block p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}
.industry-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 4px;
}
.industry-stat {
  background: rgba(255,255,255,0.65);
  border-radius: 12px;
  padding: 18px 20px;
}
.industry-stat .val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--ink);
  line-height: 1;
}
.industry-stat .lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}
@media (max-width: 760px) {
  .industry-case { padding: 24px 22px; }
  .industry-case-body { grid-template-columns: 1fr; gap: 24px; }
  .industry-stats { grid-template-columns: 1fr; }
}

/* ── Case Studies page — extends .industry-case ──────── */
.cs-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.cs-model {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 12px;
}
.cs-body { margin-top: 28px; }
.cs-solution { grid-column: 1 / -1; }
.cs-stack {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cs-stack li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2px;
  color: var(--body);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(41,38,27,0.08);
  border-radius: 100px;
  padding: 6px 14px;
}
.cs-quote {
  margin: 32px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(41,38,27,0.1);
}
.cs-quote blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0;
  max-width: 60ch;
  text-wrap: pretty;
}
.cs-quote blockquote::before { content: "\201C"; }
.cs-quote blockquote::after { content: "\201D"; }
.cs-quote figcaption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 760px) {
  .cs-headline { font-size: 24px; }
  .cs-quote blockquote { font-size: 18px; }
}

/* ── Team flip cards (Exec + Leadership) ───────────── */
.team-flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1100px) { .team-flip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .team-flip-grid { grid-template-columns: 1fr; } }

.team-flip {
  perspective: 1400px;
  cursor: pointer;
  outline: none;
  aspect-ratio: 1 / 1.12;
}
.team-flip:focus-visible .team-flip-inner {
  box-shadow: 0 0 0 2px var(--primary);
  border-radius: 18px;
}
.team-flip-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.team-flip.is-flipped .team-flip-inner {
  transform: rotateY(180deg);
}
.team-flip-face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  background: #f1efe9;
  border-radius: 18px;
  padding: 28px 26px 24px;
  display: flex; flex-direction: column;
  transition: background 200ms var(--ease-standard);
}
.team-flip:hover .team-flip-front { background: #ece9e1; }

/* FRONT */
.team-flip-front {
  align-items: stretch;
  justify-content: space-between;
}
.team-portrait {
  width: 260px; height: 260px;
  max-width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  align-self: center;
  margin-top: 14px;
  display: flex; align-items: center; justify-content: center;
}
.team-portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.team-portrait-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: 42px; letter-spacing: -1px;
  color: var(--ink);
  background: linear-gradient(135deg, #e8d8b7, #d4b88f);
}
.team-text {
  text-align: left;
  margin-top: auto;
}
.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
  letter-spacing: -0.6px;
  line-height: 1.15;
}
.team-role {
  font-size: 17px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.3;
}

/* BACK */
.team-flip-back {
  transform: rotateY(180deg);
  justify-content: flex-start;
  text-align: left;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: 28px 26px 22px;
}
.team-back-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 8px;
}
.team-back-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}
.team-back-bio {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
  flex: 1;
  margin: 0;
  overflow-y: auto;
}
.team-back-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
@media (prefers-reduced-motion: reduce) {
  .team-flip-inner { transition: none; }
}
.team-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.team-card .portrait {
  width: 100%; aspect-ratio: 1.1 / 1;
  background: linear-gradient(135deg, var(--surface-cream-strong), var(--surface-card));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-deep); font-family: var(--font-display);
  font-size: 56px; letter-spacing: -1px;
}
.team-card h5 { margin: 4px 0 0; }
.team-card .role { font-size: 13px; color: var(--muted); }
.team-card .bio { font-size: 14px; line-height: 1.55; color: var(--body); }

/* ── FAQ accordion ──────────────────────────────── */
.faq {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
}
.faq summary {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; line-height: 1.3; letter-spacing: -0.3px;
  color: var(--ink); cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--primary); font-family: var(--font-body); font-weight: 400;
  font-size: 28px; line-height: 1;
  transition: transform 240ms var(--ease-standard);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > p {
  margin-top: 14px;
  font-size: 16px; line-height: 1.6; color: var(--body);
  max-width: 720px;
}

/* ── ERP module tabs ────────────────────────────── */
.erp-tabs {
  display: flex; gap: 8px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 32px;
}
.erp-tabs button {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  background: none; border: none; cursor: pointer;
  padding: 12px 16px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.erp-tabs button.active {
  color: var(--ink); border-bottom-color: var(--primary);
}

/* ── Spec strip (key features in a row) ─────────── */
.spec-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

/* Long-text values get a full-width header row above the KPIs */
.spec-textrow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px 48px;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.spec-textitem { min-width: 0; }
.spec-textlbl {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.spec-textval {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--ink);
}
@media (max-width: 900px) {
  .spec-textval { font-size: 20px; }
}

.spec-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.spec-strip .item .lbl {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.spec-strip .item .val {
  font-family: var(--font-display); font-size: 24px; color: var(--ink); letter-spacing: -0.3px;
}
@media (max-width: 1024px) { .spec-strip { grid-template-columns: 1fr; } }

/* ── Hero pattern: inner-page hero with chip ─────── */
.inner-chip {
  display: inline-block; padding: 6px 12px;
  border-radius: 9999px; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--primary); font-weight: 500;
  background: var(--primary-soft); margin-bottom: 18px;
}

/* ── Footer column links: bring spacing closer ──── */
.footer-col .lnk { padding: 5px 0; display: block; text-decoration: none; }
.footer-col .lnk:hover { text-decoration: none; }

/* ── Smaller screens: graceful fallback ──────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .talent { grid-template-columns: 1fr; }
  .talent > .talent-card { order: 0; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-cloud { grid-template-columns: repeat(3, 1fr); }
  .hero h1, .hero.is-editorial h1 { font-size: 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}


/* ───────── Smooth motion layer ─────────
   Site-wide micro-animations that lift the page out of feeling static.
   All durations are short (160–320ms) and reuse --ease-standard so nothing
   competes with content. Reduced-motion users opt out at the bottom. */
html { scroll-behavior: smooth; }

/* Buttons: subtle lift + active press */
.btn {
  transition:
    background 180ms var(--ease-standard),
    color 180ms var(--ease-standard),
    border-color 180ms var(--ease-standard),
    transform 180ms var(--ease-standard),
    box-shadow 220ms var(--ease-standard);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(41,38,27,0.35); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Feature cards (Why-Nearshore, Innovation grid, etc.) */
.feature-card {
  transition:
    transform 220ms var(--ease-standard),
    box-shadow 260ms var(--ease-standard),
    border-color 220ms var(--ease-standard);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -18px rgba(41,38,27,0.22);
}

/* Solution cards (front face of the flip card too) */
.solution-card { transition: transform 220ms var(--ease-standard), border-color 220ms var(--ease-standard), box-shadow 260ms var(--ease-standard); }
.solution-flip { transition: transform 220ms var(--ease-standard); }
.solution-flip:hover { transform: translateY(-3px); }

/* Pricing / model cards */
.model-card { transition: transform 220ms var(--ease-standard), box-shadow 280ms var(--ease-standard); }
.model-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -20px rgba(41,38,27,0.25); }

/* Industry pill tabs — already animate color; add a tiny scale on hover */
.industry-tab:hover:not(.is-active) { transform: translateY(-1px); }
.industry-tab { transition: all 180ms var(--ease-standard); }

/* Related-solutions strip on inner pages */
.related-card { transition: transform 220ms var(--ease-standard), background 220ms var(--ease-standard); }
.related-card:hover { transform: translateY(-2px); }

/* Why-Nearshore headline stat tiles */
.wn-stat-card { transition: transform 240ms var(--ease-standard), box-shadow 260ms var(--ease-standard); }
.wn-stat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,0.45); }

/* Country cards on Why Nearshore */
.wn-country-card { transition: transform 220ms var(--ease-standard), border-color 220ms var(--ease-standard); }
.wn-country-card:hover { transform: translateY(-2px); border-color: var(--ink); }

/* Top-nav links — animated underline */
.topnav-link {
  position: relative;
  transition: color 180ms var(--ease-standard);
}

/* Drop-down items — smooth color + slide-in arrow */
.nav-drop-item { transition: background 160ms var(--ease-standard), color 160ms var(--ease-standard), padding 220ms var(--ease-standard); }
.nav-drop-item:hover { padding-left: 14px; }

/* Footer links — color-only hover (no underline) */
.footer-col .lnk { position: relative; transition: color 180ms var(--ease-standard); }

/* In-page anchor links (Learn more, tlink) — arrow slide */
.tlink {
  display: inline-block;
  transition: color 160ms var(--ease-standard), transform 220ms var(--ease-standard);
}
.tlink:hover { transform: translateX(3px); }

/* Roster rows on home (.dash-row inside hero dashboard, .row on talent card) */
.talent-card .row { transition: background 180ms var(--ease-standard); padding-left: 8px; padding-right: 8px; margin-left: -8px; margin-right: -8px; border-radius: 8px; }
.talent-card .row:hover { background: rgba(217,119,87,0.06); }

/* Process steps (home page Models / Process section) */
.process-step, .step { transition: transform 220ms var(--ease-standard); }
.process-step:hover, .step:hover { transform: translateY(-2px); }

/* ─── Vertical process timeline ───────────────────────────────────── */
.process-section {
  padding-top: 144px;            /* breathing room after the dark AI band  */
  padding-bottom: var(--space-section);
}
.process-layout {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: 96px;
  align-items: start;
}
.process-intro { position: sticky; top: 96px; }
.process-intro h2 { margin-top: 12px; }
.process-lede {
  margin-top: 20px;
  color: var(--muted);
  max-width: 36ch;
}

.process-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.ptl-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  position: relative;
  padding-bottom: 48px;
}
.ptl-item:last-child { padding-bottom: 0; }

/* Rail: numbered node + continuous connector line */
.ptl-rail {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.ptl-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -48px;
  width: 1px;
  background: var(--hairline);
  transform: translateX(-0.5px);
}
.ptl-item:last-child .ptl-rail::before { display: none; }
.ptl-node {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ptl-item[data-d="1"] .ptl-node,
.ptl-item:hover .ptl-node {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.ptl-body { padding-top: 6px; }
.ptl-tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--primary);
  letter-spacing: 1.5px;
}
.ptl-title { margin: 10px 0 8px; }
.ptl-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  max-width: 56ch;
}

@media (max-width: 900px) {
  .process-section { padding-top: 96px; }
  .process-layout { grid-template-columns: 1fr; gap: 40px; }
  .process-intro { position: static; }
  .ptl-item { grid-template-columns: 48px 1fr; gap: 16px; padding-bottom: 36px; }
  .ptl-node { width: 36px; height: 36px; font-size: 14px; }
  .ptl-rail::before { bottom: -36px; }
}

/* FAQ summary smooth chevron */
.faq summary { transition: color 180ms var(--ease-standard); }
.faq summary::after { transition: transform 320ms var(--ease-standard), color 180ms var(--ease-standard); }
.faq details[open] summary { color: var(--primary); }

/* Solution-flip back image subtle zoom on hover (parent already flips) */
.solution-flip-back { transition: background-size 800ms var(--ease-standard); }
.solution-flip:hover .solution-flip-back { background-size: 110%; }

/* Smooth color/background changes on the inner-chip + breadcrumb */
.inner-chip, .breadcrumb a { transition: color 180ms var(--ease-standard), background 180ms var(--ease-standard); }
.breadcrumb a:hover { color: var(--primary); }

/* Reduced-motion: turn the bonus motion off.
   NOTE: .solution-flip-back is intentionally excluded — its rotateY(180deg)
   is structural (it positions the back face behind the front), not motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature-card, .solution-card, .solution-flip, .model-card,
  .industry-tab, .related-card, .wn-stat-card, .wn-country-card,
  .topnav-link::after, .footer-col .lnk::after, .tlink, .process-step, .step,
  .breadcrumb a {
    transition: none !important;
    transform: none !important;
  }
  /* Keep the flip transition disabled but preserve back-face orientation. */
  .solution-flip-inner { transition: none !important; }
}


/* ── Legal documents ─────────────────────────────────────
   Long-form policy pages (Privacy, Terms, Security, DPA).
   Two-column layout: sticky TOC + body. */
.legal-doc {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding-top: 16px;
  padding-bottom: 56px;
}
@media (max-width: 900px) {
  .legal-doc { grid-template-columns: 1fr; gap: 24px; }
}
.legal-doc .legal-toc {
  position: sticky; top: 96px; align-self: start;
  font-size: 13px; line-height: 1.55;
}
.legal-doc .legal-toc-title {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.legal-doc .legal-toc ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  counter-reset: tocsec;
}
.legal-doc .legal-toc li { counter-increment: tocsec; }
.legal-doc .legal-toc a {
  color: var(--body); text-decoration: none;
  padding: 4px 0 4px 28px; position: relative;
  display: block; border-radius: 4px;
  transition: color 160ms var(--ease-standard);
}
.legal-doc .legal-toc a::before {
  content: counter(tocsec, decimal-leading-zero);
  position: absolute; left: 0; top: 4px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted-soft); letter-spacing: 0.5px;
}
.legal-doc .legal-toc a:hover { color: var(--primary); }
@media (max-width: 900px) {
  .legal-doc .legal-toc { position: relative; top: auto; border-bottom: 1px solid var(--hairline); padding-bottom: 16px; }
}

.legal-doc .legal-body {
  font-size: 15px; line-height: 1.7; color: var(--body);
  max-width: 740px;
}
.legal-doc .legal-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
  padding-bottom: 18px; margin-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.legal-doc .legal-meta strong { color: var(--ink); font-weight: 500; margin-right: 4px; }
.legal-doc .legal-body .legal-intro {
  font-size: 16px; color: var(--body-strong);
  margin-bottom: 32px;
}
.legal-doc .legal-section { margin-bottom: 36px; scroll-margin-top: 96px; }
.legal-doc .legal-section h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.3px;
  color: var(--ink); margin: 0 0 12px 0;
  display: flex; gap: 14px; align-items: baseline;
}
.legal-doc .legal-section h2 .legal-num {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--muted-soft); letter-spacing: 0.5px;
  flex: 0 0 auto;
}
.legal-doc .legal-section h3 {
  font-family: var(--font-body); font-weight: 600;
  font-size: 15px; color: var(--ink);
  margin: 18px 0 8px 0;
}
.legal-doc .legal-section p { margin: 0 0 12px 0; }
.legal-doc .legal-section p:last-child { margin-bottom: 0; }
.legal-doc .legal-section ul {
  list-style: none; padding: 0; margin: 0 0 12px 0;
  display: flex; flex-direction: column; gap: 6px;
}
.legal-doc .legal-section ul li {
  padding-left: 18px; position: relative;
}
.legal-doc .legal-section ul li::before {
  content: ""; position: absolute;
  left: 0; top: 11px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary);
}
.legal-doc .legal-section a { color: var(--primary); }
.legal-doc .legal-section a:hover { color: var(--primary-active); }
.legal-doc .legal-section table {
  width: 100%; border-collapse: collapse;
  margin: 12px 0 16px 0; font-size: 14px;
}
.legal-doc .legal-section th,
.legal-doc .legal-section td {
  text-align: left; vertical-align: top;
  padding: 10px 14px; border-bottom: 1px solid var(--hairline);
}
.legal-doc .legal-section th {
  font-family: var(--font-body); font-weight: 500;
  font-size: 12px; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--muted);
  background: var(--surface-soft);
}
.legal-doc .legal-note {
  background: var(--surface-soft);
  border-left: 3px solid var(--primary);
  padding: 14px 18px; border-radius: 0 6px 6px 0;
  font-size: 13.5px; margin: 14px 0;
  color: var(--body);
}
.legal-doc .legal-contact {
  background: var(--ink); color: var(--on-dark);
  border-radius: 12px; padding: 28px 32px;
  margin-top: 12px;
}
.legal-doc .legal-contact h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; color: var(--on-dark);
  margin: 0 0 8px 0;
}
.legal-doc .legal-contact p {
  font-size: 14px; line-height: 1.6;
  color: var(--on-dark-soft); margin: 0 0 14px 0;
}
.legal-doc .legal-contact a {
  color: var(--primary); font-weight: 500;
}
.legal-doc .legal-contact-addr {
  font-size: 13px; color: var(--on-dark-soft);
  line-height: 1.6; margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────
   Testimonials — scrolling columns (brand-adapted, dynamic)
   ───────────────────────────────────────────────────────────── */
.tcols {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  max-height: 620px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.tcol {
  flex: 1 1 0;
  max-width: 360px;
}
@media (max-width: 1100px) { .tcol.tcol-lg { display: none; } }
@media (max-width: 760px)  { .tcol.tcol-md { display: none; } }
.tcol-track {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  animation: tcol-up linear infinite;
  will-change: transform;
}
.tcol-track.is-reverse {
  animation-name: tcol-down;
}
.tcols:hover .tcol-track {
  animation-play-state: paused;
}
@keyframes tcol-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes tcol-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}
.tcard {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-2xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-med) var(--ease-standard),
              box-shadow var(--duration-med) var(--ease-standard);
}
.tcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}
.tcard-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-strong);
}
.tcard-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.tcard-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  flex: none;
  border: 1px solid var(--hairline);
}
.tcard-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}
.tcard-role {
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}
