/*
 * Home Page Template — Samanvi Technologies
 * Paired with: page-templates/template-home.php
 */

/* ════════════════════════════════
   GENERATEPRESS OVERRIDES
════════════════════════════════ */

/* Full-width containers — remove all GP padding/max-width */
body.page-template-page-templates-template-home-php .site-content,
body.page-template-page-templates-template-home-php .site-inner,
body.page-template-page-templates-template-home-php #primary,
body.page-template-page-templates-template-home-php .site-main,
body.page-template-page-templates-template-home-php article,
body.page-template-page-templates-template-home-php .inside-article {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Hide ALL GP-generated page elements — title, featured image, entry content wrapper */
body.page-template-page-templates-template-home-php .entry-header,
body.page-template-page-templates-template-home-php .entry-title,
body.page-template-page-templates-template-home-php .entry-content,
body.page-template-page-templates-template-home-php .post-image,
body.page-template-page-templates-template-home-php .featured-image,
body.page-template-page-templates-template-home-php .generate-featured-image,
body.page-template-page-templates-template-home-php .page-header-image,
body.page-template-page-templates-template-home-php .inside-page-hero,
body.page-template-page-templates-template-home-php .generate-page-header,
body.page-template-page-templates-template-home-php .entry-footer {
  display: none !important;
}

/* Our wrapper fills full width.
   `overflow-x: clip` (not `hidden`) — `hidden` would promote overflow-y to
   `auto` and create a scroll container, which breaks `position: sticky`
   inside (the painfix-v4 pinned scrub stops sticking to the viewport). */
body.page-template-page-templates-template-home-php #home-page-wrapper {
  display: block !important;
  width: 100%;
  overflow-x: clip;
}

/* ════════════════════════════════
   CSS VARIABLES
════════════════════════════════ */
:root {
  --black: #091628;
  --off-black: #0d2040;
  --dark: #0b2d38;
  --mid: #174060;
  --light-bg: #edf5f8;
  --white: #ffffff;
  --off-white: #edf5f8;
  --muted: #6fa3c0;
  --teal: #00a896;
  --teal-dark: #028090;
  --blue: #1f4e8a;
  --blue-light: rgba(31, 78, 138, 0.08);
  --blue-mid: rgba(31, 78, 138, 0.18);
  --blue-border: rgba(31, 78, 138, 0.22);
}

/* ── Hero responsive padding ── */
@media screen and (min-width: 768px) {
  body.page-template-page-templates-template-home-php .hero,
  body.page-template-page-templates-template-home-php #home-page-wrapper .hero {
    padding: 20px 30px 0px 50px !important;
  }
}

/* ════════════════════════════════
   HERO — DASHBOARD RESULTS DESIGN
════════════════════════════════ */
.hero {
  height: calc(100vh - var(--header-h, 90px)); /* fallback */
  height: calc(
    100dvh - var(--header-h, 90px)
  ); /* exact: viewport minus real header */
  min-height: 600px;
  background: linear-gradient(145deg, #091628 0%, #1f4e8a 50%, #091628 100%);
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Teal glow top-left */
.hero::before {
  content: "";
  position: absolute;
  top: -15%;
  left: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(
    circle,
    rgba(0, 168, 150, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}
/* Blue glow bottom-right */
.hero::after {
  content: "";
  position: absolute;
  bottom: -5%;
  right: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(31, 78, 138, 0.18) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 3rem 5rem 5rem;
  position: relative;
  z-index: 2;
}

/* Live indicator dot */
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 168, 150, 0.08);
  border: 1px solid rgba(0, 168, 150, 0.22);
  border-radius: 100px;
  padding: 0.35rem 0.9rem 0.35rem 0.6rem;
  margin-bottom: 2.5rem;
  width: fit-content;
}
.hero-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}
.hero-live-text {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
}

/* Headline with animated word swap */
.hero-headline {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.75rem;
  letter-spacing: -2px;
}
.hero-headline .static-line {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  font-size: 0.65em;
  letter-spacing: -0.5px;
  margin-bottom: 0.2rem;
}
.hero-headline .swap-wrap {
  display: inline-block;
  vertical-align: bottom;
}

/* Typed text */
.swap-typed {
  color: #ffffff;
}

/* Blinking cursor */
.swap-cursor {
  color: #00a896;
  font-weight: 300;
  animation: cursor-blink 0.7s step-end infinite;
}

@keyframes cursor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-body {
  font-size: 0.97rem;
  color: rgb(231 233 236);
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-body strong {
  color: #fff;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
  border: 1px solid var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  transform: translateY(-2px);
}

/* Trust logos row */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;

  flex-wrap: wrap;
}
.hero-trust-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  flex-shrink: 0;
}
.hero-trust-logos {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.trust-logo-pill {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 100px;
}

/* ── Hero right: Dashboard cards + person image ── */
.hero-dashboard {
  position: relative;
  height: 100%;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
  padding: 2rem 0 5rem 1rem;
  background-image: url("https://samanvis.com/wp-content/uploads/2026/03/seo-6_converted.webp");
  background-size: cover;
  background-position: center right;
}

/* Left fade so cards blend into hero bg */
.hero-dashboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    to right,
    #091628 30%,
    rgba(9, 22, 40, 0.6) 70%,
    transparent 100%
  );
  z-index: 1;
}

/* Bottom fade */
.hero-dashboard::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #091628, transparent);
  z-index: 1;
  pointer-events: none;
}

.dashboard-stack {
  position: relative;
  width: 400px;
  height: 430px;
  z-index: 2;
}

