/* ================================================================
   MEM Tanzania — shared.css
   Page curtain, parallax, region strip, reduced-blue overrides,
   stagger reveals, counter animations, interactive scroll
   ================================================================ */

/* ── PAGE CURTAIN TRANSITION ────────────────────────────────── */
#mem-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #080808;
  clip-path: inset(0 0 0 0); /* starts fully covering the page */
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}
#mem-curtain.curtain-revealing {
  animation: curtainReveal 0.72s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  pointer-events: none;
}
#mem-curtain.curtain-covering {
  animation: curtainCover 0.52s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  pointer-events: all;
}
/* Cover: dark curtain slides DOWN from top */
@keyframes curtainCover {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0);   }
}
/* Reveal: curtain exits UPWARD */
@keyframes curtainReveal {
  from { clip-path: inset(0 0 0 0);   }
  to   { clip-path: inset(100% 0 0 0); }
}
.curtain-logo {
  opacity: 0.15;
  transition: opacity 0.3s;
}

/* ── PARALLAX IMAGE SECTIONS ─────────────────────────────────── */
.parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.parallax-inner {
  position: absolute;
  inset: -30% 0;            /* oversize vertically so movement stays in frame */
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.87) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
}
.parallax-content {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.parallax-quote { max-width: 62ch; }
.parallax-quote__line {
  width: 2px;
  height: 52px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 2rem;
}
.parallax-quote blockquote {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
  max-width: none;
}
.parallax-quote cite {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.38);
  font-style: normal;
  font-family: 'Outfit', system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Thin parallax divider variant */
.parallax-divider {
  min-height: 240px;
}
.parallax-divider .parallax-overlay {
  background: rgba(0, 0, 0, 0.75);
}

/* ── HERO RIGHT: IMAGE VARIANT ───────────────────────────────── */
/* Override the solid blue with a dark parallax panel */
.hero__right--image {
  background: #080808 !important;
  overflow: hidden;
}
.hero__right--image .hero__right-bg {
  position: absolute;
  inset: -30% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  opacity: 0.35;
}

/* ── REGION STRIP (horizontal drag scroll) ───────────────────── */
.region-strip {
  padding: 5rem 0;
  background: #F8FAFC;
  overflow: hidden;
}
.region-strip__header {
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.region-strip__hint {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.region-strip__hint svg { opacity: 0.5; }

.h-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  cursor: grab;
  padding: 0.5rem 2rem 2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll.is-dragging { cursor: grabbing; }

.region-card {
  flex-shrink: 0;
  width: 340px;
  height: 230px;
  border-radius: 10px;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
.region-card:hover {
  transform: scale(0.975);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.region-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.08) 55%,
    transparent 100%
  );
}
.region-card__label {
  position: absolute;
  bottom: 1.75rem;
  left: 1.375rem;
  z-index: 2;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  line-height: 1;
}
.region-card__sub {
  position: absolute;
  bottom: 1rem;
  left: 1.375rem;
  z-index: 2;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Outfit', system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.region-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.25rem 0.625rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── STAGGER REVEAL ─────────────────────────────────────────── */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}
[data-stagger].staggered > *:nth-child(1) { transition-delay: 0.04s; }
[data-stagger].staggered > *:nth-child(2) { transition-delay: 0.12s; }
[data-stagger].staggered > *:nth-child(3) { transition-delay: 0.20s; }
[data-stagger].staggered > *:nth-child(4) { transition-delay: 0.28s; }
[data-stagger].staggered > *:nth-child(5) { transition-delay: 0.36s; }
[data-stagger].staggered > * { opacity: 1; transform: translateY(0); }

/* ── BLUE REDUCTION: accent-only overrides ───────────────────── */
/* Stats bar: change number colour from ink/blue to near-black */
.stats-bar__number { color: #080808 !important; }

/* Services preview bg: white, not canvas-mid */
.services-preview { background: #F8FAFC !important; }

/* About badge: near-black instead of blue */
.about__badge { background: #080808 !important; border: 1px solid rgba(255,255,255,0.08); }

/* Team card avatars: desaturated dark tones */
.team-card__avatar       { background: #1A2535 !important; }
.team-card__avatar--mid  { background: #1E2D40 !important; }
.team-card__avatar--light{ background: #243348 !important; }

/* Process step hover: near-black ring instead of blue */
.process-step:hover .process-step__num {
  background: #080808 !important;
  border-color: #080808 !important;
}

/* Service row hover arrow: near-black */
.service-row:hover .service-row__arrow {
  background: #080808 !important;
  border-color: #080808 !important;
}

/* Why-card hover: subtle, not blue-light */
.why-card:hover { background: #F8FAFC !important; }

/* ── STAGGER: grid children slide up + fade — translateY instead of Y+opacity
   on border-gap grids so the subtle gap lines stay visible throughout ── */
.why__grid[data-stagger] > *,
.services-grid[data-stagger] > *,
.team__grid[data-stagger] > * {
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── HERO HEADLINE ACCENT: blue em stays as accent ─────────────── */
/* The blue em inside the h1 is intentional accent — no override */

/* ── ANIMATED COUNTER (number-count elements) ────────────────── */
[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #mem-curtain,
  #mem-curtain.curtain-revealing,
  #mem-curtain.curtain-covering { animation: none !important; clip-path: inset(100% 0 0 0) !important; pointer-events: none !important; }
  .parallax-inner { transform: none !important; }
  .region-card:hover { transform: none; }
  [data-stagger] > * { opacity: 1; transform: none; transition: none; }
}

/* ── BUTTON HOVER LIFT ANIMATIONS ─────────────────────────────── */
/*
   Global: every .btn lifts 2px on hover with a shadow.
   Active: squish back down (Emil Kowalski scale(0.97)).
   Each variant gets a colour-matched shadow.
*/
.btn {
  will-change: transform, box-shadow;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn:active {
  transform: scale(0.97) translateY(0px) !important;
  box-shadow: none !important;
  transition-duration: 0.1s;
}

/* Primary: tinted shadow */
.btn-primary:hover {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(13, 43, 78, 0.35);
}

/* Ghost (dark): soft neutral shadow */
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Ghost-white (on dark backgrounds): white glow */
.btn-ghost-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.1);
}

/* White button (prices page) */
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.18);
}

/* Nav CTA: no lift (feels wrong inside the sticky bar) */
.nav .btn:hover {
  transform: none;
  box-shadow: none;
}

/* ── NAV: hamburger always pushed to far right ───────────────── */
.nav__hamburger {
  margin-left: auto !important;
}

/* ── MOBILE NAV: enhanced character + correct button ────────── */
.nav__mobile {
  padding: 0 !important;
  overflow-y: auto;
}
.nav__mobile a:not(.btn) {
  padding: 1.125rem 2rem !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  border-bottom: 1px solid #E2E8F0 !important;
  transition: background 0.15s ease, padding-left 0.22s ease !important;
  display: block !important;
}
.nav__mobile a:not(.btn):hover {
  background: #F1F5F9;
  padding-left: 2.5rem !important;
}
.nav__mobile .btn {
  margin: 1.75rem 2rem 2.5rem !important;
  width: calc(100% - 4rem) !important;
  justify-content: center !important;
  font-family: 'Outfit', system-ui, sans-serif !important;
  font-size: 1rem !important;
  display: flex !important;
}
/* Book a Consultation button: force white text regardless of page link colour */
.nav__mobile .btn-primary {
  color: #ffffff !important;
  background: #0D2B4E !important;
  border-color: #0D2B4E !important;
}

/* ── ABOUT: badge no collision on mobile ─────────────────────── */
@media (max-width: 768px) {
  .about__badge {
    position: static !important;
    display: inline-block;
    margin-top: 1.75rem;
  }
  .about__right {
    min-height: auto !important;
  }
  /* h2 → first paragraph spacing */
  .about__left h2 {
    margin-bottom: 1.75rem !important;
  }
}

/* ── ABOUT: h2 → paragraph breathing room (all viewports) ───── */
.about__left h2 {
  margin-bottom: 1.5rem;
}

/* ── PRICING: "Why" / "Our pricing approach" spacing ────────── */
.philosophy__number {
  margin-bottom: 1.5rem !important;
}

/* ── PRICING FACTORS: snap scroll on mobile ─────────────────── */
@media (max-width: 860px) {
  .factors .factors__inner > .container > .factors__grid,
  .factors__grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem !important;
    background: transparent !important;
    border: none !important;
    padding: 0.5rem 2rem 2rem !important;
    scrollbar-width: none;
    border-radius: 0 !important;
  }
  .factors__grid::-webkit-scrollbar { display: none; }
  .factor {
    flex: 0 0 min(calc(100vw - 5rem), 320px) !important;
    scroll-snap-align: start;
    border-radius: 10px !important;
    min-height: 220px;
    grid-column: span 1 !important;
  }
}

/* ── SITE FOOTER: clean light, all pages ────────────────────── */
.site-footer {
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
}
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 2rem 0;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid #E2E8F0;
}
.site-footer__logo { margin-bottom: 1.25rem; }
.site-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #64748B;
  max-width: 28ch;
}
.site-footer__contact {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer__contact a {
  font-size: 0.875rem;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer__contact a:hover { color: #0B1829; }
.site-footer__contact span {
  font-size: 0.875rem;
  color: #94A3B8;
}
.site-footer__col-title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 1.25rem;
}
.site-footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-footer__col ul a {
  font-size: 0.9rem;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer__col ul a:hover { color: #0B1829; }
.site-footer__col-desc {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: none;
}
.site-footer__cta-btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.375rem;
  border-radius: 6px;
  background: #0D2B4E;
  color: #fff;
  text-decoration: none;
  border: 1.5px solid #0D2B4E;
  transition: background 0.18s, transform 0.18s;
}
.site-footer__cta-btn:hover {
  background: #0A2240;
  transform: translateY(-1px);
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: #94A3B8;
}
.site-footer__bottom > div {
  display: flex;
  gap: 1.5rem;
}
.site-footer__bottom a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer__bottom a:hover { color: #334155; }

@media (max-width: 768px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .site-footer__brand {
    grid-column: span 2;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E2E8F0;
  }
}
@media (max-width: 480px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
  .site-footer__brand {
    grid-column: span 1;
  }
  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   ENHANCEMENT LAYER — added 2026-06
   WOW-factor polish: page hero animations, card lifts,
   micro-interactions, process polish
══════════════════════════════════════════════════════════════ */

/* ── PAGE HERO ENTRANCE (inner pages) ───────────────────────── */
/* Cascade in after the curtain finishes revealing (~780 ms) */
@keyframes heroEntryIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.page-hero__inner > * {
  opacity: 0;
  animation: heroEntryIn 0.72s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.page-hero__inner > *:nth-child(1) { animation-delay: 0.78s; }
.page-hero__inner > *:nth-child(2) { animation-delay: 0.94s; }
.page-hero__inner > *:nth-child(3) { animation-delay: 1.10s; }

@media (prefers-reduced-motion: reduce) {
  .page-hero__inner > * { opacity: 1 !important; animation: none !important; }
}

/* ── CARD HOVER LIFTS ────────────────────────────────────────── */
.value-card,
.why-card,
.team-card {
  transition:
    transform    0.28s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow   0.28s cubic-bezier(0.23, 1, 0.32, 1),
    background   0.2s;
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(11, 24, 41, 0.10);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(11, 24, 41, 0.09);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(11, 24, 41, 0.08);
}

/* ── VALUE CARD: icon micro-interaction ──────────────────────── */
.value-card__icon {
  transition:
    transform  0.30s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.28s;
}
.value-card:hover .value-card__icon {
  transform: scale(1.18) rotate(-4deg);
  background: #0D2B4E;
}
.value-card:hover .value-card__icon svg path,
.value-card:hover .value-card__icon svg circle {
  stroke: #FFFFFF;
  transition: stroke 0.28s;
}

/* ── WHY CARD: left-accent inset shadow ──────────────────────── */
.why-card {
  box-shadow: inset 3px 0 0 transparent;
  transition:
    transform    0.28s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow   0.28s cubic-bezier(0.23, 1, 0.32, 1),
    background   0.2s;
}
.why-card:hover {
  box-shadow:
    inset 3px 0 0 #0D2B4E,
    0 12px 36px rgba(11, 24, 41, 0.09);
}

/* ── PRICING MODEL CARDS: lift on hover ──────────────────────── */
.model-card:not(.model-card--featured) {
  transition:
    transform  0.30s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.30s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.2s;
}
.model-card:not(.model-card--featured):hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 56px rgba(11, 24, 41, 0.14);
  position: relative;
  z-index: 2;
}

/* ── FACTOR CARDS: subtle hover ──────────────────────────────── */
.factor {
  transition:
    transform  0.25s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}
.factor:not([style*="background:#0D2B4E"]):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(11, 24, 41, 0.09);
}

/* ── PROCESS CONNECTOR: fading gradient line ─────────────────── */
.process__steps::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    #CBD5E1 18%,
    #CBD5E1 82%,
    transparent 100%
  ) !important;
}

/* ── SERVICE TABS: animated left indicator ───────────────────── */
.svc-tab-btn {
  transition: background 0.18s, border-left-color 0.24s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* ── CURSOR POINTER: non-button interactive elements ─────────── */
.faq__question,
.service-row,
.svc-tab-btn,
.region-card,
.marquee__item {
  cursor: pointer;
}

/* ── STATS BAR: subtle count-up underline glow ───────────────── */
.stats-bar__number {
  position: relative;
  display: inline-block;
}

/* ── TEAM CARD AVATAR: depth gradient ───────────────────────── */
.team-card__avatar {
  background: linear-gradient(135deg, #1E2D40 0%, #0D2B4E 100%) !important;
  box-shadow: 0 2px 8px rgba(11, 24, 41, 0.25);
}
.team-card__avatar--mid,
.team-card__avatar--b {
  background: linear-gradient(135deg, #243348 0%, #1A4A7A 100%) !important;
}
.team-card__avatar--light,
.team-card__avatar--c {
  background: linear-gradient(135deg, #2A3D52 0%, #2A5A8A 100%) !important;
}

/* ── MARQUEE: sharper separator dots ────────────────────────── */
.marquee__sep {
  opacity: 0.4;
}

/* ── HERO RIGHT: depth glow ──────────────────────────────────── */
/* Subtle warm-blue radial that lifts the panel off pure black */
.hero__right::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(13,43,78,0.32) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ── CTA DARK: refined grid + glow ──────────────────────────── */
.cta-dark__grid,
.cta-dark__grid-lines {
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px) !important;
  background-size: 64px 64px !important;
}

/* ── PROCESS STEP: number pulse on hover ─────────────────────── */
.process-step__num {
  transition: background 0.2s, border-color 0.2s, color 0.2s,
              box-shadow 0.2s, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.process-step:hover .process-step__num {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(8, 8, 8, 0.07);
}

/* ── TEAM CARD AVATAR: text shadow for depth ─────────────────── */
.team-card__avatar {
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ── HERO STAT NUMBERS: tabular + letter-spacing ─────────────── */
.hero__stat-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* ── MARQUEE: fade edges ─────────────────────────────────────── */
.marquee__wrapper {
  position: relative;
}
.marquee__wrapper::before,
.marquee__wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 6rem;
  z-index: 2;
  pointer-events: none;
}
.marquee__wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--canvas-mid, #F1F5F9), transparent);
}
.marquee__wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--canvas-mid, #F1F5F9), transparent);
}

/* ── PAGE HERO GRID: subtle animated shimmer ─────────────────── */
.page-hero__grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridFadeIn 1.2s ease forwards;
}
@keyframes gridFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__grid { animation: none; opacity: 1; }
}

/* ── SERVICE ROW: hover indicator improvement ────────────────── */
.service-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: #0D2B4E;
  transform: scaleY(0);
  transition: transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}
.service-row:hover::before {
  transform: scaleY(1);
}

/* ── CONTACT FORM: enhanced focus glow ───────────────────────── */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0D2B4E !important;
  box-shadow: 0 0 0 3px rgba(13, 43, 78, 0.10) !important;
  background: #FAFCFF !important;
}

/* ── QUOTE STRIP: accent line animation ──────────────────────── */
[style*="width:2px"][style*="height:48px"] {
  animation: accentLineDrop 0.6s cubic-bezier(0.23, 1, 0.32, 1) 1.1s both;
  transform-origin: top;
}
@keyframes accentLineDrop {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  [style*="width:2px"][style*="height:48px"] { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   DESIGN-TASTE LAYER — no-limits pass 2026-06
   Spotlight cards, magnetic CTAs, ripple, hero mesh,
   process line draw, text scramble support
══════════════════════════════════════════════════════════════ */

/* ── RIPPLE: enable click-wave on all buttons ────────────────── */
.btn {
  position: relative;
  overflow: hidden;
}
.btn__ripple {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: btnRippleExpand 0.65s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  pointer-events: none;
}
@keyframes btnRippleExpand {
  to {
    transform: translate(-50%, -50%) scale(80);
    opacity: 0;
  }
}

/* ── MAGNETIC: suppress CSS hover transform; JS takes over ───── */
.btn-magnetic:hover {
  transform: none !important;
}

/* ── HERO LEFT: ambient mesh gradient (subtle, animated) ─────── */
.hero__left {
  position: relative;
}
.hero__left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 0% 100%, rgba(13,43,78,0.065), transparent 62%),
    radial-gradient(ellipse 45% 55% at 100% 0%,  rgba(13,43,78,0.04),  transparent 60%);
  animation: heroBlobDrift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
/* All direct children stay above the mesh */
.hero__left > * {
  position: relative;
  z-index: 1;
}
@keyframes heroBlobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2.5%, -1.5%) scale(1.03); }
  100% { transform: translate(-1.5%, 2%) scale(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__left::before { animation: none; }
}

/* ── PROCESS LINE: draw-in from left on scroll ───────────────── */
.process__steps::before {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.0s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
}
.process__steps.line-revealed::before {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .process__steps::before {
    transform: scaleX(1) !important;
    transition: none !important;
  }
}

/* ── PAGE HERO: clip-path reveal on inner child elements ──────── */
.page-hero__inner > *:nth-child(1),
.page-hero__inner > *:nth-child(2),
.page-hero__inner > *:nth-child(3) {
  clip-path: inset(0 0 100% 0);
  animation: heroClipReveal 0.72s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes heroClipReveal {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(14px); }
  to   { opacity: 1; clip-path: inset(0 0 0% 0);   transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__inner > * {
    clip-path: none !important;
    animation: none !important;
  }
}
