/* === Tokens =================================================== */

/* =========================
   Vector USA — Design Tokens
   ========================= */
:root {
  /* Brand Colors */
  --clr-navy: #0f2a4a;
  --clr-sky: #1c93d1;
  --clr-aqua: #00b5e2;
  --clr-gold: #ffd700;
  --clr-off: #f8f8f8;
  --blue-100: #e9f5ff;

  /* Text */
  --text-primary: var(--clr-navy);
  --text-on-dark: #ffffff;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #0b1f39 0%, #11365c 35%, #0f5e95 70%, #19b5e8 100%);
  --grad-accent: linear-gradient(90deg, var(--clr-sky), var(--clr-aqua));

  /* Typography */
  --ff-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --ff-display: "Montserrat", system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --fs-h1: clamp(2.9rem, 6.6vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.25rem);
  --ls-eyebrow: 0.14em;

  /* Radius, Shadow, Motion */
  --radius-lg: 16px;
  --shadow-card: 0 1rem 2rem rgba(16, 40, 66, 0.15);
  --easing: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-quick: 0.2s;
  --dur-reveal: 0.6s;

  /* Z-index scale */
  --z-progress: 9999;
  --z-hero-canvas: 1;
  --z-hero-content: 3;

  /* Misc */
  --focus-ring: 3px solid var(--clr-aqua);
}

/* Canonical token aliases for future-proofing */
:root {
  --navy: var(--clr-navy);
  --sky: var(--clr-sky);
  --aqua: var(--clr-aqua);
  --gold: var(--clr-gold);
  --off-white: var(--clr-off);
  --blue-100: var(--blue-100);
}

/* Base */
html,
body {
  background: var(--clr-off);
  color: var(--text-primary);
}
body {
  font-family: var(--ff-sans);
}
h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
}
/* Buttons (Bootstrap base + brand) */
.btn-brand {
  --bs-btn-bg: var(--clr-aqua);
  --bs-btn-border-color: var(--clr-aqua);
  --bs-btn-hover-bg: #18c5eb;
  --bs-btn-hover-border-color: #18c5eb;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0, 181, 226, 0.28);
}
.btn-ghost {
  color: #fff;
  border-radius: 999px;
  border: 2px solid #ffffffcc;
  background-image: linear-gradient(90deg, transparent, transparent), var(--grad-accent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
/* Progress bar */
#progressbar {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: 0;
  height: 2px;
  width: 0;
  z-index: var(--z-progress);
  background: var(--grad-accent);
}
.hero {
  position: relative;
  overflow: hidden;
  color: var(--text-on-dark);
  background: var(--grad-hero);
  background-size: 420% 420%;
  animation: gradient-shift 22s ease-in-out infinite;
  padding: 7.5rem 0 clamp(168px, 14vw, 220px);
  isolation: isolate;
}
.hero h1 {
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 1.08;
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, #8be8ff 0%, #ffffff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: var(--z-hero-canvas);
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.hero .container-xxl {
  position: relative;
  z-index: var(--z-hero-content);
}
/* Typography utilities */
.h2-display {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
}
.h3-display {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.08;
}
/* Images */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.card.service {
  transition: transform var(--dur-quick) ease, box-shadow var(--dur-quick) ease;
}
/* Reveal */

/* CTA band */
.cta-band {
  background: var(--grad-accent);
  color: #fff;
}

/* === PROOF (v0.2.8-proof-lite) === */
.proof {
  color: var(--clr-navy);
  padding: 4rem 0 3.5rem;
  position: relative;
}
#proofTitle {
  color: var(--clr-navy);
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
}

.metric__suffix {
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 0.15em;
  opacity: 0.95;
}

.proof-note {
  border-left: 3px solid rgba(0, 0, 0, 0.75);
  padding-left: 0.75rem;
}

/* Services */
.service-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.28s, border-color 0.28s;
}
.service-card i {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  font-size: 1.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-sky), var(--clr-navy));
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 8px 22px rgba(18, 119, 194, 0.18);
}
.service-card:hover,
.service-card:focus {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--clr-sky);
  box-shadow: 0 18px 44px rgba(18, 119, 194, 0.14);
}

