/* Service hero studio — scoped to service detail pages */

.page-service .service-hero-premium {
  background: #fff8f3 !important;
  color: #142b4a;
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(12px, 2vw, 28px) clamp(36px, 4vw, 56px) !important;
}

.page-service .service-hero-ambient__glow {
  display: none;
}

.page-service .service-hero-ambient__vectors {
  opacity: 0.34;
}

.page-service .service-hero-premium__grid {
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}

.page-service .service-hero-premium__grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 961px) {
  .page-service .service-hero-premium__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  }
}

.page-service .service-hero-premium .svc-hero-title {
  margin-top: 8px;
  max-width: none !important;
  font-family: "DM Sans", var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
  color: #f47a2a !important;
}

.page-service .svc-hero-title__line {
  display: block;
  margin-top: 10px;
  max-width: 12em;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(34px, 4.15vw, 54px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: none;
  text-wrap: balance;
  color: #142b4a;
}

.page-service .svc-hero-em {
  font-style: italic;
  font-weight: 400;
  color: #f47a2a;
}

.page-service .service-hero-premium .service-hero-premium__lede {
  margin-top: 14px;
  max-width: 42ch;
  font-family: "DM Sans", var(--font-body);
  font-size: clamp(15px, 1.15vw, 17.5px);
  font-weight: 500;
  line-height: 1.6;
  color: #4c5c72;
}

.page-service .service-hero-premium .service-hero-feature-chips {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.page-service .service-hero-premium .service-hero-feature-chips li {
  color: #142b4a;
  background: #fff;
  border: 1px solid rgba(20, 43, 74, 0.12);
  box-shadow: 0 10px 18px -16px rgba(20, 43, 74, 0.5);
}

.page-service .service-hero-premium .service-hero-feature-chips li:hover {
  background: #fff;
  border-color: rgba(244, 122, 42, 0.55);
  color: #142b4a;
}

.page-service .service-hero-premium .btn--ghost-on-dark {
  color: #142b4a !important;
  border-color: rgba(20, 43, 74, 0.18) !important;
  background: #fff !important;
}

.page-service .service-hero-premium .btn--ghost-on-dark:hover {
  border-color: #142b4a !important;
  background: #fff !important;
}

.page-service .service-hero-premium .btn:focus-visible {
  outline: 2px solid #f47a2a;
  outline-offset: 3px;
}

.page-service .service-hero-premium__cta .icon {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-service .service-hero-premium::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 28px;
  background: #fff;
  clip-path: ellipse(72% 100% at 50% 100%);
  pointer-events: none;
}

.page-service .service-hero-premium__stage {
  transform: none;
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}

/* Studio stage */
.svc-studio {
  position: relative;
  z-index: 0;
  width: 100%;
  height: clamp(390px, 34vw, 500px);
  overflow: hidden;
  contain: layout paint;
  transform: translate3d(0, var(--hero-shift-y, 0px), 0);
}

.svc-studio__floor {
  position: absolute;
  left: 14%;
  right: 10%;
  bottom: 7%;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 43, 74, 0.1);
  filter: blur(8px);
  pointer-events: none;
}

.svc-studio__orbit {
  position: absolute;
  inset: 4% 0 8%;
  width: 100%;
  height: 86%;
  pointer-events: none;
  animation: svc-orbit-spin 42s linear infinite;
  transform-origin: 53% 48%;
}

.svc-device,
.svc-print,
.svc-funnel,
.svc-nodes,
.svc-steps,
.svc-obj {
  position: absolute;
  pointer-events: none;
}

.svc-device__tilt,
.svc-obj__body {
  transform-origin: center center;
}

.svc-device__tilt {
  animation: svc-device-float 7.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.4s);
}

.svc-device--laptop {
  z-index: 2;
  width: min(78%, 460px);
  left: 20%;
  top: 11%;
}

.svc-device__lid {
  background: #142b4a;
  border-radius: 18px 18px 8px 8px;
  padding: 18px 12px 14px;
  box-shadow: 0 24px 40px -28px rgba(20, 43, 74, 0.65);
  position: relative;
}

.svc-device__lid::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3px;
  border-radius: 50%;
  background: #f47a2a;
}

.svc-device__screen {
  position: relative;
  aspect-ratio: 16 / 10.2;
  border-radius: 8px;
  overflow: hidden;
  background: #0e2038;
}

.svc-device__screen img,
.svc-print img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--visual-pos, center);
}

