/* ==========================================================================
   Pathway IT — sections.css
   Stats · Services · Process · Tech · Why · Platform · Cases ·
   Testimonials · Logos · Industries · CTA
   ========================================================================== */

/* ═════════════════════════════════ 1. SERVICES — scroll card stack ════ */
.services { position: relative; background: var(--paper); overflow: clip; }
.services .blob-a {
  width: 640px; height: 640px;
  top: 8%; left: -20%;
  background: radial-gradient(circle, rgba(37, 99, 235, .12), transparent 66%);
}

/* Each card sticks a little lower than the one before, so the previous
   cards stay visible as a stacked edge behind the active one. */
.svc-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: 22vh;
}

.svc-scard {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem + var(--i) * 14px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
  align-items: center;
  min-height: min(560px, 72vh);
  padding: clamp(1.75rem, 3.2vw, 3rem);
  border-radius: var(--r-3xl);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #fff 0%, #fff 55%, var(--paper-2) 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .9), var(--sh-lg);
  overflow: hidden;
  isolation: isolate;
  transform-origin: center top;
  will-change: transform;
}
/* accent wash, unique per service */
.svc-scard::before {
  content: "";
  position: absolute;
  right: -14%; top: -34%;
  width: 62%; aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent);
  opacity: .1;
  filter: blur(70px);
}
/* thin accent rule along the top edge */
.svc-scard::after {
  content: "";
  position: absolute;
  inset-inline: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.sc-body { display: flex; flex-direction: column; align-items: flex-start; }

.sc-num {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.sc-num i { font-style: normal; font-size: .8rem; color: var(--slate-400); }

.sc-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.2rem; }
.sc-ic {
  width: 48px; height: 48px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -8px var(--accent);
}
.sc-ic svg { width: 22px; height: 22px; }
.sc-head h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.sc-sub { font-size: .82rem; color: var(--slate-400); }

.sc-lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin-bottom: .8rem;
}
.sc-desc { font-size: .95rem; color: var(--slate-600); max-width: 34rem; }

.sc-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.35rem; }
.sc-chips li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--slate-600);
}
.sc-chips svg { width: 12px; height: 12px; color: var(--accent); flex: none; }
.sc-body .link-arrow { margin-top: 1.6rem; color: var(--accent); }

.sc-art {
  position: relative;
  border-radius: var(--r-2xl);
  background: radial-gradient(120% 100% at 12% 0%, #fff, var(--paper-2) 70%, var(--paper-3));
  border: 1px solid var(--line-2);
  padding: clamp(1rem, 2.2vw, 1.85rem);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sc-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 18, 32, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 18, 32, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 45%, #000, transparent 74%);
}
.sc-art svg { position: relative; width: 100%; height: auto; }

@media (max-width: 980px) {
  .svc-scard {
    grid-template-columns: 1fr;
    min-height: 0;
    /* stop sticking on small screens — a stack of tall cards is unusable */
    position: relative;
    top: auto;
  }
  .sc-art { order: -1; }
  .svc-stack { padding-bottom: 0; }
}


/* ══════════════════════════════════════════ CLIENTS — logo marquee ════ */
.clients {
  position: relative;
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
}
.clients-kicker {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 1.9rem;
}

/* real logo files land here — see CLIENTS in data.js */
.client-logo img {
  height: clamp(26px, 3vw, 38px);
  width: auto;
  max-width: 175px;
  object-fit: contain;
}

/* ═══════════════ PROCESS — pinned horizontal, Canopy-style ═══════════ */
/* Measured from the reference: bg #0D0E14, mono label 14px/1.4px tracking
   at rgba(197,197,197,.8), two-line heading with the 2nd line at 40% white,
   copy 30px/36px, body 18px/26px, gradient panels at 1.42:1.
   NOTE: .process must not have an overflow value — ScrollTrigger pins
   .pr-pin as position:fixed and an overflow context would clip it. */
.process {
  position: relative;
  background: #0D0E14;
  padding-block: 0;
}

.pr-pin {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(3rem, 7vw, 6.5rem);
  padding-block: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

/* ── centred head, stays put while the row travels ──────────────────── */
.pr-head { text-align: center; padding-inline: var(--gutter); }
.pr-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(197, 197, 197, .8);
  margin-bottom: 1.5rem;
}
.pr-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3.3rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: #fff;
}
.pr-title span { display: block; }
.pr-title .dim { color: rgba(255, 255, 255, .4); }