#proof .service-card,
#overview .service-card,
.related-services .service-card {
  border: 3px solid #11365c;
  padding: 1.5rem 2rem;
}

#proof .metric-value,
#overview .metric-value {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.08;
}

/* === Accessibility =================================================== */

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
.visually-hidden-focusable:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.visually-hidden-focusable:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === Utilities =================================================== */

.img-16x10 {
  aspect-ratio: 16/10;
}
.img-1x1 {
  aspect-ratio: 1/1;
}

/* === Components =================================================== */

/* Services — Bootstrap cards; hover lift */

@media (max-width: 575.98px) {
  .service-card {
    padding: 1.75rem;
  }
}

/* === Sections =================================================== */

/* === Motion (prefers-reduced-motion & keyframes) =================================================== */

@keyframes grain-move {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-10%, 5%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  #constellation {
    display: none !important;
  }
  .hero {
    background-position: 50% 50%;
  }
  .hero-canvas,
  .grain {
    display: none !important;
  }
}

/* === Performance (content-visibility, cis) =================================================== */

/* Below-the-fold virtualization (no visual change) */
#about,
#services > .container-xxl,
#work,
#insights,
#team,
footer {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

/* === Overrides / Theming / Misc =================================================== */

/* A11y */
.eyebrow {
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.9;
}
/* ===== HERO */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 190px;
  z-index: 2;
  line-height: 0;
}
.hero-wave svg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
}
.grain {
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency=".8" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%" height="100%" filter="url(%23n)" /></svg>');
  background-size: 320px 320px;
  animation: grain-move 14s linear infinite;
}
.lead-constrain {
  max-width: 760px;
}

/* Progressive enhancement for color-mix() */
@supports (background: color-mix(in srgb, #000 10%, #fff)) {
  /* Cluster backgrounds */

  /* Supporting subhead */
  .card.service .svc-sub {
    color: color-mix(in srgb, var(--clr-navy) 75%, #000 0%);
  }
  /* Body text */
  .card.service p {
    color: color-mix(in srgb, var(--clr-navy) 65%, #000 0%);
  }
  /* ---- Meta pill: "Cross-border reach" ---- */
  .meta-pill {
    color: color-mix(in srgb, var(--clr-navy) 86%, #000 0%);
    background: color-mix(in srgb, var(--blue-100) 70%, #fff 30%);
  }
}

/* Alias for markup using object-fit-cover class */
.object-fit-cover {
  object-fit: cover;
}

/* Ensure mobile navbar toggler icon is visible */
.navbar {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.75)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Minimal mobile-friendly styling for Learn buttons */

/* === Offcanvas Mobile Nav (Concept A) =================================== */
.nav-offcanvas {
  width: 70vw !important;
  max-width: 420px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.06), transparent 55%),
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.04), transparent 55%), #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.nav-offcanvas .offcanvas-header {
  background: #fff;
}

.nav-offcanvas__nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.overlay-link {
  display: block;
  font-family: var(--ff-display, "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);
  font-weight: 800;
  font-size: clamp(1.4rem, 4.6vw, 2rem);
  line-height: 1.15;
  color: var(--text-primary, #0f2a4a);
  text-decoration: none;
  padding: 0.55rem 0;
  border-radius: 0.25rem;
  transition: color 0.25s ease, transform 0.2s ease;
}

.overlay-link:focus-visible {
  outline: var(--focus-ring, 3px solid #00b5e2);
  outline-offset: 3px;
}

.overlay-link:hover {
  color: var(--clr-sky, #1c93d1);
  transform: translateX(2px);
}

.nav-offcanvas__meta {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Ensure desktop nav stays visible ≥ lg (explicit) */
@media (min-width: 992px) {
  #navInline {
    display: flex !important;
  }
  #navInline .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
  }

  .offcanvas.nav-offcanvas {
    display: none !important;
    visibility: hidden !important;
    transform: none !important;
  }
}

/* subtle constellation echo */

/* Glass metric card */

/* gradient ring accent */

/* Reduced motion: disable anim accents */
@media (prefers-reduced-motion: reduce) {
}

/* === Sections: Proof refinements =========================================== */
.proof-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.proof-section .h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

/* Ensure CTA spacing below text */
#proof .mt-3 .btn {
  margin-top: 0.5rem;
}

/* Sequential reveal for proof metrics */

/* === Sections: Proof (refined) ============================================ */
.proof-section {
  background: #fff;
  position: relative;
  overflow: hidden;
}
.proof-wave-top {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  line-height: 0;
  z-index: 1;
}
.proof-wave-top svg {
  display: block;
  width: 100%;
  height: 40px;
}
.proof-container {
  position: relative;
  z-index: 2;
}

/* constellation echo */
.proof-stars {
  position: absolute;
  inset: -20% -10% -10% -10%;
  z-index: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.25) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.25) 0 2px, transparent 3px);
  background-size: 180px 180px, 220px 220px, 200px 200px;
  opacity: 0.35;
  pointer-events: none;
}

