/* integrations.html (integrations-v2) — page-only styles. Every rule is scoped to #am-intg; the old header, the
   site-wide footer and the rest of the site keep their own styles. Night indigo with the site's gold and violet light
   (owner's reference of 27.10.2026). Display face: Montserrat 700–800 (assets/fonts/ab2, OFL, the same files as the
   about page), body: the site's system stack. Layout: one centred 1240 px container shared with the site footer.
   The ecosystem on the first screen is drawn by integrations-v2.js (canvas + the platform buttons); without
   JavaScript the platforms, the core and their texts stay in place, only the motion is missing. */
@font-face { font-family: 'IG Montserrat'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url('../fonts/ab2/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IG Montserrat'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url('../fonts/ab2/montserrat-az-tr.woff2') format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F, U+018F, U+0259; }
@font-face { font-family: 'IG Montserrat'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url('../fonts/ab2/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

#am-intg {
  --ig-void: #050616;            /* page ground */
  --ig-night: #0a0b26;           /* panels */
  --ig-deep: #141344;            /* raised glass */
  --ig-violet: #8b5cf6;
  --ig-violet-hi: #c4b5fd;
  --ig-gold: #fbbf24;            /* the site's gold (header button, footer) */
  --ig-gold-hi: #ffdc85;
  --ig-text: #f1f2ff;
  --ig-fog: #b9bde3;             /* secondary text: 10.6:1 on the ground */
  --ig-line: rgba(196, 181, 253, .18);
  --ig-hdr: 185px;               /* fixed top bar + header of the site */
  --ig-gut: 32px;
  --ig-max: 1240px;
  --ig-display: 'IG Montserrat', 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ig-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  position: relative;
  display: block;
  background: var(--ig-void);
  color: var(--ig-text);
  font: 400 16px/1.55 var(--ig-body);
  overflow-x: clip;
}
#am-intg *, #am-intg *::before, #am-intg *::after { box-sizing: border-box; transition: none; } /* the site's mobile CSS animates everything */
#am-intg :where(h1, h2, h3, p, ul, ol, li, figure) { margin: 0; padding: 0; }
#am-intg :where(ul, ol) { list-style: none; }
#am-intg p { color: inherit; line-height: inherit; }   /* the site's mobile styles colour every <p> */
#am-intg :where(h1, h2, h3) { letter-spacing: normal; color: inherit; }
#am-intg a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
#am-intg button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
#am-intg img { max-width: 100%; }
#am-intg .ig-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
#am-intg .ig-wrap {
  position: relative;
  max-width: var(--ig-max);
  margin: 0 auto;
  padding-left: max(var(--ig-gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--ig-gut), env(safe-area-inset-right, 0px));
}
#am-intg .ig-ico { width: 1em; height: 1em; flex: none; fill: currentColor; }
#am-intg :focus-visible { outline: 2px solid var(--ig-gold-hi); outline-offset: 3px; border-radius: 8px; }

/* ---------- shared type and buttons ---------- */
#am-intg .ig-eyebrow { display: flex; align-items: center; gap: 14px; font: 700 15px/1.3 var(--ig-display); color: var(--ig-gold); }
#am-intg .ig-eyebrow__dash { flex: none; width: 34px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 0 10px rgba(251, 191, 36, .7); }
#am-intg .ig-gold {
  color: var(--ig-gold);
  background: linear-gradient(180deg, #ffe7a6 0%, #fbbf24 52%, #e39a0c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
#am-intg .ig-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font: 700 16px/1.2 var(--ig-display); white-space: nowrap; cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background-color .25s, border-color .25s;
}
#am-intg .ig-btn--gold {
  color: #1c1236;
  background: linear-gradient(180deg, #ffd766 0%, #fbbf24 48%, #f2a60c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 14px 34px -12px rgba(251, 191, 36, .75), 0 0 0 1px rgba(255, 214, 120, .5);
}
#am-intg .ig-btn--line { color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .03); }
#am-intg .ig-btn__arrow { width: 16px; height: 16px; fill: currentColor; transition: transform .25s; }
@media (hover: hover) {
  #am-intg .ig-btn:hover { transform: translateY(-2px); }
  #am-intg .ig-btn--gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 18px 40px -12px rgba(251, 191, 36, .9), 0 0 0 1px rgba(255, 214, 120, .7); }
  #am-intg .ig-btn--gold:hover .ig-btn__arrow { transform: translateX(3px); }
  #am-intg .ig-btn--line:hover { border-color: var(--ig-gold-hi); background: rgba(251, 191, 36, .08); }
}

/* tones of the platforms: icon colour and glow */
#am-intg .ig-tone--wa { --ink: #34e07a; --glow: rgba(37, 211, 102, .55); }
#am-intg .ig-tone--ig { --ink: #ff7aa8; --glow: rgba(225, 48, 108, .55); }
#am-intg .ig-tone--tg { --ink: #5fc4f5; --glow: rgba(42, 171, 238, .55); }
#am-intg .ig-tone--crm { --ink: #8fb4ff; --glow: rgba(96, 140, 255, .55); }
#am-intg .ig-tone--erp { --ink: #d0a6ff; --glow: rgba(168, 85, 247, .6); }
#am-intg .ig-tone--bi { --ink: #ffb26b; --glow: rgba(251, 146, 60, .55); }
#am-intg .ig-tone--api { --ink: #ffd76a; --glow: rgba(251, 191, 36, .6); }
#am-intg .ig-tone--legacy { --ink: #d9e2f0; --glow: rgba(186, 200, 224, .45); }

/* ---------- first screen ---------- */
#am-intg .ig-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: var(--ig-hdr);
  background:
    radial-gradient(ellipse 46% 62% at 73% 52%, rgba(109, 40, 217, .42), transparent 72%),
    radial-gradient(ellipse 24% 30% at 72% 50%, rgba(251, 191, 36, .10), transparent 70%),
    radial-gradient(ellipse 50% 70% at 4% 0%, rgba(49, 29, 140, .55), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 104%, rgba(91, 33, 182, .35), transparent 70%),
    linear-gradient(180deg, #080824 0%, var(--ig-void) 100%);
}
#am-intg .ig-hero__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1px 1px at 28% 64%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 32%, rgba(255, 236, 190, .6), transparent 60%),
    radial-gradient(1px 1px at 8% 82%, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(1px 1px at 36% 88%, rgba(196, 181, 253, .6), transparent 60%),
    radial-gradient(1.5px 1.5px at 20% 44%, rgba(255, 255, 255, .35), transparent 60%);
  background-size: 620px 520px;
}
#am-intg .ig-swoosh { position: absolute; inset: -4% -2%; width: 104%; height: 108%; fill: none; opacity: .55; }
#am-intg .ig-swoosh path { stroke-width: 1.6; stroke-linecap: round; }
#am-intg .ig-swoosh__a { stroke: url(#ig-sw-gold); filter: drop-shadow(0 0 6px rgba(251, 191, 36, .8)); }
#am-intg .ig-swoosh__b { stroke: url(#ig-sw-violet); stroke-width: 1.1; opacity: .8; }
#am-intg .ig-swoosh__c { stroke: url(#ig-sw-violet); opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  #am-intg .ig-swoosh { animation: ig-drift 26s ease-in-out infinite alternate; }
}
@keyframes ig-drift { to { transform: translate3d(-2.5%, 1.5%, 0) scale(1.03); } }