/* Shared card style */
.db-card {
  position: absolute;
  background: rgba(13, 32, 64, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}
.db-card:hover {
  transform: scale(1.02) translateY(-3px) !important;
}

/* Card: Traffic growth */
.db-traffic {
  width: 240px;
  top: 10px;
  left: 0;
  padding: 1.4rem;
  animation: float-a 5s ease-in-out infinite;
}
@keyframes float-a {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
.db-traffic:hover {
  animation: none;
}

.db-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.db-card-title {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.db-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.db-card-badge.warn {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}

.db-big-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 0.25rem;
}
.db-sub-text {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

/* Mini SVG chart */
.db-chart {
  width: 100%;
  height: 56px;
}

/* Card: Rank tracker */
.db-rank {
  width: 155px;
  top: 40px;
  right: 0;
  padding: 1.2rem;
  animation: float-b 6s ease-in-out infinite 1s;
}
@keyframes float-b {
  0%,
  100% {
    transform: translateY(0px) rotate(1.5deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}
.db-rank:hover {
  animation: none;
}

.db-rank-pos {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -3px;
}
.db-rank-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.2rem;
}
.db-rank-kw {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card: Revenue */
.db-revenue {
  width: 195px;
  bottom: 10px;
  left: 20px;
  padding: 1.2rem;
  animation: float-c 7s ease-in-out infinite 0.5s;
}
@keyframes float-c {
  0%,
  100% {
    transform: translateY(0px) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(-1deg);
  }
}
.db-revenue:hover {
  animation: none;
}

.db-rev-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.db-rev-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

/* Mini progress bar */
.db-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.db-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(to right, var(--teal), #00d4b8);
}

/* Card: Campaigns */
.db-campaigns {
  width: 150px;
  bottom: 30px;
  right: 20px;
  padding: 1rem;
  animation: float-a 4.5s ease-in-out infinite 1.5s;
}

.db-camp-count {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
}
.db-camp-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* Dot grid background texture */
.db-dots {
  position: absolute;
  inset: -20px;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  z-index: -1;
}

/* Hero bottom ticker */
.hero-ticker-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0000004f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
  z-index: 5;
}
.hero-ticker {
  display: flex;
  gap: 0;
  animation: ticker-scroll 28s linear infinite;
  white-space: nowrap;
}
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.ticker-item {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-shrink: 0;
}
.ticker-item::after {
  content: "·";
  color: rgba(0, 168, 150, 0.3);
}

/* ════════════════════════════════
   MARQUEE BAND
════════════════════════════════ */
.marquee-band {
  display: none;
}
.marquee-track {
  display: flex;
  animation: marquee-run 32s linear infinite;
  white-space: nowrap;
}
@keyframes marquee-run {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgb(0 168 150);
  flex-shrink: 0;
}
.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   PAINFIX V4 — Apple-style pinned scrub (desktop)
   Mobile = horizontal snap-scroll carousel
   CTAs trigger the existing smcb live chat instead of /contact
════════════════════════════════════════════════════════════════ */

/* shared painfix-v4 tokens (extend theme palette) */
.painfix-v4,
.pfx-mobile {
  --pfx-teal-soft: #e6f7f5;
  --pfx-navy-deep: #0f2a52;
  --pfx-pain: #c2354b;
  --pfx-hairline: var(--blue-border);
  --pfx-grid: rgba(31, 78, 138, 0.06);
}

/* desktop / mobile swap */
.pfx-mobile { display: none; }
@media (max-width: 900px) {
  .pfx-desktop { display: none; }
  .pfx-mobile  { display: block; }
}

/* ─── DESKTOP outer scroll track (drives chapter advance) ─── */
.painfix-v4 {
  position: relative;
  height: 500vh;            /* intro + 4 chapters, each ~100vh */
  background: #fff;
}
.pfx-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #fff;
  background-image: radial-gradient(var(--pfx-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.pfx-pin::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 65% at 50% 50%, transparent 0%, #fff 90%);
  pointer-events: none;
}

/* top bar */
.pfx-topbar {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 2rem 3rem 0;
  gap: 2rem;
}
.pfx-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal);
}
.pfx-eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--teal); opacity: 0.6;
}
.pfx-progress {
  display: flex; align-items: center; gap: 0.8rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--pfx-hairline);
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: #6a8fa5;
  box-shadow: 0 8px 24px rgba(9, 22, 40, 0.05);
}
.pfx-progress-track { display: flex; gap: 6px; align-items: center; }
.pfx-progress-seg {
  width: 22px; height: 3px; border-radius: 3px;
  background: var(--pfx-hairline);
  position: relative; overflow: hidden;
}
.pfx-progress-seg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.pfx-progress-seg.is-done::after { transform: scaleX(1); }
.pfx-progress-seg.is-active::after { transform: scaleX(var(--p, 0)); }
.pfx-progress-label { color: var(--black); }

/* stage : intro + chapters absolutely stacked */
.pfx-stage {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem 3rem 3rem;
}
.pfx-stage-inner {
  position: relative;
  width: 100%; max-width: 1180px;
  height: 100%;
  display: flex; align-items: center;
}
.pfx-scene {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 0.7, 0.2, 1);
  pointer-events: none;
}
.pfx-scene.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pfx-scene.is-prev { opacity: 0; transform: translateY(-20px) scale(0.985); }

/* INTRO */
.pfx-intro {
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.pfx-intro-h {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -2px;
  color: var(--black);
  max-width: 880px; margin: 0 auto 1.2rem;
}
.pfx-intro-h em {
  font-style: normal; color: var(--teal); position: relative;
}
.pfx-intro-h em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: var(--teal); opacity: 0.16; border-radius: 4px;
}
.pfx-intro-sub {
  font-size: 1.05rem; color: #6a8fa5;
  max-width: 520px; margin: 0 auto 2rem; line-height: 1.7;
}
.pfx-scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: "Inter", sans-serif; font-size: 0.68rem;
  letter-spacing: 2.5px; text-transform: uppercase; color: #6a8fa5; font-weight: 600;
}
.pfx-scroll-hint .dot {
  width: 2px; height: 18px; background: var(--teal); border-radius: 2px;
  animation: pfxScrollNudge 1.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes pfxScrollNudge {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* CHAPTER : two columns */
.pfx-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 5rem;
  align-items: center;
  width: 100%;
}

/* LEFT — pain side */
.pfx-pain { position: relative; }
.pfx-bignum {
  position: absolute; top: -90px; left: -12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14rem; font-weight: 700; line-height: 1; letter-spacing: -6px;
  color: var(--blue); opacity: 0.06;
  pointer-events: none; user-select: none;
}
.pfx-pain-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--pfx-pain);
  padding: 0.35rem 0.75rem; background: #fdebef; border-radius: 100px;
  margin-bottom: 1.1rem;
}
.pfx-pain-kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pfx-pain);
  box-shadow: 0 0 0 4px rgba(194, 53, 75, 0.15);
}
.pfx-pain-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -1px;
  color: var(--black); margin-bottom: 1rem;
}
.pfx-pain-desc {
  font-size: 1rem; color: #6a8fa5; line-height: 1.75; max-width: 440px;
}

/* connector */
.pfx-connector {
  position: absolute;
  left: calc(50% - 2.5rem);
  top: 50%; transform: translateY(-50%);
  width: 5rem; height: 1px;
  background: linear-gradient(90deg, var(--pfx-pain), var(--teal));
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease 0.15s;
}
.pfx-scene.is-on .pfx-connector { opacity: 0.5; }
.pfx-connector::before,
.pfx-connector::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
}
.pfx-connector::before { left: -3px; background: var(--pfx-pain); }
.pfx-connector::after  { right: -3px; background: var(--teal); }

/* RIGHT — fix card */
.pfx-fix {
  background: #fff;
  border: 1px solid var(--pfx-hairline);
  border-radius: 20px;
  padding: 2.2rem 2.2rem 1.8rem;
  box-shadow: 0 30px 70px rgba(9, 22, 40, 0.08);
  position: relative;
  overflow: hidden;
}
.pfx-fix::before {
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--blue));
}
.pfx-fix-head {
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.85rem;
}
.pfx-fix-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: "Inter", sans-serif;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--teal);
  padding: 0.35rem 0.7rem; background: var(--pfx-teal-soft); border-radius: 100px;
}
.pfx-fix-badge svg { width: 11px; height: 11px; }
.pfx-fix-tag {
  font-family: "Inter", sans-serif;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: #6a8fa5;
}
.pfx-fix-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  font-weight: 700; letter-spacing: -0.4px; line-height: 1.2;
  color: var(--pfx-navy-deep); margin-bottom: 0.7rem;
}
.pfx-fix-desc {
  font-size: 0.92rem; color: #3d6882; line-height: 1.7; margin-bottom: 1.4rem;
}
.pfx-result {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center;
  padding-top: 1.1rem; border-top: 1px dashed var(--pfx-hairline);
}
.pfx-stat {
  display: flex; align-items: baseline; gap: 0.1rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  color: var(--teal); letter-spacing: -1.5px; line-height: 1;
}
.pfx-stat-num { font-size: clamp(2.2rem, 3.4vw, 2.9rem); }
.pfx-stat-unit { font-size: 1.25rem; color: var(--blue); }
.pfx-stat-label {
  font-size: 0.74rem; color: #6a8fa5;
  font-family: "Inter", sans-serif; font-weight: 500; line-height: 1.5;
}
.pfx-bar {
  grid-column: 1 / -1; margin-top: 0.55rem; height: 5px; border-radius: 100px;
  background: var(--pfx-hairline); overflow: hidden; position: relative;
}
.pfx-bar-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--teal)); border-radius: 100px;
  transition: width 1.1s cubic-bezier(0.22, 0.7, 0.2, 1) 0.2s;
}
.pfx-scene.is-on .pfx-bar-fill { width: var(--fill, 75%); }
.pfx-meta {
  display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 1.2rem;
}
.pfx-chip {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem; font-weight: 500; color: var(--blue);
  padding: 0.28rem 0.6rem; border: 1px solid var(--pfx-hairline);
  border-radius: 100px; background: #fff;
}