.proof-grid {
  position: relative;
  z-index: 2;
}

/* Glass metric card (true glass) */

/* gradient ring accent */

@media (prefers-reduced-motion: reduce) {
  .glass-metric:hover {
    transform: none;
  }
}

/* Reveal on scroll */

@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-in {
    transition: none;
  }
}

/* === Sections: Services (Inner Core Glow) =============================== */
#services {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(47, 121, 255, 0.25) 0%, rgba(33, 199, 194, 0.15) 25%, transparent 60%),
    radial-gradient(circle at center, rgba(241, 181, 1, 0.12) 0%, transparent 70%), linear-gradient(180deg, var(--clr-navy) 0%, #0a0d18 100%);
  background-blend-mode: screen;
  animation: coreGlowPulse 12s ease-in-out infinite alternate;
  isolation: isolate;
}

#services .container-xxl {
  position: relative;
  z-index: 1;
}

/* Optional star dust layer */
#services::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(2px 2px at 30% 40%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255, 255, 255, 0.5), transparent 60%);
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.35;
  pointer-events: none;
}

@keyframes coreGlowPulse {
  0% {
    background-size: 100% 100%;
    opacity: 0.9;
  }
  100% {
    background-size: 105% 105%;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #services {
    animation: none;
  }
}

.service-wave-top {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  line-height: 0;
  z-index: 1;
}
.service-wave-top svg {
  display: block;
  width: 100%;
  height: 60px;
}

#proof i,
.list-i i {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  font-size: 1em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-sky), var(--clr-navy));
  color: #fff;
  margin-right: 0.25rem;
}

/* === Sections: Services — sticky subnav offset ================================= */
:root {
  --header-offset: 4.25rem; /* mobile default: navbar + progress bar */
}
@media (min-width: 992px) {
  :root {
    --header-offset: 4.45rem;
  } /* desktop navbar height */
}
#servicesSubnav.sticky-top {
  top: var(--header-offset);
  z-index: 1010; /* below navbar (Bootstrap navbar ~1030), above content */
}
/* Keep anchor jumps clear of sticky header + subnav */
:target {
  scroll-margin-top: calc(var(--header-offset) + 2.5rem);
}

.page-header h1 {
  background: linear-gradient(90deg, #8be8ff 0%, #ffffff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Services hero contrast overlay */
.services-hero {
  position: relative;
}
.services-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 0; /* below canvas */
}
.hero .container-xxl {
  position: relative;
  z-index: var(--z-hero-content, 3);
}

#servicesAmbient {
  opacity: 0.3;
}