#am-intg .ig-hero__grid {
  display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); align-items: center; column-gap: 12px;
  min-height: clamp(600px, calc(100svh - var(--ig-hdr)), 740px);
  padding-top: 36px; padding-bottom: 40px;
}
#am-intg .ig-hero__text { position: relative; z-index: 3; display: grid; gap: 22px; align-content: center; }
#am-intg .ig-title { font: 800 clamp(36px, 3.3vw, 49px)/1.08 var(--ig-display); letter-spacing: -.015em; text-wrap: balance; color: #fff; text-shadow: 0 4px 30px rgba(5, 6, 22, .6); }
#am-intg .ig-lead { max-width: 33em; font-size: 17.5px; line-height: 1.6; color: var(--ig-fog); }
#am-intg .ig-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

/* the example of the chosen platform + the same platforms as plain buttons (no motion needed to reach them) */
#am-intg .ig-readout { display: grid; gap: 12px; margin-top: 6px; }
#am-intg .ig-readout__panel {
  position: relative; min-height: 118px; padding: 16px 18px 17px; border-radius: 18px;
  background: linear-gradient(150deg, rgba(139, 92, 246, .2), rgba(12, 12, 44, .78) 58%);
  border: 1px solid var(--ig-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 50px -30px rgba(0, 0, 0, .8);
}
#am-intg .ig-out[hidden] { display: none; }
#am-intg .ig-out__head { display: flex; align-items: center; gap: 10px; font: 700 15px/1.25 var(--ig-display); }
#am-intg .ig-out__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 16px; color: var(--ink); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 18px -4px var(--glow); }
#am-intg .ig-out__label { color: var(--ig-gold); font-weight: 700; font-size: 13px; }
#am-intg .ig-out__label::after { content: ''; display: inline-block; width: 14px; height: 1px; margin: 0 0 4px 10px; background: rgba(251, 191, 36, .6); vertical-align: middle; }
#am-intg .ig-out__text { margin-top: 9px; font-size: 15px; line-height: 1.55; color: #dfe1fb; }
#am-intg .ig-out.is-in { animation: ig-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ig-in { from { opacity: 0; transform: translateY(6px); } }
#am-intg .ig-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#am-intg .ig-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px 0 10px; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 var(--ig-body); color: #e4e6ff; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .13);
  transition: border-color .2s, background-color .2s;
}
#am-intg .ig-chip .ig-ico { font-size: 15px; color: var(--ink); }
#am-intg .ig-chip[aria-pressed="true"] { border-color: rgba(251, 191, 36, .85); background: rgba(251, 191, 36, .12); color: #fff; }
@media (hover: hover) { #am-intg .ig-chip:hover { border-color: rgba(251, 191, 36, .55); } }
#am-intg .ig-readout__hint { font-size: 13px; color: #9fa3cf; }
#am-intg .ig-eco__hint { position: absolute; left: 4%; bottom: 10px; z-index: 30; max-width: 46%; font-size: 13px; line-height: 1.4; color: #a9addb; text-shadow: 0 1px 8px rgba(5, 6, 22, .9); }
@media (min-width: 1101px) {
  #am-intg .ig-chips, #am-intg .ig-readout__hint { display: none; }
}
@media (max-width: 1100px) { #am-intg .ig-eco__hint { display: none; } }

/* the stage: canvas behind, core, canvas in front, platforms (z-index set per frame by the script) */
#am-intg .ig-eco {
  --cw: 204px;                 /* core width */
  --tile: 74px;
  position: relative; z-index: 1;
  height: clamp(560px, 45vw, 650px);
  margin-right: calc(-1 * max(var(--ig-gut), (100vw - var(--ig-max)) / 2 + var(--ig-gut)) + 8px);
}
#am-intg .ig-eco__canvas { position: absolute; inset: -70px -40px -70px -160px; width: calc(100% + 200px); height: calc(100% + 140px); pointer-events: none; }
#am-intg .ig-eco__canvas--back { z-index: 1; }
#am-intg .ig-eco__canvas--front { z-index: 11; }
#am-intg .ig-eco__rings { position: absolute; left: 50%; top: 58%; width: 0; height: 0; z-index: 1; }
#am-intg .ig-eco__rings span { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); border: 1.5px solid rgba(251, 191, 36, .5); box-shadow: 0 0 22px rgba(251, 191, 36, .25), inset 0 0 22px rgba(139, 92, 246, .25); }
#am-intg .ig-eco__rings span:nth-child(1) { width: 420px; height: 140px; }
#am-intg .ig-eco__rings span:nth-child(2) { width: 600px; height: 200px; border-color: rgba(196, 181, 253, .4); }
#am-intg .ig-eco__rings span:nth-child(3) { width: 760px; height: 250px; border-color: rgba(196, 181, 253, .25); }
#am-intg.ig-js .ig-eco__rings { display: none; }

/* the core: a dark metal puck with a glowing gold rim; the real AiMarket monogram stands on its front edge */
#am-intg .ig-core { position: absolute; left: 50%; top: 45%; width: var(--cw); height: calc(var(--cw) * .9); transform: translate(-50%, -50%); z-index: 10; pointer-events: none; }
#am-intg.ig-js .ig-core { left: 0; top: 0; transform: translate3d(var(--core-x, 0px), var(--core-y, 0px), 0) translate(-50%, -50%); }
#am-intg .ig-core__puck { position: absolute; inset: 0; }
#am-intg .ig-core__side {
  position: absolute; left: 0; right: 0; top: calc(var(--cw) * .16); bottom: 0; overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 calc(var(--cw) * .17) calc(var(--cw) * .17);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 6%, rgba(196, 181, 253, .16) 15%, rgba(255, 255, 255, 0) 27%, rgba(255, 255, 255, 0) 70%, rgba(255, 214, 140, .2) 82%, rgba(255, 255, 255, 0) 93%),
    linear-gradient(180deg, #221b52 0%, #110e33 46%, #07061a 100%);
  box-shadow: inset 0 -2px 0 rgba(255, 205, 100, .9), inset 0 -18px 26px -14px rgba(251, 191, 36, .55), inset 8px 0 18px -10px rgba(196, 181, 253, .35), inset -8px 0 18px -10px rgba(251, 191, 36, .3);
}
#am-intg .ig-core__glint { position: absolute; top: calc(var(--cw) * .16); bottom: 0; left: var(--glint, 60%); width: 16%; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 190, .22), transparent); border-radius: 0 0 40% 40% / 0 0 30% 30%; }
#am-intg .ig-core__top {
  position: absolute; left: 0; right: 0; top: 0; height: calc(var(--cw) * .34); border-radius: 50%; z-index: 2;
  background: radial-gradient(ellipse 64% 58% at 50% 42%, #33287a 0%, #17134a 46%, #0b0a26 76%);
  box-shadow: 0 0 0 2px #ffcf5a, 0 0 16px 3px rgba(251, 191, 36, .8), 0 0 60px 6px rgba(251, 191, 36, .25), inset 0 0 0 9px rgba(5, 6, 22, .35), inset 0 0 26px rgba(251, 191, 36, .4);
}
#am-intg .ig-core__top::after { content: ''; position: absolute; inset: 18% 14%; border-radius: 50%; border: 1px solid rgba(255, 214, 140, .35); box-shadow: 0 0 12px rgba(139, 92, 246, .5); }
#am-intg .ig-core__emblem { position: absolute; left: 50%; top: calc(var(--cw) * .2); width: 58%; z-index: 3; display: grid; justify-items: center; gap: calc(var(--cw) * .015);
  transform: translateX(-50%) translate3d(var(--px, 0px), var(--py, 0px), 0); }