/* bottom : dots + CTA */
.pfx-bottom {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 10rem 1.8rem 3rem;           /* right padding clears the floating chat bubble (was 6rem — bumped to 10rem to prevent overlap) */
  gap: 2rem;
}
.pfx-dots { display: flex; gap: 0.55rem; }
.pfx-dot {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--pfx-hairline); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Inter", sans-serif; font-size: 0.7rem; font-weight: 600; color: #6a8fa5;
  cursor: pointer; transition: all 0.3s ease;
}
.pfx-dot:hover { border-color: var(--teal); color: var(--teal); }
.pfx-dot.is-active {
  background: var(--blue); color: #fff; border-color: var(--blue);
  transform: scale(1.08); box-shadow: 0 8px 18px rgba(31, 78, 138, 0.25);
}
.pfx-cta { display: flex; align-items: center; gap: 1rem; }
.pfx-cta-text { font-size: 0.85rem; color: #6a8fa5; }
.pfx-cta-text strong { color: var(--black); font-weight: 600; }
.pfx-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--blue); color: #fff;
  font-family: "Inter", sans-serif; font-weight: 500; font-size: 0.86rem; letter-spacing: 0.2px;
  padding: 0.85rem 1.4rem; border-radius: 100px; text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 24px rgba(31, 78, 138, 0.22);
}
.pfx-btn:hover {
  background: var(--teal); transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 168, 150, 0.35);
}
.pfx-btn svg { transition: transform 0.25s ease; }
.pfx-btn:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .pfx-scene { transition: opacity 0.2s ease; }
  .pfx-scroll-hint .dot { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — horizontal snap carousel
═══════════════════════════════════════════════════════════════ */
.pfx-mobile {
  position: relative;
  background: #fff;
  background-image: radial-gradient(var(--pfx-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 4rem 0 4.5rem;
  overflow: hidden;
}
.pfx-mobile::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 0%, #fff 92%);
  pointer-events: none;
}

.pfx-m-intro { position: relative; z-index: 1; padding: 0 1.25rem; margin-bottom: 1.5rem; }
.pfx-m-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.85rem;
}
.pfx-m-eyebrow::before {
  content: ""; width: 20px; height: 1px; background: var(--teal); opacity: 0.6;
}
.pfx-m-h {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.85rem; font-weight: 700; line-height: 1.1; letter-spacing: -1px;
  color: var(--black); margin-bottom: 0.7rem;
}
.pfx-m-h em { font-style: normal; color: var(--teal); position: relative; }
.pfx-m-h em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 5px;
  background: var(--teal); opacity: 0.16; border-radius: 3px;
}
.pfx-m-sub { font-size: 0.9rem; color: #6a8fa5; line-height: 1.6; }

.pfx-m-prog {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; margin-bottom: 0.9rem;
  font-family: "Inter", sans-serif;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: #6a8fa5;
}
.pfx-m-prog-label strong { color: var(--black); font-weight: 700; }
.pfx-m-prog-track { display: flex; gap: 5px; }
.pfx-m-prog-seg {
  width: 20px; height: 3px; border-radius: 3px; background: var(--pfx-hairline);
  transition: background 0.35s ease;
}
.pfx-m-prog-seg.is-on   { background: var(--teal); }
.pfx-m-prog-seg.is-done { background: var(--blue); }

.pfx-m-hint {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: #6a8fa5;
  margin-bottom: 0.5rem;
  transition: opacity 0.4s ease;
}
.pfx-m-hint.is-hidden { opacity: 0; }
.pfx-m-hint-arrow {
  display: inline-block; width: 18px; height: 1px; background: var(--teal); position: relative;
  animation: pfxHintNudge 1.4s ease-in-out infinite;
}
.pfx-m-hint-arrow::after {
  content: ""; position: absolute; right: -1px; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid var(--teal); border-right: 1px solid var(--teal);
  transform: rotate(45deg);
}
@keyframes pfxHintNudge {
  0%, 100% { transform: translateX(-3px); opacity: 0.5; }
  50%      { transform: translateX(3px);  opacity: 1; }
}

.pfx-m-rail {
  position: relative; z-index: 1;
  display: flex; gap: 0.9rem;
  padding: 0.75rem 1.25rem 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pfx-m-rail::-webkit-scrollbar { display: none; }

.pfx-m-card {
  flex: 0 0 86%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: #fff;
  border: 1px solid var(--pfx-hairline);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(9, 22, 40, 0.07);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.pfx-m-card.is-on { box-shadow: 0 26px 56px rgba(31, 78, 138, 0.14); }

.pfx-m-pain {
  position: relative;
  padding: 1.4rem 1.3rem 1.2rem;
  background: linear-gradient(180deg, #fcfdfe 0%, #fff 100%);
}
.pfx-m-bignum {
  position: absolute; top: -12px; right: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 5.5rem; font-weight: 700; line-height: 1; letter-spacing: -3px;
  color: var(--blue); opacity: 0.07; pointer-events: none; user-select: none;
}
.pfx-m-kicker {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: "Inter", sans-serif;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--pfx-pain);
  padding: 0.3rem 0.6rem; background: #fdebef; border-radius: 100px;
  margin-bottom: 0.8rem;
}
.pfx-m-kicker::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pfx-pain);
  box-shadow: 0 0 0 3px rgba(194, 53, 75, 0.15);
}
.pfx-m-pain-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.4px;
  color: var(--black); margin-bottom: 0.5rem;
}
.pfx-m-pain-desc { font-size: 0.83rem; color: #6a8fa5; line-height: 1.6; }

.pfx-m-connector {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.3rem;
  background: linear-gradient(to right, rgba(31, 78, 138, 0.05), rgba(31, 78, 138, 0.02));
  border-top: 1px solid var(--pfx-hairline);
  border-bottom: 1px solid var(--pfx-hairline);
}
.pfx-m-connector-icon {
  width: 22px; height: 22px; border-radius: 50%; background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.65rem; font-weight: 700; flex-shrink: 0;
}
.pfx-m-connector-text {
  font-size: 0.56rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue);
}
.pfx-m-connector-line { flex: 1; height: 1px; background: var(--pfx-hairline); }

.pfx-m-fix { padding: 1.2rem 1.3rem 1.4rem; background: #fff; }
.pfx-m-fix-head {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap;
}
.pfx-m-fix-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: "Inter", sans-serif;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--teal);
  padding: 0.3rem 0.6rem; background: var(--pfx-teal-soft); border-radius: 100px;
}
.pfx-m-fix-badge svg { width: 10px; height: 10px; }
.pfx-m-fix-tag {
  font-family: "Inter", sans-serif;
  font-size: 0.58rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: #6a8fa5;
}
.pfx-m-fix-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.3px; line-height: 1.25;
  color: var(--pfx-navy-deep); margin-bottom: 0.5rem;
}
.pfx-m-fix-desc { font-size: 0.81rem; color: #3d6882; line-height: 1.65; margin-bottom: 1rem; }
.pfx-m-result {
  display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: center;
  padding-top: 0.85rem; border-top: 1px dashed var(--pfx-hairline);
}
.pfx-m-stat {
  display: flex; align-items: baseline; gap: 0.1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; letter-spacing: -1px; line-height: 1; color: var(--teal);
}
.pfx-m-stat-num { font-size: 1.85rem; }
.pfx-m-stat-unit { font-size: 1rem; color: var(--blue); }
.pfx-m-stat-label {
  font-size: 0.68rem; color: #6a8fa5;
  font-family: "Inter", sans-serif; font-weight: 500; line-height: 1.45;
}
.pfx-m-bar {
  grid-column: 1 / -1; margin-top: 0.45rem;
  height: 4px; border-radius: 100px; background: var(--pfx-hairline);
  overflow: hidden; position: relative;
}
.pfx-m-bar-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--teal)); border-radius: 100px;
  transition: width 1.1s cubic-bezier(0.22, 0.7, 0.2, 1) 0.15s;
}
.pfx-m-card.is-on .pfx-m-bar-fill { width: var(--fill, 75%); }
.pfx-m-meta { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.95rem; }
.pfx-m-chip {
  font-family: "Inter", sans-serif;
  font-size: 0.65rem; font-weight: 500; color: var(--blue);
  padding: 0.25rem 0.55rem; border: 1px solid var(--pfx-hairline);
  border-radius: 100px; background: #fff;
}