.svc-device__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.16);
  clip-path: polygon(0 0, 46% 0, 18% 100%, 0 100%);
  pointer-events: none;
}

.svc-device__tag,
.svc-print figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: #142b4a;
  color: #fff;
  font-family: "DM Sans", var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.svc-device__base {
  position: relative;
  height: 12px;
  margin: 0 7% 0;
  background: #d5dbe3;
  border-radius: 0 0 12px 12px;
}

.svc-device__base i {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 42%;
  height: 7px;
  transform: translateX(-50%);
  background: #142b4a;
  border-radius: 0 0 8px 8px;
}

.svc-device--phone {
  z-index: 4;
  width: min(34%, 168px);
  left: 0;
  bottom: 4%;
}

.svc-phone {
  background: #142b4a;
  color: #fff;
  border-radius: 26px;
  padding: 14px 12px 16px;
  box-shadow: 0 22px 36px -24px rgba(20, 43, 74, 0.7);
  min-height: 210px;
}

.svc-phone__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.svc-phone__bar span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.svc-phone__bar span:first-child {
  background: #f47a2a;
}

.svc-phone__card {
  background: #fff;
  color: #142b4a;
  border-radius: 16px;
  padding: 12px;
}

.svc-phone__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #142b4a;
  color: #fff;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 16px;
}

.svc-phone__card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.svc-phone__card i,
.svc-phone--form span {
  display: block;
  height: 6px;
  margin-top: 6px;
  border-radius: 99px;
  background: #d7dde6;
}

.svc-phone__card i.is-short,
.svc-phone--form span.is-short {
  width: 62%;
}

.svc-phone__card i:first-of-type {
  background: #f47a2a;
  width: 78%;
}

.svc-phone__row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.svc-phone__chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.svc-phone__chip--hot {
  background: #f47a2a;
  color: #fff;
}

.svc-phone--form {
  min-height: 230px;
  background: #fff;
  color: #142b4a;
  border: 0;
  box-shadow: 0 22px 36px -22px rgba(20, 43, 74, 0.45);
}

.svc-device--phone-lead .svc-phone--form {
  background: #142b4a;
  color: #fff;
  border-radius: 26px;
  padding: 18px 14px;
}

.svc-phone--form strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.svc-device--phone-lead .svc-phone--form span {
  background: rgba(255, 255, 255, 0.16);
  height: 28px;
  border-radius: 10px;
}

.svc-phone--form b {
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f47a2a;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.svc-print {
  z-index: 1;
  margin: 0;
  width: min(48%, 240px);
}

.svc-print .svc-device__tilt,
.svc-print img {
  border-radius: 18px;
}

.svc-print img {
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 40px -28px rgba(20, 43, 74, 0.55);
}

.svc-print figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
}

.svc-print--wide {
  width: min(86%, 460px);
  left: 7%;
  top: 8%;
}

.svc-print--wide img {
  aspect-ratio: 16 / 10;
}

.svc-print--portrait {
  width: min(58%, 280px);
  right: 2%;
  top: 6%;
}

.svc-print--portrait img {
  aspect-ratio: 3 / 3.6;
}

.svc-funnel {
  z-index: 3;
  left: 2%;
  bottom: 8%;
  width: min(52%, 250px);
  display: grid;
  gap: 8px;
}

.svc-funnel__band {
  display: grid;
  place-items: center;
  height: 48px;
  color: #fff;
  font-family: "DM Sans", var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #142b4a;
  border-radius: 14px;
  box-shadow: 0 14px 24px -18px rgba(20, 43, 74, 0.7);
}

.svc-funnel__band--1 { width: 100%; }
.svc-funnel__band--2 { width: 78%; margin-inline: auto; background: #f47a2a; }
.svc-funnel__band--3 { width: 54%; margin-inline: auto; }

.svc-device--phone-lead {
  width: min(40%, 190px);
  left: auto;
  right: 0;
  top: 16%;
  bottom: auto;
}

.svc-nodes {
  z-index: 4;
  left: 4%;
  right: 4%;
  bottom: 7%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.svc-nodes__rail {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 28px;
  height: 2px;
  background: #f47a2a;
}

.svc-nodes__item {
  position: relative;
  padding: 12px 10px;
  border-radius: 16px;
  background: #fff;
  color: #142b4a;
  box-shadow: 0 16px 28px -20px rgba(20, 43, 74, 0.55);
}

.svc-nodes__item small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f47a2a;
}

.svc-nodes__item strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  letter-spacing: -0.03em;
}

