.services-shell {
  --services-card-title-size: 20px;
  --services-card-text-size: 16px;
  --services-card-line-height: 170%;
  --services-card-short-lines: 2;
  --services-card-description-lines: 3;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.services-font-default .service-card {
  font-family: "Manrope", system-ui, sans-serif;
}

.services-font-compact .service-card {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.services-font-soft .service-card {
  font-family: "Segoe UI", system-ui, sans-serif;
}

.services-hero,
.services-section,
.services-process,
.services-cta {
  border-radius: 30px;
  border: 1px solid rgba(120, 145, 170, 0.18);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 32%),
    radial-gradient(circle at bottom right, rgba(132, 204, 22, 0.12), transparent 30%),
    rgba(9, 15, 27, 0.84);
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.55);
}

.services-hero {
  padding: 2rem;
}

.services-kicker,
.services-section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9bd8ff;
}

.services-hero-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.3rem;
  align-items: start;
}

.services-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.services-lead {
  max-width: 720px;
  margin-top: 1rem;
  line-height: 1.75;
  color: #c9d5e7;
}

.services-actions,
.service-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.services-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.services-btn:hover {
  transform: translateY(-1px);
}

.services-btn-primary {
  color: #04111f;
  background: linear-gradient(120deg, #7dd3fc, #a3e635);
  box-shadow: 0 0 26px rgba(125, 211, 252, 0.24);
}

.services-btn-ghost,
.services-btn-inline {
  color: #e5eef9;
  border: 1px solid rgba(125, 145, 168, 0.4);
  background: rgba(2, 6, 23, 0.32);
}

.services-hero-panel {
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.44);
  border: 1px solid rgba(125, 145, 168, 0.2);
  display: grid;
  gap: 0.9rem;
}

.services-hero-metric span,
.service-block-title {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.services-hero-metric strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.services-section,
.services-process,
.services-cta {
  margin-top: 1.2rem;
  padding: 1.5rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 640px;
}

.services-landing-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.92fr);
  gap: clamp(0.5rem, 1.6vw, 1.3rem);
  align-items: center;
  margin: 0.35rem 0 1rem;
  padding: 0.25rem 0.35rem 0;
  overflow: visible;
}

.services-section-head {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.4rem;
  align-items: end;
  margin-bottom: 1rem;
}

.services-title-panel {
  position: relative;
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 24px;
  border: 1px solid rgba(125, 145, 168, 0.18);
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(7, 12, 24, 0.84), rgba(4, 9, 18, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(125, 211, 252, 0.04),
    0 0 28px rgba(125, 211, 252, 0.08);
  overflow: hidden;
}

.services-title-panel::before,
.services-title-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.services-title-panel::before {
  inset: -28% auto auto -8%;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.26), transparent 70%);
  filter: blur(10px);
  mix-blend-mode: screen;
  animation: servicesTitleGlow 6.8s ease-in-out infinite alternate;
}

.services-title-panel::after {
  inset: auto 10% 0 auto;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.82), transparent);
  box-shadow: 0 0 16px rgba(125, 211, 252, 0.32);
}

.services-section-head h2,
.services-process h2,
.services-cta h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.services-title-panel h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.services-title-panel--open {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.services-title-panel--open::before,
.services-title-panel--open::after {
  display: none;
}

.services-title-panel--open h2 {
  position: relative;
  max-width: 14.4ch;
  margin: 0.45rem 0 0;
  font-size: clamp(1.95rem, 3.15vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #edf5ff;
  text-shadow: 0 0 36px rgba(125, 211, 252, 0.08);
}

.services-title-panel--open h2::after {
  content: attr(data-services-title);
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  color: transparent;
  background:
    linear-gradient(
      104deg,
      transparent 0%,
      transparent 38%,
      rgba(186, 230, 253, 0.12) 44%,
      rgba(125, 211, 252, 0.56) 50%,
      rgba(199, 210, 254, 0.32) 56%,
      transparent 66%,
      transparent 100%
    );
  background-size: 340% 100%;
  background-position: 142% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(125, 211, 252, 0.12));
  opacity: 0.74;
  animation: servicesTitleSheen 10.2s cubic-bezier(0.55, 0, 0.2, 1) infinite;
}

.services-section-head p,
.services-process-intro,
.services-cta p {
  line-height: 1.7;
  color: #b8c6da;
}

.services-model-panel {
  position: relative;
  min-height: clamp(230px, 28vw, 320px);
  border-radius: 28px;
  border: 0;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(125, 211, 252, 0.16), transparent 44%),
    radial-gradient(ellipse at 52% 82%, rgba(226, 246, 255, 0.08), transparent 54%);
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}

