/* ==========================================================================
   Service pages: per-service hero art (all built from CSS/SVG + existing mockups)
   and the previous / next service strip. Everything animates with
   transform / opacity only and is paused off-screen by main.js (.is-paused).
   ========================================================================== */
@keyframes chipFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes growUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes drawLine { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes popIn { from { opacity: 0; scale: 0.8; } to { opacity: 1; scale: 1; } }

/* ---------- floating glass chips (shared) ---------- */
.sd-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.2; color: var(--c-muted); white-space: nowrap;
  background: rgba(255, 255, 255, 0.86); box-shadow: 0 14px 30px -10px rgba(0, 36, 126, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: popIn 0.7s var(--ease-out) 0.9s both, chipFloat 6s ease-in-out 1.6s infinite;
}
.sd-chip b { font-weight: 600; color: var(--c-ink); }
.sd-chip--d { animation-delay: 1.1s, 2.2s; }
.sd-chip--e { animation-delay: 1.3s, 2.8s; }
.sd-dot { width: 8px; height: 8px; border-radius: 50%; background: #1fbf75; box-shadow: 0 0 0 4px rgba(31, 191, 117, 0.18); }
.sd-tick { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font-size: 11px; font-weight: 700; color: #fff; background: var(--grad-brand); }

/* ---------- mobile app: two fanned phones ---------- */
.sd-art--mobile .sd-phone { width: 178px; height: 377px; }
.sd-art--mobile .sd-phone--a { left: 92px; top: 62px; rotate: -7deg; }
.sd-art--mobile .sd-phone--b { left: 292px; top: 108px; rotate: 6deg; animation-delay: 1.6s; }

/* ---------- e-commerce ---------- */
.sd-chip--cart { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; min-width: 150px; }
.sd-price { font-size: 22px; font-weight: 700; color: var(--c-navy); }
.sd-btn { display: block; margin-top: 4px; padding: 7px 18px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 500; color: #fff; background: var(--grad-brand); }

/* ---------- custom software: CSS dashboard on the laptop screen ---------- */
.sd-dash { position: absolute; overflow: hidden; background: #f3f6fc; }
.sd-laptop .sd-dash { left: 60.2px; top: 19.2px; width: 391.6px; height: 243.2px; }
.sd-dash > span, .sd-dash > svg { position: absolute; }
.sd-dash__side { left: 0; top: 0; bottom: 0; width: 56px; background: linear-gradient(180deg, var(--c-navy), var(--c-blue)); }
.sd-dash__kpi { top: 18px; width: 86px; height: 46px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(0, 36, 126, 0.12); }
.sd-dash__kpi::after { content: ""; position: absolute; left: 10px; top: 12px; width: 40px; height: 6px; border-radius: 3px; background: #cfd8ea; box-shadow: 0 14px 0 -1px var(--c-blue); }
.sd-dash__kpi--1 { left: 72px; } .sd-dash__kpi--2 { left: 170px; } .sd-dash__kpi--3 { left: 268px; }
.sd-dash__bars { left: 72px; right: 20px; bottom: 18px; height: 132px; display: flex; align-items: flex-end; gap: 12px; padding: 0 6px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(0, 36, 126, 0.1); }
.sd-dash__bars i { flex: 1; height: var(--h); margin-bottom: 8px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--c-blue), #7fa6f0); transform-origin: bottom; animation: growUp 1s var(--ease-out) both; }
.sd-dash__bars i:nth-child(1) { animation-delay: 0.6s; } .sd-dash__bars i:nth-child(2) { animation-delay: 0.7s; } .sd-dash__bars i:nth-child(3) { animation-delay: 0.8s; } .sd-dash__bars i:nth-child(4) { animation-delay: 0.9s; }
.sd-dash__bars i:nth-child(5) { animation-delay: 1s; } .sd-dash__bars i:nth-child(6) { animation-delay: 1.1s; } .sd-dash__bars i:nth-child(7) { animation-delay: 1.2s; } .sd-dash__bars i:nth-child(8) { animation-delay: 1.3s; }
.sd-dash__line { left: 82px; right: 30px; bottom: 100px; width: calc(100% - 112px); height: 56px; overflow: visible; }
.sd-dash__line polyline, .sd-chart__line polyline { fill: none; stroke: var(--c-navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 1.8s var(--ease-out) 1.2s forwards; }

/* ---------- branding: tiles, type and swatches ---------- */
.sd-tile { position: absolute; display: grid; place-items: center; border-radius: 22px; background: #fff; box-shadow: 0 24px 40px -18px rgba(0, 36, 126, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.7); animation: popIn 0.8s var(--ease-out) 0.5s both, chipFloat 7s ease-in-out 1.4s infinite; }
.sd-tile--logo { left: 56px; top: 60px; width: 250px; height: 160px; }
.sd-tile--logo img { width: 150px; height: auto; }
.sd-tile--type { left: 330px; top: 40px; width: 160px; height: 160px; background: var(--grad-brand); color: #fff; animation-delay: 0.65s, 2s; }
.sd-tile--type b { font-size: 64px; line-height: 1; font-weight: 300; }
.sd-tile--type span { position: absolute; bottom: 16px; font-size: 12px; letter-spacing: 1px; opacity: 0.8; }
.sd-tile--card { left: 286px; top: 236px; width: 230px; height: 134px; background: var(--c-navy); rotate: -5deg; animation-delay: 0.8s, 2.4s; }
.sd-tile--card img { width: 112px; height: auto; }
.sd-tile--card span { position: absolute; left: 16px; bottom: 12px; font-size: 11px; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.5px; }
.sd-swatches { position: absolute; left: 70px; top: 262px; display: flex; animation: popIn 0.8s var(--ease-out) 0.95s both; }
.sd-swatches i { width: 66px; height: 66px; margin-left: -14px; border-radius: 50%; background: var(--c); box-shadow: 0 10px 22px -8px rgba(0, 36, 126, 0.45), 0 0 0 3px #fff; transition: transform 0.5s var(--ease-out); }
.sd-swatches i:first-child { margin-left: 0; }
.sd-swatches:hover i:nth-child(1) { transform: translateX(-6px); } .sd-swatches:hover i:nth-child(3) { transform: translateX(6px); } .sd-swatches:hover i:nth-child(4) { transform: translateX(12px); }

/* ---------- digital marketing: growth chart ---------- */
.sd-chart { position: absolute; left: 40px; top: 92px; width: 430px; height: 270px; padding: 46px 28px 26px; border-radius: 24px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 30px 50px -20px rgba(0, 36, 126, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.7); animation: popIn 0.8s var(--ease-out) 0.4s both, chipFloat 8s ease-in-out 1.4s infinite; }
.sd-chart__title { position: absolute; left: 28px; top: 18px; font-size: 13px; font-weight: 500; color: var(--c-muted); }
.sd-chart__bars { position: absolute; left: 28px; right: 28px; bottom: 26px; top: 56px; display: flex; align-items: flex-end; gap: 14px; }
.sd-chart__bars i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, rgba(12, 90, 219, 0.9), rgba(12, 90, 219, 0.35)); transform-origin: bottom; animation: growUp 1s var(--ease-out) both; }
.sd-chart__bars i:nth-child(1) { animation-delay: 0.7s; } .sd-chart__bars i:nth-child(2) { animation-delay: 0.8s; } .sd-chart__bars i:nth-child(3) { animation-delay: 0.9s; } .sd-chart__bars i:nth-child(4) { animation-delay: 1s; }
.sd-chart__bars i:nth-child(5) { animation-delay: 1.1s; } .sd-chart__bars i:nth-child(6) { animation-delay: 1.2s; } .sd-chart__bars i:nth-child(7) { animation-delay: 1.3s; }
.sd-chart__line { position: absolute; left: 28px; right: 28px; top: 66px; bottom: 36px; width: calc(100% - 56px); height: calc(100% - 102px); overflow: visible; }
.sd-chart__line polyline { stroke: var(--c-cyan); stroke-width: 3; }

/* ---------- previous / next service ---------- */
.sd-next { position: relative; z-index: 1; width: min(100% - var(--gutter) * 2, 1280px); margin: 0 auto 100px; display: flex; justify-content: space-between; gap: 24px; padding-top: 32px; border-top: 1px solid #dce4ee; }
.sd-next__link { display: flex; flex-direction: column; gap: 6px; max-width: 48%; transition: transform 0.5s var(--ease-out); }
.sd-next__link span { font-size: 14px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-muted); }
.sd-next__link b { font-size: 28px; line-height: 1.2; font-weight: 400; color: var(--c-ink); transition: color var(--t-fast); }
.sd-next__link--next { align-items: flex-end; text-align: right; }
.sd-next__arrow { font-style: normal; font-size: 22px; color: var(--c-blue); transition: transform 0.4s var(--ease-out); }
.sd-next__img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.sd-next__link:hover b { color: var(--c-blue); }
.sd-next__link--next:hover { transform: translateX(6px); } .sd-next__link--prev:hover { transform: translateX(-6px); }

@media (max-width: 899px) {
  .sd-art { margin-top: -70px; }
  .sd-next { margin-bottom: 64px; flex-direction: column; }
  .sd-next__link { max-width: none; }
  .sd-next__link--next { align-items: flex-start; text-align: left; }
  .sd-next__link b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-chip, .sd-tile, .sd-chart, .sd-swatches, .sd-dash__bars i, .sd-chart__bars i { animation: none; }
  .sd-dash__line polyline, .sd-chart__line polyline { animation: none; stroke-dashoffset: 0; }
}

/* ---------- service-page hero tags: soft translucent pills ---------- */
.sd-hero .svc-card__tags { gap: 10px; }
.sd-hero .svc-card__tags .tag {
  padding: 8px 18px; font-size: 16px; font-weight: 400; color: #585858;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(214, 220, 234, 0.9);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background var(--t-fast), transform 0.4s var(--ease-out), border-color var(--t-fast);
}
.sd-hero .svc-card__tags .tag:hover { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--sh-btn); transform: translateY(-2px); }