.svc-nodes__item--hot {
  background: #142b4a;
  color: #fff;
}

.svc-steps {
  z-index: 3;
  left: 2%;
  bottom: 10%;
  width: min(38%, 180px);
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.svc-steps span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 10px 10px 6px 6px;
  background: #142b4a;
  box-shadow: 0 12px 18px -14px rgba(20, 43, 74, 0.6);
}

.svc-steps span.is-hot {
  background: #f47a2a;
}

.svc-obj {
  z-index: 6;
  width: 84px;
}

.svc-obj--sm { width: 68px; }
.svc-obj--lg { width: 104px; }

.svc-obj svg,
.svc-obj__img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 16px rgba(20, 43, 74, 0.16));
}

.svc-obj--clip {
  width: 108px;
  pointer-events: none;
}

.svc-obj--clip.svc-obj--lg {
  width: 124px;
}

.svc-obj__video,
.svc-device__reel {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #142b4a;
}

.svc-obj__video {
  aspect-ratio: 1;
  height: auto;
  border-radius: 22px;
  box-shadow:
    0 18px 28px -16px rgba(20, 43, 74, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.svc-device__reel {
  position: absolute;
  inset: 0;
}

.svc-obj__body {
  animation: svc-obj-float 6.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 1) * -0.55s);
}

/* Brand */
.svc-studio--brand .svc-device--laptop { left: 20%; top: 16%; width: min(64%, 380px); }
.svc-studio--brand .svc-device--phone { left: 0; bottom: 2%; width: min(30%, 148px); }
.svc-studio--brand .svc-obj--a { left: 2%; top: 0; }
.svc-studio--brand .svc-obj--b { right: 0; top: 0; }
.svc-studio--brand .svc-obj--c { left: 0; top: 18%; }
.svc-studio--brand .svc-obj--d { right: 0; bottom: 18%; top: auto; }
.svc-studio--brand .svc-obj--e { right: 22%; bottom: 0; }
.svc-studio--brand .svc-obj--f { left: 36%; bottom: 2%; }

/* Performance */
.svc-studio--performance .svc-device--laptop { left: 18%; top: 9%; width: min(74%, 440px); }
.svc-studio--performance .svc-obj--a { left: 0; bottom: 4%; width: 118px; z-index: 7; }
.svc-studio--performance .svc-obj--b { right: 0; top: 0; }
.svc-studio--performance .svc-obj--c { left: 0; top: 14%; }
.svc-studio--performance .svc-obj--d { right: 0; bottom: 18%; top: auto; }
.svc-studio--performance .svc-obj--e { left: 38%; top: 0; }

/* Lead */
.svc-studio--lead .svc-print { left: 0; top: 0; }
.svc-studio--lead .svc-obj--a { left: 42%; top: 2%; }
.svc-studio--lead .svc-obj--b { right: 2%; bottom: 6%; }
.svc-studio--lead .svc-obj--c { left: 0; top: 46%; bottom: auto; }
.svc-studio--lead .svc-obj--d { right: 34%; top: 0; }

/* Automation */
.svc-studio--automation .svc-obj--a { left: 0; top: 4%; }
.svc-studio--automation .svc-obj--b { right: 0; top: 8%; }
.svc-studio--automation .svc-obj--c { left: 2%; bottom: 38%; }
.svc-studio--automation .svc-obj--d { right: 6%; bottom: 36%; }

/* Growth */
.svc-studio--growth .svc-obj--a { left: 0; top: 8%; }
.svc-studio--growth .svc-obj--b { left: 0; top: 38%; width: 132px; }
.svc-studio--growth .svc-obj--c { right: 4%; bottom: 8%; }
.svc-studio--growth .svc-obj--d { right: 28%; top: 0; }

.js .page-service .svc-obj,
.js .page-service .svc-device,
.js .page-service .svc-print,
.js .page-service .svc-funnel,
.js .page-service .svc-nodes,
.js .page-service .svc-steps {
  opacity: 0;
}

.js .page-service .service-hero-premium.is-hero-ready .svc-obj,
.js .page-service .service-hero-premium.is-hero-ready .svc-device,
.js .page-service .service-hero-premium.is-hero-ready .svc-print,
.js .page-service .service-hero-premium.is-hero-ready .svc-funnel,
.js .page-service .service-hero-premium.is-hero-ready .svc-nodes,
.js .page-service .service-hero-premium.is-hero-ready .svc-steps {
  animation: svc-studio-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 80ms);
}