/* ── the horizontal row ─────────────────────────────────────────────── */
.pr-viewport { position: relative; overflow: hidden; }
.pr-track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}

/* gradient panel with the shot floating inside */
.pr-card {
  flex: none;
  margin: 0;
  width: min(500px, 76vw);
  aspect-ratio: 1.42 / 1;
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  overflow: hidden;
}
/* five gradients, all inside the indigo → sky → violet family */
.pr-card[style*="--g:0"] {
  background:
    radial-gradient(90% 90% at 82% 10%, #8AA0FF 0%, transparent 55%),
    radial-gradient(80% 80% at 10% 92%, #6E86FF 0%, transparent 52%),
    linear-gradient(140deg, #3A46E8, #2F49F0);
}
.pr-card[style*="--g:1"] {
  background:
    radial-gradient(90% 90% at 20% 12%, #A9B7FF 0%, transparent 52%),
    radial-gradient(80% 80% at 88% 88%, #6366F1 0%, transparent 55%),
    linear-gradient(140deg, #4F46E5, #3B5BF5);
}
.pr-card[style*="--g:2"] {
  background:
    radial-gradient(90% 90% at 78% 14%, #7DD3FC 0%, transparent 55%),
    radial-gradient(80% 80% at 12% 90%, #38BDF8 0%, transparent 52%),
    linear-gradient(140deg, #1D6FE0, #0EA5E9);
}
.pr-card[style*="--g:3"] {
  background:
    radial-gradient(90% 90% at 18% 16%, #C4B5FD 0%, transparent 52%),
    radial-gradient(85% 85% at 86% 86%, #7C6BE0 0%, transparent 55%),
    linear-gradient(140deg, #5B4BC4, #4A3A9E);
}
.pr-card[style*="--g:4"] {
  background:
    radial-gradient(90% 90% at 80% 12%, #93C5FD 0%, transparent 55%),
    radial-gradient(80% 80% at 14% 90%, #818CF8 0%, transparent 52%),
    linear-gradient(140deg, #2F49F0, #4F46E5);
}

.pr-card img {
  /* 4:3 art inside a 1.42:1 panel — cap by height so it never overflows */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 26px 60px rgba(3, 6, 18, .42);
  transition: transform 900ms var(--ease);
}
.pr-card:hover img { transform: translateY(-6px) scale(1.015); }

/* plain copy block on the dark background — no card, per the reference */
.pr-copy {
  flex: none;
  width: min(400px, 78vw);
  display: flex;
  flex-direction: column;
}
.pr-n {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.2px;
  color: rgba(197, 197, 197, .55);
  margin-bottom: .85rem;
}
.pr-n i { font-style: normal; }
.pr-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.021em;
  color: #fff;
  margin-bottom: .85rem;
}
.pr-copy p {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.45;
  color: rgba(197, 197, 197, .8);
}
.pr-list { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: 1.35rem; }
.pr-list li {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .32rem .7rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  font-size: .8rem;
  color: rgba(255, 255, 255, .66);
}
.pr-list svg { width: 12px; height: 12px; color: #93C5FD; flex: none; }

/* ── below 900px: no pin, native swipe row ──────────────────────────── */
@media (max-width: 900px) {
  .pr-pin { min-height: 0; gap: 2.5rem; }
  .pr-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pr-viewport::-webkit-scrollbar { display: none; }
  .pr-track { transform: none !important; align-items: stretch; padding-bottom: .5rem; }
  .pr-card, .pr-copy { scroll-snap-align: center; }
  .pr-copy { justify-content: center; }
}

/* ══════════════════════════════════════════ 4. TECHNOLOGY STACK ══════ */
.techstack { position: relative; background: var(--paper); overflow: clip; }
.tech-cat { margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.tech-cat:last-child { margin-bottom: 0; }
.tech-cat-head {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.1rem;
}
.tech-cat-head .c-ic {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--tint, var(--indigo-50));
  color: var(--brand, var(--indigo));
  flex: none;
}
.tech-cat-head .c-ic svg { width: 17px; height: 17px; }
.tech-cat-head h4 { font-size: 1.05rem; }
.tech-cat-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.tech-cat-head .cnt { font-family: var(--font-mono); font-size: 11px; color: var(--slate-400); }

.tech-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: clamp(.6rem, 1vw, .9rem);
}
.tech-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem .95rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
  transition: transform 380ms var(--ease), box-shadow 380ms var(--ease),
              border-color 380ms var(--ease);
}
.tech-tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%),
              var(--tint, rgba(79, 70, 229, .3)), transparent 70%);
  opacity: 0;
  transition: opacity 380ms var(--ease);
}
.tech-tile:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: transparent;
  box-shadow: 0 18px 36px rgba(6, 12, 32, .12);
}
.tech-tile:hover::before { opacity: 1; }
.tech-tile .t-logo {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--tint, var(--indigo-50));
  color: var(--brand, var(--indigo));
  transition: transform 420ms var(--ease);
}
.tech-tile:hover .t-logo { transform: rotate(-8deg) scale(1.1); }
.tech-tile .t-logo svg { width: 19px; height: 19px; }
.tech-tile strong {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--slate-900);
}
.tech-tile small { display: block; font-size: 10.5px; color: var(--slate-400); }

/* ═══════════════════════════════════════════ 5. WHY CHOOSE US ════════ */
.why {
  position: relative;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 55%, var(--paper) 100%);
  overflow: clip;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(.9rem, 1.4vw, 1.25rem);
}
.why-card {
  position: relative;
  padding: clamp(1.5rem, 2.3vw, 2rem);
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255, 255, 255, .8);
  background: linear-gradient(155deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .72));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(6, 12, 32, .07), inset 0 1px 0 rgba(255, 255, 255, .8);
  overflow: hidden;
  isolation: isolate;
  transition: transform 440ms var(--ease), box-shadow 440ms var(--ease);
}
.why-card::after {
  content: "";
  position: absolute;
  left: -20%; bottom: -50%;
  width: 90%; aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: var(--tint, rgba(79, 70, 229, .16));
  filter: blur(46px);
  opacity: .7;
  transition: opacity 440ms var(--ease), transform 700ms var(--ease);
}
.why-card:hover { transform: translateY(-8px); box-shadow: 0 30px 62px rgba(6, 12, 32, .14); }
.why-card:hover::after { opacity: 1; transform: scale(1.3) translateY(-10%); }
.why-card:hover .grad-border::before { opacity: 1; }

.why-art {
  height: 132px;
  margin-bottom: 1.35rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  padding: .85rem;
  overflow: hidden;
  transition: transform 620ms var(--ease);
}
.why-card:hover .why-art { transform: translateY(-3px) scale(1.02); }
.why-art svg { width: 100%; height: 100%; }
.why-card h3 { font-size: 1.22rem; margin-bottom: .55rem; }
.why-card p { font-size: .9rem; color: var(--slate-600); }
.why-card .w-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.1rem;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: var(--tint, var(--indigo-50));
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand, var(--indigo));
}
.why-card .w-tag svg { width: 12px; height: 12px; }

/* ════════════════ PLATFORM — amini-style iso infrastructure ══════════ */
/* Near-black panel inset in the page, fine dot grid, mono accent label with
   a left rule, big multi-line headline, outline pill CTA, and an exploded
   isometric stack on the right where each capability owns a labelled chip. */
.platform {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--paper);
}
.pf-shell {
  position: relative;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: clamp(2rem, 4.5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  border-radius: clamp(20px, 2.4vw, 32px);
  background: #141414;
  overflow: hidden;
  isolation: isolate;
}
/* the fine dot field from the reference */
.pf-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 25%, transparent 88%);
}