#am-intg .ig-core__logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 8px rgba(251, 191, 36, .65)) drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
#am-intg .ig-core__name { font: 800 calc(var(--cw) * .105)/1 var(--ig-display); letter-spacing: .01em; color: #fff; text-shadow: 0 0 14px rgba(251, 191, 36, .55); }
#am-intg .ig-core__name span { color: var(--ig-gold); }
#am-intg .ig-core__mirror { position: absolute; left: 50%; top: 100%; width: 46%; transform: translateX(-50%) scaleY(-1); opacity: .16; z-index: 0;
  -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 55%); mask-image: linear-gradient(0deg, #000 0%, transparent 55%); }
#am-intg .ig-core__mirror img { display: block; width: 100%; height: auto; }

/* platforms: glass blocks with a metal rim; labels under them */
#am-intg .ig-eco__nodes { display: block; }       /* no stacking context: the items sort against the core */
#am-intg .ig-eco__item { position: absolute; left: var(--sx); top: var(--sy); width: 0; height: 0; z-index: 12; }
#am-intg.ig-js .ig-eco__item { left: 0; top: 0; will-change: transform; }
#am-intg .ig-node {
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(var(--tile) / -2));
  display: grid; justify-items: center; gap: 9px; width: max-content; max-width: 190px;
  padding: 0; border: 0; background: none; cursor: pointer; text-align: center;
}
#am-intg .ig-node__tile {
  position: relative; display: grid; place-items: center; width: var(--tile); height: var(--tile); border-radius: 30%;
  background:
    radial-gradient(circle at 50% 120%, var(--glow), transparent 62%),
    linear-gradient(155deg, #2c2667 0%, #15124a 48%, #0a0927 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 -10px 16px -6px rgba(0, 0, 0, .55),
    0 0 0 1.5px rgba(255, 207, 110, .55), 0 0 22px -4px rgba(251, 191, 36, .55), 0 14px 26px -10px rgba(0, 0, 0, .8), 0 0 34px -6px var(--glow);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
#am-intg .ig-node__tile::after { /* thickness of the block: a darker slab under it */
  content: ''; position: absolute; left: 3%; right: 3%; top: 10%; bottom: -8%; z-index: -1; border-radius: 30%;
  background: linear-gradient(180deg, #3b2f78, #0b0a24 60%); box-shadow: 0 0 0 1px rgba(251, 191, 36, .35), 0 8px 18px -6px rgba(0, 0, 0, .9);
}
#am-intg .ig-node__glass { position: absolute; left: 9%; right: 9%; top: 6%; height: 42%; border-radius: 40% 40% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)); pointer-events: none; }
#am-intg .ig-node__icon { position: relative; width: 46%; height: 46%; fill: var(--ink); filter: drop-shadow(0 0 7px var(--glow)); }
#am-intg .ig-tone--ig .ig-node__icon { fill: url(#ig-grad-insta); }
#am-intg .ig-node__text { display: grid; gap: 2px; opacity: var(--lo, 1); transform: translateX(var(--lx, 0px)); text-shadow: 0 1px 2px rgba(5, 6, 22, .9), 0 0 14px rgba(5, 6, 22, .95); }
#am-intg .ig-node__name { font: 700 15px/1.2 var(--ig-display); color: #fff; white-space: nowrap; }
#am-intg .ig-node__sub { font-size: 12.5px; line-height: 1.3; color: var(--ig-fog); white-space: nowrap; opacity: var(--so, 1); }
#am-intg .ig-node[aria-pressed="true"] .ig-node__tile {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 -10px 16px -6px rgba(0, 0, 0, .5),
    0 0 0 2px #ffd36b, 0 0 30px 2px rgba(251, 191, 36, .8), 0 14px 26px -10px rgba(0, 0, 0, .8), 0 0 50px -4px var(--glow);
}
#am-intg .ig-node[aria-pressed="true"] .ig-node__name { color: var(--ig-gold-hi); }
#am-intg .ig-node:focus-visible { outline: none; }
#am-intg .ig-node:focus-visible .ig-node__tile { outline: 2px solid #fff; outline-offset: 5px; }
@media (hover: hover) { #am-intg .ig-node:hover .ig-node__tile { transform: translateY(-4px) scale(1.04); } }

#am-intg .ig-motion {
  position: absolute; right: 10px; bottom: 6px; z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px 0 10px; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 var(--ig-body); color: #e6e7ff; background: rgba(10, 11, 38, .72); border: 1px solid rgba(255, 255, 255, .16);
}
#am-intg .ig-motion[hidden] { display: none; }
#am-intg .ig-motion__icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(251, 191, 36, .16); color: var(--ig-gold); }
#am-intg .ig-motion__icon .ig-ico { width: 10px; height: 10px; }
#am-intg .ig-motion__icon .ig-ico + .ig-ico, #am-intg .ig-motion[aria-pressed="true"] .ig-motion__icon .ig-ico:first-child { display: none; }
#am-intg .ig-motion[aria-pressed="true"] .ig-motion__icon .ig-ico + .ig-ico { display: block; }

/* ---------- tablets: the heading, right away the full-width scene, then the example and the text ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
  #am-intg { --ig-hdr: 83px; }    /* the site's mobile drawer takes 102 px of the flow under its fixed header here */
}
@media (max-width: 1100px) {
  #am-intg .ig-hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; row-gap: 0; }
  #am-intg .ig-hero__text { display: contents; }
  #am-intg .ig-hero .ig-eyebrow { order: 1; }
  #am-intg .ig-title { order: 2; margin-top: 14px; max-width: 780px; }
  #am-intg .ig-eco { order: 3; height: clamp(520px, 66vw, 620px); margin: 4px calc(-1 * var(--ig-gut)) 0; }
  #am-intg .ig-readout { order: 4; margin-top: 52px; max-width: 760px; }
  #am-intg .ig-lead { order: 5; margin-top: 24px; max-width: 680px; }
  #am-intg .ig-hero .ig-actions { order: 6; margin-top: 20px; }
  #am-intg .ig-motion { right: max(var(--ig-gut), 18px); top: 100%; bottom: auto; margin-top: 6px; }
  #am-intg .ig-eco__canvas { inset: -60px 0; width: 100%; height: calc(100% + 120px); }   /* the stage is already full width */
}