.reveal-fallback .page-service .svc-obj,
.reveal-fallback .page-service .svc-device,
.reveal-fallback .page-service .svc-print,
.reveal-fallback .page-service .svc-funnel,
.reveal-fallback .page-service .svc-nodes,
.reveal-fallback .page-service .svc-steps {
  opacity: 1 !important;
}

@keyframes svc-studio-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes svc-device-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--tilt, 0deg)); }
  50% { transform: translate3d(0, -8px, 0) rotate(var(--tilt, 0deg)); }
}

@keyframes svc-obj-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
  50% { transform: translate3d(0, var(--lift, -10px), 0) rotate(calc(var(--rot, 0deg) + var(--spin, 3deg))); }
}

@keyframes svc-orbit-spin {
  to { transform: rotate(360deg); }
}

@media (hover: hover) and (pointer: fine) {
  .svc-studio:hover .svc-device--laptop .svc-device__tilt,
  .svc-studio:hover .svc-print .svc-device__tilt {
    animation-play-state: paused;
    transform: translate3d(0, -8px, 0) rotate(calc(var(--tilt, 0deg) - 1.5deg));
  }

  .svc-obj--clip:hover .svc-obj__body {
    animation-play-state: paused;
    transform: translate3d(0, -10px, 0) rotate(var(--rot, 0deg)) scale(1.05);
  }
}

@media (max-width: 960px) {
  body.page-service {
    overflow-x: clip;
  }

  .page-service .page-service__hero-copy,
  .page-service .service-hero-premium__stage {
    width: min(100%, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
  }

  .page-service .service-hero-premium__copy {
    order: 1;
  }

  .page-service .service-hero-premium__stage {
    order: 2;
  }

  .page-service .svc-hero-title__line {
    max-width: 14em;
  }

  .svc-studio {
    height: clamp(300px, 72vw, 440px);
    margin-inline: auto;
    width: 100%;
    max-width: min(560px, calc(100vw - 36px));
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .page-service .svc-hero-title__line {
    max-width: none;
    font-size: clamp(32px, 8.6vw, 40px);
  }

  .page-service .service-hero-feature-chips li {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
    font-size: 10px;
    letter-spacing: 0.03em;
    padding: 6px 8px;
    text-align: center;
    box-sizing: border-box;
  }

  .page-service .nav__cta .btn--sm {
    padding-inline: 12px;
  }

  .page-service .service-hero-premium__ctas .btn {
    flex: 1 1 100%;
  }

  .svc-studio {
    height: 312px;
  }

  .svc-studio--brand .svc-device--laptop {
    width: 54%;
    left: 26%;
    top: 20%;
  }

  .svc-studio--brand .svc-device--phone {
    width: 46%;
    bottom: 2%;
  }

  .svc-studio--brand .svc-obj--b { right: 0; top: 2%; }
  .svc-studio--brand .svc-obj--d { right: 0; top: 48%; }

  .svc-obj { width: 58px; }
  .svc-obj--sm { width: 48px; }
  .svc-obj--lg { width: 74px; }
  .svc-obj--clip { width: 72px; }
  .svc-obj--clip.svc-obj--lg { width: 84px; }
  .svc-studio--growth .svc-obj--b { width: 96px; }

  .svc-phone { min-height: 168px; border-radius: 20px; padding: 10px; }
  .svc-device--phone { width: min(38%, 132px); }
  .svc-funnel__band { height: 40px; font-size: 10px; }
  .svc-steps { height: 112px; width: min(42%, 140px); }
  .svc-nodes__item strong { font-size: 13px; }
  .svc-nodes { gap: 6px; }

  .svc-studio--brand .svc-obj--e,
  .svc-studio--performance .svc-obj--e,
  .svc-studio--lead .svc-obj--d {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-studio,
  .svc-device__tilt,
  .svc-obj__body,
  .svc-studio__orbit {
    animation: none !important;
    transform: none !important;
  }

  .svc-device__tilt,
  .svc-obj__body {
    transform: rotate(var(--tilt, var(--rot, 0deg)));
  }

  .js .page-service .svc-obj,
  .js .page-service .svc-device,
  .js .page-service .svc-print,
  .js .page-service .svc-funnel,
  .js .page-service .svc-nodes,
  .js .page-service .svc-steps {
    opacity: 1;
  }
}