.pfx-m-dots {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 0.5rem;
  padding: 0 1.25rem; margin-bottom: 1.6rem;
}
.pfx-m-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pfx-hairline); border: none; padding: 0; cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.pfx-m-dot.is-on { background: var(--teal); width: 24px; border-radius: 100px; }

.pfx-m-cta {
  position: relative; z-index: 1; text-align: center;
  padding: 0.4rem 1.25rem 90px;       /* clears the floating chat bubble */
}
.pfx-m-cta-line {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.3px; line-height: 1.3;
  color: var(--black); margin-bottom: 0.85rem;
}
.pfx-m-cta-line span { color: var(--teal); }
.pfx-m-cta-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: none; border: none; cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.2px;
  color: var(--blue);
  padding: 0.45rem 0;
  position: relative;
}
.pfx-m-cta-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0.25); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.pfx-m-cta-link:active::after,
.pfx-m-cta-link:hover::after { transform: scaleX(1); }
.pfx-m-cta-arrow {
  display: inline-block; color: var(--teal); font-weight: 700;
  transition: transform 0.25s ease;
}
.pfx-m-cta-link:hover .pfx-m-cta-arrow,
.pfx-m-cta-link:active .pfx-m-cta-arrow { transform: translateX(4px); }

/* "find me here" pulse on the existing chat bubble, fired by CTA */
@keyframes pfxSmcbPing {
  0%   { box-shadow: 0 0 0 0   rgba(0, 168, 150, 0.55), 0 0 0 0   rgba(0, 168, 150, 0.35); }
  70%  { box-shadow: 0 0 0 18px rgba(0, 168, 150, 0),    0 0 0 32px rgba(0, 168, 150, 0); }
  100% { box-shadow: 0 0 0 0   rgba(0, 168, 150, 0),    0 0 0 0   rgba(0, 168, 150, 0); }
}
.smcb-bubble.pfx-pinging {
  animation: pfxSmcbPing 1.1s ease-out 2;
  border-radius: 50%;
}

/* ════════════════════════════════
   SECTION SHARED
════════════════════════════════ */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--teal);
}
.section-eyebrow.light {
  color: rgba(0, 168, 150, 0.8);
}
.section-eyebrow.light::before {
  background: rgba(0, 168, 150, 0.8);
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}
.section-title.on-dark {
  color: var(--white);
}

.section-desc {
  font-size: 1rem;
  color: #3d6882;
  line-height: 1.8;
  max-width: 560px;
}
.section-desc.on-dark {
  color: rgba(255, 255, 255, 0.45);
}

/* ════════════════════════════════
   SERVICES
════════════════════════════════ */
.services-section {
  background: var(--off-white);
  padding: 8rem 5rem;
}
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

/* Tabs — Card Selector Style */
.services-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
  border-bottom: none;
  width: 100%;
}
.services-tab {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  border: 1.5px solid var(--blue-border);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  background: #fff;
  transition: all 0.22s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.services-tab::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.services-tab:hover {
  border-color: rgba(31, 78, 138, 0.45);
  box-shadow: 0 6px 24px rgba(31, 78, 138, 0.1);
}
.services-tab:hover::before {
  transform: scaleX(1);
}
.services-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 28px rgba(31, 78, 138, 0.3);
}
.services-tab.active::before {
  display: none;
}
.tab-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  transition: all 0.22s;
}
.services-tab.active .tab-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.tab-text {
  flex: 1;
  min-width: 0;
}
.tab-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 0.25rem;
  transition: color 0.22s;
}
.services-tab.active .tab-label {
  color: #fff;
}
.tab-desc {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 400;
  font-family: "Inter", sans-serif;
  transition: color 0.22s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.services-tab.active .tab-desc {
  color: rgba(255, 255, 255, 0.7);
}
.tab-count {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 100px;
  padding: 0.2rem 0.55rem;
  align-self: flex-start;
  flex-shrink: 0;
  transition: all 0.22s;
}
.services-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Service cards */
.services-panel {
  display: none;
}
.services-panel.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.services-panel.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: 4px;
  padding: 2rem;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  transition: width 0.3s;
}
.service-card:hover {
  border-color: rgba(31, 78, 138, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(31, 78, 138, 0.1);
}
.service-card:hover::after {
  width: 100%;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  color: var(--teal);
}
.service-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.2px;
}
.service-desc {
  font-size: 0.85rem;
  color: #5a8eaa;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.service-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.service-link:hover {
  gap: 0.75rem;
}

/* ════════════════════════════════
   PROCESS / STEPS
════════════════════════════════ */
.process-section {
  background: #ffffff;
  padding: 8rem 5rem;
  border-top: 1px solid rgba(31, 78, 138, 0.08);
  border-bottom: 1px solid rgba(31, 78, 138, 0.08);
}
.process-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
}
/* Override on-dark colours since background is now white */
.process-section .section-title.on-dark {
  color: var(--black);
}
.process-section .section-desc.on-dark {
  color: #4a6a82;
}
.process-section .section-eyebrow.light {
  color: var(--teal);
}
.process-section .section-eyebrow.light::before {
  background: var(--teal);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(31, 78, 138, 0.12);
}
.process-step {
  padding: 3rem 2.5rem 3rem 0;
  border-right: 1px solid rgba(31, 78, 138, 0.12);
  transition: background 0.2s;
}
.process-step:last-child {
  border-right: none;
  padding-right: 0;
}
.process-step:first-child {
  padding-left: 0;
}
.process-step:not(:first-child) {
  padding-left: 2.5rem;
}
.process-step:hover {
  background: rgba(31, 78, 138, 0.03);
}

.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(31, 78, 138, 0.07);
  line-height: 1;
  margin-bottom: -1.2rem;
  letter-spacing: -4px;
}
.step-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.step-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.step-body {
  font-size: 0.88rem;
  color: #4a6a82;
  line-height: 1.85;
}

/* ════════════════════════════════
   WHY CHOOSE US
════════════════════════════════ */
.why-section {
  background-color: var(--light-bg);
  padding: 8rem 5rem;
  position: relative;
}
.why-section::before {
  display: none;
}
.why-section .why-grid {
  position: relative;
  z-index: 1;
}

/* Left column eyebrow — keep teal as user requested */
.why-section .section-eyebrow {
  color: var(--teal);
}
.why-section .section-eyebrow::before {
  background: var(--teal);
}

/* Left column heading — dark navy on light bg */
.why-section .section-title {
  color: var(--black);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.why-body {
  font-size: 0.97rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 2rem;
}
.why-quote {
  border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  background: rgba(0, 168, 150, 0.07);
  border-radius: 0 4px 4px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.5;
}
.why-list {
  border-top: 1px solid rgba(9, 22, 40, 0.1);
  margin-top: 3rem;
}
.why-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.4rem 1rem;
  border-bottom: 1px solid rgba(9, 22, 40, 0.07);
  background-color: #ffffff;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(9, 22, 40, 0.05);
}
.why-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 168, 150, 0.08);
  border: 1px solid rgba(0, 168, 150, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}
.why-item-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.3rem;
}
.why-item-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Button hover — keep text colour unchanged */
.painfix-cta .btn-primary:hover {
  color: #fff !important;
}