.services-model-panel::before,
.services-model-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.services-model-panel::before {
  inset: 10% 6% 18%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(125, 211, 252, 0.12), transparent 50%),
    radial-gradient(ellipse at 58% 72%, rgba(163, 230, 53, 0.06), transparent 58%);
  filter: none;
  mix-blend-mode: normal;
  opacity: 0.48;
  animation: none;
}

.services-model-panel::after {
  inset: auto 12% 8%;
  height: 26%;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(125, 211, 252, 0.12), rgba(163, 230, 53, 0.04) 42%, transparent 72%);
  filter: none;
  opacity: 0.54;
  transform: perspective(220px) rotateX(62deg) translateZ(0);
  animation: none;
}

.services-model-viewer {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: transparent;
  --poster-color: transparent;
  filter:
    saturate(1.08)
    brightness(1.04)
    drop-shadow(0 14px 20px rgba(2, 6, 23, 0.28))
    drop-shadow(0 0 12px rgba(125, 211, 252, 0.14));
}

.services-model-panel .slot.poster {
  background: transparent;
}

.services-model-viewer--logo {
  filter:
    saturate(1.04)
    brightness(1.06)
    drop-shadow(0 12px 18px rgba(2, 6, 23, 0.26))
    drop-shadow(0 0 10px rgba(125, 211, 252, 0.12));
}

.services-model-panel--open {
  min-height: clamp(260px, 26vw, 360px);
  justify-self: stretch;
  width: calc(100% + clamp(3.8rem, 6vw, 6.4rem));
  margin-left: clamp(-6.4rem, -6vw, -3.8rem);
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(125, 211, 252, 0.14), transparent 48%),
    radial-gradient(ellipse at 52% 82%, rgba(167, 139, 250, 0.1), transparent 60%);
}

@keyframes servicesHaloFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.82;
  }

  100% {
    transform: translate3d(8%, 5%, 0) scale(1.08);
    opacity: 1;
  }
}

@keyframes servicesStageAura {
  0% {
    transform: translate3d(-2%, 0, 0) scale(0.98);
    opacity: 0.68;
  }

  100% {
    transform: translate3d(3%, 3%, 0) scale(1.04);
    opacity: 0.92;
  }
}

@keyframes servicesGroundGlow {
  0% {
    opacity: 0.56;
    transform: perspective(220px) rotateX(62deg) translateZ(0) scale(0.95);
  }

  100% {
    opacity: 0.82;
    transform: perspective(220px) rotateX(62deg) translateZ(0) scale(1.02);
  }
}

@keyframes servicesTitleGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translate3d(10%, 8%, 0) scale(1.1);
    opacity: 1;
  }
}

@keyframes servicesTitleSheen {
  0%,
  22% {
    background-position: 142% 50%;
  }

  52%,
  100% {
    background-position: -118% 50%;
  }
}

@keyframes servicesLinePulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scaleX(0.92);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.services-showcase-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin: -0.1rem 0 0 auto;
  width: min(100%, 340px);
}

.services-showcase-row > .services-model-card {
  flex: none;
  width: 100%;
}

.services-showcase-row--desktop {
  display: none;
}

.services-showcase-row--starter {
  margin-left: 0;
  margin-right: auto;
}

@media (min-width: 981px) {
  .services-showcase-row--mobile {
    display: none;
  }

  .services-showcase-row--desktop {
    order: 5;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.85rem;
    width: 100%;
    margin: -0.1rem 0 0;
  }

  .services-showcase-row--desktop > .services-model-card {
    width: 100%;
    min-width: 0;
  }

  .services-showcase-row--desktop .services-model-card,
  .services-showcase-row--desktop .services-model-viewer--showcase {
    min-height: clamp(190px, 16vw, 250px);
  }
}