/* ---------- phones: a vertical composition of its own (channels above the core, systems below it) ---------- */
@media (max-width: 760px) {
  #am-intg { --ig-hdr: 91px; --ig-gut: 18px; }
  #am-intg .ig-hero__grid { display: flex; flex-direction: column; align-items: stretch; padding-top: 22px; padding-bottom: 34px; }
  #am-intg .ig-hero .ig-eyebrow { font-size: 14px; }
  #am-intg .ig-title { margin-top: 12px; font-size: clamp(31px, 8.6vw, 38px); line-height: 1.08; }
  #am-intg .ig-eco { --cw: 150px; --tile: 56px; height: 580px; }
  #am-intg .ig-lead { margin-top: 22px; font-size: 16px; }
  #am-intg .ig-actions .ig-btn { flex: 1 1 100%; }
  #am-intg .ig-eco__item { left: var(--mx); top: var(--my); }
  #am-intg .ig-node { gap: 6px; max-width: 120px; }
  #am-intg .ig-node__name { font-size: 12.5px; }
  #am-intg .ig-node__sub { display: none; }
  #am-intg .ig-eco__rings { top: 50%; }
  #am-intg .ig-eco__rings span:nth-child(1) { width: 250px; height: 90px; }
  #am-intg .ig-eco__rings span:nth-child(2) { width: 330px; height: 120px; }
  #am-intg .ig-eco__rings span:nth-child(3) { display: none; }

  #am-intg .ig-readout__panel { min-height: 0; }
}
@media (max-width: 380px) {
  #am-intg .ig-eco { height: 560px; --cw: 140px; --tile: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  #am-intg .ig-out.is-in { animation: none; }
}
#am-intg .ig-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ================= sections below the first screen ================= */
#am-intg .ig-cat, #am-intg .ig-flow, #am-intg .ig-cases, #am-intg .ig-why, #am-intg .ig-work { position: relative; isolation: isolate; padding-block: clamp(60px, 6.5vw, 92px); }
#am-intg .ig-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(34px, 4vw, 52px); }
#am-intg .ig-h2 { font: 800 clamp(30px, 3.1vw, 44px)/1.12 var(--ig-display); letter-spacing: -.01em; text-wrap: balance; color: #fff; }
#am-intg .ig-sub { max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--ig-fog); }
@keyframes ig-dash { to { stroke-dashoffset: -240; } }
@keyframes ig-pop { 0%, 4% { opacity: 0; transform: translateY(10px) scale(.98); } 10%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-4px); } }

/* ---------- catalog: tiles of different sizes ---------- */
#am-intg .ig-cat { background:
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(109, 40, 217, .25), transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 80%, rgba(49, 29, 140, .35), transparent 70%), var(--ig-void); }
#am-intg .ig-cat::before { /* a floor of light lines going into depth */
  content: ''; position: absolute; inset: auto 0 0; height: 46%; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(139, 92, 246, .14) 0 1px, transparent 1px 80px), repeating-linear-gradient(0deg, rgba(139, 92, 246, .12) 0 1px, transparent 1px 56px);
  transform: perspective(600px) rotateX(58deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 85%); mask-image: linear-gradient(0deg, #000, transparent 85%);
}
#am-intg .ig-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
#am-intg #messengers { grid-column: 1 / 8; grid-row: 1 / 3; }
#am-intg #crm { grid-column: 8 / 13; grid-row: 1 / 3; }
#am-intg #api { grid-column: 1 / 8; grid-row: 3; }
#am-intg #erp { grid-column: 8 / 13; grid-row: 3; }
#am-intg #middleware { grid-column: 1 / 5; grid-row: 4; }
#am-intg #legacy { grid-column: 5 / 9; grid-row: 4; }
#am-intg #email { grid-column: 9 / 13; grid-row: 4; }
#am-intg #dashboards { grid-column: 1 / 13; grid-row: 5; }
#am-intg .ig-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 24px 24px 26px; border-radius: 22px; scroll-margin-top: calc(var(--ig-hdr) + 16px);
  background: linear-gradient(160deg, rgba(139, 92, 246, .15) 0%, rgba(14, 14, 50, .86) 42%, rgba(8, 8, 30, .92) 100%);
  border: 1px solid rgba(196, 181, 253, .15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 60px -40px rgba(0, 0, 0, .9);
  transition: border-color .3s, transform .4s cubic-bezier(.2, .8, .2, 1);
}
#am-intg .ig-tile::before { /* light that follows the pointer */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(251, 191, 36, .13), transparent 60%);
}
#am-intg .ig-tile > * { position: relative; z-index: 1; }
@media (hover: hover) {
  #am-intg .ig-tile:hover { border-color: rgba(251, 191, 36, .42); transform: translateY(-3px); }
  #am-intg .ig-tile:hover::before { opacity: 1; }
}
#am-intg .ig-tile--xl, #am-intg .ig-tile--tall { padding: 30px; border-radius: 26px; }
#am-intg .ig-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#am-intg .ig-tile__icons { display: flex; gap: 10px; }
#am-intg .ig-tile__ico {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; font-size: 23px; color: var(--ink);
  background: radial-gradient(circle at 50% 120%, var(--glow), transparent 62%), linear-gradient(155deg, #2c2667, #120f40 55%, #0a0927);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 1px rgba(255, 207, 110, .4), 0 0 22px -6px var(--glow);
}
#am-intg .ig-tile__ico.ig-tone--ig .ig-ico { fill: url(#ig-grad-insta); }
#am-intg .ig-tile--xl .ig-tile__ico { width: 58px; height: 58px; font-size: 27px; border-radius: 17px; }
#am-intg .ig-tile__tag { padding: 5px 11px; border-radius: 999px; font: 600 12.5px/1 var(--ig-body); color: #d9ccff; background: rgba(139, 92, 246, .16); border: 1px solid rgba(196, 181, 253, .22); white-space: nowrap; }
#am-intg .ig-tile__title { margin-top: 6px; font: 700 21px/1.25 var(--ig-display); color: #fff; text-wrap: balance; }
#am-intg .ig-tile--xl .ig-tile__title { font-size: clamp(24px, 2.3vw, 30px); }
#am-intg .ig-tile__text { font-size: 15.5px; line-height: 1.6; color: var(--ig-fog); max-width: 52ch; }
#am-intg .ig-tile__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
#am-intg .ig-tile__chips li { padding: 5px 10px; border-radius: 8px; font-size: 13px; line-height: 1.2; color: #e7e8ff; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }

/* the live pictures inside the large tiles */
#am-intg .ig-demo { margin-top: auto; }
#am-intg .ig-demo--chat { position: relative; display: grid; gap: 10px; padding-top: 26px; max-width: 520px; }
#am-intg .ig-demo__sample { position: absolute; top: 0; left: 0; font-size: 12.5px; color: #9ea2d0; }
#am-intg .ig-bubble { display: flex; align-items: flex-start; gap: 10px; max-width: 78%; padding: 12px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
#am-intg .ig-bubble--in { justify-self: start; color: #eef; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-bottom-left-radius: 6px; }
#am-intg .ig-bubble--out { justify-self: end; color: #1d1336; background: linear-gradient(180deg, #ffe39a, #fbbf24); border-bottom-right-radius: 6px; font-weight: 500; }
#am-intg .ig-bubble__ico { flex: none; font-size: 17px; color: var(--ink); margin-top: 1px; }
#am-intg .ig-crmcard { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 16px; background: linear-gradient(150deg, rgba(96, 140, 255, .2), rgba(14, 14, 50, .9)); border: 1px solid rgba(143, 180, 255, .35); box-shadow: 0 16px 40px -24px rgba(96, 140, 255, .8); }
#am-intg .ig-crmcard__ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; font-size: 18px; color: var(--ink); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
#am-intg .ig-crmcard__body { display: grid; gap: 2px; font-size: 13.5px; color: var(--ig-fog); }
#am-intg .ig-crmcard__body b { font: 700 15px/1.3 var(--ig-display); color: #fff; }
#am-intg .ig-crmcard__ok { display: inline-flex; align-items: center; gap: 6px; color: #8ff0b4; }
#am-intg .ig-crmcard__ok .ig-ico { font-size: 12px; }
#am-intg.ig-js .ig-cat.is-on .ig-bubble--in { animation: ig-pop 9s cubic-bezier(.2, .8, .2, 1) infinite both; }
#am-intg.ig-js .ig-cat.is-on .ig-bubble--out { animation: ig-pop 9s cubic-bezier(.2, .8, .2, 1) 1.1s infinite both; }
#am-intg.ig-js .ig-cat.is-on .ig-crmcard { animation: ig-pop 9s cubic-bezier(.2, .8, .2, 1) 2.2s infinite both; }