/* ════════════════════════════════
   CTA SECTION
════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, #091628 0%, #1f4e8a 45%, #028090 100%);
  padding: 9rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "SAMANVI";
  position: absolute;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22vw;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.025);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  letter-spacing: -5px;
  pointer-events: none;
}
.cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0, 168, 150, 0.8);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.cta-eyebrow::before,
.cta-eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(0, 168, 150, 0.5);
}
.cta-headline {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}
.cta-headline span {
  color: var(--teal);
}
.cta-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 auto 3.5rem;
  max-width: 420px;
  line-height: 1.8;
}
.cta-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
  margin-top: 2rem;
}
.cta-phone svg {
  color: var(--teal);
}

/* ════════════════════════════════
   GSAP ANIMATION STATES
════════════════════════════════ */
.gsap-fade-up {
  opacity: 0;
  transform: translateY(40px);
}
.gsap-fade-left {
  opacity: 0;
  transform: translateX(-40px);
}
.gsap-fade-right {
  opacity: 0;
  transform: translateX(40px);
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1200px) {
  .services-panel.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    height: calc(100vh - var(--header-h, 70px));
    height: calc(100dvh - var(--header-h, 70px));
    min-height: 600px;
  }
  .hero-dashboard {
    display: none;
  }
  .hero-content {
    /* reduced from 9rem top / 5rem bottom — content now fits within 100dvh */
    padding: 5rem 2.5rem 3.5rem;
  }
  .painfix {
    padding: 5rem 2.5rem;
  }
  .pf-grid {
    grid-template-columns: 1fr;
  }
  .services-section,
  .process-section,
  .why-section,
  .cta-section {
    padding: 5rem 2.5rem;
  }
  .services-header,
  .process-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .services-tabs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .services-panel.active,
  .services-panel.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-step {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 2.5rem 0;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .hero-content {
    /* top: clears header; bottom: clears 44px ticker with breathing room */
    padding: 1.5rem 1.5rem 3.5rem;
  }
  .hero-headline {
    letter-spacing: -1px;
  }
  .services-panel.active,
  .services-panel.cols-4 {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* All steps get identical padding — override the desktop
     first-child/not-first-child asymmetry.
     border-right becomes irrelevant when stacked; use border-bottom instead. */
  .process-step,
  .process-step:first-child,
  .process-step:not(:first-child),
  .process-step:last-child {
    padding: 2rem 1.25rem !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(31, 78, 138, 0.12);
  }
  .process-step:last-child {
    border-bottom: none !important;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn-ghost {
    padding: 0.5rem 1rem;
  }
  .hero-body {
    margin-bottom: 1.2rem;
  }
  .painfix,
  .services-section,
  .process-section,
  .why-section,
  .cta-section {
    padding: 4rem 1.5rem;
  }
}

/* ════════════════════════════════════════════════════════════
   WHAT WE DO — BENTO GRID (replaces .services-section)
════════════════════════════════════════════════════════════ */
.wd-section {
  --teal-light: #5ee0c4;
  --radius-card: 20px;
  position: relative;
  padding: 120px 50px;
  background: var(--light-bg);
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.wd-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 168, 150, 0.06), transparent 35%),
    radial-gradient(circle at 5% 95%, rgba(31, 78, 138, 0.07), transparent 40%);
  pointer-events: none;
}
.wd-section .wd-inner { position: relative; max-width: 1280px; margin: 0 auto; }
.wd-section a { text-decoration: none; color: inherit; }

/* Header */
.wd-header {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}
.wd-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--teal);
}
.wd-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 8px var(--teal);
}
.wd-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700; letter-spacing: -2px;
  line-height: 1.05;
  margin: 18px 0 0;
  color: var(--black);
}
.wd-title .accent {
  color: transparent;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}
.wd-desc {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.65;
  max-width: 480px;
  margin: 0;
}

/* Bento grid */
.wd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
  perspective: 1400px;
}
.wd-card.size-2x2 { grid-column: span 2; grid-row: span 2; }
.wd-card.size-1x2 { grid-column: span 1; grid-row: span 2; }

/* Card base */
.wd-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(9, 22, 40, 0.06);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform .04s ease,
              box-shadow .04s ease,
              border-color .03s ease;
  will-change: transform;
}
.wd-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 168, 150, 0.04) 100%);
  opacity: 0; transition: opacity .04s ease;
  pointer-events: none;
}
.wd-card::after {
  content: ""; position: absolute; top: -50%; right: -50%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 150, 0.18), transparent 70%);
  filter: blur(40px);
  opacity: 0; transition: opacity .05s ease;
  pointer-events: none;
}
.wd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(9, 22, 40, 0.10);
  border-color: rgba(0, 168, 150, 0.25);
}
.wd-card:hover::before { opacity: 1; }
.wd-card:hover::after  { opacity: 1; }

/* Head: icon + title side by side */
.wd-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: auto;
}

/* Icon */
.wd-icon {
  position: relative;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0, 168, 150, 0.10), rgba(31, 78, 138, 0.08));
  border: 1px solid rgba(0, 168, 150, 0.18);
  color: var(--teal);
  transition: transform .05s ease,
              background .04s ease, color .03s ease;
}
.wd-card:hover .wd-icon {
  transform: rotate(-6deg) scale(1.08);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--white);
}
.wd-icon svg { width: 24px; height: 24px; }

/* Card content */
.wd-card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin-top: 20px;
  min-height: 0;
}
.wd-card-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--black);
  margin: 0;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
.wd-card-desc {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.6;
  margin: 0 0 16px;
  min-width: 0;
  overflow-wrap: break-word;
}
.wd-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  align-self: flex-start;
  max-width: 100%;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--teal);
  margin-top: auto;
  padding-top: 6px;
  position: relative;
  z-index: 2;
  line-height: 1.4;
  transition: transform .03s ease;
}
.wd-card-link svg { flex-shrink: 0; transition: transform .03s ease; }
.wd-card:hover .wd-card-link svg { transform: translateX(4px); }

/* Featured 2x2 — AI Tools */
.wd-card.size-2x2 {
  background: linear-gradient(135deg, #091628 0%, #0d2040 60%, #174060 100%);
  color: var(--white);
  border-color: transparent;
  padding: 36px;
}
.wd-card.size-2x2::before {
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 168, 150, 0.22), transparent 40%),
    radial-gradient(circle at 5% 95%, rgba(31, 78, 138, 0.4), transparent 50%);
  opacity: 1;
}
.wd-card.size-2x2::after {
  background: radial-gradient(circle, rgba(0, 168, 150, 0.4), transparent 70%);
  opacity: 0.5;
  top: -30%; right: -20%;
  width: 300px; height: 300px;
}
.wd-card.size-2x2:hover::after { opacity: 0.8; }
.wd-card.size-2x2 .wd-tag {
  position: absolute; top: 24px; right: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 168, 150, 0.45);
  border-radius: 999px;
  background: rgba(0, 168, 150, 0.12);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--teal-light);
  z-index: 3;
}
.wd-card.size-2x2 .wd-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-light); box-shadow: 0 0 8px var(--teal-light);
  animation: wdPulse 2s ease-in-out infinite;
}
@keyframes wdPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.5; }
}

/* Featured card — no icon, title lower */
.wd-card.size-2x2 .wd-card-head {
  margin-bottom: auto;
  margin-top: 0;
  padding-top: 10%;
}
.wd-card.size-2x2 .wd-card-name {
  font-size: 2rem;
  color: var(--white);
  max-width: 420px;
  letter-spacing: -1px;
  line-height: 1.1;
}
.wd-card.size-2x2 .wd-card-content { margin-top: 32px; }
.wd-card.size-2x2 .wd-card-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  max-width: 420px;
}
.wd-card.size-2x2 .wd-card-link {
  color: var(--teal-light);
  font-size: 0.8rem;
}