/* === Grow Without Borders — Bottom Journey Widget ====================== */
.journey-bar {
  position: relative;
  z-index: 1040;
} /* default inline under hero */
.journey-bar.docked {
  position: fixed;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  padding: 0.35rem 0;
  background: rgba(12, 24, 40, 0.78);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  backdrop-filter: saturate(120%) blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.journey-bar.docked .journey-inner {
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
}
@supports not (backdrop-filter: blur(8px)) {
  .journey-bar {
    position: relative;
  } /* default inline under hero */
  .journey-bar.docked {
    background: rgba(12, 24, 40, 0.92);
  }
}
body.journey-docked::after {
  content: "";
  display: block;
  height: clamp(72px, 7.5vh, 96px);
  background-color: #212529;
}
.journey-inner {
  position: relative;
}
.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.journey-step {
  position: relative;
  display: flex;
  align-items: center;
}
.step-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s var(--easing, ease);
}
.step-btn:hover,
.step-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: var(--focus-ring, 3px solid #00b5e2);
  outline-offset: 2px;
}
.step-btn .icon {
  font-size: 1rem;
  opacity: 0.9;
}
.step-btn .label {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.journey-step.active .step-btn .label {
  font-weight: 800;
}

/* Popovers (desktop) */
.journey-popover {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  max-width: 420px;
  background: rgba(20, 34, 56, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.journey-step.open .journey-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.popover-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  color: #fff;
  text-decoration: none;
}
.popover-link:hover,
.popover-link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: var(--focus-ring, 3px solid #00b5e2);
  outline-offset: 2px;
}

/* Mobile: bottom sheet behavior */
@media (max-width: 991.98px) {
  .journey-steps {
    gap: 0.25rem;
  }
  .step-btn .label {
    font-size: 0.9rem;
  }
  .journey-popover {
    position: fixed;
    left: 0;
    right: 0;
    bottom: clamp(64px, 10vh, 96px);
    transform: translateY(8px);
    margin: 0 auto;
    max-width: 92vw;
  }
}

/* Safe-area for iOS bottom */
@supports (padding: env(safe-area-inset-bottom)) {
  .journey-bar {
    position: relative;
  } /* default inline under hero */
  .journey-bar.docked {
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom));
  }
  body.journey-docked::after {
    height: calc(clamp(72px, 7.5vh, 96px) + env(safe-area-inset-bottom));
  }
}

