/* ============================================================
   INDUSTRIES — styles for every page in /industries.
   Loads after umbraco-agency.css and reuses its shared parts
   (hero, word-split headings, masked images, ticker, CTA,
   carousel, FAQ, contact). Everything here is the `in-`
   sections. Hover lifts use `translate`/`scale` so they never
   fight the `.reveal` transform from home.css.
   ============================================================ */

@keyframes inNode { 0%, 22%, 100% { background: #1b2232; border-color: rgba(255, 255, 255, 0.1); color: #8fa2b8; box-shadow: none; } 4%, 16% { background: #29abe2; border-color: #7fd6f7; color: #fff; box-shadow: 0 0 0 6px rgba(41, 171, 226, 0.18), 0 14px 26px -10px rgba(41, 171, 226, 0.9); } }
@keyframes inLabel { 0%, 22%, 100% { color: #cfd5df; } 4%, 16% { color: #fff; } }
@keyframes inPulseX { from { background-position: -45% 0; } to { background-position: 145% 0; } }
@keyframes inPulseY { from { background-position: 0 -45%; } to { background-position: 0 145%; } }
@keyframes inBar { to { scale: 1 1; } }
@keyframes inRoll { from { opacity: 0; translate: 0 26%; } }
@keyframes inShow { from { opacity: 0; translate: 0 8px; } }

/* ============================================================
   CHAPTER PILL — where you are on the page, and a way to jump
   ============================================================ */
.in-pill { --p: 0; position: fixed; left: 50%; bottom: 18px; z-index: 60; translate: -50% 0; transition: opacity 0.4s ease, translate 0.5s var(--ease); }
.in-pill:not(.is-on) { opacity: 0; translate: -50% 28px; pointer-events: none; }
.in-pill__btn {
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 18px 0 7px;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.6);
  font-size: 13.5px; font-weight: 600; color: #fff;
  white-space: nowrap;
}
.in-pill__ring { position: relative; display: grid; place-items: center; width: 36px; height: 36px; }
.in-pill__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.in-pill__ring circle { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 3; }
.in-pill__ring .in-pill__arc { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); }
.in-pill__ring b { font-family: var(--font-display); font-size: 11px; }
.in-pill__now.is-swap { animation: inShow 0.4s var(--ease); }
.in-pill__btn > i { font-size: 11px; color: var(--cyan); transition: rotate 0.35s var(--ease); }
.in-pill.is-open .in-pill__btn > i { rotate: 180deg; }
.in-pill__menu {
  position: absolute; left: 50%; bottom: calc(100% + 10px); translate: -50% 0;
  width: 260px; padding: 12px;
  border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 34px 70px -24px rgba(16, 24, 40, 0.5);
  animation: inShow 0.35s var(--ease);
}
.in-pill__menu p { padding: 4px 10px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.in-pill__menu a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--ink); transition: background 0.25s ease, color 0.25s ease; }
.in-pill__menu a span { width: 20px; font-family: var(--font-display); font-size: 11px; color: var(--muted); }
.in-pill__menu a:hover, .in-pill__menu a.is-active { background: var(--cyan-soft); color: var(--cyan-deep); }
.in-pill__menu a.is-active span { color: var(--cyan); }

/* ============================================================
   HERO — the industry's workflow, running live
   ============================================================ */
.in-hero__title { max-width: 18ch; }
.in-badge-ico { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(140deg, var(--cyan), #1477b8); color: #fff; font-size: 12px; }

.in-stage {
  --cycle: 5s;
  position: relative;
  width: min(960px, 100% - 112px);
  margin: clamp(52px, 5.5vw, 80px) auto 0;
  padding-bottom: clamp(70px, 7vw, 100px);
}
.js .reveal.in-stage { opacity: 1; transform: none; }

.in-flow {
  position: relative; z-index: 1;
  border-radius: 22px;
  background: linear-gradient(170deg, #131a2b, #0a0d16 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.7), 0 60px 90px -44px rgba(16, 24, 40, 0.7);
  text-align: left;
  transition: opacity 0.9s ease, translate 1.2s var(--ease), scale 1.2s var(--ease);
}
.js .in-stage:not(.is-in) .in-flow { opacity: 0; translate: 0 70px; scale: 0.94; }
.in-flow__bar { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.in-flow__dots { display: flex; gap: 7px; }
.in-flow__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.in-flow__dots i:nth-child(2) { background: #febc2e; }
.in-flow__dots i:nth-child(3) { background: #28c840; }
.in-flow__name { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; color: #cfd5df; }
.in-flow__name i { color: var(--cyan); }
.in-flow__live { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7ee2a8; }
.in-flow__live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: uaPing 1.8s ease-out infinite; }

.in-flow__steps { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; padding: 36px 26px 20px; }
/* the track runs from the first node's centre to the last; a pulse travels along it */
.in-flow__steps::before, .in-flow__steps::after {
  content: ""; position: absolute; top: calc(36px + 28px); height: 2px; pointer-events: none;
  left: calc(26px + (100% - 52px - (var(--n) - 1) * 12px) / var(--n) / 2);
  right: calc(26px + (100% - 52px - (var(--n) - 1) * 12px) / var(--n) / 2);
}
.in-flow__steps::before { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 6px, transparent 6px 12px); }
.in-flow__steps::after { background: linear-gradient(90deg, transparent, var(--cyan), #9be3ff, var(--cyan), transparent) no-repeat; background-size: 30% 100%; filter: drop-shadow(0 0 6px rgba(41, 171, 226, 0.9)); animation: inPulseX var(--cycle) linear infinite; }
.in-flow__steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.in-flow__node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 17px; background: #1b2232; border: 1px solid rgba(255, 255, 255, 0.1); color: #8fa2b8; font-size: 20px; }
.in-flow__steps b { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; color: #cfd5df; }
.in-flow__steps small { font-size: 12px; line-height: 1.45; color: #7c8597; }
.in-stage.is-in .in-flow__node { animation: inNode var(--cycle) linear calc(var(--k) * var(--cycle) / var(--n)) infinite both; }
.in-stage.is-in .in-flow__steps b { animation: inLabel var(--cycle) linear calc(var(--k) * var(--cycle) / var(--n)) infinite both; }
.in-stage.is-paused .in-flow__node, .in-stage.is-paused .in-flow__steps b, .in-stage.is-paused .in-flow__steps::after { animation-play-state: paused; }
.in-flow__result {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 4px 26px 0; padding: 14px 16px 40px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 13px; font-weight: 600; color: #a7f3c4; text-align: center;
}
.in-flow__result i { color: #22c55e; }

/* two figures pinned over the card's lower corners */
.in-chip {
  position: absolute; z-index: 2; bottom: clamp(30px, 3.4vw, 52px);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  box-shadow: 0 30px 50px -28px rgba(16, 24, 40, 0.45);
  text-align: left;
  transition: opacity 0.8s ease 0.9s, scale 1s var(--ease) 0.9s;
}
.in-chip--a { left: -44px; }
.in-chip--b { right: -44px; transition-delay: 1.1s; }
.js .in-stage:not(.is-in) .in-chip { opacity: 0; scale: 0.8; }
.in-stage.is-in .in-chip { animation: uaBob 6s ease-in-out 1.4s infinite; }
.in-stage.is-in .in-chip--b { animation-delay: 2.4s; }
.in-chip__ico { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(140deg, var(--cyan), #1477b8); color: #fff; font-size: 17px; }
.in-chip b { display: block; font-family: var(--font-display); font-size: 21px; line-height: 1.1; letter-spacing: -0.02em; color: var(--black); }
.in-chip small { display: block; font-size: 12px; color: var(--muted); }

/* ============================================================
   OVERVIEW — copy beside the numbers
   ============================================================ */
.in-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(48px, 6vw, 100px); }
.in-intro .ua-h2 { max-width: 16ch; }
.in-intro__p { max-width: 540px; margin-top: 16px; font-size: 15.5px; line-height: 1.8; color: var(--text); }
.in-intro__p--lead { margin-top: 26px; font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 20px); font-weight: 600; line-height: 1.55; color: var(--ink); }
.in-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.in-stats .ua-bento__tile { grid-column: auto; min-height: 210px; }
.in-stat__text { font-size: clamp(28px, 2.5vw, 38px); overflow-wrap: anywhere; }

/* ============================================================
   TRENDS — a deck you flip through (drag, arrows or index)
   ============================================================ */
.in-deck { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.in-deck__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(40px, 5vw, 90px); }
.in-deck__side .ua-lead { margin-top: 22px; }
.in-deck__index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.in-deck__index button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
.in-deck__index button span { font-family: var(--font-display); font-size: 11px; color: var(--muted); transition: color 0.3s ease; }
.in-deck__index button:hover { border-color: rgba(41, 171, 226, 0.5); }
.in-deck__index button[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; }
.in-deck__index button[aria-pressed="true"] span { color: var(--cyan); }
.in-deck__stage { padding: 34px 56px 0 0; }
.js .reveal.in-deck__stage { transform: none; }
.in-deck__cards { position: relative; display: grid; }
.in-tcard {
  grid-area: 1 / 1;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 390px;
  padding: clamp(28px, 3vw, 44px);
  border-radius: 28px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 40px 70px -46px rgba(16, 24, 40, 0.55);
  transform-origin: 50% 100%;
  transition: transform 0.7s var(--ease), opacity 0.5s ease, background 0.4s ease;
  touch-action: pan-y; user-select: none;
}
.in-tcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--cyan), #1477b8); }
.in-tcard[data-pos="0"] { z-index: 4; cursor: grab; }
.in-tcard[data-pos="0"].is-dragging { cursor: grabbing; transition: none; }
.in-tcard[data-pos="1"] { z-index: 3; transform: translate(20px, -16px) rotate(2deg) scale(0.96); background: #fbfcfd; pointer-events: none; }
.in-tcard[data-pos="2"] { z-index: 2; transform: translate(38px, -30px) rotate(4deg) scale(0.92); background: #f5f7fa; opacity: 0.75; pointer-events: none; }
.in-tcard[data-pos="3"] { z-index: 1; transform: translate(44px, -36px) rotate(5deg) scale(0.9); opacity: 0; pointer-events: none; }
.in-tcard.is-out { transition: transform 0.45s var(--ease), opacity 0.4s ease; opacity: 0; }
.in-tcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.in-tcard__tag { padding: 6px 12px; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan-deep); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.in-tcard__n { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--muted); }
.in-tcard h3 { margin-top: 36px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; color: var(--black); }
.in-tcard > p:not(.in-tcard__help) { margin: 14px 0 26px; font-size: 16px; line-height: 1.7; color: var(--text); }
.in-tcard__help { display: flex; align-items: flex-start; gap: 14px; margin-top: auto; padding-top: 22px; border-top: 1px dashed var(--border); font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.in-tcard__help > span:first-child { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, var(--cyan), #1477b8); color: #fff; font-size: 14px; }
.in-tcard__help b { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-deep); }
.in-deck__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.in-deck__arrow { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 1px solid var(--border); color: var(--ink); transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.in-deck__arrow:hover { background: var(--black); border-color: var(--black); color: #fff; }
.in-deck__count { font-family: var(--font-display); font-size: 14px; color: var(--muted); }
.in-deck__count b { font-size: 22px; color: var(--black); }
.in-deck__hint { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12.5px; color: var(--muted); }
.in-deck__hint i { color: var(--cyan); }

/* ============================================================
   CHALLENGES — pick a problem, see our answer
   ============================================================ */
.in-fix__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: stretch; gap: clamp(24px, 3.5vw, 56px); }
.in-fix__list { display: flex; flex-direction: column; gap: 10px; }
.in-fix__tab {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 30px 46px minmax(0, 1fr); align-items: center; gap: 14px;
  width: 100%; padding: 16px 20px;
  border-radius: 18px;
  background: #fff; border: 1px solid var(--line);
  text-align: left; cursor: pointer;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, translate 0.4s var(--ease);
}
.in-fix__tab:hover { border-color: rgba(41, 171, 226, 0.35); translate: 4px 0; }
.in-fix__tab.is-active { border-color: rgba(41, 171, 226, 0.5); box-shadow: 0 26px 44px -34px rgba(41, 171, 226, 0.8); translate: 0 0; }
.in-fix__n { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--muted); transition: color 0.3s ease; }
.in-fix__tab.is-active .in-fix__n { color: var(--cyan); }
.in-fix__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--cyan-soft); color: var(--cyan-deep); font-size: 17px; transition: background 0.4s ease, color 0.4s ease, rotate 0.6s var(--ease); }
.in-fix__tab.is-active .in-fix__ico { background: var(--cyan); color: #fff; rotate: -10deg; }
.in-fix__t { font-family: var(--font-display); font-size: clamp(15.5px, 1.25vw, 17.5px); font-weight: 700; line-height: 1.3; color: var(--black); }
.in-fix__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.in-fix__bar span { display: block; height: 100%; background: var(--cyan); transform-origin: left; scale: 0 1; }
.in-fix__grid.is-running .in-fix__tab.is-active .in-fix__bar span { animation: inBar var(--cycle, 6.5s) linear forwards; }

/* all answers share one cell, so switching never changes the height */
.in-fix__panels { position: relative; isolation: isolate; display: grid; border-radius: 28px; background: linear-gradient(160deg, #0d1424, #0a0a0f 70%); overflow: hidden; }
.in-fix__panels::before { content: ""; position: absolute; right: -180px; top: -220px; z-index: -1; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(41, 171, 226, 0.24), transparent 65%); pointer-events: none; animation: uaPulse 8s ease-in-out infinite; }
.in-fix__panel { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3.2vw, 46px); opacity: 0; translate: 0 14px; visibility: hidden; transition: opacity 0.45s ease, translate 0.6s var(--ease), visibility 0s linear 0.45s; }
.in-fix__panel.is-active { opacity: 1; translate: 0 0; visibility: visible; transition-delay: 0.08s, 0.08s, 0s; }
.in-fix__label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.in-fix__label--pain { background: rgba(255, 107, 107, 0.12); color: #ffa3a3; }
.in-fix__label--fix { margin-top: 26px; background: rgba(41, 171, 226, 0.16); color: #bfe8fa; }
.in-fix__panel h3 { margin-top: 16px; font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.2; color: #fff; }
.in-fix__pain { margin-top: 10px; font-size: 15px; line-height: 1.75; color: #9aa3b2; }
.in-fix__sol { margin: 12px 0 28px; font-size: 16px; line-height: 1.75; color: #e8eaf0; }
.in-fix__out { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 16px; border-radius: 12px; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.22); font-size: 13.5px; font-weight: 600; color: #a7f3c4; }

/* ============================================================
   SERVICES — what we build
   ============================================================ */
.in-svc__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.in-card {
  --gx: 50%; --gy: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: 24px;
  background: #fff; border: 1px solid var(--line);
  transition: translate 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}
.in-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(380px circle at var(--gx) var(--gy), rgba(41, 171, 226, 0.12), transparent 60%); opacity: 0; transition: opacity 0.4s ease; }
.in-card:hover { translate: 0 -6px; border-color: rgba(41, 171, 226, 0.45); box-shadow: 0 36px 56px -40px rgba(41, 171, 226, 0.7); }
.in-card:hover::before { opacity: 1; }
.in-card__n { position: absolute; right: 22px; top: 14px; font-family: var(--font-display); font-size: 58px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #f0f2f6; transition: color 0.4s ease; }
.in-card:hover .in-card__n { color: #e3f2fa; }
.in-card__ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(140deg, var(--cyan), #1477b8); color: #fff; font-size: 20px; box-shadow: 0 16px 30px -12px rgba(41, 171, 226, 0.8); transition: rotate 0.5s var(--ease); }
.in-card:hover .in-card__ico { rotate: -10deg; }
.in-card h3 { margin-top: 26px; font-size: clamp(18px, 1.5vw, 21px); font-weight: 700; line-height: 1.25; color: var(--black); }
.in-card p { margin: 10px 0 20px; font-size: 14.5px; line-height: 1.7; color: var(--text); }
.in-card__pts { display: flex; flex-direction: column; gap: 9px; width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.in-card__pts li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.in-card__pts li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%231290c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 9px;
}

/* ============================================================
   PROCESS — the big number follows the step you're reading
   ============================================================ */
.in-process { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.in-process__grid { --p: 0.2; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(48px, 6vw, 110px); }
.in-process__side { position: sticky; top: 120px; }
.in-process__side .ua-lead { margin-top: 20px; }
.in-process__meter { display: block; margin-top: 40px; }
.in-process__num { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); }
.in-process__num b { display: inline-block; font-size: clamp(90px, 10vw, 160px); font-weight: 800; line-height: 0.9; letter-spacing: -0.06em; color: var(--black); }
.in-process__num b.is-roll { animation: inRoll 0.55s var(--ease); }
.in-process__num small { font-size: 18px; font-weight: 700; color: var(--muted); }
.in-process__bar { display: block; height: 4px; margin-top: 22px; border-radius: 4px; background: var(--line); overflow: hidden; }
.in-process__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), #1477b8); transform-origin: left; scale: var(--p) 1; transition: scale 0.6s var(--ease); }
.in-process__cur { display: block; margin-top: 14px; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--cyan-deep); }
.in-process__cur.is-swap { animation: inShow 0.45s var(--ease); }
.in-pstep { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 44vh; padding: 40px 0; border-bottom: 1px solid var(--line); opacity: 0.3; transition: opacity 0.5s ease; }
.in-pstep:first-child { padding-top: 0; min-height: 36vh; justify-content: flex-start; }
.in-pstep:last-child { border-bottom: 0; }
.in-pstep.is-active { opacity: 1; }
.in-pstep__ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: var(--cyan-soft); color: var(--cyan-deep); font-size: 21px; transition: background 0.45s ease, color 0.45s ease, box-shadow 0.45s ease; }
.in-pstep.is-active .in-pstep__ico { background: var(--cyan); color: #fff; box-shadow: 0 18px 30px -12px rgba(41, 171, 226, 0.8); }
.in-pstep__n { margin-top: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-deep); }
.in-pstep h3 { margin-top: 8px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; color: var(--black); }
.in-pstep p { max-width: 520px; margin-top: 12px; font-size: 16px; line-height: 1.75; color: var(--text); }

/* ============================================================
   TECH STACK
   ============================================================ */
.in-stack__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.in-stack__group { padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: translate 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease; }
.in-stack__group:hover { translate: 0 -5px; border-color: rgba(41, 171, 226, 0.4); box-shadow: 0 30px 50px -38px rgba(16, 24, 40, 0.45); }
.in-stack__group h3 { display: flex; align-items: center; gap: 12px; font-size: 16.5px; font-weight: 700; color: var(--black); }
.in-stack__group h3 span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--cyan-soft); color: var(--cyan-deep); font-size: 16px; transition: background 0.4s ease, color 0.4s ease; }
.in-stack__group:hover h3 span { background: var(--cyan); color: #fff; }
.in-stack__group ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.in-stack__group li { padding: 7px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink); transition: border-color 0.3s ease, color 0.3s ease; }
.in-stack__group li:hover { border-color: var(--cyan); color: var(--cyan-deep); }

/* ============================================================
   WHY US + compliance + testimonial
   ============================================================ */
.in-why__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(48px, 6vw, 100px); }
.in-why__head { position: sticky; top: 140px; }
.in-why__head .ua-lead { margin-top: 22px; }
.in-why__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.in-why__badges li { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.in-why__badges .in-why__badge { padding-left: 6px; }
.in-why__badges img { width: 34px; height: 34px; }
.in-why__list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.in-why__item { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); transition: translate 0.5s var(--ease), border-color 0.4s ease; }
.in-why__item:hover { translate: 0 -5px; border-color: rgba(41, 171, 226, 0.4); }
.in-why__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--cyan-soft); color: var(--cyan-deep); font-size: 17px; transition: background 0.4s ease, color 0.4s ease, rotate 0.5s var(--ease); }
.in-why__item:hover .in-why__ico { background: var(--cyan); color: #fff; rotate: -10deg; }
.in-why__item h3 { margin-top: 18px; font-size: 17.5px; font-weight: 700; line-height: 1.3; color: var(--black); }
.in-why__item p { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--text); }

.in-quote { position: relative; isolation: isolate; overflow: hidden; margin: clamp(60px, 7vw, 100px) 0 0; padding: clamp(30px, 4.2vw, 60px); border-radius: 30px; background: linear-gradient(130deg, #1290c7, var(--cyan) 50%, #3fc0f0); color: #fff; }
.in-quote::after { content: ""; position: absolute; right: -120px; bottom: -200px; z-index: -1; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 65%); }
.in-quote__mark { position: absolute; right: clamp(24px, 4vw, 60px); top: clamp(18px, 3vw, 40px); z-index: -1; font-size: clamp(90px, 10vw, 150px); color: rgba(255, 255, 255, 0.16); }
.in-quote blockquote { max-width: 860px; }
.in-quote blockquote p { font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; }
.in-quote blockquote p + p { margin-top: 14px; }
.in-quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.in-quote figcaption img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.6); object-fit: cover; }
.in-quote figcaption b { display: block; font-family: var(--font-display); font-size: 16px; }
.in-quote figcaption small { font-size: 13px; color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   CASE STUDIES — reuses the resources carousel
   ============================================================ */
.in-work { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.in-case .ua-res__img img { object-position: center 30%; }
.in-case__more { gap: 8px; color: var(--cyan-deep); }
.in-case__more i { transition: translate 0.35s var(--ease); }
.in-case:hover .in-case__more i { translate: 4px 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .in-stage { width: min(960px, 100% - 48px); }
  .in-chip--a { left: -12px; }
  .in-chip--b { right: -12px; }
  .in-stack__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  /* the figures line up under the card instead of covering it */
  .in-stage { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .in-flow { flex: 0 0 100%; margin-bottom: 20px; }
  .in-flow__result { padding-bottom: 16px; }
  .in-chip { position: relative; inset: auto; }
  .in-stage.is-in .in-chip { animation: none; }

  .in-intro__grid, .in-fix__grid, .in-deck__grid, .in-process__grid, .in-why__grid { grid-template-columns: minmax(0, 1fr); }
  .in-svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .in-deck__stage { padding: 30px 56px 0 0; }
  .in-fix__panels { min-height: 0; }
  .in-why__head { position: static; }
  /* process: a plain list, every step readable */
  .in-process__side { position: static; }
  .in-process__meter { display: none; }
  .in-pstep, .in-pstep:first-child { min-height: 0; padding: 30px 0; opacity: 1; }
  .in-pstep .in-pstep__ico { background: var(--cyan); color: #fff; }
}

@media (max-width: 767px) {
  .in-stage { width: calc(100% - 32px); margin-top: 40px; padding-bottom: 36px; }
  .in-flow { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7), 0 40px 60px -36px rgba(16, 24, 40, 0.7); }
  .in-flow__bar { gap: 10px; padding: 11px 12px; }
  .in-flow__dots i { width: 9px; height: 9px; }
  .in-flow__live { display: none; }
  /* the workflow reads top to bottom on a phone */
  .in-flow__steps { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 18px 12px; }
  .in-flow__steps::before, .in-flow__steps::after { left: calc(18px + 21px); right: auto; top: calc(20px + 21px); bottom: calc(12px + 21px); width: 2px; height: auto; }
  .in-flow__steps::before { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0 6px, transparent 6px 12px); }
  .in-flow__steps::after { background: linear-gradient(180deg, transparent, var(--cyan), #9be3ff, var(--cyan), transparent) no-repeat; background-size: 100% 30%; animation-name: inPulseY; }
  .in-flow__steps li { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: left; gap: 0 14px; }
  .in-flow__node { grid-row: 1 / span 2; width: 42px; height: 42px; margin: 0; border-radius: 13px; font-size: 16px; }
  .in-flow__steps b { font-size: 14px; }
  .in-flow__steps small { font-size: 12px; }
  .in-flow__result { margin: 0 18px; padding: 12px 0 16px; font-size: 12px; }
  .in-chip { flex: 1 1 140px; padding: 10px 12px 10px 10px; gap: 10px; border-radius: 16px; }
  .in-chip__ico { width: 38px; height: 38px; font-size: 15px; }
  .in-chip b { font-size: 18px; }
  .in-chip small { font-size: 11px; }

  .in-intro__p--lead { font-size: 16.5px; }
  .in-stats { gap: 12px; }
  .in-stats .ua-bento__tile { min-height: 170px; }
  .in-stat__text { font-size: 21px; }

  .in-svc__grid, .in-stack__grid, .in-why__list { grid-template-columns: minmax(0, 1fr); }
  .in-card { border-radius: 20px; }

  .in-deck__stage { padding: 22px 34px 0 0; }
  .in-tcard { min-height: 0; padding: 24px 22px; border-radius: 22px; }
  .in-tcard[data-pos="1"] { transform: translate(10px, -10px) rotate(1.5deg) scale(0.97); }
  .in-tcard[data-pos="2"] { transform: translate(18px, -18px) rotate(3deg) scale(0.94); }
  .in-tcard[data-pos="3"] { transform: translate(22px, -22px) rotate(3.5deg) scale(0.92); }
  .in-tcard h3 { margin-top: 24px; font-size: 22px; }
  .in-tcard > p:not(.in-tcard__help) { font-size: 15px; }
  .in-deck__hint { display: none; }
  .in-deck__ctrl { justify-content: space-between; }
  .in-pstep h3 { font-size: 22px; }
  .in-pill { bottom: 14px; }

  /* the problems become a swipeable row above the answer */
  .in-fix__list { flex-direction: row; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .in-fix__list::-webkit-scrollbar { display: none; }
  .in-fix__tab { flex: 0 0 min(250px, 72vw); grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px; scroll-snap-align: start; }
  .in-fix__tab:hover { translate: 0 0; }
  .in-fix__n { display: none; }
  .in-fix__ico { width: 40px; height: 40px; font-size: 15px; }
  .in-fix__t { font-size: 15px; }
  .in-fix__panels { border-radius: 22px; }
  .in-fix__panel { padding: 24px 20px; }
  .in-fix__sol { font-size: 15px; }


  .in-stack__group, .in-why__item { padding: 22px; }
  .in-quote { border-radius: 24px; }
  .in-quote__mark { font-size: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .in-stage.is-in .in-flow__node, .in-stage.is-in .in-flow__steps b, .in-flow__steps::after, .in-stage.is-in .in-chip { animation: none; }
  .in-tcard { transition: none; }
}