/* AI orbital visual + centre monogram */
.wd-ai-visual {
  position: absolute;
  bottom: -40px; right: -40px;
  width: 280px; height: 280px;
  opacity: 0.7;
  pointer-events: none;
}
/* Hero section override — top-right of hero-content */
.hero-content .wd-ai-visual {
  top: 0; right: -9rem; bottom: auto;
  width: 150px; height: 150px;
  opacity: 0.45;
}
.hero-content .wd-ai-visual .node { fill: #5ee0c4; }
@media (max-width: 768px) {
  .hero-content .wd-ai-visual { right: 0; }
}
.wd-ai-visual circle {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1;
  opacity: 0.3;
  transform-origin: center;
  animation: wdOrbit 18s linear infinite;
}
.wd-ai-visual circle:nth-child(2) { animation-duration: 24s; animation-direction: reverse; }
.wd-ai-visual circle:nth-child(3) { animation-duration: 30s; }
.wd-ai-mark {
  opacity: 0.95;
  filter: drop-shadow(0 0 14px rgba(0, 168, 150, 0.55));
  transform-box: view-box;
  transform-origin: 140px 140px;
  animation: wdMarkBreath 4.5s ease-in-out infinite;
}
@keyframes wdMarkBreath {
  0%, 100% { transform: scale(1);    opacity: 0.95; }
  50%      { transform: scale(1.06); opacity: 1;    }
}
.wd-ai-visual .node {
  fill: var(--teal-light);
  stroke: none;
  opacity: 0.8;
  transform-box: view-box;
  transform-origin: 140px 140px;
  animation:
    wdNodeOrbitOuter 22s linear infinite,
    wdNodeBlink 3s ease-in-out infinite;
}
.wd-ai-visual .node:nth-child(4) {
  animation:
    wdNodeOrbitOuter 22s linear infinite,
    wdNodeBlink 3s ease-in-out infinite;
}
.wd-ai-visual .node:nth-child(5) {
  animation:
    wdNodeOrbitMiddle 18s linear infinite reverse,
    wdNodeBlink 3s ease-in-out 0.5s infinite;
}
.wd-ai-visual .node:nth-child(6) {
  animation:
    wdNodeOrbitMiddle 18s linear infinite reverse,
    wdNodeBlink 3s ease-in-out 1s infinite;
}
.wd-ai-visual .node:nth-child(7) {
  animation:
    wdNodeOrbitMiddle 18s linear infinite reverse,
    wdNodeBlink 3s ease-in-out 1.5s infinite;
}
@keyframes wdOrbit { to { transform: rotate(360deg); } }
@keyframes wdNodeOrbitOuter  { to { transform: rotate(360deg); } }
@keyframes wdNodeOrbitMiddle { to { transform: rotate(360deg); } }
@keyframes wdNodeBlink {
  0%, 100% { opacity: 0.4; r: 2; }
  50%      { opacity: 1;   r: 4; }
}

/* Mobile tall card — real phone image, shifted ~20% to the left */
.wd-card.size-1x2 {
  background: linear-gradient(160deg, var(--white) 0%, #dff0f4 100%);
  padding-right: 28px;
}
.wd-card.size-1x2 .wd-icon {
  background: linear-gradient(135deg, rgba(31, 78, 138, 0.12), rgba(0, 168, 150, 0.10));
}
.wd-card.size-1x2 .wd-card-content { max-width: 220px; }
.wd-mobile-visual {
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 150px;
  height: 220px;
  border-radius: 22px;
  background:
    url('https://images.unsplash.com/photo-1592899677977-9c10ca588bbd?auto=format&fit=crop&w=400&q=80') center/cover no-repeat,
    linear-gradient(160deg, #091628, #174060);
  border: 7px solid #091628;
  box-shadow: 0 18px 40px rgba(9, 22, 40, 0.28);
  overflow: hidden;
  transform: rotate(8deg);
  transition: transform .05s ease;
  pointer-events: none;
}
.wd-card.size-1x2:hover .wd-mobile-visual {
  transform: rotate(4deg) translateY(-10px) translateX(-6px);
}
.wd-mobile-visual::before {
  content: ""; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 44px; height: 5px;
  background: #091628;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

/* Digital Marketing — inline mini chart */
.wd-card.has-chart {
  background: linear-gradient(160deg, var(--white) 0%, #e8f3f6 100%);
}
.wd-mini-chart { width: 100%; height: 40px; margin-bottom: 14px; }
.wd-mini-chart path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.wd-card.has-chart:hover .wd-mini-chart path { stroke-dashoffset: 0; }
.wd-mini-chart-area {
  fill: url(#wdChartGrad);
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}
.wd-card.has-chart:hover .wd-mini-chart-area { opacity: 0.5; }

/* Hover-driven icon micro-animations */
.wd-card:hover .icn-bounce { animation: wdBounce 0.6s ease; }
.wd-card:hover .icn-spin   { animation: wdSpin 0.8s ease; }
.wd-card:hover .icn-pulse  { animation: wdIconPulse 1s ease infinite; }
.wd-card:hover .icn-draw   { stroke-dasharray: 100; stroke-dashoffset: 100; animation: wdDraw 1s ease forwards; }
@keyframes wdBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes wdSpin   { to { transform: rotate(360deg); } }
@keyframes wdDraw   { to { stroke-dashoffset: 0; } }
@keyframes wdIconPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.7; } }

/* ─── LOAD / SCROLL-REVEAL (Apple-style) ─── */
.wd-eyebrow { opacity: 0; transform: translateY(8px); transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.wd-section.is-in-view .wd-eyebrow { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }

.wd-title {
  -webkit-mask: linear-gradient(180deg, #000 100%, transparent 100%);
          mask: linear-gradient(180deg, #000 100%, transparent 100%);
}
.wd-section.is-in-view .wd-title {
  animation: wdMaskReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
@keyframes wdMaskReveal {
  from { -webkit-mask-position: 0 -100%; mask-position: 0 -100%; }
  to   { -webkit-mask-position: 0 0;     mask-position: 0 0; }
}
@supports not (mask: linear-gradient(black, black)) {
  .wd-title { opacity: 0; transform: translateY(20px); }
  .wd-section.is-in-view .wd-title {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.8s ease 0.15s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
  }
}

.wd-desc { opacity: 0; transform: translateY(12px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.wd-section.is-in-view .wd-desc { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }

/* Cards slide in from different directions, staggered */
.wd-card {
  opacity: 0;
  filter: blur(6px);
  transition:
    opacity 0.9s ease,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s ease,
    box-shadow .04s ease,
    border-color .03s ease;
}
.wd-card:nth-child(1) { transform: translate3d(-140px,  20px, 0) scale(.92); }
.wd-card:nth-child(2) { transform: translate3d( 140px, -20px, 0) scale(.92); }
.wd-card:nth-child(3) { transform: translate3d(   0px,-120px, 0) scale(.9);  }
.wd-card:nth-child(4) { transform: translate3d(  90px,  60px, 0) scale(.9);  }
.wd-card:nth-child(5) { transform: translate3d( -90px,  90px, 0) scale(.9);  }
.wd-card:nth-child(6) { transform: translate3d(   0px, 110px, 0) scale(.9);  }
.wd-card:nth-child(7) { transform: translate3d( 110px,   0px, 0) scale(.9);  }
.wd-card:nth-child(8) { transform: translate3d( -80px, -90px, 0) scale(.9);  }
.wd-section.is-in-view .wd-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
.wd-section.is-in-view .wd-card:nth-child(1) { transition-delay: 0.30s; transition-duration: 0.9s, 1.2s, 0.8s, .04s, .03s; }
.wd-section.is-in-view .wd-card:nth-child(2) { transition-delay: 0.52s; }
.wd-section.is-in-view .wd-card:nth-child(3) { transition-delay: 0.74s; }
.wd-section.is-in-view .wd-card:nth-child(4) { transition-delay: 0.96s; }
.wd-section.is-in-view .wd-card:nth-child(5) { transition-delay: 1.18s; }
.wd-section.is-in-view .wd-card:nth-child(6) { transition-delay: 1.40s; }
.wd-section.is-in-view .wd-card:nth-child(7) { transition-delay: 1.62s; }
.wd-section.is-in-view .wd-card:nth-child(8) { transition-delay: 1.84s; }

.wd-card .wd-icon {
  opacity: 0;
  transform: scale(0.6) rotate(-12deg);
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              background .04s ease, color .03s ease;
}
.wd-section.is-in-view .wd-card .wd-icon { opacity: 1; transform: scale(1) rotate(0); }
.wd-section.is-in-view .wd-card:nth-child(1) .wd-icon { transition-delay: 0.95s; }
.wd-section.is-in-view .wd-card:nth-child(2) .wd-icon { transition-delay: 1.17s; }
.wd-section.is-in-view .wd-card:nth-child(3) .wd-icon { transition-delay: 1.39s; }
.wd-section.is-in-view .wd-card:nth-child(4) .wd-icon { transition-delay: 1.61s; }
.wd-section.is-in-view .wd-card:nth-child(5) .wd-icon { transition-delay: 1.83s; }
.wd-section.is-in-view .wd-card:nth-child(6) .wd-icon { transition-delay: 2.05s; }
.wd-section.is-in-view .wd-card:nth-child(7) .wd-icon { transition-delay: 2.27s; }
.wd-section.is-in-view .wd-card:nth-child(8) .wd-icon { transition-delay: 2.49s; }

.wd-card.size-2x2 .wd-ai-visual { opacity: 0; transition: opacity 1.4s ease; }
.wd-section.is-in-view .wd-card.size-2x2 .wd-ai-visual { opacity: 0.7; transition-delay: 1s; }

.wd-card.size-2x2 .wd-card-head {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.wd-section.is-in-view .wd-card.size-2x2 .wd-card-head {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.95s;
}

.wd-mobile-visual {
  opacity: 0;
  transform: rotate(20deg) translateY(60px);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.wd-section.is-in-view .wd-mobile-visual {
  opacity: 1;
  transform: rotate(8deg) translateY(0);
  transition-delay: 1.4s;
}

.wd-card.size-2x2 .wd-tag {
  opacity: 0;
  transition: opacity .6s ease;
  animation: wdTagFloat 3s ease-in-out infinite;
  animation-play-state: paused;
}
.wd-section.is-in-view .wd-card.size-2x2 .wd-tag {
  opacity: 1;
  transition-delay: 1.1s;
  animation-play-state: running;
  animation-delay: 1.1s;
}
@keyframes wdTagFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .wd-eyebrow, .wd-title, .wd-desc,
  .wd-card, .wd-card .wd-icon,
  .wd-card.size-2x2 .wd-ai-visual,
  .wd-mobile-visual,
  .wd-card.size-2x2 .wd-tag {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
    -webkit-mask: none !important;
            mask: none !important;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .wd-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(200px, auto); }
  .wd-card.size-2x2 { grid-column: span 2; grid-row: span 2; }
  .wd-card.size-1x2 { grid-column: span 1; grid-row: span 2; }
  .wd-card-link { font-size: 0.7rem; letter-spacing: 0.6px; }
}
@media (max-width: 768px) {
  .wd-section { padding: 80px 28px; }
  .wd-header { grid-template-columns: 1fr; gap: 20px; align-items: start; margin-bottom: 40px; }
  .wd-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 14px; }
  .wd-card { padding: 22px; min-height: 180px; }
  .wd-card.size-2x2 { grid-column: span 2; grid-row: auto; padding: 28px; min-height: 280px; }
  .wd-card.size-2x2 .wd-card-name { font-size: 1.4rem; }
  .wd-card.size-1x2 { grid-column: span 1; grid-row: auto; min-height: 320px; padding-right: 22px; }
  .wd-card.size-1x2 .wd-card-content { max-width: 180px; }
  .wd-mobile-visual { width: 130px; height: 200px; right: 8px; }
  .wd-card-name { font-size: 1rem; }
}
@media (max-width: 500px) {
  .wd-section { padding: 64px 20px; }
  .wd-grid { grid-template-columns: 1fr; gap: 14px; }
  .wd-card,
  .wd-card.size-2x2,
  .wd-card.size-1x2 { grid-column: span 1; grid-row: auto; }
  .wd-card { padding: 20px; }
  .wd-card-head { gap: 12px; }
  .wd-card-link { font-size: 0.68rem; letter-spacing: 0.4px; gap: 5px; }
  .wd-card.size-2x2 .wd-card-name { font-size: 1.3rem; }
}


/* ════════════════════════════════════════════════════════════════
   MOBILE CAROUSELS — WD / Portfolio / Testimonials / Blog
   Below 900px the bento/grid layouts are hidden and each section
   becomes a horizontal snap-scroll rail, matching the painfix
   mobile pattern. CTAs in carousel cards still link to their
   original destinations (no chat trigger here — that's painfix only).
════════════════════════════════════════════════════════════════ */

/* desktop/mobile swap */
.wd-mobile { display: none; }

@media (max-width: 900px) {
  .wd-section { display: none !important; }

  .wd-mobile { display: block; }
}

/* ─── shared tokens for these mobile carousels ─── */
.m-sec {
  --m-teal-soft: #e6f7f5;
  --m-navy-deep: #0f2a52;
  --m-hairline: var(--blue-border);
  --m-grid: rgba(31, 78, 138, 0.06);
  --m-grid-on-dark: rgba(255, 255, 255, 0.05);
}

/* ─── section frame ─── */
.m-sec {
  position: relative;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}
.m-sec--light {
  background: #fff;
  background-image: radial-gradient(var(--m-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.m-sec--off {
  background: #f7fafc;
  background-image: radial-gradient(var(--m-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.m-sec--dark {
  background: linear-gradient(160deg, #091628 0%, #0f2a52 100%);
  color: #fff;
  background-image:
    radial-gradient(var(--m-grid-on-dark) 1px, transparent 1px),
    linear-gradient(160deg, #091628 0%, #0f2a52 100%);
  background-size: 24px 24px, auto;
}
.m-sec::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 0%, var(--m-fade, #fff) 92%);
}
.m-sec--off::before  { --m-fade: #f7fafc; }
.m-sec--dark::before { --m-fade: #0f2a52; }

/* ─── intro ─── */
.m-intro { position: relative; z-index: 1; padding: 0 1.25rem; margin-bottom: 1.3rem; }
.m-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.8rem;
}
.m-eyebrow::before {
  content: ""; width: 20px; height: 1px; background: var(--teal); opacity: 0.6;
}
.m-sec--dark .m-eyebrow { color: #00d3bd; }
.m-sec--dark .m-eyebrow::before { background: #00d3bd; }
.m-h {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem; font-weight: 700; line-height: 1.1; letter-spacing: -1px;
  color: var(--black); margin-bottom: 0.65rem;
}
.m-sec--dark .m-h { color: #fff; }
.m-h em { font-style: normal; color: var(--teal); position: relative; }
.m-h em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 5px;
  background: var(--teal); opacity: 0.16; border-radius: 3px;
}
.m-sub { font-size: 0.88rem; color: #6a8fa5; line-height: 1.6; }
.m-sec--dark .m-sub { color: rgba(255, 255, 255, 0.55); }

/* ─── progress row ─── */
.m-prog {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; margin-bottom: 0.85rem;
  font-family: "Inter", sans-serif;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: #6a8fa5;
}
.m-sec--dark .m-prog { color: rgba(255, 255, 255, 0.5); }
.m-prog-label strong { color: var(--black); font-weight: 700; }
.m-sec--dark .m-prog-label strong { color: #fff; }
.m-prog-track { display: flex; gap: 5px; }
.m-prog-seg {
  width: 18px; height: 3px; border-radius: 3px;
  background: var(--m-hairline); transition: background 0.35s ease;
}
.m-sec--dark .m-prog-seg { background: rgba(255, 255, 255, 0.15); }
.m-prog-seg.is-on { background: var(--teal); }
.m-prog-seg.is-done { background: var(--blue); }
.m-sec--dark .m-prog-seg.is-done { background: #fff; }

/* ─── swipe hint ─── */
.m-hint {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.58rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: #6a8fa5;
  margin-bottom: 0.4rem;
  transition: opacity 0.4s ease;
}
.m-sec--dark .m-hint { color: rgba(255, 255, 255, 0.4); }
.m-hint.is-hidden { opacity: 0; }
.m-hint-arrow {
  display: inline-block; width: 16px; height: 1px;
  background: var(--teal); position: relative;
  animation: mHintNudge 1.4s ease-in-out infinite;
}
.m-hint-arrow::after {
  content: ""; position: absolute; right: -1px; top: -3px;
  width: 5px; height: 5px;
  border-top: 1px solid var(--teal); border-right: 1px solid var(--teal);
  transform: rotate(45deg);
}
@keyframes mHintNudge {
  0%, 100% { transform: translateX(-3px); opacity: 0.5; }
  50%      { transform: translateX(3px);  opacity: 1; }
}

/* ─── rail ─── */
.m-rail {
  position: relative; z-index: 1;
  display: flex; gap: 0.9rem;
  padding: 0.75rem 1.25rem 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.m-rail::-webkit-scrollbar { display: none; }

.m-card {
  flex: 0 0 86%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: #fff;
  border: 1px solid var(--m-hairline);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(9, 22, 40, 0.07);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.4s ease;
}
.m-card.is-feature { flex: 0 0 92%; }
.m-card.is-on { box-shadow: 0 26px 56px rgba(31, 78, 138, 0.14); }
.m-sec--dark .m-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ─── dots ─── */
.m-dots {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 0.5rem;
  padding: 0 1.25rem;
}
.m-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--m-hairline); border: none; padding: 0; cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.m-sec--dark .m-dot { background: rgba(255, 255, 255, 0.15); }
.m-dot.is-on { background: var(--teal); width: 22px; border-radius: 100px; }


/* ════ 1) WD-MOBILE — service cards ════ */
.wd-m-card { padding: 1.4rem 1.3rem 1.3rem; display: block; text-decoration: none; }
.wd-m-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 168, 150, 0.12), rgba(31, 78, 138, 0.08));
  border: 1px solid var(--m-hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  margin-bottom: 1rem;
}
.wd-m-icon svg { width: 24px; height: 24px; }
.wd-m-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.3px; line-height: 1.25;
  color: var(--black); margin-bottom: 0.55rem;
}
.wd-m-desc { font-size: 0.85rem; color: #6a8fa5; line-height: 1.65; margin-bottom: 1rem; }
.wd-m-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: "Inter", sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2px;
  color: var(--teal); text-decoration: none;
}
.wd-m-link svg { width: 12px; height: 12px; transition: transform 0.25s ease; }
.wd-m-card:active .wd-m-link svg { transform: translateX(3px); }

/* flagship card */
.wd-m-card--flag {
  background: linear-gradient(165deg, #0f2a52 0%, #1f4e8a 60%, #028090 110%);
  color: #fff; border-color: transparent;
  padding: 1.6rem 1.4rem 1.4rem;
  position: relative; overflow: hidden;
}
.wd-m-card--flag::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 168, 150, 0.35) 0%, transparent 50%);
  pointer-events: none;
}
.wd-m-flag-badge {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: "Inter", sans-serif;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: #00d3bd;
  padding: 0.3rem 0.7rem;
  background: rgba(0, 211, 189, 0.12);
  border: 1px solid rgba(0, 211, 189, 0.3);
  border-radius: 100px; margin-bottom: 1rem;
}
.wd-m-flag-badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: #00d3bd;
  box-shadow: 0 0 0 3px rgba(0, 211, 189, 0.2);
}
.wd-m-orbit { position: relative; z-index: 1; width: 90px; height: 90px; margin-bottom: 1rem; }
.wd-m-orbit svg { width: 100%; height: 100%; }
.wd-m-orbit .ring { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
/* logo mark in mobile orbit */
.wd-m-orbit-mark {
  opacity: 0.95;
  filter: drop-shadow(0 0 8px rgba(0, 211, 189, 0.55));
  transform-box: view-box;
  transform-origin: 50px 50px;
  animation: wdMOrbitMarkBreath 4.5s ease-in-out infinite;
}
@keyframes wdMOrbitMarkBreath {
  0%, 100% { transform: scale(1);    opacity: 0.95; }
  50%      { transform: scale(1.06); opacity: 1;    }
}
/* nodes orbit around SVG centre (50, 50) */
.wd-m-orbit .node {
  fill: #00d3bd;
  transform-box: view-box;
  transform-origin: 50px 50px;
  animation: wdMNodeOrbit 22s linear infinite, wdMNodeBlink 3s ease-in-out infinite;
}
.wd-m-orbit .node:nth-of-type(6) { animation: wdMNodeOrbit 22s linear infinite,         wdMNodeBlink 3s ease-in-out       infinite; }
.wd-m-orbit .node:nth-of-type(7) { animation: wdMNodeOrbit 18s linear infinite reverse, wdMNodeBlink 3s ease-in-out 0.5s  infinite; }
.wd-m-orbit .node:nth-of-type(8) { animation: wdMNodeOrbit 18s linear infinite reverse, wdMNodeBlink 3s ease-in-out 1s    infinite; }
@keyframes wdMNodeOrbit { to { transform: rotate(360deg); } }
@keyframes wdMNodeBlink {
  0%, 100% { opacity: 0.4; r: 1.5; }
  50%      { opacity: 1;   r: 3;   }
}
.wd-m-orbit .mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #00a896, #028090);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: "Space Grotesk", sans-serif; font-weight: 700;
}
.wd-m-card--flag .wd-m-name { color: #fff; font-size: 1.3rem; }
.wd-m-card--flag .wd-m-desc { color: rgba(255, 255, 255, 0.7); }
.wd-m-card--flag .wd-m-link { color: #00d3bd; }

/* mini chart on Digital Marketing card */
.wd-m-mini-chart { width: 100%; height: 34px; margin: 0.2rem 0 0.9rem; }
.wd-m-mini-chart path { fill: none; stroke: var(--teal); stroke-width: 1.6; }



/* ════════════════════════════════════════════════════════════════
   MOBILE SECTION ORDER
   Pure CSS reorder — desktop DOM order is unchanged.
   On ≤ 900 px the wrapper becomes a flex column and each section
   gets an explicit order value.

   Desired mobile order:
     1  Hero
     2  Painfix
     3  Process
     4  What We Do
     5  Why Samanvi
     6  Testimonials
   The marquee-band is hidden on mobile (not in the desired list).
════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* ── Flex column on the wrapper so `order` takes effect ──
     NOTE: body class `page-template-page-templates-template-home-php`
     never matches — WordPress sanitises the `/` in the template path
     by removing it (not replacing with `-`), making the real class
     `page-template-page-templatestemplate-home-php`.
     Using the ID selector directly is more reliable and unique. */
  #home-page-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Hide marquee band on mobile */
  #home-page-wrapper .marquee-band { display: none !important; }

  /* ── Order values — all ≥ 1 so nothing accidentally sorts to the
     front via the CSS default of 0. ── */
  #home-page-wrapper .hero               { order: 1 !important; }

  /* painfix — .pfx-mobile is the mobile version */
  #home-page-wrapper .painfix-v4         { order: 2 !important; }
  #home-page-wrapper .pfx-mobile         { order: 2 !important; }

  /* process moves up above wd */
  #home-page-wrapper .process-section    { order: 3 !important; }

  /* wd — .wd-mobile is the mobile version */
  #home-page-wrapper .wd-section         { order: 4 !important; }
  #home-page-wrapper .wd-mobile          { order: 4 !important; }

  #home-page-wrapper .why-section        { order: 5 !important; }

}