.pf-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
}

/* ── left column ────────────────────────────────────────────────────── */
.pf-label {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 1.9rem;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--sky);
}
.pf-label::before {
  content: "";
  position: absolute;
  left: 0; top: .18em; bottom: .18em;
  width: 2px;
  border-radius: 2px;
  background: var(--sky);
}

.pf-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.pf-lead {
  font-size: clamp(1rem, 1.15vw, 1.06rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .55);
  max-width: 27rem;
  margin-bottom: 2.1rem;
}

.pf-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  will-change: transform;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease),
              transform var(--t) var(--ease);
}
.pf-cta svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.pf-cta:hover {
  border-color: var(--sky);
  background: rgba(56, 189, 248, .1);
  transform: scale(1.03);
}
.pf-cta:hover svg { transform: translateX(3px); }

/* capability list — selecting one lights its chip on the diagram */
.pf-list { display: grid; gap: .15rem; margin-top: 2.5rem; }
.pf-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  width: 100%;
  padding: .7rem .8rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-align: left;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.pf-item:hover { background: rgba(255, 255, 255, .04); }
.pf-item.is-on {
  background: rgba(56, 189, 248, .07);
  border-color: rgba(56, 189, 248, .28);
}
.pf-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .32);
  padding-top: .15rem;
  transition: color var(--t) var(--ease);
}
.pf-item.is-on .pf-num { color: var(--sky); }
.pf-body { display: block; min-width: 0; }
.pf-name {
  display: block;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .72);
  transition: color var(--t) var(--ease);
}
.pf-item.is-on .pf-name { color: #fff; }
.pf-desc {
  display: block;
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .38);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--t-slow) var(--ease), opacity var(--t) var(--ease),
              margin-top var(--t) var(--ease);
}
.pf-item.is-on .pf-desc { max-height: 6rem; opacity: 1; margin-top: .3rem; }