/* Dock readability & contrast tweaks for journey bar */
.journey-bar.docked {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.96), rgba(12, 24, 40, 0.96)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1055;
  margin: 0 0 1rem 0;
}
.journey-bar.docked .step-btn {
  color: var(--clr-off-white, #f6faff) !important;
}
.journey-bar.docked .step-btn .icon {
  opacity: 1 !important;
}
.journey-bar.docked .step-btn .label {
  opacity: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

/* Hover/focus background a tad stronger when docked for clarity on light pages behind */
.journey-bar.docked .step-btn:hover,
.journey-bar.docked .step-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

/* Ensure popovers sit above the bar and point upward when docked */
.journey-bar.docked .journey-popover {
  bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  z-index: 1060;
}

/* === Journey Bar: non-docked (inline under hero) ======================= */
.journey-bar {
  position: relative;
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  backdrop-filter: saturate(120%) blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.journey-bar .step-btn {
  color: var(--clr-navy, #0f2a4a);
}
.journey-bar .step-btn .icon {
  opacity: 0.9;
}
.journey-bar .step-btn .label {
  opacity: 0.95;
}
.journey-bar .step-btn:hover,
.journey-bar .step-btn:focus-visible {
  background: rgba(15, 42, 74, 0.08);
  outline: var(--focus-ring, 3px solid rgba(0, 181, 226, 0.6));
  outline-offset: 2px;
}

/* Non-docked popover placement: open below the step */
.journey-bar:not(.docked) .journey-popover {
  top: calc(100% + 10px);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1030;
}

/* Tighten layout of list so steps are centered and evenly spaced */
.journey-bar .journey-steps {
  justify-content: center;
  gap: 0.75rem;
}

/* Responsive polish */
@media (max-width: 991.98px) {
  .journey-bar {
    border-radius: 14px;
    padding: 0.35rem 0;
  }
  .journey-bar.docked {
    margin-bottom: 0.75rem;
  }
  .journey-bar .step-btn .label {
    font-size: 0.95rem;
  }
}

/* Journey Widget arrows between steps */
.journey-bar .journey-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 42, 74, 0.4);
  font-size: 1.1rem;
  user-select: none;
}
.journey-bar.docked .journey-arrow {
  color: rgba(255, 255, 255, 0.45);
}

.journey-bar h6 {
  font-family: var(--ff-display);
  font-weight: 800;
  opacity: 0.5;
  margin-left: -50px;
}

.journey-bar.docked h6 {
  color: #fff;
}
@media (max-width: 767.98px) {
  .journey-bar .journey-arrow {
    font-size: 0.95rem;
    margin: 0 0.25rem;
  }
}

#our-services {
  position: relative;
  overflow: hidden;
  /* Soft sky/aqua/gold glows on a light base */
  background: radial-gradient(1200px 1200px at 20% 15%, color-mix(in srgb, var(--clr-sky) 35%, transparent) 0%, transparent 55%),
    radial-gradient(900px 900px at 80% 25%, color-mix(in srgb, var(--clr-aqua) 30%, transparent) 0%, transparent 60%),
    radial-gradient(700px 700px at 50% 50%, color-mix(in srgb, var(--clr-gold) 26%, transparent) 0%, transparent 70%),
    /* Light paper base */ linear-gradient(180deg, var(--clr-off) 0%, rgba(0, 181, 226, 0.1) 100%);
  /* On light surfaces, multiply/overlay keeps glows subtle and prevents washout */
  background-blend-mode: multiply, overlay, multiply, normal;
  isolation: isolate; /* keep glows inside this stacking context */

  /* Ensure copy reads well on light background */
  color: var(--clr-navy);
  border-top: 1px solid color-mix(in srgb, var(--clr-navy) 8%, transparent);
}

.service-header {
  position: relative;
  overflow: hidden;
  color: var(--clr-navy);
  isolation: isolate;
  border-top: 1px solid color-mix(in srgb, var(--clr-navy) 8%, transparent);

  /* ✅ your existing gradient exactly */
  background: radial-gradient(1200px 1200px at 20% 15%, color-mix(in srgb, var(--clr-sky) 35%, transparent) 0%, transparent 55%),
    radial-gradient(900px 900px at 80% 25%, color-mix(in srgb, var(--clr-aqua) 30%, transparent) 0%, transparent 60%),
    radial-gradient(700px 700px at 50% 50%, color-mix(in srgb, var(--clr-gold) 26%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--clr-off) 0%, rgba(0, 181, 226, 0.1) 100%);
  background-blend-mode: multiply, overlay, multiply, normal;

  /* ✨ new breathing effect */
  animation: serviceHeaderBreathe 5s ease-in-out infinite;
  will-change: filter;
}

/* Breathing effect via brightness & subtle saturation shift */
@keyframes serviceHeaderBreathe {
  0% {
    filter: brightness(100%) saturate(100%) hue-rotate(0deg);
  }
  25% {
    filter: brightness(109%) saturate(112%) hue-rotate(15deg);
  }
  50% {
    filter: brightness(115%) saturate(120%) hue-rotate(30deg);
  }
  75% {
    filter: brightness(109%) saturate(112%) hue-rotate(15deg);
  }
  100% {
    filter: brightness(100%) saturate(100%) hue-rotate(0deg);
  }
}

.service-header .content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 0;
  transition: color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .service-header {
    animation: none;
  }
}

.hero-light h1 {
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 1.08;
  margin-bottom: 0.8rem;

  /* Deep navy gradient for dark text effect */
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--clr-navy) 100%, #000000 60%) 0%,
    color-mix(in srgb, var(--clr-navy) 70%, var(--clr-sky) 50%) 45%,
    color-mix(in srgb, var(--clr-sky) 50%, #000000 30%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Optional: subtle gloss for depth */
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(15, 42, 74, 0.15);
}

