/* ============================================================
   TECHNOLOGY PARTNERSHIP — the extra parts of the pages built
   from _build/technologies/*.json. Everything else comes from
   umbraco-agency.css and umbraco-developer.css, which these
   pages load first. Logos are single-colour SVGs: they're
   turned white with a filter on dark surfaces.
   ============================================================ */

/* the technology's logo in the small slots the Umbraco pages fill with the Umbraco mark */
.tp-badge-logo { display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.tp-badge-logo img { width: 16px; height: 16px; }
.ud-code__tab .tp-tab-logo { width: 15px; height: 15px; filter: brightness(0) invert(1); opacity: 0.85; }
.tp-float-ico { display: grid; place-items: center; background: linear-gradient(140deg, var(--cyan), #1477b8); color: #fff; font-size: 18px; }
.tp-medal { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--black); box-shadow: 0 12px 20px -10px rgba(10, 10, 15, 0.6); }
.ud-float--medal .tp-medal img { width: 24px; height: 24px; border-radius: 0; box-shadow: none; filter: brightness(0) invert(1); }
.tp-verify-logo { display: grid; place-items: center; border-radius: 12px; background: var(--black); }
.tp-verify-logo img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.tp-chip-logo { display: grid; place-items: center; border-radius: 12px; background: var(--black); }
.tp-chip-logo img { width: 20px; height: 20px; filter: brightness(0) invert(1); }

/* ---------- overview: the technology as a big, slowly orbiting mark ---------- */
.tp-logo {
  position: relative; isolation: isolate;
  display: grid; place-items: center; align-content: center; gap: 18px;
  aspect-ratio: 720 / 455;
  background:
    radial-gradient(circle at 72% 30%, rgba(41, 171, 226, 0.4), transparent 58%),
    linear-gradient(160deg, #101a2e, #0a0a0f 72%);
}
.tp-logo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000, transparent 80%);
}
.tp-logo__ring { position: absolute; left: 50%; top: 44%; z-index: -1; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.16); translate: -50% -50%; animation: uaSpin 40s linear infinite; }
.tp-logo__ring--1 { width: 46%; }
.tp-logo__ring--2 { width: 70%; border-style: solid; border-color: rgba(41, 171, 226, 0.18); animation-duration: 60s; animation-direction: reverse; }
.tp-logo__ring--2::after { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px 4px rgba(41, 171, 226, 0.7); }
.tp-logo__mark { display: grid; place-items: center; width: clamp(96px, 11vw, 140px); aspect-ratio: 1; border-radius: 30px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px -30px rgba(41, 171, 226, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tp-logo__mark img { width: 52%; height: 52%; filter: brightness(0) invert(1); }
.tp-logo__name { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
/* the partner check covers the lower left of the card, so the mark sits to the right */
.ud-claim__visual .tp-logo { margin: 0; padding-left: 48%; }
.ud-claim__visual .tp-logo__ring { left: 74%; }
@media (max-width: 767px) { .ud-claim__visual .tp-logo { padding: 0 0 18%; } .ud-claim__visual .tp-logo__ring { left: 50%; top: 36%; } }

/* ---------- engagement models (dark section) ---------- */
.tp-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tp-model {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(26px, 2.6vw, 34px);
  border-radius: 26px;
  background: linear-gradient(165deg, #161c2b, #0e121c 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: translate 0.5s var(--ease), border-color 0.4s ease;
}
.tp-model::after { content: ""; position: absolute; right: -110px; top: -140px; z-index: -1; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(41, 171, 226, 0.2), transparent 65%); transition: scale 0.8s var(--ease); }
.tp-model:hover { translate: 0 -6px; border-color: rgba(41, 171, 226, 0.4); }
.tp-model:hover::after { scale: 1.3; }
.tp-model__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); }
.tp-model__n { margin-top: 26px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.tp-model h3 { margin-top: 8px; font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; color: #fff; }
.tp-model p { margin: 10px 0 22px; font-size: 14.5px; line-height: 1.7; color: #9aa3b2; }
.tp-model ul { display: flex; flex-direction: column; gap: 9px; width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.tp-model li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: #e8eaf0; }
.tp-model li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(41, 171, 226, 0.18) 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='%2329abe2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 9px;
}

@media (max-width: 1023px) {
  /* the models become a swipeable row that bleeds to the screen edges */
  .tp-models { 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; }
  .tp-models::-webkit-scrollbar { display: none; }
  .tp-model { flex: 0 0 min(320px, 78vw); scroll-snap-align: start; }
}
@media (max-width: 767px) {
  .tp-models { margin: 0 -16px; padding: 0 16px 8px; scroll-padding-inline: 16px; }
  .tp-model { flex-basis: 82vw; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-logo__ring { animation: none; }
}