/* ── the connected ecosystem diagram ────────────────────────────────── */
.pf-copy { position: relative; z-index: 2; }

/* the visual sticks while the capability list scrolls past it */
.pf-visual {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
}

.eco-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline: auto;
}
.eco-net { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.eco-glow { opacity: .8; }
.eco-ring { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: .25; }
.eco-ring.out { stroke-dasharray: 1.2 1.8; stroke: rgba(255, 255, 255, .07); }
.eco-ring.mid { stroke: rgba(255, 255, 255, .10); }
.eco-ring.in  { stroke: rgba(125, 211, 252, .22); }

.sp-base { stroke: rgba(255, 255, 255, .13); stroke-width: .3; transition: stroke 460ms var(--ease); }
.sp-flow {
  stroke: var(--sky);
  stroke-width: .5;
  stroke-linecap: round;
  stroke-dasharray: 2 22;
  opacity: .75;
  animation: eco-flow 2.8s linear infinite;
  animation-delay: var(--d, 0s);
}
@keyframes eco-flow { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.eco-spoke.is-on .sp-base { stroke: rgba(125, 211, 252, .55); }
.eco-spoke.is-on .sp-flow { stroke-width: .8; opacity: 1; }

/* centre hub */
.eco-hub {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.1rem 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, .24);
  background: rgba(12, 18, 32, .9);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}
.eco-hub svg { width: 38px; height: 38px; }
.eco-hub span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
}

