/* =========================================================
   Services list with a sticky 3D particle stage (home page).
   These rules only apply once the 3D stage is ready (.has-3d),
   so without WebGL the services list looks exactly as before.
   ========================================================= */
.st-svc-3d { display: none; }
/* the section clipped its overflow with "hidden", which stops sticky positioning; "clip" keeps the clipping without that side effect */
.st-services.has-3d { overflow: clip; }

.st-services.has-3d .st-svc-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3vw, 52px);
  align-items: start;
}
.st-services.has-3d .st-svc-3d {
  display: block;
  position: sticky;
  top: calc(var(--hdr-space, var(--st-hdr, 76px)) + 18px);
  height: calc(100svh - var(--hdr-space, var(--st-hdr, 76px)) - 44px);
  min-height: 420px;
  max-height: 820px;
}
.st-svc-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.st-svc-3d::before {
  content: "";
  position: absolute;
  inset: 14% 8% 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(217, 168, 78, 0.16), rgba(217, 168, 78, 0) 72%);
  pointer-events: none;
}
.st-svc-3d-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: #fff;
}
.st-svc-3d-cap .n { color: var(--st-gold); font: 500 0.8rem/1 var(--font-label); letter-spacing: 0.08em; white-space: nowrap; }
.st-svc-3d-cap .t { font: 400 clamp(1.15rem, 0.8rem + 1vw, 1.7rem)/1 var(--font-big); text-transform: uppercase; }
html[lang="ar"] .st-svc-3d-cap .t { font-weight: 800; line-height: 1.3; }
.st-svc-3d-bar { position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.st-svc-3d-bar::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p, 0) * 100%); background: var(--st-gold); transition: width 0.6s var(--st-ease); }

/* the list beside the stage: straight column, more room so each service takes its turn */
.st-services.has-3d .st-pills:not(.st-pills--sm) .st-pill-item:nth-child(n) { padding-inline: 0; }
.st-services.has-3d .st-pills { gap: clamp(26px, 9vh, 96px); padding-block: 2vh 28vh; }
.st-services.has-3d .st-pill { grid-template-columns: auto minmax(0, 1fr) clamp(130px, 30%, 230px); }
.st-services.has-3d .st-pill.is-live { border-color: var(--st-gold); background: rgba(217, 168, 78, 0.08); }
.st-services.has-3d .st-pill.is-live .st-pill-title { color: var(--st-gold-2); }
.st-services.has-3d .st-pill.is-live .st-pill-art img { transform: translateY(0) scale(1.14) rotate(-3deg); }
.st-services.has-3d .st-pill.is-live .st-pill-arrow svg { transform: translateX(6px); }
[dir="rtl"] .st-services.has-3d .st-pill.is-live .st-pill-arrow svg { transform: scaleX(-1) translateX(6px); }

/* tablets and phones: the stage pins under the header, the list scrolls beneath it */
@media (max-width: 999px) {
  .st-services.has-3d .st-svc-stage { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .st-services.has-3d .st-svc-3d {
    top: var(--hdr-space, var(--st-hdr, 76px));
    z-index: 2;
    height: 40svh;
    min-height: 260px;
    margin-inline: -20px;
    background: var(--st-ink);
  }
  .st-services.has-3d .st-svc-3d::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 40px; background: linear-gradient(var(--st-ink), rgba(11, 11, 12, 0)); pointer-events: none; }
  .st-svc-3d-cap { inset-inline: 20px; bottom: 26px; }
  .st-svc-3d-bar { inset-inline: 20px; bottom: 14px; }
  .st-services.has-3d .st-pills { gap: 22px; padding-block: 18px 30svh; }
  .st-services.has-3d .st-pill { grid-template-columns: minmax(0, 1fr) clamp(110px, 32%, 180px); }
}
@media (max-width: 640px) {
  .st-services.has-3d .st-pill { grid-template-columns: minmax(0, 1fr); }
}