.services-model-card {
  position: relative;
  min-height: clamp(220px, 22vw, 280px);
  border-radius: 28px;
  -webkit-clip-path: inset(0 round 28px);
  clip-path: inset(0 round 28px);
  background-clip: padding-box;
  border: 1px solid rgba(125, 145, 168, 0.18);
  background:
    radial-gradient(circle at 18% 20%, rgba(125, 211, 252, 0.16), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(163, 230, 53, 0.11), transparent 30%),
    rgba(2, 6, 23, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(2, 6, 23, 0.26),
    0 0 30px rgba(125, 211, 252, 0.08);
  overflow: hidden;
  isolation: isolate;
}

.services-model-card::before,
.services-model-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.services-model-card::before {
  inset: -30% auto auto -10%;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.12), transparent 68%);
  filter: none;
  mix-blend-mode: normal;
  opacity: 0.5;
}

.services-model-card::after {
  inset: auto 14% 0 auto;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.8), transparent);
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.16);
}

.services-model-viewer--showcase {
  border-radius: inherit;
  min-height: clamp(220px, 22vw, 280px);
}

.service-card,
.service-empty {
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
  overflow: hidden;
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(125, 145, 168, 0.18);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.service-card::before {
  inset: -1px;
  border: 1px solid var(--service-border, rgba(125, 211, 252, 0.18));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 26px var(--service-glow, rgba(125, 211, 252, 0.12));
  opacity: 0.72;
}

.service-card::after {
  inset: 0 auto auto 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--service-line, rgba(125, 211, 252, 0.78)), transparent);
  opacity: 0.9;
}

.service-card-cyan {
  --service-border: rgba(125, 211, 252, 0.26);
  --service-glow: rgba(125, 211, 252, 0.12);
  --service-line: rgba(125, 211, 252, 0.85);
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.1);
}

.service-card-lime {
  --service-border: rgba(163, 230, 53, 0.22);
  --service-glow: rgba(163, 230, 53, 0.1);
  --service-line: rgba(196, 246, 99, 0.88);
  box-shadow: inset 0 1px 0 rgba(163, 230, 53, 0.1);
}

.service-card-amber {
  --service-border: rgba(251, 191, 36, 0.24);
  --service-glow: rgba(251, 191, 36, 0.1);
  --service-line: rgba(253, 224, 71, 0.86);
  box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.1);
}

.service-card-coral {
  --service-border: rgba(251, 113, 133, 0.22);
  --service-glow: rgba(251, 113, 133, 0.1);
  --service-line: rgba(251, 113, 133, 0.86);
  box-shadow: inset 0 1px 0 rgba(251, 113, 133, 0.1);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--service-border, rgba(125, 211, 252, 0.28));
  background: rgba(4, 10, 22, 0.58);
  box-shadow:
    0 24px 54px rgba(2, 6, 23, 0.34),
    0 0 34px var(--service-glow, rgba(125, 211, 252, 0.14));
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.service-badge {
  display: inline-flex;
  margin-bottom: 0.6rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(125, 211, 252, 0.12);
  color: #bfe9ff;
}

.service-card h3 {
  margin: 0;
  font-size: var(--services-card-title-size);
  overflow-wrap: anywhere;
}

.service-price {
  white-space: nowrap;
  font-weight: 800;
  color: #d9f99d;
  font-size: var(--services-card-text-size);
}

.service-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  margin-top: 1rem;
  border: 1px solid rgba(125, 145, 168, 0.24);
}

.service-short,
.service-description {
  font-size: var(--services-card-text-size);
  line-height: var(--services-card-line-height);
  color: #d8e3f0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.service-description {
  color: #b4c2d6;
  -webkit-line-clamp: var(--services-card-description-lines);
}

.service-short {
  -webkit-line-clamp: var(--services-card-short-lines);
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.2rem 0 0.4rem;
}

.service-meta span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(125, 145, 168, 0.18);
  color: #d8e3f0;
  font-size: max(0.78rem, calc(var(--services-card-text-size) - 3px));
}

.service-block {
  margin-top: 0.9rem;
}

.service-block ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  font-size: var(--services-card-text-size);
  line-height: var(--services-card-line-height);
  color: #b9c7da;
  overflow-wrap: anywhere;
}

.process-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-grid article {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(125, 145, 168, 0.18);
}

.process-grid span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  background: linear-gradient(120deg, rgba(125, 211, 252, 0.25), rgba(163, 230, 53, 0.2));
  color: #dff7ff;
}

.process-grid h3 {
  margin: 0.9rem 0 0.35rem;
}

.process-grid p {
  margin: 0;
  line-height: 1.7;
  color: #b8c6da;
}

.services-cta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