/* capability nodes sitting on the ring */
.eco-node {
  position: absolute;
  translate: -50% -50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  width: 108px;
  padding: .7rem .5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(16, 22, 38, .82);
  backdrop-filter: blur(8px);
  text-align: center;
  will-change: transform;
  transition: border-color 460ms var(--ease), background 460ms var(--ease),
              box-shadow 460ms var(--ease);
}
.eco-node .en-ic {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .5);
  transition: background 460ms var(--ease), color 460ms var(--ease);
}
.eco-node .en-name {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, .5);
  transition: color 460ms var(--ease);
}
.eco-node:hover { border-color: rgba(125, 211, 252, .4); }

.eco-node.is-on {
  border-color: transparent;
  background: rgba(56, 189, 248, .12);
  box-shadow: 0 0 0 1px var(--sky), 0 16px 38px -12px rgba(56, 189, 248, .8);
}
.eco-node.is-on .en-ic {
  background: linear-gradient(140deg, var(--indigo), var(--sky));
  color: #fff;
}
.eco-node.is-on .en-name { color: #fff; }

/* the tag chips only show for the selected capability */
.pf-item .pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--t-slow) var(--ease), opacity var(--t) var(--ease),
              margin-top var(--t) var(--ease);
}
.pf-item .pf-tags span {
  padding: .2rem .55rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .6);
}
.pf-item.is-on .pf-tags { max-height: 5rem; opacity: 1; margin-top: .6rem; }

@media (max-width: 980px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-visual { position: static; order: -1; }
  .pf-lead { max-width: none; }
}
@media (max-width: 560px) {
  .eco-node { width: 84px; padding: .55rem .35rem; }
  .eco-node .en-ic { width: 30px; height: 30px; }
  .eco-node .en-name { font-size: 10px; }
  .eco-hub { padding: .8rem .9rem; }
  .eco-hub svg { width: 30px; height: 30px; }
}

/* ═══════════════════════════════════════════════ 7. CASE STUDIES ═════ */
.cases { position: relative; background: var(--paper); overflow: clip; }

.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--r-3xl);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #fff, var(--paper-2));
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.case-shot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--tint, var(--indigo-50));
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2.5vw, 1.75rem);
}
.case-shot svg { width: 100%; height: auto; }
.case-badge {
  position: absolute;
  left: 1rem; top: 1rem;
  padding: .3rem .75rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand, var(--indigo));
}
.case-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.case-meta span {
  padding: .28rem .65rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-500);
}
.case-feature h3 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); margin-bottom: .85rem; }
.case-block { margin-top: 1.1rem; }
.case-block b {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: .25rem;
}
.case-block p { font-size: .92rem; color: var(--slate-600); }
.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.case-results div b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--brand, var(--indigo));
  line-height: 1.1;
}
.case-results div span { font-size: .78rem; color: var(--slate-500); }

/* draggable slider */
.case-slider-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}
.slider-nav { display: flex; gap: .5rem; flex: none; }
.slider-nav button {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate-600);
  transition: all 300ms var(--ease);
}
.slider-nav button:hover { border-color: var(--indigo); color: var(--indigo); transform: scale(1.07); }
.slider-nav button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.slider-nav svg { width: 18px; height: 18px; }