.bg-rainbow {
  position: relative;
  overflow: hidden;
  color: var(--clr-navy);
  isolation: isolate;
  border-top: 1px solid color-mix(in srgb, var(--clr-navy) 8%, transparent);

  /* ✅ your existing gradient exactly */
  background: radial-gradient(1200px 1200px at 20% 15%, color-mix(in srgb, var(--clr-sky) 35%, transparent) 0%, transparent 55%),
    radial-gradient(900px 900px at 80% 25%, color-mix(in srgb, var(--clr-aqua) 30%, transparent) 0%, transparent 60%),
    radial-gradient(700px 700px at 50% 50%, color-mix(in srgb, var(--clr-gold) 26%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--clr-off) 0%, rgba(0, 181, 226, 0.1) 100%);
  background-blend-mode: multiply, overlay, multiply, normal;
}

.proven-process .service-card {
  position: relative;
}

.proven-process .service-card::before {
  font-family: var(--ff-display);
  font-size: 15vw;
  line-height: 1;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  color: rgba(0, 0, 0, 0.08);
}

.proven-process .service-card > * {
  position: relative;
}

.proven-process .col:nth-child(1) .service-card::before {
  content: "1";
}

.proven-process .col:nth-child(2) .service-card::before {
  content: "2";
}

.proven-process .col:nth-child(3) .service-card::before {
  content: "3";
}

.proven-process .col:nth-child(4) .service-card::before {
  content: "4";
}

.link-primary {
  color: var(--clr-sky) !important;
}

.btn-learn-more {
  font-weight: 600;
  text-decoration: none;
  color: var(--clr-sky);
  transition: color 0.3s ease, transform 0.3s ease;
}

.btn-learn-more:hover,
.btn-learn-more:focus {
  color: var(--clr-navy);
  transform: translateX(3px);
}

/* === Team Grid (hover reveal, buttonless) =============================== */
.team-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 42, 74, 0.08);
  box-shadow: 0 16px 44px rgba(15, 42, 74, 0.1);
  transition: transform 0.22s var(--easing, ease), box-shadow 0.22s var(--easing, ease);
  outline: none;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 42, 74, 0.18);
}
.team-card:focus-visible {
  outline: var(--focus-ring, 3px solid var(--clr-aqua));
  outline-offset: 2px;
}

.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  --cx: 50%;
  --cy: 50%;
  --r: 0%;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: opacity, clip-path, transform;
  transition: opacity 0.35s var(--easing, ease), transform 0.35s var(--easing, ease), clip-path 0.6s var(--easing, ease);
}
.portrait .pro {
  opacity: 1;
  transform: scale(1.01);
}
.portrait .fun {
  opacity: 0;
  clip-path: circle(var(--r) at var(--cx) var(--cy));
  transform: scale(1.03);
}

/* Hover/focus reveals fun */
.team-card:hover .portrait .fun,
.team-card:focus-within .portrait .fun {
  opacity: 1;
  --r: 180%;
}
.team-card:hover .portrait .pro,
.team-card:focus-within .portrait .pro {
  opacity: 0.15;
}

/* Reduced motion: crossfade only */
@media (prefers-reduced-motion: reduce) {
  .portrait .fun {
    clip-path: none !important;
  }
}

/* Meta */
.team-card .meta {
  padding: 0.9rem 0.95rem 1rem;
}
.team-card .name {
  font-weight: 800;
}

/* Case Study Cards */
.cs-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 42, 74, 0.08);
  box-shadow: 0 24px 60px rgba(15, 42, 74, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.cs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 80px rgba(15, 42, 74, 0.18);
}
.cs-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.cs-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.cs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}
.cs-card:hover .cs-media img {
  transform: scale(1.07);
}
.cs-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(15, 42, 74, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-navy);
}
.cs-body {
  padding: 1.1rem 1.1rem 1.2rem;
}
.cs-title {
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.cs-excerpt {
  color: #2a3340;
  margin-bottom: 0.75rem;
}
.cs-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 0.75rem 0;
}
.cs-tags li {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-navy);
  background: rgba(0, 181, 226, 0.1);
  border: 1px solid rgba(0, 181, 226, 0.18);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.cs-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.cs-meta .val {
  font-weight: 800;
  font-size: 1.25rem;
}
.cs-meta .lbl {
  font-size: 0.78rem;
  color: #5b6a7b;
}

/* Reveal */
#caseGrid [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#caseGrid [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
