
/* SANCTEK 012 — Intelligence Flow Hero */

.intelligence-flow-shell{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#fcfcff 0%,#fbfcff 100%);
  isolation:isolate;
  transition:background .7s ease;
}

.intelligence-flow-shell::before,
.intelligence-flow-shell::after{
  content:"";
  position:absolute;
  inset:auto;
  pointer-events:none;
  transition:opacity .85s ease, transform .85s ease, filter .85s ease;
  z-index:0;
}

.intelligence-flow-shell::before{
  width:min(58vw,760px);
  height:min(58vw,760px);
  right:-14%;
  top:-20%;
  background:radial-gradient(circle,rgba(111,107,232,.18) 0%,rgba(111,107,232,.09) 32%,rgba(111,107,232,0) 72%);
  filter:blur(10px);
  opacity:.18;
}

.intelligence-flow-shell::after{
  width:min(52vw,690px);
  height:min(52vw,690px);
  right:6%;
  bottom:-28%;
  background:radial-gradient(circle,rgba(53,184,174,.18) 0%,rgba(53,184,174,.08) 36%,rgba(53,184,174,0) 74%);
  filter:blur(16px);
  opacity:0;
}

.intelligence-flow-shell[data-intelligence-stage="connect"]::before{
  opacity:.14;
  transform:translate3d(-4%, 2%, 0) scale(.94);
}
.intelligence-flow-shell[data-intelligence-stage="connect"]::after{
  opacity:.02;
  transform:translate3d(3%, 6%, 0) scale(.9);
}

.intelligence-flow-shell[data-intelligence-stage="understand"]::before{
  opacity:.32;
  transform:translate3d(-2%, 0, 0) scale(1.04);
}
.intelligence-flow-shell[data-intelligence-stage="understand"]::after{
  opacity:.12;
  transform:translate3d(2%, 4%, 0) scale(1);
}

.intelligence-flow-shell[data-intelligence-stage="act"]::before{
  opacity:.22;
  transform:translate3d(-3%, -1%, 0) scale(1);
}
.intelligence-flow-shell[data-intelligence-stage="act"]::after{
  opacity:.22;
  transform:translate3d(0, 0, 0) scale(1.08);
}

.intelligence-flow-shell .container,
.intelligence-flow-shell .hero__inner,
.intelligence-flow-shell .hero__content,
.intelligence-flow-shell .hero__visual{
  position:relative;
  z-index:1;
}

.intelligence-flow-visual{
  position:relative;
  width:100%;
  min-height:540px;
  display:grid;
  place-items:center;
  padding:28px 0 40px;
  isolation:isolate;
}

.intelligence-flow-visual::before{
  content:"";
  position:absolute;
  inset:7% 10% 8%;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%,rgba(111,107,232,.14),rgba(111,107,232,.07) 26%,rgba(111,107,232,0) 62%),
    radial-gradient(circle at 62% 52%,rgba(53,184,174,.10),rgba(53,184,174,0) 56%);
  opacity:.36;
  transform:scale(.94);
  transition:opacity .7s ease, transform .7s ease;
  z-index:-2;
}

.intelligence-flow-visual[data-stage="understand"]::before{
  opacity:.62;
  transform:scale(1);
}
.intelligence-flow-visual[data-stage="act"]::before{
  opacity:.72;
  transform:scale(1.04);
}

.iflow__mesh{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:-1;
}

.iflow__pulse{
  position:absolute;
  border-radius:999px;
  background:radial-gradient(circle,rgba(111,107,232,.16),rgba(111,107,232,.05) 45%,rgba(111,107,232,0) 72%);
  filter:blur(2px);
  opacity:.14;
  transition:opacity .7s ease, transform .7s ease;
}

.iflow__pulse--one{
  width:210px; height:210px; left:12%; top:11%;
}
.iflow__pulse--two{
  width:170px; height:170px; right:4%; top:18%;
  background:radial-gradient(circle,rgba(53,184,174,.16),rgba(53,184,174,.05) 42%,rgba(53,184,174,0) 74%);
}
.iflow__pulse--three{
  width:240px; height:240px; right:10%; bottom:8%;
  background:radial-gradient(circle,rgba(111,107,232,.14),rgba(53,184,174,.04) 52%,rgba(111,107,232,0) 76%);
}