.case-viewport { overflow: hidden; cursor: grab; }
.case-viewport.is-drag { cursor: grabbing; }
/* the custom cursor replaces the native one on desktop */
body.cursor-on .case-viewport, body.cursor-on .case-viewport.is-drag { cursor: none; }
.case-track {
  display: flex;
  gap: clamp(.85rem, 1.4vw, 1.25rem);
  width: max-content;
  will-change: transform;
}
.case-card {
  flex: none;
  width: min(360px, 78vw);
  padding: 1.15rem;
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease),
              border-color 400ms var(--ease);
}
.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--indigo-200);
  box-shadow: 0 22px 46px rgba(6, 12, 32, .13);
}
.case-card .cc-shot {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  background: var(--tint, var(--indigo-50));
  display: grid;
  place-items: center;
  padding: 1rem;
  margin-bottom: 1.1rem;
  overflow: hidden;
}
.case-card .cc-shot svg { width: 100%; height: auto; }
.case-card .cc-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand, var(--indigo));
}
.case-card h4 { margin: .3rem 0 .5rem; }
.case-card p { font-size: .86rem; color: var(--slate-500); }
.case-card .cc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1.1rem;
  padding-top: .95rem;
  border-top: 1px solid var(--line-2);
}
.case-card .cc-foot .res {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--slate-900);
}
.case-card .cc-foot small { font-size: .75rem; color: var(--slate-400); }
.case-card .cc-foot .go {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--indigo);
  transition: all 320ms var(--ease);
}
.case-card:hover .cc-foot .go { background: var(--grad-brand); color: #fff; }
.case-card .cc-foot .go svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .case-feature { grid-template-columns: 1fr; }
  .case-results { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════ 8. TESTIMONIALS ═════════ */
.testimonials {
  position: relative;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  overflow: clip;
}
.tst-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.tst-badge {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--sh-xs);
  font-size: .8125rem;
  color: var(--slate-600);
}
.tst-badge b { color: var(--slate-900); font-weight: 700; }
.tst-badge .stars { display: flex; gap: 1px; color: #F5A623; }
.tst-badge .stars svg { width: 13px; height: 13px; }

.tst-viewport { overflow: hidden; }
.tst-track { display: flex; gap: clamp(.85rem, 1.3vw, 1.15rem); width: max-content; will-change: transform; }
.tst-card {
  flex: none;
  width: min(390px, 84vw);
  padding: 1.5rem 1.6rem;
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255, 255, 255, .85);
  background: linear-gradient(155deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .78));
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(6, 12, 32, .07), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: transform 380ms var(--ease), box-shadow 380ms var(--ease);
}
.tst-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(6, 12, 32, .13); }
.tst-quote { width: 26px; height: 26px; color: var(--indigo-200); margin-bottom: .85rem; }
.tst-card p { font-size: .92rem; color: var(--slate-600); line-height: 1.72; }
.tst-foot { display: flex; align-items: center; gap: .8rem; margin-top: 1.35rem; padding-top: 1.15rem; border-top: 1px solid var(--line-2); }
.tst-av {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.tst-foot strong { display: block; font-size: .88rem; font-weight: 650; color: var(--slate-900); letter-spacing: -0.012em; }
.tst-foot small { display: block; font-size: .78rem; color: var(--slate-500); }
.tst-foot .stars { margin-left: auto; display: flex; gap: 1px; color: #F5A623; flex: none; }
.tst-foot .stars svg { width: 13px; height: 13px; }

/* the client marquee has its own section now — see CLIENTS below */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  animation: marquee-x var(--speed, 44s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.client-logo {
  flex: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  filter: grayscale(1);
  opacity: .45;
  transition: filter 400ms var(--ease), opacity 400ms var(--ease), transform 400ms var(--ease);
}
.client-logo:hover { filter: grayscale(0); opacity: 1; transform: scale(1.06); }
.client-logo svg { width: 26px; height: 26px; flex: none; color: var(--brand, var(--indigo)); }
.client-logo b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--slate-900);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════ 9. INDUSTRIES ════════ */
.industries { position: relative; background: var(--paper); overflow: clip; }
.ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: clamp(.85rem, 1.3vw, 1.15rem);
}
.ind-card {
  position: relative;
  padding: clamp(1.35rem, 2vw, 1.75rem);
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform 440ms var(--ease), box-shadow 440ms var(--ease),
              border-color 440ms var(--ease);
}
.ind-card::before {
  content: "";
  position: absolute;
  right: -25%; top: -35%;
  width: 70%; aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: var(--tint, rgba(79, 70, 229, .16));
  filter: blur(42px);
  opacity: .75;
  transition: opacity 440ms var(--ease), transform 700ms var(--ease);
}
.ind-card:hover {
  transform: translateY(-7px);
  border-color: transparent;
  box-shadow: 0 26px 52px rgba(6, 12, 32, .13);
}
.ind-card:hover::before { opacity: 1; transform: scale(1.3) translate(-8%, 10%); }
.ind-art {
  height: 118px;
  margin-bottom: 1.15rem;
  border-radius: var(--r-md);
  background: var(--paper-2);
  display: grid;
  place-items: center;
  padding: .8rem;
  overflow: hidden;
  transition: transform 620ms var(--ease);
}
.ind-card:hover .ind-art { transform: scale(1.04); }
.ind-art svg { width: 100%; height: 100%; }
.ind-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .55rem; }
.ind-ic {
  width: 36px; height: 36px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--tint, var(--indigo-50));
  color: var(--brand, var(--indigo));
}
.ind-ic svg { width: 18px; height: 18px; }
.ind-card h4 { font-size: 1.08rem; }
.ind-card p { font-size: .86rem; color: var(--slate-500); }
.ind-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .95rem; }
.ind-tags span {
  padding: .24rem .6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  color: var(--slate-500);
}

