/* ============================================================
   UMBRACO DEVELOPER — page styles.
   Loads after umbraco-agency.css and reuses its shared parts
   (hero, word-split headings, masked images, CTA, resources,
   FAQ, contact). Everything here is the `ud-` sections that only
   this page has. Hover lifts use `translate`/`scale` so they never
   fight the `.reveal` transform from home.css.
   ============================================================ */

.ud-hero, .ud-way, .ud-steps { --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

@keyframes udType { to { width: calc(var(--n) * 1ch); } }
@keyframes udShow { to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes udHide { to { opacity: 0; } }
@keyframes udBlink { 50% { opacity: 0; } }
@keyframes udDone { to { background: #22c55e; } }
@keyframes udComet { from { stroke-dashoffset: 8; } to { stroke-dashoffset: -92; } }
@keyframes udNode { 0%, 18%, 100% { fill: #141b2b; stroke: rgba(255, 255, 255, 0.14); } 4%, 12% { fill: rgba(41, 171, 226, 0.24); stroke: #29abe2; } }
@keyframes udLabel { 0%, 18%, 100% { fill: #7c8597; } 4%, 12% { fill: #fff; } }
@keyframes udIter { 0%, 33.4%, 100% { opacity: 0; } 2%, 31% { opacity: 1; } }
@keyframes udFill { 0% { scale: 0 1; opacity: 1; } 14%, 78% { scale: 1 1; opacity: 1; } 90%, 100% { scale: 1 1; opacity: 0; } }
@keyframes udBar { to { scale: 1 1; } }
@keyframes udLine { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes udRing { 0% { box-shadow: 0 0 0 0 rgba(41, 171, 226, 0.55); } 100% { box-shadow: 0 0 0 12px rgba(41, 171, 226, 0); } }
@keyframes udJoin { 0% { translate: 18px 0; opacity: 0; scale: 0.6; } 100% { translate: 0 0; opacity: 1; scale: 1; } }
@keyframes udSwap { from { opacity: 0; translate: 0 8px; } }
@property --ud-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes udAng { to { --ud-ang: 360deg; } }

/* ============================================================
   HERO — an editor types the team into being
   ============================================================ */
.ud-hero__title { max-width: 19ch; }

.ud-stage {
  --s: 0; --mx: 0; --my: 0;
  position: relative;
  width: min(1120px, 100% - 48px);
  margin: clamp(52px, 5.5vw, 80px) auto 0;
  padding-bottom: clamp(60px, 6vw, 92px);
}
.js .reveal.ud-stage { opacity: 1; transform: none; }

.ud-code {
  --total: 0s;
  position: relative; z-index: 1;
  width: min(620px, 100%);
  margin: 0 auto;
  border-radius: 20px;
  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;
  transform: perspective(1400px) rotateX(calc(var(--my) * -3deg)) rotateY(calc(var(--mx) * 4deg)) translateY(calc(var(--s) * -24px));
  transition: opacity 0.9s ease, translate 1.2s var(--ease), scale 1.2s var(--ease);
}
.js .ud-stage:not(.is-in) .ud-code { opacity: 0; translate: 0 70px; scale: 0.94; }

.ud-code__bar { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.ud-code__dots { display: flex; gap: 7px; }
.ud-code__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.ud-code__dots i:nth-child(2) { background: #febc2e; }
.ud-code__dots i:nth-child(3) { background: #28c840; }
.ud-code__tab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); font-family: var(--mono); font-size: 12px; color: #cfd5df; }
.ud-code__tab svg { width: 15px; height: 15px; color: #8fa2ff; }
.ud-code__state { display: inline-grid; grid-template-columns: 8px auto; align-items: center; gap: 8px; margin-left: auto; font-size: 11.5px; font-weight: 600; color: #8a93a5; }
.ud-code__state i { width: 8px; height: 8px; border-radius: 50%; background: #febc2e; }
.ud-code__state em { grid-area: 1 / 2; font-style: normal; white-space: nowrap; }
.ud-code__done { opacity: 0; color: #7ee2a8; }
.ud-stage.is-in .ud-code__state i { animation: udDone 0.01s linear var(--total) forwards; }
.ud-stage.is-in .ud-code__busy { animation: udHide 0.3s ease var(--total) forwards; }
.ud-stage.is-in .ud-code__done { animation: udShow 0.3s ease var(--total) forwards; }

.ud-code__body {
  margin: 0; padding: 20px 22px 30px 0;
  overflow: hidden;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.8; color: #c9d1e0;
  white-space: normal;
  counter-reset: ln;
}
.ud-code__body code { font: inherit; }
.ud-ln { display: block; white-space: nowrap; counter-increment: ln; }
.ud-ln::before { content: counter(ln); display: inline-block; width: 50px; padding-right: 18px; text-align: right; color: #536079; user-select: none; }
.ud-ln > span { display: inline-block; vertical-align: top; white-space: pre; overflow: hidden; }
.ud-ln b { font-weight: inherit; }
.ud-ln .k { color: #c792ea; }
.ud-ln .t { color: #7fd6f7; }
.ud-ln .f { color: #82aaff; }
.ud-ln .n { color: #f78c6c; }
.ud-ln .s { color: #c3e88d; }
.ud-code.is-typing .ud-ln > span { width: 0; }
/* `start` steps: a one-character line would otherwise end at 0.9999 progress and round down to nothing */
.ud-stage.is-in .ud-code.is-typing .ud-ln > span { animation: udType var(--dur) steps(var(--n), start) var(--d) forwards; }
.ud-ln:last-child::after {
  content: ""; display: inline-block; vertical-align: -0.22em;
  width: 8px; height: 1.15em; margin-left: 3px;
  background: var(--cyan);
  animation: udBlink 1s steps(1) infinite;
}

.ud-code__toast {
  position: absolute; right: 18px; bottom: -20px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 20px 36px -18px rgba(16, 24, 40, 0.5);
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  opacity: 0; translate: 0 10px;
}
.ud-code__toast i { color: #22c55e; }
.ud-stage.is-in .ud-code__toast { animation: udShow 0.6s var(--ease) var(--total) forwards; }

/* floating cards drift with the pointer (by depth --z) and part as the hero scrolls away */
.ud-float {
  --bd: 0s;
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 30px 50px -28px rgba(16, 24, 40, 0.45);
  text-align: left;
  transform: translate(calc(var(--mx) * var(--z) * 18px), calc(var(--my) * var(--z) * 12px + var(--s) * var(--z) * -70px));
  transition: opacity 0.8s ease var(--fd, 0.5s), scale 1s var(--ease) var(--fd, 0.5s);
}
.js .ud-stage:not(.is-in) .ud-float { opacity: 0; scale: 0.8; }
.ud-stage.is-in .ud-float { animation: uaBob 6s ease-in-out var(--bd) infinite; }
.ud-float b { display: block; font-family: var(--font-display); font-size: 14.5px; color: var(--black); }
.ud-float small { display: block; font-size: 12px; color: var(--muted); }

.ud-float--dev { --fd: 0.7s; --bd: 0.4s; left: 0; top: 14%; }
.ud-float__avatar { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #e6f4fb, #cfe9f6); }
.ud-float__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.ud-float--dev > i { margin-left: 4px; color: var(--cyan); font-size: 18px; }

.ud-float--ready { --fd: 0.9s; --bd: 1.6s; right: 0; top: 2%; flex-direction: column; align-items: flex-start; gap: 0; padding: 16px 18px; }
.ud-float--ready b { margin-top: 2px; font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; }
.ud-float__team { display: flex; margin-top: 10px; }
.ud-float__team img, .ud-float__team em { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; object-position: center 12%; background: linear-gradient(160deg, #e6f4fb, #cfe9f6); }
.ud-float__team > * + * { margin-left: -10px; }
.ud-float__team em { display: grid; place-items: center; background: var(--cyan); color: #fff; font-style: normal; font-weight: 700; }

.ud-float--proj { --fd: 1.1s; --bd: 0.9s; left: 6%; bottom: 18%; }
.ud-float__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(140deg, var(--cyan), #1477b8); color: #fff; font-size: 16px; }
.ud-float--proj b { font-size: 22px; line-height: 1; }

.ud-float--medal { --fd: 1.3s; --bd: 2.2s; right: 4%; bottom: 26%; }
.ud-float--medal img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 12px 20px -10px rgba(40, 58, 151, 0.6); }

/* ============================================================
   OVERVIEW — partner check
   ============================================================ */
.ud-claim__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(48px, 6vw, 100px); }
.ud-claim .ua-h2 { max-width: 15ch; }
.ud-claim__lead { max-width: 540px; 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); }
.ud-claim__text { max-width: 540px; margin-top: 16px; font-size: 15.5px; line-height: 1.8; color: var(--text); }
.ud-claim__sectors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ud-claim__sectors li {
  display: inline-flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 16px 0 7px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  transition: translate 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.ud-claim__sectors li:hover { translate: 0 -3px; border-color: rgba(41, 171, 226, 0.5); box-shadow: 0 16px 26px -18px rgba(41, 171, 226, 0.8); }
.ud-claim__sectors i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan-deep); font-size: 12px; }

.ud-claim__visual { --pull: clamp(16px, 3vw, 48px); position: relative; padding: 0 0 clamp(150px, 13vw, 190px) var(--pull); }
.ud-claim__photo { margin: 0; aspect-ratio: 720 / 455; }

.ud-verify {
  --step: 0.32s;
  position: absolute; left: 0; bottom: 0; z-index: 2;
  width: min(390px, 88%);
  padding: 20px 22px 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 44px 70px -40px rgba(16, 24, 40, 0.55);
}
.ud-verify__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ud-verify__logo { width: 40px; height: 40px; flex-shrink: 0; color: var(--umb); }
.ud-verify__logo svg { width: 100%; height: 100%; }
.ud-verify__who b { display: block; font-family: var(--font-display); font-size: 15px; color: var(--black); }
.ud-verify__who small { font-size: 12px; color: var(--muted); }
.ud-verify__state { display: grid; margin-left: auto; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ud-verify__state em { grid-area: 1 / 1; font-style: normal; text-align: right; white-space: nowrap; transition: opacity 0.4s ease; }
.ud-verify__busy { color: #c58b12; }
.ud-verify__ok { color: #16a34a; opacity: 0; }
.ud-verify.is-in .ud-verify__busy { opacity: 0; transition-delay: calc(0.6s + 5 * var(--step)); }
.ud-verify.is-in .ud-verify__ok { opacity: 1; transition-delay: calc(0.6s + 5 * var(--step)); }

.ud-verify__list { position: relative; margin-top: 6px; }
.ud-verify__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  font-size: 14px; font-weight: 600; color: #a2a9b6;
  transition: color 0.4s ease calc(0.6s + var(--i) * var(--step));
}
.ud-verify__list li + li { border-top: 1px dashed var(--line); }
.ud-verify__list li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #dfe3ea;
  background: #fff no-repeat center / 12px;
  transition: background-color 0.35s ease calc(0.6s + var(--i) * var(--step)), border-color 0.35s ease calc(0.6s + var(--i) * var(--step)), scale 0.5s var(--ease) calc(0.6s + var(--i) * var(--step));
}
.ud-verify.is-in .ud-verify__list li { color: var(--ink); }
.ud-verify.is-in .ud-verify__list li::before {
  border-color: var(--cyan);
  background-color: var(--cyan);
  background-image: 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='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  scale: 1.08;
}
.ud-verify__list b { font-weight: 800; color: var(--cyan-deep); }
/* a scan line sweeps down the list once, ticking each check as it passes */
.ud-verify__list::after {
  content: ""; position: absolute; left: -22px; right: -22px; top: 0; height: 36px;
  background: linear-gradient(180deg, transparent, rgba(41, 171, 226, 0.16), transparent);
  opacity: 0; pointer-events: none;
}
.ud-verify.is-in .ud-verify__list::after { animation: udScan calc(5 * var(--step)) linear 0.5s both; }
@keyframes udScan { 0% { opacity: 1; translate: 0 -10px; } 92% { opacity: 1; } 100% { opacity: 0; translate: 0 calc(5 * 43px); } }
/* stamped across the card corner, over the photo */
.ud-verify__stamp {
  position: absolute; right: -24px; bottom: -16px;
  background: #fff;
  padding: 5px 12px;
  border: 2px solid #16a34a; border-radius: 8px;
  font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #16a34a;
  rotate: -12deg; scale: 2.2; opacity: 0;
  transition: scale 0.45s cubic-bezier(0.5, 1.8, 0.6, 1) calc(0.75s + 5 * var(--step)), opacity 0.2s ease calc(0.75s + 5 * var(--step));
}
.ud-verify.is-in .ud-verify__stamp { scale: 1; opacity: 0.9; }

/* ============================================================
   WHY US — spotlight pillars
   ============================================================ */
.ud-pillars__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ud-pillar {
  --gx: 50%; --gy: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 400px;
  padding: clamp(26px, 2.6vw, 36px);
  border-radius: 26px;
  background: #fff; border: 1px solid var(--line);
  transition: translate 0.5s var(--ease), box-shadow 0.4s ease;
}
.ud-pillar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(41, 171, 226, 0.13), transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
/* the border lights up under the pointer */
.ud-pillar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(240px circle at var(--gx) var(--gy), var(--cyan), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s ease;
}
.ud-pillar:hover { translate: 0 -6px; box-shadow: 0 36px 56px -40px rgba(16, 24, 40, 0.45); }
.ud-pillar:hover::before, .ud-pillar:hover::after { opacity: 1; }
.ud-pillar__num { position: absolute; right: 24px; top: 14px; font-family: var(--font-display); font-size: 70px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #f0f2f6; transition: color 0.4s ease; }
.ud-pillar:hover .ud-pillar__num { color: #e3f2fa; }
.ud-pillar__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px;
  font-size: 22px; color: #fff;
  background: linear-gradient(140deg, var(--cyan), #1477b8);
  box-shadow: 0 16px 30px -12px rgba(41, 171, 226, 0.8);
  transition: rotate 0.5s var(--ease);
}
.ud-pillar:hover .ud-pillar__icon { rotate: -10deg; }
.ud-pillar h3 { margin-top: auto; padding-top: 40px; font-size: clamp(22px, 1.8vw, 26px); font-weight: 700; line-height: 1.15; color: var(--black); }
.ud-pillar p { margin-top: 12px; font-size: 15px; line-height: 1.75; color: var(--text); }
.ud-pillar__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.ud-pillar__chips li { padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink); }

.ud-pillar--dark { background: linear-gradient(160deg, #0d1424, #0a0a0f 70%); border-color: transparent; }
.ud-pillar--dark::before { background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(41, 171, 226, 0.22), transparent 60%); }
.ud-pillar--dark .ud-pillar__num { color: rgba(255, 255, 255, 0.05); }
.ud-pillar--dark:hover .ud-pillar__num { color: rgba(41, 171, 226, 0.14); }
.ud-pillar--dark h3 { color: #fff; }
.ud-pillar--dark p { color: #9aa3b2; }
.ud-pillar__dial { position: relative; width: 116px; height: 116px; }
.ud-pillar__dial svg { width: 100%; height: 100%; rotate: -90deg; }
.ud-pillar__dial circle { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 7; }
.ud-pillar__dial .ud-pillar__arc { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--ease) 0.35s; }
.ud-pillar.is-in .ud-pillar__arc { stroke-dashoffset: 0; }
.ud-pillar__dial b { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 36px; font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; color: #fff; }
.ud-pillar__dial small { margin-left: 3px; font-size: 13px; font-weight: 600; color: var(--cyan); }

/* ============================================================
   CERTIFIED TEAM — days line + profiles (dark)
   ============================================================ */
.ud-team { background: var(--black); color: #b6bdcb; overflow: clip; }

.ud-days { --p: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(56px, 6vw, 88px); }
.ud-days::before, .ud-days::after { content: ""; position: absolute; left: 8px; top: 7px; height: 2px; border-radius: 2px; pointer-events: none; }
.ud-days::before { right: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 70%, transparent); }
/* the fill runs from the first dot to the last one */
.ud-days::after { width: calc((100% - 48px) / 3 * 2 + 48px); background: linear-gradient(90deg, var(--cyan), #8ddcfa); transform-origin: left; scale: var(--p) 1; }
.ud-day { position: relative; padding-top: 38px; }
.js .reveal.ud-day { transform: none; }
.ud-day__dot { position: absolute; left: 0; top: 0; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #1b2232; border: 2px solid rgba(255, 255, 255, 0.22); transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.ud-day.is-on .ud-day__dot { background: var(--cyan); border-color: #bfe8fa; box-shadow: 0 0 0 7px rgba(41, 171, 226, 0.18); }
.ud-day__n { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: clamp(58px, 6.2vw, 96px); font-weight: 700; line-height: 0.95; letter-spacing: -0.05em; color: #343c4e; transition: color 0.5s ease; }
.ud-day__n small { font-size: 16px; font-weight: 700; letter-spacing: 0; color: #4a5366; transition: color 0.5s ease; }
.ud-day.is-on .ud-day__n { color: #fff; }
.ud-day.is-on .ud-day__n small { color: var(--cyan); }
.ud-day__t { display: block; margin-top: 12px; font-size: 15.5px; font-weight: 600; color: #9aa3b2; }

.ud-devs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ud-dev { perspective: 1100px; }
.ud-dev__in {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  border-radius: 26px;
  background: linear-gradient(165deg, #161c2b, #0e121c 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotateY(var(--rx)) rotateX(var(--ry));
  transition: transform 0.5s var(--ease), border-color 0.4s ease;
}
.ud-dev__in::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(360px circle at var(--gx) var(--gy), rgba(41, 171, 226, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.ud-dev:hover .ud-dev__in { border-color: rgba(41, 171, 226, 0.4); }
.ud-dev:hover .ud-dev__in::after { opacity: 1; }
.ud-dev__media {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  height: clamp(250px, 22vw, 310px);
  background: radial-gradient(circle at 50% 80%, rgba(41, 171, 226, 0.38), transparent 62%), linear-gradient(180deg, #1b2438, #121828);
}
.ud-dev__rings { position: absolute; left: 50%; top: 58%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.025), 0 0 0 72px rgba(255, 255, 255, 0.02); transition: scale 0.9s var(--ease); }
.ud-dev:hover .ud-dev__rings { scale: 1.12; }
.ud-dev__media img { position: relative; height: 94%; width: auto; max-width: 90%; object-fit: contain; object-position: bottom; transform-origin: bottom center; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45)); transition: scale 0.8s var(--ease); }
.ud-dev:hover .ud-dev__media img { scale: 1.05; }
.ud-dev__mvp { position: absolute; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: linear-gradient(140deg, #f8c64a, #e09b14); color: #2a1a00; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; box-shadow: 0 12px 20px -10px rgba(224, 155, 20, 0.8); }
.ud-dev__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.ud-dev__role { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.ud-dev h3 { margin-top: 8px; font-size: 24px; font-weight: 700; color: #fff; }
.ud-dev__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.ud-dev__stats div { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.ud-dev__stats dt { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #7c8597; }
.ud-dev__stats dd { margin-top: 4px; font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.1; color: #fff; }
.ud-dev__ver { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; font-weight: 600; color: #cfd5df; }
.ud-dev__ver svg { width: 18px; height: 18px; flex-shrink: 0; color: #8fa2ff; }
.ud-dev__tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ud-dev__tech li { padding: 5px 10px; border-radius: 8px; background: rgba(41, 171, 226, 0.1); color: #bfe8fa; font-size: 11.5px; font-weight: 600; }

/* ============================================================
   APPROACH — three methods, each drawn live
   ============================================================ */
.ud-way__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: stretch; gap: clamp(24px, 3.5vw, 56px); }
.ud-way__tabs { display: flex; flex-direction: column; gap: 12px; }
.ud-way__tab {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; column-gap: 12px;
  width: 100%; padding: 22px 24px;
  border-radius: 22px;
  background: #fff; border: 1px solid var(--line);
  text-align: left; cursor: pointer;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.ud-way__tab:hover { border-color: rgba(41, 171, 226, 0.35); }
.ud-way__tab.is-active { border-color: rgba(41, 171, 226, 0.5); box-shadow: 0 30px 50px -36px rgba(41, 171, 226, 0.75); }
.ud-way__n { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--muted); transition: color 0.3s ease; }
.ud-way__tab.is-active .ud-way__n { color: var(--cyan); }
.ud-way__name { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; color: var(--black); }
.ud-way__name i { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--cyan-soft); color: var(--cyan-deep); font-size: 15px; transition: background 0.4s ease, color 0.4s ease, rotate 0.6s var(--ease); }
.ud-way__tab.is-active .ud-way__name i { background: var(--cyan); color: #fff; rotate: -10deg; }
.ud-way__desc { grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.ud-way__desc > span { min-height: 0; overflow: hidden; padding-left: 52px; font-size: 14.5px; line-height: 1.7; color: var(--text); opacity: 0; transition: opacity 0.4s ease; }
.ud-way__tab.is-active .ud-way__desc { grid-template-rows: 1fr; }
.ud-way__tab.is-active .ud-way__desc > span { padding-top: 10px; opacity: 1; transition-delay: 0.15s; }
.ud-way__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.ud-way__bar span { display: block; height: 100%; background: var(--cyan); transform-origin: left; scale: 0 1; }
.ud-way__grid.is-running .ud-way__tab.is-active .ud-way__bar span { animation: udBar var(--cycle, 7s) linear forwards; }

/* the diagrams share one grid cell, so the stage is always as tall as the tallest one */
.ud-way__stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  min-height: 470px;
  padding: 70px 28px 30px;
  border-radius: 28px;
  background: linear-gradient(160deg, #0d1424, #0a0a0f 70%);
}
.ud-way__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
}
.ud-way__stage::after { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(41, 171, 226, 0.18), transparent 65%); pointer-events: none; }
.ud-way__fit { position: absolute; left: 24px; top: 22px; z-index: 2; display: flex; flex-direction: column; gap: 3px; }
.ud-way__fit em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #7c8597; }
.ud-way__fit b { font-family: var(--font-display); font-size: 15px; color: #fff; }
.ud-way__fit b.is-swap { animation: udSwap 0.5s var(--ease); }

.ud-dia { grid-area: 1 / 1; display: grid; place-items: center; min-width: 0; opacity: 0; scale: 0.95; transition: opacity 0.5s ease, scale 0.7s var(--ease); pointer-events: none; }
.ud-dia.is-active { opacity: 1; scale: 1; }
.ud-dia svg { width: 100%; height: auto; overflow: visible; }
.ud-way__notes { display: none; }
.ud-dia--agile svg { max-width: 360px; }
.ud-dia--devops svg { max-width: 540px; }
.ud-dia text { font-family: var(--font-display); }
.ud-dia__track { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 2; stroke-dasharray: 4 8; }
.ud-dia__comet { fill: none; stroke: var(--cyan); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 8 92; stroke-dashoffset: 8; filter: drop-shadow(0 0 7px rgba(41, 171, 226, 0.9)); }
.ud-dia.is-active .ud-dia__comet { animation: udComet 6s linear infinite; }
.ud-dia__node circle { fill: #141b2b; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.5; }
.ud-dia__node text { fill: #7c8597; font-size: 13px; font-weight: 700; text-anchor: middle; }
.ud-dia.is-active .ud-dia__node circle { animation: udNode 6s linear calc(var(--t) * 6s - 0.25s) infinite both; }
.ud-dia.is-active .ud-dia__node text { animation: udLabel 6s linear calc(var(--t) * 6s - 0.25s) infinite both; }
.ud-dia__big { fill: #fff; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; text-anchor: middle; }
.ud-dia__small { fill: #7c8597; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-anchor: middle; text-transform: uppercase; }
.ud-dia__iter { opacity: 0; }
.ud-dia.is-active .ud-dia__iter { animation: udIter 18s linear calc(var(--it) * 6s) infinite both; }
.ud-dia--devops .ud-dia__big { font-size: 26px; fill: rgba(255, 255, 255, 0.9); }
.ud-dia__label { fill: #7c8597; font-size: 14px; font-weight: 700; }
.ud-dia.is-active .ud-dia__label { animation: udLabel 6s linear calc(var(--t) * 6s - 0.25s) infinite both; }

.ud-fall { display: flex; flex-direction: column; gap: 14px; width: min(440px, 100%); }
.ud-fall li {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  width: 56%; margin-left: calc(var(--k) * 11%);
  padding: 14px 18px;
  border-radius: 14px;
  background: #141b2b; border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #e8eaf0;
}
.ud-fall li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(41, 171, 226, 0.42), rgba(41, 171, 226, 0.12)); transform-origin: left; scale: 0 1; }
.ud-dia.is-active .ud-fall li::before { animation: udFill 6s var(--ease) calc(var(--k) * 0.75s) infinite both; }
.ud-fall li span { font-size: 11px; color: var(--cyan); }

/* ============================================================
   HIRING — four steps on a line that fills
   ============================================================ */
.ud-steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ud-steps::before, .ud-steps::after { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 31px; height: 2px; pointer-events: none; }
.ud-steps::before { background: repeating-linear-gradient(90deg, #d5dae3 0 8px, transparent 8px 15px); }
.ud-steps::after { background: linear-gradient(90deg, var(--cyan), #1477b8); transform-origin: left; scale: var(--p) 1; }
.ud-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ud-step__node {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  color: #9aa1ad; font-size: 21px;
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, scale 0.5s var(--ease);
}
.ud-step.is-on .ud-step__node { background: var(--cyan); border-color: var(--cyan); color: #fff; scale: 1.06; box-shadow: 0 0 0 8px rgba(41, 171, 226, 0.14), 0 18px 30px -12px rgba(41, 171, 226, 0.8); }
.ud-step__ui {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  width: 100%; height: 150px; margin-top: 26px; padding: 18px;
  border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
  transition: border-color 0.5s ease, box-shadow 0.5s ease, translate 0.5s var(--ease);
}
.ud-step:hover .ud-step__ui { translate: 0 -4px; }
.ud-step.is-on .ud-step__ui { border-color: rgba(41, 171, 226, 0.4); box-shadow: 0 30px 50px -36px rgba(41, 171, 226, 0.6); }
.ud-step__n { margin-top: 22px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-deep); }
.ud-step h3 { margin-top: 8px; font-size: 20px; font-weight: 700; color: var(--black); }
.ud-step p { max-width: 270px; margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--text); }

/* step 1 — a short secure form */
.ud-ui-form { display: flex; flex-direction: column; gap: 9px; width: 100%; max-width: 220px; }
.ud-ui-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ud-ui-form i { display: block; height: 14px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); transform-origin: left; }
.ud-ui-form__area { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.ud-ui-form__area i { height: 5px; border: 0; background: #dfe3ea; }
.ud-ui-form__area i:nth-child(2) { width: 82%; }
.ud-ui-form__area i:nth-child(3) { width: 56%; }
.ud-ui-form__send { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--black); color: #fff; font-size: 10.5px; font-weight: 700; transition: background 0.4s ease 0.9s; }
.ud-step .ud-ui-form i { scale: 0 1; transition: scale 0.6s var(--ease); }
.ud-step.is-on .ud-ui-form i { scale: 1 1; }
.ud-step.is-on .ud-ui-form__row i:nth-child(2) { transition-delay: 0.12s; }
.ud-step.is-on .ud-ui-form__area i:nth-child(1) { transition-delay: 0.25s; }
.ud-step.is-on .ud-ui-form__area i:nth-child(2) { transition-delay: 0.38s; }
.ud-step.is-on .ud-ui-form__area i:nth-child(3) { transition-delay: 0.5s; }
.ud-step.is-on .ud-ui-form__send { background: var(--cyan); }

/* step 2 — shortlisting CVs */
.ud-ui-cv { display: flex; align-items: center; justify-content: center; }
.ud-ui-cv__card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 70px; padding: 12px 8px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 24px -18px rgba(16, 24, 40, 0.5);
  transition: rotate 0.6s var(--ease), translate 0.6s var(--ease), border-color 0.4s ease;
}
.ud-ui-cv__card + .ud-ui-cv__card { margin-left: -14px; }
.ud-ui-cv__card > i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(160deg, #dfeef7, #c4e2f2); }
.ud-ui-cv__card > span { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.ud-ui-cv__card b { display: block; width: 80%; height: 4px; border-radius: 2px; background: #dfe3ea; }
.ud-ui-cv__card b + b { width: 56%; }
.ud-ui-cv__card em { position: absolute; right: -7px; top: -7px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cyan); color: #fff; font-size: 10px; scale: 0; transition: scale 0.45s cubic-bezier(0.5, 1.8, 0.6, 1) 0.5s; }
.ud-ui-cv__card.is-pick { z-index: 1; }
.ud-step.is-on .ud-ui-cv__card:first-child { rotate: -10deg; translate: -6px 6px; }
.ud-step.is-on .ud-ui-cv__card:last-child { rotate: 10deg; translate: 6px 6px; }
.ud-step.is-on .ud-ui-cv__card.is-pick { translate: 0 -10px; border-color: var(--cyan); }
.ud-step.is-on .ud-ui-cv__card em { scale: 1; }

/* step 3 — a video call */
.ud-ui-call { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 230px; }
.ud-ui-call__tile { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(160deg, #1b2438, #0e121c); color: #8fa2b8; font-size: 22px; }
.ud-ui-call__tile:first-child::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid transparent; transition: border-color 0.4s ease; }
.ud-step.is-on .ud-ui-call__tile:first-child::after { border-color: var(--cyan); animation: udRing 1.6s ease-out infinite; }
.ud-ui-call__tile em { position: absolute; left: 7px; bottom: 6px; font-style: normal; font-size: 9.5px; font-weight: 700; color: #cfd5df; }
.ud-ui-call__tile--you { background: linear-gradient(160deg, #134a68, #0e2a3c); color: #bfe8fa; }
.ud-ui-call__bar { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; }
.ud-ui-call__bar i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 11px; }
.ud-ui-call__bar i:last-child { background: #ef4444; border-color: #ef4444; color: #fff; rotate: 135deg; }

/* step 4 — the team grows by one */
.ud-ui-team { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ud-ui-team__row { display: flex; }
.ud-ui-team__row i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; background: linear-gradient(160deg, #dfeef7, #b9dcef); }
.ud-ui-team__row i:nth-child(2) { background: linear-gradient(160deg, #e3e6f6, #c3c9ea); }
.ud-ui-team__row i:nth-child(3) { background: linear-gradient(160deg, #e2f3ea, #bfe3cf); }
.ud-ui-team__row i + i { margin-left: -12px; }
.ud-ui-team__row .is-new { background: var(--cyan); color: #fff; font-size: 13px; opacity: 0; }
.ud-ui-team__row .is-new em { font-style: normal; }
.ud-step.is-on .ud-ui-team__row .is-new { animation: udJoin 0.7s var(--ease) 0.3s forwards; }
.ud-ui-team__label { font-size: 12px; color: var(--muted); }
.ud-ui-team__label b { color: var(--ink); }

/* ============================================================
   SERVICES COVERED — rows beside a sticky photo
   ============================================================ */
.ud-cover__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(48px, 6vw, 100px); }
.ud-cover__side { position: sticky; top: 120px; }
.ud-cover__photo { height: clamp(260px, 44vh, 420px); margin: 36px 0 0; }
.ud-cover__list { border-top: 1px solid var(--line); }
.ud-row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 40px 52px minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 22px 12px;
  border-bottom: 1px solid var(--line);
}
.ud-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(41, 171, 226, 0.12), transparent 85%); transform-origin: left; scale: 0 1; transition: scale 0.6s var(--ease); }
.ud-row:hover::before { scale: 1 1; }
.ud-row__n { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--muted); transition: color 0.3s ease; }
.ud-row:hover .ud-row__n { color: var(--cyan); }
.ud-row__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: #fff; border: 1px solid var(--line); color: var(--cyan-deep); font-size: 19px; transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, rotate 0.5s var(--ease); }
.ud-row:hover .ud-row__icon { background: var(--cyan); border-color: var(--cyan); color: #fff; rotate: -8deg; }
.ud-row__t { font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; line-height: 1.35; color: var(--black); transition: translate 0.5s var(--ease); }
.ud-row:hover .ud-row__t { translate: 8px 0; }

/* ============================================================
   INCLUDED IN ALL PLANS — a pass with a travelling light
   ============================================================ */
.ud-plans { padding-bottom: clamp(90px, 10vw, 150px); }
.ud-pass {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-rows: 1fr auto;
  border-radius: 32px;
  background: linear-gradient(160deg, #0d1424, #0a0a0f 70%);
  color: #b6bdcb;
}
.ud-pass::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ud-ang), transparent 0 62%, rgba(41, 171, 226, 0.9) 80%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: udAng 7s linear infinite;
}
.ud-pass__glow { position: absolute; left: -220px; bottom: -320px; z-index: -1; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(41, 171, 226, 0.26), transparent 65%); pointer-events: none; animation: uaPulse 8s ease-in-out infinite; }
.ud-pass__head { position: relative; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(30px, 4vw, 56px); }
.ud-pass__head .btn { margin-top: auto; }
.ud-pass__head .ua-h2 { margin-bottom: 32px; }
/* the tear line, with a notch top and bottom */
.ud-pass__head::after { content: ""; position: absolute; right: 0; top: 30px; bottom: 30px; border-right: 2px dashed rgba(255, 255, 255, 0.12); }
.ud-pass__head::before { content: ""; position: absolute; right: -16px; top: 0; bottom: 0; width: 32px; background: radial-gradient(circle at 50% 0, var(--bg) 15px, transparent 16px), radial-gradient(circle at 50% 100%, var(--bg) 15px, transparent 16px); }
.ud-pass__perks { display: flex; flex-direction: column; justify-content: center; padding: clamp(18px, 2.4vw, 34px) clamp(28px, 4vw, 56px) 0; }
.ud-pass__perks li { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 18px; padding: 20px 0; }
.ud-pass__perks li + li { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.ud-pass__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(41, 171, 226, 0.14); color: var(--cyan); font-size: 20px; transition: background 0.4s ease, color 0.4s ease, rotate 0.5s var(--ease); }
.ud-pass__perks li:hover .ud-pass__icon { background: var(--cyan); color: #fff; rotate: -10deg; }
.ud-pass__perks b { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 18px; color: #fff; }
.ud-pass__perks span:not(.ud-pass__icon) { font-size: 14.5px; line-height: 1.6; color: #a7adbb; }
.ud-pass__note { padding: 6px clamp(28px, 4vw, 56px) 26px calc(clamp(28px, 4vw, 56px) + 72px); font-size: 12px; color: #6b7385; }

/* ============================================================
   CASE STUDIES — bento gallery
   ============================================================ */
.ud-work { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ud-work__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 17vw, 262px); gap: 16px; }
.ud-case {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
}
.ud-case--big { grid-column: span 2; grid-row: span 2; padding: clamp(24px, 2.6vw, 36px); }
.ud-case--wide { grid-column: span 2; }
.ud-case img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.ud-case::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 15, 0) 30%, rgba(10, 10, 15, 0.86)); }
.ud-case::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(200deg, transparent 40%, rgba(41, 171, 226, 0.45)); opacity: 0; transition: opacity 0.5s ease; }
.ud-case:hover img { scale: 1.08; }
.ud-case:hover::after { opacity: 1; }
.ud-case__tag { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ud-case__title { max-width: 20ch; font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.2; transition: translate 0.5s var(--ease); }
.ud-case--big .ud-case__title { font-size: clamp(24px, 2.3vw, 34px); }
.ud-case:hover .ud-case__title { translate: 0 -4px; }
.ud-case__go { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--black); opacity: 0; scale: 0.7; rotate: -90deg; transition: opacity 0.35s ease, scale 0.5s var(--ease), rotate 0.5s var(--ease); }
.ud-case:hover .ud-case__go, .ud-case:focus-visible .ud-case__go { opacity: 1; scale: 1; rotate: -45deg; }
@media (hover: none) { .ud-case__go { opacity: 0.95; scale: 0.85; rotate: -45deg; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .ud-float--proj { display: none; }
  .ud-float--dev { top: auto; bottom: 0; left: 0; }
  .ud-float--medal { bottom: 30%; right: 0; }
  .ud-dev__body { padding: 22px 20px 24px; }
  .ud-dev__stats dd { font-size: 22px; }
}

@media (max-width: 1023px) {
  /* the floating cards line up under the editor instead of covering it */
  .ud-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(720px, 100% - 48px); }
  .ud-code { grid-column: 1 / -1; width: 100%; margin-bottom: 30px; }
  .ud-float { position: relative; inset: auto; transform: none; }
  .ud-stage.is-in .ud-float { animation: none; }
  .ud-float--proj { display: flex; }
  .ud-float--medal { display: none; }

  .ud-claim__grid, .ud-way__grid, .ud-cover__grid { grid-template-columns: minmax(0, 1fr); }
  .ud-claim__visual { --pull: 0px; max-width: 640px; padding-left: 0; }
  .ud-pillars__grid { grid-template-columns: minmax(0, 1fr); }
  .ud-pillar { min-height: 0; }
  .ud-pillar h3 { padding-top: 28px; }

  /* the profiles become a swipeable row that bleeds to the screen edges */
  .ud-devs { display: flex; gap: 16px; margin: 0 -24px; padding: 0 24px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .ud-devs::-webkit-scrollbar { display: none; }
  .ud-dev { flex: 0 0 min(340px, 78vw); scroll-snap-align: start; }

  .ud-way__stage { min-height: 400px; }
  .ud-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .ud-steps::before, .ud-steps::after { display: none; }
  .ud-cover__side { position: static; }
  .ud-cover__photo { height: auto; aspect-ratio: 16 / 9; }

  .ud-pass { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .ud-pass__head { grid-row: auto; }
  .ud-pass__head .btn { margin-top: 0; }
  .ud-pass__head .ua-h2 { margin-bottom: 26px; }
  .ud-pass__head::after { left: 30px; right: 30px; top: auto; bottom: 0; border-right: 0; border-bottom: 2px dashed rgba(255, 255, 255, 0.12); }
  .ud-pass__head::before { left: 0; right: 0; top: auto; bottom: -16px; width: auto; height: 32px; background: radial-gradient(circle at 0 50%, var(--bg) 15px, transparent 16px), radial-gradient(circle at 100% 50%, var(--bg) 15px, transparent 16px); }
  .ud-pass__perks { padding-top: 10px; }
  .ud-pass__note { padding-left: clamp(28px, 4vw, 56px); }

  .ud-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 30vw, 270px); }
  .ud-case--big { grid-row: span 1; }
}

@media (max-width: 767px) {
  .ud-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: calc(100% - 32px); margin-top: 40px; padding-bottom: 36px; }
  .ud-float--proj { display: none; }
  .ud-hero__badge-more { display: none; }
  .ud-code { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7), 0 40px 60px -36px rgba(16, 24, 40, 0.7); }
  .ud-code__bar { gap: 10px; padding: 11px 12px; }
  .ud-code__dots i { width: 9px; height: 9px; }
  .ud-code__state { display: none; }
  .ud-code__body { padding: 14px 12px 26px 0; font-size: 11px; line-height: 1.75; }
  .ud-ln::before { width: 30px; padding-right: 10px; }
  .ud-code__toast { right: 50%; translate: 50% 10px; bottom: -18px; padding: 8px 13px; font-size: 11px; white-space: nowrap; }
  .ud-stage.is-in .ud-code__toast { animation-name: udToastM; }
  @keyframes udToastM { to { opacity: 1; translate: 50% 0; } }
  .ud-float { padding: 10px 12px 10px 10px; gap: 10px; border-radius: 16px; }
  .ud-float--dev { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ud-float--dev > i { position: absolute; right: 10px; top: 10px; margin: 0; font-size: 16px; }
  .ud-float__avatar { width: 38px; height: 38px; }
  .ud-float b { font-size: 13px; }
  .ud-float small { font-size: 11px; }
  .ud-float--ready { padding: 10px 12px; }
  .ud-float--ready b { font-size: 22px; }
  .ud-float__team img, .ud-float__team em { width: 28px; height: 28px; }

  .ud-claim__lead { font-size: 16.5px; }
  .ud-claim__visual { padding: 0 0 0 0; }
  .ud-claim__photo { border-radius: 20px; }
  .ud-verify { position: relative; width: auto; margin: -48px 12px 0; padding: 16px 16px 14px; }
  .ud-verify__stamp { right: -6px; bottom: -14px; }
  .ud-verify__list li { font-size: 13px; }
  .ud-verify__stamp { font-size: 11px; }

  .ud-pillar { padding: 24px 22px; border-radius: 22px; }
  .ud-pillar__num { font-size: 56px; }

  .ud-days { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-left: 34px; }
  .ud-days::before, .ud-days::after { left: 7px; top: 8px; bottom: 8px; right: auto; width: 2px; height: auto; }
  .ud-days::before { background: rgba(255, 255, 255, 0.14); }
  .ud-days::after { height: calc(100% - 16px); background: linear-gradient(180deg, var(--cyan), #8ddcfa); transform-origin: top; scale: 1 var(--p); }
  .ud-day { padding-top: 0; }
  .ud-day__dot { left: -34px; top: 8px; }
  .ud-day__n { font-size: 54px; }
  .ud-devs { margin: 0 -16px; padding: 0 16px 8px; scroll-padding-inline: 16px; }
  .ud-dev { flex-basis: 82vw; }
  .ud-dev__media { height: 260px; }
  .ud-dev h3 { font-size: 22px; }

  /* the methods become a three-way switcher right above the diagram */
  .ud-way__grid { gap: 12px; }
  .ud-way__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ud-way__tab { display: flex; flex-direction: column; align-items: center; padding: 12px 4px 14px; border-radius: 16px; text-align: center; }
  .ud-way__tab.is-active { box-shadow: 0 18px 30px -22px rgba(41, 171, 226, 0.8); }
  .ud-way__n, .ud-way__long { display: none; }
  .ud-way__name { flex-direction: column; gap: 8px; font-size: 14px; }
  .ud-way__name i { width: 36px; height: 36px; font-size: 14px; }
  /* the in-button text stays for screen readers; the card shows it below the diagram */
  .ud-way__desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ud-way__stage { min-height: 0; padding: 60px 18px 0; border-radius: 22px; }
  .ud-way__fit { left: 18px; top: 18px; }
  .ud-dia { padding: 4px 0 18px; }
  .ud-dia--agile svg { max-width: 290px; }
  .ud-dia__node text { font-size: 15px; }
  .ud-dia__big { font-size: 38px; }
  .ud-dia__small { font-size: 15px; }
  .ud-dia--devops .ud-dia__big { font-size: 30px; }
  .ud-dia__label { font-size: 18px; }
  .ud-fall { gap: 10px; }
  .ud-fall li { width: 64%; margin-left: calc(var(--k) * 9%); padding: 11px 13px; font-size: 13.5px; }
  .ud-dia--devops svg { max-width: calc(100% - 44px); }
  /* all three descriptions share one cell, so switching never changes the card's height */
  .ud-way__notes { display: grid; margin: 0 -18px; padding: 16px 18px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .ud-way__notes p { grid-area: 1 / 1; font-size: 14px; line-height: 1.65; color: #a7adbb; opacity: 0; translate: 0 8px; transition: opacity 0.4s ease, translate 0.5s var(--ease); }
  .ud-way__notes p.is-active { opacity: 1; translate: 0 0; transition-delay: 0.1s; }

  .ud-steps { grid-template-columns: minmax(0, 1fr); row-gap: 34px; }
  .ud-steps::before, .ud-steps::after { display: block; left: 31px; right: auto; top: 32px; bottom: 32px; width: 2px; height: auto; }
  .ud-steps::before { background: repeating-linear-gradient(180deg, #d5dae3 0 8px, transparent 8px 15px); }
  .ud-steps::after { background: linear-gradient(180deg, var(--cyan), #1477b8); transform-origin: top; scale: 1 var(--p); }
  .ud-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; align-items: start; text-align: left; }
  .ud-step__node { grid-row: 1 / span 4; }
  .ud-step__ui { grid-column: 2; height: auto; min-height: 132px; margin-top: 0; padding: 16px; }
  .ud-step__n, .ud-step h3, .ud-step p { grid-column: 2; }
  .ud-step__n { margin-top: 16px; }
  .ud-step p { max-width: none; }

  .ud-row { grid-template-columns: 28px 44px minmax(0, 1fr); gap: 12px; padding: 18px 4px; }
  .ud-row__icon { width: 44px; height: 44px; border-radius: 13px; font-size: 16px; }
  .ud-row__t { font-size: 16px; }

  .ud-pass { border-radius: 24px; }
  .ud-pass__head { padding: 28px 22px 30px; }
  .ud-pass__head .btn { width: 100%; }
  .ud-pass__head::after { left: 22px; right: 22px; }
  .ud-pass__perks { padding: 8px 22px 0; }
  .ud-pass__perks li { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .ud-pass__icon { width: 46px; height: 46px; border-radius: 14px; font-size: 17px; }
  .ud-pass__perks b { font-size: 16px; }
  .ud-pass__perks span:not(.ud-pass__icon) { font-size: 13.5px; }
  .ud-pass__note { padding: 4px 22px 22px; }

  .ud-work__grid { gap: 10px; grid-auto-rows: 170px; }
  .ud-case { padding: 14px; border-radius: 18px; gap: 6px; }
  .ud-case--big { grid-row: span 1; padding: 18px; }
  .ud-case:not(.ud-case--big):not(.ud-case--wide) .ud-case__tag { display: none; }
  .ud-case__title { font-size: 14.5px; }
  .ud-case--big .ud-case__title, .ud-case--wide .ud-case__title { font-size: 19px; }
  .ud-case__go { right: 12px; top: 12px; width: 34px; height: 34px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ud-float, .ud-stage.is-in .ud-float { animation: none; }
  .ud-code { transform: none; }
  .ud-ln:last-child::after { animation: none; }
  .ud-dia.is-active .ud-dia__comet, .ud-dia.is-active .ud-dia__node circle, .ud-dia.is-active .ud-dia__node text,
  .ud-dia.is-active .ud-dia__label, .ud-dia.is-active .ud-fall li::before { animation: none; }
  .ud-dia.is-active .ud-dia__iter { animation: none; }
  .ud-dia__iter[style*="--it:0"] { opacity: 1; }
  .ud-pass::before { animation: none; }
  .ud-steps::after, .ud-days::after { scale: 1; }
}