.intelligence-flow-visual[data-stage="understand"] .iflow__pulse--one{
  opacity:.26; transform:scale(1.08);
}
.intelligence-flow-visual[data-stage="understand"] .iflow__pulse--two{
  opacity:.18; transform:scale(1.03);
}
.intelligence-flow-visual[data-stage="act"] .iflow__pulse--three{
  opacity:.24; transform:scale(1.08);
}
.intelligence-flow-visual[data-stage="act"] .iflow__pulse--two{
  opacity:.22; transform:scale(1.06);
}

.iflow__lines{
  position:absolute;
  inset:7% 4% 10%;
  width:92%;
  height:82%;
  overflow:visible;
}

.iflow__line{
  fill:none;
  stroke-linecap:round;
  stroke-width:1.75;
  opacity:.22;
  transition:opacity .6s ease, stroke-width .6s ease, filter .6s ease;
}

.iflow__line--in{
  stroke:url(#iflowLineIn);
}
.iflow__line--out{
  stroke:url(#iflowLineOut);
}
.iflow__line--signal{
  stroke:url(#iflowLineSignal);
  opacity:0;
  stroke-width:2.2;
  filter:drop-shadow(0 0 10px rgba(53,184,174,.35));
}

.js .iflow__line{
  stroke-dasharray:1;
  stroke-dashoffset:1;
}

.intelligence-flow-visual.is-animating .iflow__line--in{
  animation:iflow-draw .75s cubic-bezier(.2,.7,.2,1) forwards;
}
.intelligence-flow-visual[data-stage="understand"].is-animating .iflow__line--out{
  animation:iflow-draw .72s cubic-bezier(.2,.7,.2,1) .12s forwards;
  opacity:.32;
}
.intelligence-flow-visual[data-stage="act"].is-animating .iflow__line--signal{
  animation:iflow-draw .65s cubic-bezier(.2,.7,.2,1) .06s forwards;
  opacity:.9;
}

.intelligence-flow-visual[data-stage="connect"] .iflow__line--in{opacity:.42;}
.intelligence-flow-visual[data-stage="understand"] .iflow__line--in,
.intelligence-flow-visual[data-stage="understand"] .iflow__line--out{opacity:.48;}
.intelligence-flow-visual[data-stage="act"] .iflow__line--in{opacity:.24;}
.intelligence-flow-visual[data-stage="act"] .iflow__line--out{opacity:.52;}

.iflow__cluster{
  position:absolute;
  display:grid;
  gap:12px;
  width:150px;
}

.iflow__cluster--sources{
  left:2%;
  top:16%;
}

.iflow__cluster--outcomes{
  right:2%;
  top:17%;
}

.iflow__pill{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(111,107,232,.12);
  background:rgba(255,255,255,.46);
  box-shadow:0 12px 28px rgba(18,22,41,.04);
  color:#2c3550;
  font-size:.78rem;
  font-weight:760;
  letter-spacing:.01em;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:transform .55s cubic-bezier(.2,.7,.2,1), opacity .55s ease, border-color .55s ease, background .55s ease, box-shadow .55s ease;
}

.iflow__pill::before{
  content:"";
  width:7px; height:7px;
  border-radius:50%;
  margin-right:10px;
  flex:0 0 7px;
  background:#6f6be8;
  box-shadow:0 0 0 5px rgba(111,107,232,.08);
}

.iflow__cluster--sources .iflow__pill:nth-child(2)::before{background:#8097ff}
.iflow__cluster--sources .iflow__pill:nth-child(3)::before{background:#46b0c7}
.iflow__cluster--sources .iflow__pill:nth-child(4)::before{background:#35b8ae}

.iflow__cluster--outcomes .iflow__pill::before{
  background:#a39bf6;
}
.iflow__cluster--outcomes .iflow__pill:nth-child(4)::before{
  background:#35b8ae;
}

.intelligence-flow-visual[data-stage="connect"] .iflow__cluster--sources .iflow__pill{
  opacity:1;
  transform:none;
}
.intelligence-flow-visual[data-stage="connect"] .iflow__cluster--outcomes .iflow__pill{
  opacity:.18;
  transform:translateX(-12px);
}

.intelligence-flow-visual[data-stage="understand"] .iflow__cluster--sources .iflow__pill{
  opacity:.54;
  transform:translateX(6px);
}
.intelligence-flow-visual[data-stage="understand"] .iflow__cluster--outcomes .iflow__pill{
  opacity:.55;
  transform:translateX(-6px);
}
.intelligence-flow-visual[data-stage="understand"] .iflow__cluster--outcomes .iflow__pill:nth-child(-n+3){
  opacity:1;
  border-color:rgba(111,107,232,.18);
}

.intelligence-flow-visual[data-stage="act"] .iflow__cluster--sources .iflow__pill{
  opacity:.28;
  transform:translateX(10px);
}
.intelligence-flow-visual[data-stage="act"] .iflow__cluster--outcomes .iflow__pill{
  opacity:.52;
  transform:translateX(-4px);
}
.intelligence-flow-visual[data-stage="act"] .iflow__cluster--outcomes .iflow__pill:last-child{
  opacity:1;
  border-color:rgba(53,184,174,.28);
  background:rgba(53,184,174,.09);
  box-shadow:0 16px 36px rgba(53,184,174,.08);
}

.iflow__core{
  position:relative;
  width:min(54vw, 340px);
  aspect-ratio:1/1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 40%,rgba(111,107,232,.14),rgba(111,107,232,.07) 24%,rgba(111,107,232,0) 58%),
    radial-gradient(circle at 50% 60%,rgba(53,184,174,.09),rgba(53,184,174,0) 54%);
  border:1px solid rgba(111,107,232,.12);
  transition:transform .72s cubic-bezier(.2,.75,.22,1), box-shadow .72s ease, border-color .72s ease, background .72s ease;
  box-shadow:0 14px 42px rgba(18,22,41,.06);
}

.iflow__core::before,
.iflow__core::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}

.iflow__core::before{
  inset:12%;
  border:1px solid rgba(111,107,232,.12);
}
.iflow__core::after{
  inset:-10%;
  border:1px dashed rgba(111,107,232,.11);
}

.iflow__core-icon{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  margin-bottom:14px;
}

.iflow__core-icon svg{
  width:64px;
  height:64px;
  overflow:visible;
}

.iflow__core-ring{
  fill:none;
  stroke:#7b76e6;
  stroke-width:1.6;
  opacity:.55;
}
.iflow__core-ring--inner{
  stroke:#35b8ae;
  opacity:.72;
}
.iflow__core-dot{
  fill:#fff;
  filter:drop-shadow(0 0 10px rgba(53,184,174,.6));
}

.iflow__eyebrow{
  display:block;
  margin-bottom:8px;
  color:#7d79e8;
  font-size:.66rem;
  font-weight:880;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.iflow__core strong{
  max-width:210px;
  color:#161c31;
  font-size:clamp(1.4rem, 2.15vw, 1.9rem);
  line-height:1.06;
  letter-spacing:-.03em;
}

.iflow__core small{
  display:block;
  max-width:220px;
  margin-top:10px;
  color:#677187;
  font-size:.74rem;
  line-height:1.5;
}

.intelligence-flow-visual[data-stage="connect"] .iflow__core{
  transform:scale(.96);
}

.intelligence-flow-visual[data-stage="understand"] .iflow__core{
  transform:scale(1.05);
  border-color:rgba(111,107,232,.22);
  box-shadow:0 22px 52px rgba(111,107,232,.08);
}
.intelligence-flow-visual[data-stage="understand"] .iflow__core::after{
  animation:iflow-core-orbit 4.6s linear infinite;
}

.intelligence-flow-visual[data-stage="act"] .iflow__core{
  transform:scale(1.03);
  border-color:rgba(53,184,174,.22);
  box-shadow:0 24px 58px rgba(53,184,174,.08);
}

.intelligence-flow-visual[data-stage="understand"] .iflow__core-ring{
  animation:iflow-core-pulse 1s ease-out 1;
}
.intelligence-flow-visual[data-stage="act"] .iflow__core-ring--inner{
  animation:iflow-core-pulse .92s ease-out 1;
}

.iflow__caption-wrap{
  position:absolute;
  left:50%;
  bottom:82px;
  transform:translateX(-50%);
  width:min(100%, 380px);
  text-align:center;
  min-height:54px;
}

.iflow__caption{
  position:absolute;
  inset:0;
  margin:0;
  color:#6b7387;
  font-size:.85rem;
  line-height:1.5;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .45s ease, transform .45s ease;
}

.intelligence-flow-visual[data-stage="connect"] .iflow__caption--connect,
.intelligence-flow-visual[data-stage="understand"] .iflow__caption--understand,
.intelligence-flow-visual[data-stage="act"] .iflow__caption--act{
  opacity:1;
  transform:translateY(0);
}

.iflow__progress{
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.iflow__progress button{
  border:0;
  background:transparent;
  color:#8a91a5;
  font:inherit;
  font-size:.72rem;
  font-weight:840;
  letter-spacing:.11em;
  text-transform:uppercase;
  padding:10px 0 4px;
  cursor:pointer;
  position:relative;
  transition:color .35s ease;
}

.iflow__progress button::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,#6f6be8,#35b8ae);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .35s ease;
}

.intelligence-flow-visual[data-stage="connect"] .iflow__progress button[data-stage-trigger="connect"],
.intelligence-flow-visual[data-stage="understand"] .iflow__progress button[data-stage-trigger="understand"],
.intelligence-flow-visual[data-stage="act"] .iflow__progress button[data-stage-trigger="act"]{
  color:#2b3451;
}
.intelligence-flow-visual[data-stage="connect"] .iflow__progress button[data-stage-trigger="connect"]::after,
.intelligence-flow-visual[data-stage="understand"] .iflow__progress button[data-stage-trigger="understand"]::after,
.intelligence-flow-visual[data-stage="act"] .iflow__progress button[data-stage-trigger="act"]::after{
  transform:scaleX(1);
}

@keyframes iflow-draw{
  to{stroke-dashoffset:0}
}
@keyframes iflow-core-orbit{
  to{transform:rotate(360deg)}
}
@keyframes iflow-core-pulse{
  0%{opacity:.25;transform:scale(.84)}
  58%{opacity:1;transform:scale(1.22)}
  100%{opacity:.66;transform:scale(1)}
}

@media (max-width: 1100px){
  .intelligence-flow-visual{
    min-height:500px;
  }
  .iflow__cluster{
    width:138px;
  }
  .iflow__core{
    width:min(56vw, 316px);
  }
}

@media (max-width: 920px){
  .intelligence-flow-shell::before{
    width:88vw; height:88vw; right:-18%; top:-12%;
  }
  .intelligence-flow-shell::after{
    width:82vw; height:82vw; right:-6%; bottom:-24%;
  }
  .intelligence-flow-visual{
    min-height:auto;
    padding:10px 0 26px;
  }
  .iflow__lines{
    display:none;
  }
  .iflow__cluster,
  .iflow__caption-wrap,
  .iflow__progress{
    position:relative;
    left:auto; right:auto; top:auto; bottom:auto;
    transform:none;
    width:auto;
  }
  .iflow__cluster--sources,
  .iflow__cluster--outcomes{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
    max-width:600px;
    gap:10px;
  }
  .iflow__cluster--sources{
    margin-bottom:22px;
  }
  .iflow__cluster--outcomes{
    margin-top:22px;
  }
  .iflow__core{
    width:min(82vw, 320px);
    margin-inline:auto;
  }
  .iflow__caption-wrap{
    min-height:48px;
    margin-top:20px;
  }
  .iflow__caption{
    position:relative;
    min-height:auto;
  }
  .iflow__progress{
    margin-top:14px;
  }
}

@media (max-width: 700px){
  .intelligence-flow-visual{
    padding:2px 0 20px;
  }
  .iflow__cluster--sources,
  .iflow__cluster--outcomes{
    grid-template-columns:1fr;
    max-width:100%;
  }
  .iflow__pill{
    min-height:40px;
    font-size:.75rem;
  }
  .iflow__core{
    width:min(88vw, 292px);
  }
  .iflow__core strong{
    font-size:1.42rem;
  }
  .iflow__caption-wrap{
    margin-top:16px;
  }
  .iflow__progress{
    gap:12px;
  }
  .iflow__progress button{
    font-size:.66rem;
  }
}

@media (prefers-reduced-motion: reduce){
  .intelligence-flow-shell,
  .intelligence-flow-visual,
  .intelligence-flow-visual *{
    animation:none !important;
    transition:none !important;
  }
  .js .iflow__line{
    stroke-dashoffset:0 !important;
  }
}

/* SANCTEK 012.2 — FINAL POLISH START */

/* ---------------------------------------------------------
   1. HERO VERTICAL RHYTHM
   Pull the content closer to the header.
   --------------------------------------------------------- */
.hero--v2.intelligence-flow-shell{
  padding-top:54px !important;
  padding-bottom:70px !important;
}

.hero--v2.intelligence-flow-shell .hero__grid{
  align-items:center;
}

/* ---------------------------------------------------------
   2. STRONGER BUT STILL SOFT AMBIENT STAGE BACKGROUNDS
   --------------------------------------------------------- */
.intelligence-flow-shell::before{
  opacity:.22;
}

.intelligence-flow-shell[data-intelligence-stage="connect"]::before{
  opacity:.18;
}

.intelligence-flow-shell[data-intelligence-stage="understand"]::before{
  opacity:.40;
}

.intelligence-flow-shell[data-intelligence-stage="understand"]::after{
  opacity:.17;
}

.intelligence-flow-shell[data-intelligence-stage="act"]::before{
  opacity:.28;
}

.intelligence-flow-shell[data-intelligence-stage="act"]::after{
  opacity:.30;
}

/* ---------------------------------------------------------
   3. REDUCE VISUAL DENSITY AROUND THE AI CORE
   --------------------------------------------------------- */
.iflow__core{
  width:min(49vw,306px);
  box-shadow:0 14px 38px rgba(18,22,41,.05);
}

.iflow__core::before{
  opacity:.58;
}

.iflow__core::after{
  inset:-8%;
  opacity:.42;
}

.intelligence-flow-visual[data-stage="understand"] .iflow__core{
  transform:scale(1.035);
  box-shadow:0 19px 46px rgba(111,107,232,.075);
}

.intelligence-flow-visual[data-stage="act"] .iflow__core{
  transform:scale(1.025);
  box-shadow:0 20px 48px rgba(53,184,174,.075);
}

.iflow__core strong{
  max-width:190px;
  font-size:clamp(1.28rem,1.9vw,1.7rem);
}

.iflow__core small{
  max-width:198px;
}

/* ---------------------------------------------------------
   4. EACH STAGE SHOULD HAVE ONE CLEAR FOCUS
   --------------------------------------------------------- */
.intelligence-flow-visual[data-stage="connect"] .iflow__cluster--sources .iflow__pill{
  opacity:.96;
}

.intelligence-flow-visual[data-stage="connect"] .iflow__cluster--outcomes .iflow__pill{
  opacity:.10;
}

.intelligence-flow-visual[data-stage="understand"] .iflow__cluster--sources .iflow__pill{
  opacity:.28;
}

.intelligence-flow-visual[data-stage="understand"] .iflow__cluster--outcomes .iflow__pill{
  opacity:.20;
}

.intelligence-flow-visual[data-stage="understand"] .iflow__cluster--outcomes .iflow__pill:nth-child(1),
.intelligence-flow-visual[data-stage="understand"] .iflow__cluster--outcomes .iflow__pill:nth-child(2),
.intelligence-flow-visual[data-stage="understand"] .iflow__cluster--outcomes .iflow__pill:nth-child(3){
  opacity:.82;
}

.intelligence-flow-visual[data-stage="act"] .iflow__cluster--sources .iflow__pill{
  opacity:.12;
}

.intelligence-flow-visual[data-stage="act"] .iflow__cluster--outcomes .iflow__pill{
  opacity:.18;
}

.intelligence-flow-visual[data-stage="act"] .iflow__cluster--outcomes .iflow__pill:last-child{
  opacity:1;
  transform:translateX(0) scale(1.015);
}

/* ---------------------------------------------------------
   5. MAKE ACT SIGNAL MORE OBVIOUS
   --------------------------------------------------------- */
.intelligence-flow-visual[data-stage="act"] .iflow__line--signal{
  opacity:1;
  stroke-width:2.8;
  filter:
    drop-shadow(0 0 7px rgba(53,184,174,.32))
    drop-shadow(0 0 16px rgba(53,184,174,.16));
}

/* ---------------------------------------------------------
   6. STAGE NAVIGATION — ONE LINE ON DESKTOP
   --------------------------------------------------------- */
.iflow__progress{
  flex-wrap:nowrap;
  width:max-content;
  max-width:100%;
  gap:20px;
}

.iflow__progress button{
  white-space:nowrap;
}

.iflow__caption-wrap{
  bottom:68px;
}

.iflow__progress{
  bottom:10px;
}

/* ---------------------------------------------------------
   7. A LITTLE MORE BREATHING ROOM INSIDE THE VISUAL,
   BUT LESS EMPTY SPACE ABOVE THE ENTIRE HERO.
   --------------------------------------------------------- */
.intelligence-flow-visual{
  min-height:500px;
  padding-top:16px;
  padding-bottom:30px;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media(max-width:1100px){
  .hero--v2.intelligence-flow-shell{
    padding-top:48px !important;
  }

  .iflow__core{
    width:min(50vw,290px);
  }

  .iflow__progress{
    gap:16px;
  }
}

@media(max-width:920px){
  .hero--v2.intelligence-flow-shell{
    padding-top:40px !important;
    padding-bottom:56px !important;
  }

  .intelligence-flow-visual{
    min-height:auto;
  }

  .iflow__core{
    width:min(78vw,292px);
  }

  .iflow__progress{
    width:100%;
    justify-content:center;
    flex-wrap:nowrap;
    gap:18px;
  }
}

@media(max-width:700px){
  .hero--v2.intelligence-flow-shell{
    padding-top:32px !important;
    padding-bottom:48px !important;
  }

  .iflow__progress{
    gap:12px;
  }

  .iflow__progress button{
    font-size:.61rem;
    letter-spacing:.08em;
  }
}

@media(max-width:430px){
  .iflow__progress{
    gap:9px;
  }

  .iflow__progress button{
    font-size:.56rem;
    letter-spacing:.055em;
  }
}

/* SANCTEK 012.2 — FINAL POLISH END */


/* SANCTEK 012.3 — Intelligence Flow Responsive Repair */

/* =========================================================
   DESKTOP / SHARED
   ========================================================= */

.hero--v2.intelligence-flow-shell{
  overflow:hidden;
}

.hero--v2.intelligence-flow-shell .hero__grid{
  grid-template-columns:minmax(0,1.06fr) minmax(520px,.94fr);
  gap:54px;
  align-items:center;
}

.hero--v2.intelligence-flow-shell .hero__visual,
.hero--v2.intelligence-flow-shell [class*="hero__visual"]{
  min-width:0;
  overflow:visible;
}

/*
 * Give the flow a predictable canvas.
 * This prevents the right-side outcomes from drifting outside
 * the hero column at wide and medium desktop widths.
 */
.intelligence-flow-visual{
  position:relative;
  width:min(100%,680px);
  min-width:0;
  min-height:500px;
  margin-inline:auto;
  overflow:visible !important;
  isolation:isolate;
}

/* Mesh stays within the visual canvas */
.iflow__mesh{
  position:absolute;
  inset:22px 16px 72px;
  overflow:visible;
  pointer-events:none;
}

.iflow__lines{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
}

/* Sources / outcomes always live INSIDE canvas */
.iflow__cluster{
  position:absolute;
  z-index:6;
  display:grid;
  gap:13px;
  width:150px;
}

.iflow__cluster--sources{
  left:4px;
  top:89px;
}

.iflow__cluster--outcomes{
  right:4px;
  top:89px;
}

.iflow__pill{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:48px;
  display:flex;
  align-items:center;
  padding:10px 13px;
  white-space:nowrap;
}

/* Center the core regardless of source/outcome width */
.iflow__core{
  position:absolute;
  z-index:7;
  left:50%;
  top:46%;
  width:286px !important;
  max-width:286px;
  transform:translate(-50%,-50%);
}

.intelligence-flow-visual[data-stage="connect"] .iflow__core,
.intelligence-flow-visual[data-stage="understand"] .iflow__core,
.intelligence-flow-visual[data-stage="act"] .iflow__core{
  transform:translate(-50%,-50%) scale(1);
}

.intelligence-flow-visual[data-stage="understand"] .iflow__core{
  transform:translate(-50%,-50%) scale(1.025);
}

.intelligence-flow-visual[data-stage="act"] .iflow__core{
  transform:translate(-50%,-50%) scale(1.018);
}

/* Make inactive nodes visible enough to explain the system. */
.intelligence-flow-visual[data-stage="connect"] .iflow__cluster--outcomes .iflow__pill{
  opacity:.18 !important;
}

.intelligence-flow-visual[data-stage="understand"] .iflow__cluster--sources .iflow__pill{
  opacity:.31 !important;
}

.intelligence-flow-visual[data-stage="understand"] .iflow__cluster--outcomes .iflow__pill{
  opacity:.32 !important;
}

.intelligence-flow-visual[data-stage="understand"] .iflow__cluster--outcomes .iflow__pill:nth-child(1),
.intelligence-flow-visual[data-stage="understand"] .iflow__cluster--outcomes .iflow__pill:nth-child(2),
.intelligence-flow-visual[data-stage="understand"] .iflow__cluster--outcomes .iflow__pill:nth-child(3){
  opacity:.90 !important;
}

.intelligence-flow-visual[data-stage="act"] .iflow__cluster--sources .iflow__pill{
  opacity:.18 !important;
}

.intelligence-flow-visual[data-stage="act"] .iflow__cluster--outcomes .iflow__pill{
  opacity:.38 !important;
}

.intelligence-flow-visual[data-stage="act"] .iflow__cluster--outcomes .iflow__pill:last-child{
  opacity:1 !important;
}

/* Caption and stages stay inside the canvas */
.iflow__caption-wrap{
  position:absolute;
  left:50%;
  bottom:61px !important;
  width:min(88%,460px);
  transform:translateX(-50%);
  text-align:center;
}

.iflow__progress{
  position:absolute;
  left:50%;
  bottom:5px !important;
  width:max-content;
  max-width:100%;
  display:flex;
  justify-content:center;
  flex-wrap:nowrap !important;
  gap:24px !important;
  transform:translateX(-50%);
}

.iflow__progress button{
  white-space:nowrap;
}

/* =========================================================
   MEDIUM DESKTOP / TABLET LANDSCAPE
   ========================================================= */

@media(max-width:1280px){
  .hero--v2.intelligence-flow-shell .hero__grid{
    grid-template-columns:minmax(0,1fr) minmax(460px,.92fr);
    gap:38px;
  }

  .intelligence-flow-visual{
    width:min(100%,610px);
    min-height:470px;
  }

  .iflow__cluster{
    width:136px;
  }

  .iflow__cluster--sources{
    left:0;
  }

  .iflow__cluster--outcomes{
    right:0;
  }

  .iflow__pill{
    padding-inline:11px;
    font-size:.78rem;
  }

  .iflow__core{
    width:258px !important;
    max-width:258px;
  }

  .iflow__progress{
    gap:18px !important;
  }
}

/* =========================================================
   TABLET — switch to clean stacked system
   ========================================================= */

@media(max-width:920px){
  .hero--v2.intelligence-flow-shell{
    overflow:hidden;
  }

  .hero--v2.intelligence-flow-shell .hero__grid{
    grid-template-columns:1fr !important;
    gap:42px !important;
  }

  .intelligence-flow-visual{
    width:100%;
    max-width:660px;
    min-height:0 !important;
    margin:0 auto;
    padding:8px 0 0 !important;

    display:flex;
    flex-direction:column;
    align-items:center;
    gap:17px;

    overflow:hidden !important;
  }

  /*
   * Radial lines are decorative on desktop.
   * Remove them on narrow screens rather than allowing them
   * to collide with content.
   */
  .iflow__mesh{
    position:absolute;
    inset:88px 12% 120px;
    overflow:hidden;
    opacity:.72;
  }

  .iflow__lines{
    display:none !important;
  }

  .iflow__pulse{
    opacity:.22;
  }

  .iflow__cluster{
    position:relative !important;
    inset:auto !important;
    z-index:8;
    width:100%;
    max-width:540px;

    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;

    order:1;
  }

  .iflow__cluster--outcomes{
    order:3;
  }

  .iflow__pill{
    width:auto !important;
    min-width:0 !important;
    min-height:42px;
    justify-content:center;
    padding:8px 8px !important;

    text-align:center;
    white-space:normal !important;
    line-height:1.18;
    font-size:.72rem !important;

    opacity:.88 !important;
    transform:none !important;
  }

  .iflow__core,
  .intelligence-flow-visual[data-stage="connect"] .iflow__core,
  .intelligence-flow-visual[data-stage="understand"] .iflow__core,
  .intelligence-flow-visual[data-stage="act"] .iflow__core{
    position:relative !important;
    inset:auto !important;
    z-index:7;

    order:2;

    width:268px !important;
    max-width:268px !important;
    margin:12px auto 4px;

    transform:none !important;
  }

  /* On mobile/tablet all system labels remain readable. */
  .intelligence-flow-visual[data-stage] .iflow__cluster .iflow__pill{
    opacity:.74 !important;
  }

  .intelligence-flow-visual[data-stage="connect"] .iflow__cluster--sources .iflow__pill,
  .intelligence-flow-visual[data-stage="understand"] .iflow__cluster--outcomes .iflow__pill:nth-child(-n+3),
  .intelligence-flow-visual[data-stage="act"] .iflow__cluster--outcomes .iflow__pill:last-child{
    opacity:1 !important;
  }

  .iflow__caption-wrap{
    position:relative !important;
    left:auto !important;
    bottom:auto !important;

    order:4;

    width:min(100%,520px);
    min-height:48px;
    padding:0 16px;
    transform:none !important;
  }

  .iflow__caption{
    line-height:1.45;
  }

  .iflow__progress{
    position:relative !important;
    left:auto !important;
    bottom:auto !important;

    order:5;

    width:100% !important;
    max-width:520px;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px !important;

    padding:2px 8px 0;

    transform:none !important;
  }

  .iflow__progress button{
    min-width:0;
    padding:9px 5px;
    white-space:nowrap;
    text-align:center;
    font-size:.64rem;
    letter-spacing:.075em;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:640px){
  .hero--v2.intelligence-flow-shell .hero__grid{
    gap:34px !important;
  }

  .intelligence-flow-visual{
    gap:14px;
    padding-inline:0 !important;
  }

  .iflow__mesh{
    inset:108px 5% 120px;
  }

  .iflow__cluster{
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:420px;
    gap:7px;
  }

  .iflow__pill{
    min-height:40px;
    padding:8px 10px !important;
    font-size:.72rem !important;
  }

  .iflow__core,
  .intelligence-flow-visual[data-stage] .iflow__core{
    width:238px !important;
    max-width:238px !important;
    margin-top:8px;
  }

  .iflow__core strong{
    max-width:170px;
    font-size:1.32rem !important;
  }

  .iflow__core small{
    max-width:180px;
    font-size:.69rem;
  }

  .iflow__caption-wrap{
    min-height:58px;
    padding-inline:10px;
  }

  .iflow__caption{
    font-size:.78rem;
  }

  .iflow__progress{
    width:100% !important;
    padding-inline:0;
    gap:4px !important;
  }

  .iflow__progress button{
    padding:8px 3px;
    font-size:.58rem !important;
    letter-spacing:.045em !important;
  }
}

/* Very small mobile */
@media(max-width:390px){
  .iflow__cluster{
    gap:6px;
  }

  .iflow__pill{
    padding:7px 6px !important;
    font-size:.67rem !important;
  }

  .iflow__core,
  .intelligence-flow-visual[data-stage] .iflow__core{
    width:220px !important;
    max-width:220px !important;
  }

  .iflow__progress button{
    font-size:.54rem !important;
    letter-spacing:.02em !important;
  }
}

/* Reduced motion remains accessible */
@media(prefers-reduced-motion:reduce){
  .intelligence-flow-visual *,
  .intelligence-flow-shell::before,
  .intelligence-flow-shell::after{
    animation:none !important;
    transition:none !important;
  }
}