/* ════════════════════════════════════════════════════ 10. CTA ════════ */
.cta-section { padding-block: clamp(3rem, 6vw, 5rem); background: var(--paper); }
.cta-box {
  position: relative;
  padding: clamp(2.5rem, 5.5vw, 5.5rem);
  border-radius: clamp(26px, 3.4vw, 48px);
  background: radial-gradient(120% 130% at 6% 0%, #1B2557 0%, #0B1226 46%, #05070F 100%);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.cta-box::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 90% at 18% 20%, #000, transparent 76%);
}
.cta-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cta-fx .beam {
  position: absolute;
  top: -40%;
  width: 32%;
  height: 190%;
  background: linear-gradient(180deg, transparent, rgba(124, 126, 245, .2), transparent);
  filter: blur(30px);
  transform: rotate(16deg);
}
.cta-fx .beam:nth-child(1) { left: 6%; }
.cta-fx .beam:nth-child(2) { left: 38%; opacity: .7; }
.cta-fx .beam:nth-child(3) { left: 70%; opacity: .5; }
.cta-fx .orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.cta-fx .orb-1 { width: 380px; height: 380px; right: -6%; top: -24%; background: rgba(79, 70, 229, .44); }
.cta-fx .orb-2 { width: 300px; height: 300px; left: 22%; bottom: -32%; background: rgba(34, 166, 224, .28); }
.cta-fx i.pt {
  position: absolute;
  border-radius: 50%;
  background: #A5B4FC;
  will-change: transform;
}

.cta-copy { position: relative; z-index: 2; max-width: 34rem; }
.cta-copy h2 { color: #fff; font-size: clamp(2rem, 3.7vw, 3.25rem); }
.cta-copy p { margin-top: 1.2rem; color: rgba(255, 255, 255, .66); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.cta-note {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  margin-top: 1.85rem;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .5);
}
.cta-note span { display: flex; align-items: center; gap: .4rem; }
.cta-note svg { width: 14px; height: 14px; color: #34D399; }
.cta-art { position: relative; z-index: 2; }
.cta-art svg { width: 100%; height: auto; }

@media (max-width: 900px) {
  .cta-box { grid-template-columns: 1fr; text-align: center; }
  .cta-copy { max-width: none; margin-inline: auto; }
  .cta-actions, .cta-note { justify-content: center; }
  .cta-art { max-width: 420px; margin-inline: auto; }
}

/* ── service card: pointer-reactive art + spotlight ──────────────────── */
.svc-scard { perspective: 1100px; }

.sc-art-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
.sc-art-inner svg { position: relative; width: 100%; height: auto; }

/* drop a real screenshot in via `image:` in data.js and it styles itself */
.sc-art-inner img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: 0 18px 40px rgba(6, 12, 32, .16);
}

/* cursor spotlight over the art panel */
.sc-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.svc-scard:hover .sc-art::after { opacity: 1; }

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .sc-art::after { display: none; }
}