#am-intg .ig-demo--merge { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; row-gap: 0; padding-top: 18px; max-width: 300px; width: 100%; align-self: center; }
#am-intg .ig-merge__src { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-size: 20px; color: var(--ink); background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 18px -6px var(--glow); }
#am-intg .ig-merge__src.ig-tone--ig .ig-ico { fill: url(#ig-grad-insta); }
#am-intg .ig-merge__lines { grid-column: 1 / -1; width: 100%; height: 96px; margin: 4px 0; fill: none; stroke: rgba(251, 191, 36, .55); stroke-width: 1.4; stroke-dasharray: 3 9; overflow: visible; }
#am-intg.ig-js .ig-cat.is-on .ig-merge__lines path { animation: ig-dash 5s linear infinite; }
#am-intg .ig-merge__card { grid-column: 1 / -1; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 20px; font-size: 28px; color: var(--ink);
  background: radial-gradient(circle at 50% 120%, var(--glow), transparent 62%), linear-gradient(155deg, #2c2667, #120f40 55%, #0a0927);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 1.5px rgba(255, 207, 110, .6), 0 0 34px -4px rgba(251, 191, 36, .6); }

#am-intg .ig-demo--code { position: relative; overflow: hidden; margin: auto 0 0; padding: 16px 18px; border-radius: 14px; background: rgba(4, 4, 20, .75); border: 1px solid rgba(251, 191, 36, .22);
  font: 500 13.5px/1.65 ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace; color: #d6d8ff; white-space: pre; overflow-x: auto; }
#am-intg .ig-demo--code::after { content: ''; position: absolute; left: 0; right: 0; top: 14px; height: 22px; background: linear-gradient(90deg, rgba(251, 191, 36, .14), transparent 70%); pointer-events: none; }
#am-intg.ig-js .ig-cat.is-on .ig-demo--code::after { animation: ig-scan 6s steps(1, end) infinite; }
@keyframes ig-scan { 0% { transform: translateY(0); } 17% { transform: translateY(22px); } 33% { transform: translateY(44px); } 50% { transform: translateY(66px); } 67% { transform: translateY(88px); } 83% { transform: translateY(110px); } }
#am-intg .ig-c-k { color: #ffcf5a; font-weight: 700; }
#am-intg .ig-c-s { color: #c4b5fd; }
#am-intg .ig-c-v { color: #8ff0b4; }

#am-intg .ig-demo--chart { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: 8px; padding: 0 4px; }
#am-intg .ig-demo--chart span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; transform-origin: 50% 100%;
  background: linear-gradient(180deg, #ffb26b, rgba(251, 146, 60, .25)); box-shadow: 0 0 16px -4px rgba(251, 146, 60, .6); opacity: calc(.45 + var(--i) * .045); }
#am-intg.ig-js .ig-cat.is-on .ig-demo--chart span { animation: ig-bar 4.8s ease-in-out calc(var(--i) * -.4s) infinite alternate; }
@keyframes ig-bar { from { transform: scaleY(.78); } to { transform: scaleY(1); } }
#am-intg .ig-demo--chart svg { position: absolute; inset: 0 0 auto; width: 100%; height: 70%; fill: none; stroke: #ffe39a; stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(251, 191, 36, .8)); vector-effect: non-scaling-stroke; }
#am-intg #dashboards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 40px; align-items: center; }
#am-intg #dashboards > :not(.ig-demo) { grid-column: 1; }
#am-intg #dashboards .ig-demo { grid-column: 2; grid-row: 1 / span 4; margin: 0; }

#am-intg .ig-demo--sync { display: grid; gap: 10px; margin-top: auto; padding-top: 10px; }
#am-intg .ig-demo--sync li { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
#am-intg .ig-sync__k { font-size: 14px; font-weight: 600; color: #eceeff; }
#am-intg .ig-sync__way { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 700; color: #c9b8ff; }
#am-intg .ig-sync__way i { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(196, 181, 253, .45) 0 4px, transparent 4px 8px); }
#am-intg .ig-sync__way i::after { content: ''; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #ffe39a; box-shadow: 0 0 10px 2px rgba(251, 191, 36, .9); }
#am-intg.ig-js .ig-cat.is-on .ig-sync__way i::after { animation: ig-ping 2.4s ease-in-out calc(var(--i) * .5s) infinite alternate; }
@keyframes ig-ping { from { left: 0; } to { left: calc(100% - 8px); } }
#am-intg .ig-demo--sync .ig-ico { width: 16px; height: 16px; color: #8ff0b4; }

/* ---------- how data moves ---------- */
#am-intg .ig-flow { background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(91, 33, 182, .3), transparent 70%),
    linear-gradient(180deg, #070823 0%, #0b0b2c 50%, #070823 100%); }
#am-intg .ig-board {
  position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.3fr) minmax(0, .95fr) minmax(0, 1fr); column-gap: clamp(36px, 5vw, 72px); row-gap: 30px; align-items: start;
  padding: clamp(24px, 3vw, 36px); border-radius: 28px;
  background: linear-gradient(160deg, rgba(139, 92, 246, .1), rgba(8, 8, 30, .6)); border: 1px solid rgba(196, 181, 253, .14);
}
#am-intg .ig-board__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
#am-intg .ig-board__col { position: relative; z-index: 1; display: grid; gap: 14px; align-content: start; }
#am-intg .ig-board__label { font: 700 15px/1.3 var(--ig-display); color: var(--ig-gold); }
#am-intg .ig-srcs, #am-intg .ig-syss, #am-intg .ig-results { display: grid; gap: 12px; }
#am-intg .ig-src, #am-intg .ig-sys {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px 8px 8px; border-radius: 14px; text-align: left;
  font: 600 15px/1.25 var(--ig-body); color: #eef0ff; background: rgba(12, 12, 44, .92); border: 1px solid rgba(255, 255, 255, .12);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
#am-intg .ig-src { cursor: pointer; }
#am-intg .ig-src__ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; font-size: 18px; color: var(--ink); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 16px -6px var(--glow); }
#am-intg .ig-src.ig-tone--ig .ig-ico, #am-intg .ig-say__ico.ig-tone--ig .ig-ico { fill: url(#ig-grad-insta); }
#am-intg .ig-src[aria-pressed="true"] { border-color: rgba(251, 191, 36, .85); background: rgba(40, 30, 70, .95); box-shadow: 0 0 0 1px rgba(251, 191, 36, .4), 0 0 28px -8px rgba(251, 191, 36, .7); }
@media (hover: hover) { #am-intg .ig-src:hover { border-color: rgba(251, 191, 36, .55); } }
#am-intg .ig-sys.is-hit { border-color: rgba(251, 191, 36, .8); box-shadow: 0 0 26px -8px rgba(251, 191, 36, .8); }
#am-intg .ig-sys { transition: border-color .35s, box-shadow .35s, opacity .35s; }
#am-intg .ig-board.has-pick .ig-sys:not(.is-hit) { opacity: .55; }
#am-intg .ig-layer {
  position: relative; display: grid; gap: 16px; justify-items: center; padding: 26px 22px 24px; border-radius: 22px;
  background: linear-gradient(170deg, rgba(251, 191, 36, .1), rgba(26, 20, 70, .92) 30%, rgba(10, 10, 36, .96));
  border: 1px solid rgba(251, 191, 36, .35); box-shadow: 0 0 0 1px rgba(251, 191, 36, .1), 0 30px 70px -36px rgba(251, 191, 36, .45), inset 0 1px 0 rgba(255, 255, 255, .1);
}
#am-intg .ig-layer__core { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #2e2470, #0c0a28 70%); box-shadow: 0 0 0 2px #ffcf5a, 0 0 30px rgba(251, 191, 36, .55), inset 0 0 18px rgba(251, 191, 36, .35); }
#am-intg .ig-layer__core img { width: 62%; height: auto; filter: drop-shadow(0 0 6px rgba(251, 191, 36, .6)); }
#am-intg .ig-layer__steps { display: grid; gap: 10px; width: 100%; }
#am-intg .ig-layer__steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; line-height: 1.35; color: #eceeff; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
#am-intg .ig-layer__n { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; font: 700 13px/1 var(--ig-display); color: #1c1236; background: linear-gradient(180deg, #ffe39a, #fbbf24); }
#am-intg .ig-results li { display: flex; align-items: center; gap: 12px; min-height: 52px; font-size: 15px; line-height: 1.35; color: #eceeff; }
#am-intg .ig-results .ig-ico { width: 34px; height: 34px; flex: none; padding: 8px; border-radius: 10px; color: var(--ig-gold); background: rgba(251, 191, 36, .1); box-shadow: 0 0 0 1px rgba(251, 191, 36, .3); }
#am-intg .ig-board__say { grid-column: 1 / -1; position: relative; z-index: 1; min-height: 58px; padding: 16px 20px; border-radius: 16px; background: rgba(5, 6, 22, .7); border: 1px dashed rgba(251, 191, 36, .35); }
#am-intg .ig-say { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #eceeff; }
#am-intg .ig-say[hidden] { display: none; }
#am-intg .ig-say__ico { font-size: 20px; color: var(--ink); flex: none; }
#am-intg .ig-wire { fill: none; stroke: rgba(196, 181, 253, .22); stroke-width: 1.3; }
#am-intg .ig-wire.is-hot { stroke: rgba(251, 191, 36, .9); stroke-width: 2; filter: drop-shadow(0 0 5px rgba(251, 191, 36, .8)); }
#am-intg .ig-packet { fill: #fff6dc; filter: drop-shadow(0 0 5px rgba(251, 191, 36, 1)); }
#am-intg .ig-packet--idle { fill: #c4b5fd; filter: drop-shadow(0 0 4px rgba(139, 92, 246, .9)); }

/* ---------- automation scenarios ---------- */
#am-intg .ig-cases { background: radial-gradient(ellipse 45% 60% at 100% 50%, rgba(109, 40, 217, .22), transparent 70%), var(--ig-void); }
#am-intg .ig-cases__body { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 28px; align-items: start; }
#am-intg .ig-tabs { display: grid; gap: 10px; }
#am-intg .ig-tab {
  display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 10px 16px 10px 12px; border-radius: 16px; cursor: pointer; text-align: left;
  font: 700 16px/1.25 var(--ig-display); color: #dfe1fb; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1);
  transition: border-color .25s, background-color .25s, color .25s;
}
#am-intg .ig-tab__ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; font-size: 18px; color: var(--ig-gold); background: rgba(251, 191, 36, .1); box-shadow: 0 0 0 1px rgba(251, 191, 36, .25); }
#am-intg .ig-tab[aria-selected="true"] { color: #fff; border-color: rgba(251, 191, 36, .8); background: linear-gradient(100deg, rgba(251, 191, 36, .16), rgba(139, 92, 246, .1)); box-shadow: 0 0 30px -12px rgba(251, 191, 36, .8); }
@media (hover: hover) { #am-intg .ig-tab:hover { border-color: rgba(251, 191, 36, .5); } }
#am-intg .ig-case {
  position: relative; display: grid; gap: 22px; padding: clamp(22px, 3vw, 34px); border-radius: 26px; overflow: hidden;
  background: linear-gradient(150deg, rgba(139, 92, 246, .16), rgba(12, 12, 44, .9) 45%, rgba(8, 8, 30, .95));
  border: 1px solid rgba(196, 181, 253, .18); box-shadow: 0 40px 80px -50px rgba(139, 92, 246, .7), inset 0 1px 0 rgba(255, 255, 255, .07);
}
#am-intg .ig-case[hidden] { display: none; }
#am-intg .ig-case__trigger, #am-intg .ig-case__result { display: flex; align-items: center; gap: 14px; }
#am-intg .ig-case__trigger > span:last-child, #am-intg .ig-case__result > span:last-child { display: grid; gap: 2px; }
#am-intg .ig-case__ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; font-size: 21px; color: var(--ig-gold); background: rgba(251, 191, 36, .12); box-shadow: 0 0 0 1px rgba(251, 191, 36, .35), 0 0 26px -8px rgba(251, 191, 36, .7); }
#am-intg .ig-case__ico--ok { color: #8ff0b4; background: rgba(52, 224, 122, .1); box-shadow: 0 0 0 1px rgba(52, 224, 122, .35), 0 0 26px -8px rgba(52, 224, 122, .6); }
#am-intg .ig-case__k { font-size: 13px; font-weight: 600; color: var(--ig-gold); }
#am-intg .ig-case__result .ig-case__k { color: #8ff0b4; }
#am-intg .ig-case__t { font: 700 clamp(18px, 1.6vw, 21px)/1.3 var(--ig-display); color: #fff; }
#am-intg .ig-case__steps { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; counter-reset: s; }
#am-intg .ig-case__steps::before { /* the trace through the steps and its running light */
  content: ''; position: absolute; left: 20px; right: 20px; top: 21px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(251, 191, 36, .2), rgba(251, 191, 36, .6), rgba(139, 92, 246, .4));
}
#am-intg .ig-case__steps::after { content: ''; position: absolute; top: 16px; left: 20px; width: 12px; height: 12px; border-radius: 50%; background: #fff5d6; box-shadow: 0 0 14px 4px rgba(251, 191, 36, .9); opacity: 0; }
#am-intg.ig-js .ig-cases.is-on .ig-case:not([hidden]) .ig-case__steps::after { animation: ig-run 5.4s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes ig-run { 0% { left: 20px; opacity: 0; } 8% { opacity: 1; } 84% { opacity: 1; } 92%, 100% { left: calc(100% - 32px); opacity: 0; } }
#am-intg .ig-step { position: relative; display: grid; gap: 10px; align-content: start; padding: 0 4px; }
#am-intg .ig-step__n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font: 800 17px/1 var(--ig-display); color: #1c1236; background: linear-gradient(180deg, #ffe39a, #fbbf24); box-shadow: 0 0 0 4px rgba(8, 8, 30, .9), 0 0 24px -4px rgba(251, 191, 36, .8); }
#am-intg .ig-step__t { font-size: 15.5px; line-height: 1.5; color: #eceeff; }
#am-intg .ig-step__sys { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #d9ccff; background: rgba(139, 92, 246, .16); border: 1px solid rgba(196, 181, 253, .25); }
#am-intg.ig-js .ig-cases.is-on .ig-case:not([hidden]) .ig-step__n { animation: ig-lit 5.4s ease-in-out calc(var(--j) * .9s + .5s) infinite; }
@keyframes ig-lit { 0%, 30%, 100% { box-shadow: 0 0 0 4px rgba(8, 8, 30, .9), 0 0 24px -4px rgba(251, 191, 36, .8); } 12% { box-shadow: 0 0 0 4px rgba(8, 8, 30, .9), 0 0 0 7px rgba(251, 191, 36, .35), 0 0 40px 4px rgba(251, 191, 36, .9); } }
#am-intg .ig-case__result { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---------- advantages: one gold trace through four points ---------- */
#am-intg .ig-why { background: linear-gradient(180deg, var(--ig-void), #0b0a2a 50%, var(--ig-void)); overflow: hidden; }
#am-intg .ig-rail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
#am-intg .ig-rail::before { content: ''; position: absolute; left: 0; right: 0; top: 33px; height: 2px; border-radius: 2px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, .65) 10%, rgba(196, 181, 253, .5) 50%, rgba(251, 191, 36, .65) 90%, transparent); box-shadow: 0 0 12px rgba(251, 191, 36, .45); }
#am-intg .ig-rail::after { content: ''; position: absolute; top: 28px; left: 0; width: 120px; height: 12px; border-radius: 50%; z-index: 0; opacity: 0;
  background: radial-gradient(closest-side, #fff8e1, rgba(251, 191, 36, .8) 40%, transparent); }
#am-intg.ig-js .ig-why.is-on .ig-rail::after { animation: ig-sweep 7s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes ig-sweep { 0% { transform: translateX(-120px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(calc(var(--rw, 1100px) + 20px)); opacity: 0; } }
#am-intg .ig-rail__item { position: relative; z-index: 1; display: grid; gap: 12px; align-content: start; }
#am-intg .ig-rail__ico { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; font-size: 26px; color: var(--ig-gold);
  background: radial-gradient(circle at 50% 40%, #2b2268, #0b0a26 72%); box-shadow: 0 0 0 2px rgba(251, 191, 36, .75), 0 0 0 7px rgba(5, 6, 22, 1), 0 0 30px 6px rgba(251, 191, 36, .3); }
#am-intg .ig-rail__title { margin-top: 8px; font: 700 19px/1.3 var(--ig-display); color: #fff; text-wrap: balance; }
#am-intg .ig-rail__text { font-size: 15.5px; line-height: 1.6; color: var(--ig-fog); }

/* ---------- related projects ---------- */
#am-intg .ig-work { background: radial-gradient(ellipse 50% 50% at 0% 40%, rgba(49, 29, 140, .35), transparent 70%), var(--ig-void); }
#am-intg .ig-work__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 18px; }
#am-intg .ig-proj { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 24px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(139, 92, 246, .14), rgba(12, 12, 44, .9) 45%); border: 1px solid rgba(196, 181, 253, .15); }
#am-intg .ig-proj--main { grid-row: 1 / 3; padding: 32px; border-color: rgba(251, 191, 36, .3); background: linear-gradient(160deg, rgba(251, 191, 36, .1), rgba(18, 14, 56, .92) 40%, rgba(8, 8, 30, .95)); }
#am-intg .ig-proj__kind { font-size: 13.5px; font-weight: 600; color: var(--ig-gold); }
#am-intg .ig-proj__name { font: 800 clamp(22px, 2vw, 28px)/1.2 var(--ig-display); color: #fff; }
#am-intg .ig-proj--main .ig-proj__name { font-size: clamp(28px, 2.6vw, 36px); }
#am-intg .ig-proj__text { font-size: 15.5px; line-height: 1.6; color: var(--ig-fog); max-width: 56ch; }
#am-intg .ig-chain { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 14px 0 6px; }
#am-intg .ig-chain::before { content: ''; position: absolute; left: 12%; right: 12%; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, rgba(251, 191, 36, .7) 0 6px, transparent 6px 12px); }
#am-intg .ig-chain__node { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 13.5px; line-height: 1.45; color: var(--ig-fog); }
#am-intg .ig-chain__node b { font: 700 15px/1.3 var(--ig-display); color: #fff; }
#am-intg .ig-chain__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px; font-size: 22px; color: var(--ig-gold);
  background: linear-gradient(155deg, #2c2667, #120f40 55%, #0a0927); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 1.5px rgba(255, 207, 110, .55), 0 0 26px -6px rgba(251, 191, 36, .6); }
#am-intg .ig-link { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; font: 700 15px/1.3 var(--ig-display); color: var(--ig-gold-hi); }
#am-intg .ig-link .ig-ico { width: 14px; height: 14px; transition: transform .25s; }
@media (hover: hover) { #am-intg .ig-link:hover .ig-ico { transform: translateX(4px); } #am-intg .ig-link:hover { color: #fff; } }
#am-intg .ig-work__all { margin-top: 26px; }

/* ---------- the invitation ---------- */
#am-intg .ig-final { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 10vw, 140px);
  background:
    radial-gradient(ellipse 60% 70% at 50% 120%, rgba(251, 191, 36, .28), transparent 65%),
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(109, 40, 217, .55), transparent 70%),
    linear-gradient(180deg, var(--ig-void), #0d0b33); }
#am-intg .ig-final__trails { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; }
#am-intg .ig-final::before { /* the edge of a large orbit under the invitation */
  content: ''; position: absolute; left: 50%; bottom: -62%; z-index: -1; width: min(1500px, 150vw); aspect-ratio: 1 / .34; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255, 214, 130, .7); box-shadow: 0 0 40px 6px rgba(251, 191, 36, .35), inset 0 0 80px 10px rgba(139, 92, 246, .45), 0 -30px 120px -20px rgba(139, 92, 246, .6);
}
#am-intg .ig-final::after { content: ''; position: absolute; left: 50%; bottom: -78%; z-index: -1; width: min(1900px, 190vw); aspect-ratio: 1 / .34; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(196, 181, 253, .4); box-shadow: 0 0 30px rgba(139, 92, 246, .35); }
#am-intg .ig-trail { stroke-linecap: round; stroke-width: 2; stroke-dasharray: 260 900; }
#am-intg .ig-trail--1 { stroke: url(#ig-tr-g); filter: drop-shadow(0 0 8px rgba(251, 191, 36, .9)); }
#am-intg .ig-trail--2 { stroke: url(#ig-tr-v); stroke-width: 1.5; }
#am-intg .ig-trail--3 { stroke: url(#ig-tr-v); stroke-width: 1.2; opacity: .6; }
#am-intg .ig-trail--4 { stroke: url(#ig-tr-g); stroke-width: 1.4; opacity: .7; }
#am-intg.ig-js .ig-final.is-on .ig-trail { animation: ig-trail 7s linear infinite; }
#am-intg.ig-js .ig-final.is-on .ig-trail--2 { animation-duration: 9s; animation-delay: -3s; }
#am-intg.ig-js .ig-final.is-on .ig-trail--3 { animation-duration: 11s; animation-delay: -6s; }
#am-intg.ig-js .ig-final.is-on .ig-trail--4 { animation-duration: 8s; animation-delay: -2s; }
@keyframes ig-trail { from { stroke-dashoffset: 1160; } to { stroke-dashoffset: 0; } }
#am-intg .ig-final__inner { display: grid; justify-items: center; text-align: center; gap: 20px; }
#am-intg .ig-final__title { max-width: 20ch; font: 800 clamp(32px, 3.6vw, 52px)/1.1 var(--ig-display); letter-spacing: -.01em; color: #fff; text-wrap: balance; }
#am-intg .ig-final__text { max-width: 54ch; font-size: 18px; line-height: 1.6; color: #d9dbf7; }
#am-intg .ig-final .ig-actions { justify-content: center; margin-top: 10px; }

/* ---------- tablets ---------- */
@media (max-width: 1100px) {
  #am-intg .ig-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #am-intg #messengers { grid-column: 1 / 7; grid-row: auto; }
  #am-intg #crm { grid-column: 1 / 4; grid-row: auto; }
  #am-intg #erp { grid-column: 4 / 7; grid-row: auto; }
  #am-intg #api { grid-column: 1 / 7; grid-row: auto; }
  #am-intg #middleware { grid-column: 1 / 4; grid-row: auto; }
  #am-intg #legacy { grid-column: 4 / 7; grid-row: auto; }
  #am-intg #email { grid-column: 1 / 7; grid-row: auto; }
  #am-intg #dashboards { grid-column: 1 / 7; grid-row: auto; }
  #am-intg .ig-board { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  #am-intg .ig-srcs { display: flex; flex-wrap: wrap; gap: 10px; }
  #am-intg .ig-syss { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #am-intg .ig-results { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  #am-intg .ig-layer { max-width: 560px; width: 100%; justify-self: center; }
  #am-intg .ig-cases__body { grid-template-columns: minmax(0, 1fr); }
  #am-intg .ig-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #am-intg .ig-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  #am-intg .ig-rail::before, #am-intg .ig-rail::after { display: none; }
  #am-intg .ig-work__grid { grid-template-columns: minmax(0, 1fr); }
  #am-intg .ig-proj--main { grid-row: auto; }
}
/* ---------- phones ---------- */
@media (max-width: 760px) {
  #am-intg .ig-bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #am-intg .ig-bento > .ig-tile { grid-column: 1 / -1 !important; }
  #am-intg .ig-tile, #am-intg .ig-tile--xl, #am-intg .ig-tile--tall { padding: 22px 20px; border-radius: 20px; }
  #am-intg #dashboards { display: flex; align-items: stretch; }
  #am-intg #dashboards .ig-demo { margin-top: 6px; }
  #am-intg .ig-bubble { max-width: 92%; }
  #am-intg .ig-board { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; row-gap: 40px; border-radius: 22px; }
  #am-intg .ig-srcs { display: flex; flex-wrap: wrap; gap: 8px; }
  #am-intg .ig-src { min-height: 44px; padding: 5px 12px 5px 5px; font-size: 14px; }
  #am-intg .ig-src .ig-src__ico, #am-intg .ig-sys .ig-src__ico { width: 32px; height: 32px; font-size: 16px; }
  #am-intg .ig-syss { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #am-intg .ig-sys { min-height: 46px; font-size: 14px; }
  #am-intg .ig-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
  #am-intg .ig-results li { font-size: 14px; }
  #am-intg .ig-say { font-size: 15px; align-items: flex-start; }
  #am-intg .ig-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #am-intg .ig-tab { min-height: 54px; padding: 8px 10px; gap: 10px; font-size: 14px; }
  #am-intg .ig-tab__ico { width: 34px; height: 34px; font-size: 15px; }
  #am-intg .ig-case__steps { grid-auto-flow: row; grid-auto-columns: auto; gap: 18px; padding-left: 0; }
  #am-intg .ig-case__steps::before { left: 21px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(251, 191, 36, .2), rgba(251, 191, 36, .6), rgba(139, 92, 246, .4)); }
  #am-intg .ig-case__steps::after { display: none; }
  #am-intg .ig-step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; }
  #am-intg .ig-step__n { grid-row: 1 / 3; }
  #am-intg .ig-rail { grid-template-columns: minmax(0, 1fr); row-gap: 28px; padding-left: 0; }
  #am-intg .ig-rail__item { grid-template-columns: 68px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; }
  #am-intg .ig-rail__ico { grid-row: 1 / 3; }
  #am-intg .ig-rail__title { margin-top: 4px; }
  #am-intg .ig-chain { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #am-intg .ig-chain::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(251, 191, 36, .7) 0 6px, transparent 6px 12px); }
  #am-intg .ig-chain__node { grid-template-columns: 56px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 14px; row-gap: 2px; align-items: center; }
  #am-intg .ig-chain__ico { grid-row: 1 / 3; }
  #am-intg .ig-proj, #am-intg .ig-proj--main { padding: 22px 20px; }
  #am-intg .ig-final .ig-actions .ig-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #am-intg .ig-demo *, #am-intg .ig-demo, #am-intg .ig-demo::after, #am-intg .ig-trail, #am-intg .ig-rail::after, #am-intg .ig-case__steps::after, #am-intg .ig-step__n, #am-intg .ig-swoosh { animation: none !important; }
  #am-intg .ig-tile, #am-intg .ig-tile::before { transition: none; }
}
#am-intg.ig-capture *, #am-intg.ig-capture *::before, #am-intg.ig-capture *::after { animation: none !important; }