/* 3D light-layer tuning: compositor hints only, no visual changes. */
.services-title-panel,
.services-model-card {
  isolation: isolate;
  contain: layout paint style;
}

.services-title-panel--open {
  contain: layout style;
}

.services-model-panel {
  isolation: isolate;
  contain: layout style;
}

.services-title-panel::before,
.services-title-panel::after,
.services-model-panel::before,
.services-model-panel::after,
.services-model-card::before,
.services-model-card::after {
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.services-model-viewer,
.services-model-viewer--logo,
.services-model-viewer--showcase {
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

html.css-motion-observer-ready .services-title-panel::before,
html.css-motion-observer-ready .services-model-panel::before,
html.css-motion-observer-ready .services-model-panel::after,
html.css-motion-observer-ready .services-model-card::before,
html.css-motion-observer-ready .services-model-card::after {
  animation-play-state: paused;
}

html.css-motion-observer-ready .services-title-panel.is-css-animating::before,
html.css-motion-observer-ready .services-model-panel.is-css-animating::before,
html.css-motion-observer-ready .services-model-panel.is-css-animating::after,
html.css-motion-observer-ready .services-model-card.is-css-animating::before,
html.css-motion-observer-ready .services-model-card.is-css-animating::after {
  animation-play-state: running;
}

@media (max-width: 980px) {
  .services-hero-grid,
  .services-section-head,
  .services-cta,
  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .services-cta {
    align-items: start;
  }

  .services-landing-head {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin: 0.1rem 0 0.95rem;
    padding-inline: 0.15rem;
  }

  .services-title-panel--open h2 {
    max-width: 15.2ch;
    font-size: clamp(1.95rem, 8.8vw, 3rem);
    line-height: 0.98;
  }

  .services-model-panel {
    min-height: 250px;
  }

  .services-model-panel--open {
    min-height: clamp(205px, 52vw, 285px);
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .services-hero,
  .services-section,
  .services-process,
  .services-cta {
    padding: 1.1rem;
    border-radius: 24px;
  }

  .services-shell {
    padding-bottom: 1rem;
  }

  .services-model-panel {
    min-height: 220px;
    border-radius: 22px;
  }

  .services-model-panel--open {
    min-height: clamp(190px, 58vw, 260px);
    border-radius: 0;
  }

  .services-title-panel {
    padding: 0.95rem 0.95rem 1.05rem;
    border-radius: 22px;
  }

  .services-title-panel--open {
    padding: 0;
    border-radius: 0;
  }
}

@media (max-width: 640px) {
  .services-showcase-row {
    flex-direction: row;
    align-items: stretch;
    gap: 0.65rem;
    margin-left: 0;
    width: 100%;
  }

  .services-showcase-row > .services-model-card {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .services-model-card,
  .services-model-viewer--showcase {
    border-radius: 24px;
    -webkit-clip-path: inset(0 round 24px);
    clip-path: inset(0 round 24px);
    min-height: clamp(160px, 42vw, 210px);
  }
}

html.perf-touch .services-title-panel::before,
html.perf-touch .services-model-panel::before,
html.perf-touch .services-model-panel::after,
html.perf-touch .services-model-card::before,
html.perf-touch .services-model-card::after {
  filter: none;
  opacity: 0.5;
  animation: none;
}

html.perf-touch .services-model-viewer,
html.perf-touch .services-model-viewer--logo {
  filter:
    saturate(1.04)
    brightness(1.06)
    drop-shadow(0 12px 18px rgba(2, 6, 23, 0.26))
    drop-shadow(0 0 10px rgba(125, 211, 252, 0.12));
}

html.perf-touch .service-card,
html.perf-touch .services-model-card,
html.perf-touch .services-model-panel {
  contain: layout paint style;
}

html.perf-lite .services-title-panel::before,
html.perf-lite .services-model-panel::before,
html.perf-lite .services-model-panel::after,
html.perf-lite .services-model-card::before,
html.perf-lite .services-model-card::after {
  animation: none;
  filter: none;
}

html.perf-lite .services-model-viewer,
html.perf-lite .services-model-viewer--logo {
  filter:
    saturate(1.04)
    brightness(1.03)
    drop-shadow(0 12px 18px rgba(2, 6, 23, 0.32));
}

html.perf-lite .service-card,
html.perf-lite .services-model-card {
  transition-duration: 0.12s;
}
