/* SERVICE-only scroll orbit and reveal motion. */
.page-service {
  --service-motion-ease-out: cubic-bezier(.22, .61, .36, 1);
  --service-motion-ease-mask: cubic-bezier(.16, 1, .3, 1);
  --service-business-title-size: clamp(2.4rem, 5vw, 4.7rem);
}

/* Compact descriptions support the existing large business titles. */
.page-service .service-detail__copy > p:last-child {
  font-size: var(--subpage-body-size, 1rem);
  line-height: var(--subpage-body-leading, 1.9);
}

.page-service .feature-card {
  padding: 26px 22px;
}

.page-service .feature-card p {
  color: var(--subpage-support-color, #4b5d76);
  font-size: .9375rem;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .page-service .feature-card {
    padding: 22px 16px;
  }

  .page-service .feature-card p {
    font-size: .875rem;
  }

  .page-service .feature-card h3 {
    margin-top: 14px;
  }
}

/* Keep the measured 16:9 frame in normal flow; image loading cannot resize it. */
.page-service .service-detail__photo {
  position: relative;
  overflow: hidden;
  background: #edf5f8;
}

.page-service .service-detail__photo > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.page-service .service-reveal-heading-line {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.page-service .service-detail__copy,
.page-service .service-detail__copy h2 {
  min-width: 0;
}

.page-service .service-detail__copy h2 {
  font-size: var(--service-business-title-size);
  width: max-content;
  max-width: calc(100% + 1rem);
  white-space: nowrap;
}

.page-service .service-detail__copy h2 .service-reveal-heading-line {
  max-width: none;
  white-space: nowrap;
}

.page-service .service-orbit {
  position: absolute;
  z-index: 3;
  top: min(48vw, 590px);
  bottom: 0;
  left: 50%;
  width: min(100%, 1440px);
  max-width: 1440px;
  height: calc(100% - min(48vw, 590px));
  overflow: visible;
  pointer-events: none;
  opacity: .16;
  transform: translateX(-50%);
}

.page-service .service-orbit[data-route-ready="false"] {
  opacity: 0;
}

.page-service .service-orbit__glow,
.page-service .service-orbit__line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.page-service .service-orbit__glow {
  stroke: #087cff;
  stroke-width: 12;
  opacity: .1;
}

.page-service .service-orbit__line {
  stroke: #087cff;
  stroke-width: 2.35;
  opacity: .78;
}

.page-service .service-orbit__branch--stream .service-orbit__glow {
  stroke-width: 7;
  opacity: .03;
}

.page-service .service-orbit__branch--stream .service-orbit__line {
  stroke-width: 1.22;
  opacity: .23;
}

.page-service .service-orbit__ambient,
.page-service .service-orbit__ambient-stream,
.page-service .service-orbit__ambient-tail,
.page-service .service-orbit__ambient-head {
  pointer-events: none;
}

.page-service .service-orbit__ambient-stream {
  opacity: 0;
}

.page-service .service-orbit__ambient-tail {
  fill: none;
  stroke: #55caff;
  stroke-width: .72;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(74,196,255,.2));
}

.page-service .service-orbit__ambient-head {
  fill: #dffaff;
  stroke: #65ccff;
  stroke-width: .4;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(105,214,255,.46));
}

.page-service .service-orbit__arrow {
  fill: #087cff;
  stroke: #087cff;
  stroke-width: .7;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  pointer-events: none;
}

.page-service .service-orbit__arrow-shape {
  transform-box: view-box;
  transform-origin: 0 0;
}

.page-service .service-orbit[data-route-ready="true"] .service-orbit__arrow.is-service-orbit-arrow-visible {
  opacity: 1;
}

.page-service .service-orbit[data-route-ready="true"] .service-orbit__branch--stream .service-orbit__arrow.is-service-orbit-arrow-visible {
  opacity: .3;
}

.page-service .service-orbit__junction {
  fill: #dff6ff;
  stroke: #087cff;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(32,148,255,.62));
}

.page-service .service-business-hub,
.page-service .service-branch-title {
  position: relative;
  isolation: isolate;
  display: inline-block;
  white-space: nowrap;
}

.page-service .service-business-hub {
  --service-hub-gather: 0;
}

/* This real, measured layer is the shared arrival/departure coordinate box.
   It is outside inline flow and behind the original, unduplicated text. */
.page-service .service-hub-surface {
  position: absolute;
  z-index: -1;
  inset: -.1em -.12em -.08em;
  display: block;
  overflow: clip;
  contain: paint;
  border-radius: 0;
  background: linear-gradient(118deg, rgba(17,112,211,.136), rgba(46,171,239,.19) 46%, rgba(143,231,255,.136));
  pointer-events: none;
}

.page-service .service-hub-wash,
.page-service .service-hub-wave {
  position: absolute;
  left: 100%;
  top: 0;
  width: var(--service-hub-wave-size, 0px);
  height: var(--service-hub-wave-size, 0px);
  margin-left: calc(var(--service-hub-wave-size, 0px) * -.5);
  margin-top: calc(var(--service-hub-wave-size, 0px) * -.5);
  display: block;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.012);
  transform-origin: 50% 50%;
  pointer-events: none;
}

.page-service .service-hub-wash {
  background: linear-gradient(125deg, #128cdf, #86e2ff 62%, #d7f6ff);
}

.page-service .service-hub-wave {
  border: 1px solid rgba(180,231,255,.84);
  background: radial-gradient(circle, transparent 60%, rgba(107,205,252,.025) 66%, rgba(187,244,255,.28) 70%, transparent 71%);
}

.page-service .service-hub-surface::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(222,251,255,.95), rgba(72,191,251,.25) 16%, transparent 48%);
  content: "";
  opacity: var(--service-hub-gather);
  pointer-events: none;
}

.page-service .service-branch-title {
  --service-title-landing: 0;
  --service-title-impact: 0;
  --service-title-light-clip: 100%;
}

.page-service .service-branch-title::before {
  position: absolute;
  z-index: -1;
  inset: -.05em -.08em -.035em;
  border-radius: 3px;
  background: linear-gradient(112deg, rgba(34,129,221,.12), rgba(75,190,244,.25), rgba(182,239,255,.14));
  box-shadow: 0 0 calc(5px + 10px * var(--service-title-impact)) rgba(55,180,255,calc(.08 + .34 * var(--service-title-impact)));
  content: "";
  opacity: calc(.08 + .72 * var(--service-title-landing));
  pointer-events: none;
}

.page-service .service-branch-title::after {
  position: absolute;
  z-index: -1;
  inset: -.1em -.08em -.08em;
  background: linear-gradient(100deg, transparent 2%, rgba(224,251,255,.92) 46%, rgba(83,197,255,.3) 60%, transparent 98%);
  clip-path: inset(0 var(--service-title-light-clip) 0 0);
  content: "";
  opacity: var(--service-title-impact);
  pointer-events: none;
}

.page-service .contact-band {
  z-index: auto;
}

.page-service .contact-band__inner {
  position: relative;
  z-index: 4;
}

html.service-motion-ready .page-service [data-service-reveal-state="pending"] [data-service-reveal-item="label"] {
  opacity: 0;
  transform: translate3d(-18px, 0, 0);
}

html.service-motion-ready .page-service [data-service-reveal-state="pending"] [data-service-reveal-item="heading-line"] {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, 28px, 0);
}

html.service-motion-ready .page-service [data-service-reveal-state="pending"] [data-service-reveal-item="text"] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
}

html.service-motion-ready .page-service [data-service-reveal-state="pending"] [data-service-reveal-item="card"] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

html.service-motion-ready .page-service [data-service-reveal-state="pending"] [data-service-reveal-item="measured-visual"] {
  opacity: 0;
  clip-path: inset(0 0 12% 0);
}

html.service-motion-ready .page-service [data-service-reveal-state="pending"] [data-service-reveal-item="icon"] {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(.86);
  transform-origin: 50% 72%;
}

html.service-motion-ready .page-service [data-service-reveal-state="pending"] [data-service-reveal-item="decor"] {
  opacity: 0;
}

html.service-motion-ready .page-service [data-service-reveal-state="pending"] [data-service-reveal-item="cta"] {
  opacity: 0;
  translate: 0 24px;
}

html.service-motion-ready .page-service [data-service-reveal-state="running"] [data-service-reveal-item] {
  animation-delay: var(--service-reveal-delay, 0ms);
  animation-fill-mode: both;
}

html.service-motion-ready .page-service [data-service-reveal-state="running"] [data-service-reveal-item="label"] {
  animation-name: service-reveal-label;
  animation-duration: 440ms;
  animation-timing-function: var(--service-motion-ease-out);
}

html.service-motion-ready .page-service [data-service-reveal-state="running"] [data-service-reveal-item="heading-line"] {
  animation-name: service-reveal-heading;
  animation-duration: 700ms;
  animation-timing-function: var(--service-motion-ease-mask);
}

html.service-motion-ready .page-service [data-service-reveal-state="running"] [data-service-reveal-item="text"] {
  animation-name: service-reveal-text;
  animation-duration: 540ms;
  animation-timing-function: var(--service-motion-ease-out);
}

html.service-motion-ready .page-service [data-service-reveal-state="running"] [data-service-reveal-item="card"] {
  animation-name: service-reveal-card;
  animation-duration: 560ms;
  animation-timing-function: var(--service-motion-ease-mask);
}

html.service-motion-ready .page-service [data-service-reveal-state="running"] [data-service-reveal-item="measured-visual"] {
  animation-name: service-reveal-visual;
  animation-duration: 620ms;
  animation-timing-function: var(--service-motion-ease-mask);
}

html.service-motion-ready .page-service [data-service-reveal-state="running"] [data-service-reveal-item="icon"] {
  animation-name: service-reveal-icon;
  animation-duration: 500ms;
  animation-timing-function: var(--service-motion-ease-mask);
}

html.service-motion-ready .page-service [data-service-reveal-state="running"] [data-service-reveal-item="decor"] {
  animation-name: service-reveal-decor;
  animation-duration: 440ms;
  animation-timing-function: var(--service-motion-ease-out);
}

html.service-motion-ready .page-service [data-service-reveal-state="running"] [data-service-reveal-item="cta"] {
  animation-name: service-reveal-cta;
  animation-duration: 540ms;
  animation-timing-function: var(--service-motion-ease-out);
}

html.service-motion-ready .page-service [data-service-reveal-state="running"] [data-service-reveal-item] {
  will-change: opacity, transform, clip-path;
}

html.service-motion-ready .page-service [data-service-reveal-state="complete"] [data-service-reveal-item],
html.service-motion-static .page-service [data-service-reveal-item] {
  opacity: 1;
  clip-path: none;
  transform: none;
  translate: none;
  animation: none;
  will-change: auto;
}

@keyframes service-reveal-label {
  from { opacity: 0; transform: translate3d(-18px, 0, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes service-reveal-heading {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate3d(0, 28px, 0); }
  to { opacity: 1; clip-path: inset(0); transform: none; }
}

@keyframes service-reveal-text {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes service-reveal-card {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes service-reveal-visual {
  from { opacity: 0; clip-path: inset(0 0 12% 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes service-reveal-icon {
  0% { opacity: 0; transform: translate3d(0, 14px, 0) scale(.86); }
  78% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.045); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes service-reveal-decor {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes service-reveal-cta {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: none; }
}

.page-service .orbit-arrival-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-service .orbit-arrival-cta__content,
.page-service .orbit-arrival-cta::after {
  position: relative;
  z-index: 2;
}

.page-service .orbit-arrival-cta::before {
  position: absolute;
  z-index: 1;
  inset: -40% auto -40% -42%;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(185,239,255,.42), transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: skewX(-18deg) translateX(-180%);
}

html.service-motion-ready .page-service [data-service-orbit-cta][data-service-reveal-item="cta"] {
  translate: none;
}

html.service-motion-ready .page-service [data-service-reveal-group][data-service-reveal-state="pending"] [data-service-orbit-cta][data-service-reveal-item="cta"] {
  translate: none;
}

html.service-motion-ready .page-service [data-service-reveal-state="running"] [data-service-orbit-cta][data-service-reveal-item="cta"] {
  animation-name: service-reveal-cta-fixed;
}

.page-service [data-service-orbit-cta].is-service-orbit-arrived {
  opacity: 1 !important;
  translate: none !important;
  animation: service-orbit-cta-frame 720ms cubic-bezier(.16, 1, .3, 1) !important;
}

.page-service [data-service-orbit-cta].is-service-orbit-arrived::before {
  animation: service-orbit-cta-sweep 720ms cubic-bezier(.22, .61, .36, 1);
}

.page-service [data-service-orbit-cta].is-service-orbit-arrived .orbit-arrival-cta__content {
  animation: service-orbit-cta-content 720ms cubic-bezier(.16, 1, .3, 1);
}

.page-service [data-service-orbit-cta].is-service-orbit-arrived::after {
  animation: service-orbit-cta-icon 720ms cubic-bezier(.16, 1, .3, 1);
}

@keyframes service-reveal-cta-fixed {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes service-orbit-cta-frame {
  0%, 100% { border-color: rgba(255,255,255,.44); background-color: rgba(255,255,255,.18); box-shadow: none; }
  38% { border-color: #78d9ff; background: linear-gradient(110deg, rgba(43,139,232,.2), rgba(91,205,250,.24), rgba(214,250,255,.18)); box-shadow: 0 0 0 1px rgba(120,217,255,.48), 0 0 24px rgba(44,169,255,.34); }
}

@keyframes service-orbit-cta-sweep {
  0% { opacity: 0; transform: skewX(-18deg) translateX(-180%); }
  24% { opacity: .9; }
  72% { opacity: .42; }
  100% { opacity: 0; transform: skewX(-18deg) translateX(520%); }
}

@keyframes service-orbit-cta-content {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  42% { transform: translate3d(0, -2px, 0) scale(1.018); }
}

@keyframes service-orbit-cta-icon {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  42% { transform: translate3d(2px, -2px, 0) scale(1.08); }
}

.page-service.is-service-arrival-simple [data-service-orbit-cta].is-service-orbit-arrived {
  animation: service-orbit-cta-simple 320ms ease-out !important;
}

.page-service.is-service-arrival-simple [data-service-orbit-cta].is-service-orbit-arrived::before,
.page-service.is-service-arrival-simple [data-service-orbit-cta].is-service-orbit-arrived .orbit-arrival-cta__content,
.page-service.is-service-arrival-simple [data-service-orbit-cta].is-service-orbit-arrived::after {
  animation: none;
}

@keyframes service-orbit-cta-simple {
  0%, 100% { border-color: rgba(255,255,255,.44); box-shadow: none; }
  50% { border-color: #78d9ff; box-shadow: 0 0 0 1px rgba(120,217,255,.4); }
}

@media (max-width: 899px) {
  .page-service .service-orbit {
    top: 500px;
    height: calc(100% - 500px);
  }
}

@media (max-width: 720px) {
  .page-service .service-orbit__glow {
    stroke-width: 9;
    opacity: .055;
  }

  .page-service .service-orbit__line {
    stroke-width: 1.6;
    opacity: .5;
  }

  .page-service .service-orbit__branch--stream .service-orbit__glow {
    stroke-width: 5;
    opacity: .0165;
  }

  .page-service .service-orbit__branch--stream .service-orbit__line {
    stroke-width: .84;
    opacity: .15;
  }

  .page-service .service-orbit__ambient-tail {
    stroke-width: .58;
  }

  .page-service .service-orbit__ambient-stream:nth-child(3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-service .service-orbit__glow,
  .page-service .service-orbit__line {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }

  .page-service .service-orbit__arrow {
    display: none;
  }

  .page-service .service-orbit__ambient {
    display: none;
  }

  .page-service .service-hub-surface,
  .page-service .service-branch-title::before {
    transition: none;
  }

  .page-service .service-hub-wave,
  .page-service .service-hub-surface::after,
  .page-service .service-branch-title::after {
    display: none;
    animation: none !important;
  }

  .page-service [data-service-orbit-cta].is-service-orbit-arrived {
    animation: service-orbit-cta-simple 240ms linear !important;
  }

  .page-service [data-service-orbit-cta].is-service-orbit-arrived::before,
  .page-service [data-service-orbit-cta].is-service-orbit-arrived .orbit-arrival-cta__content,
  .page-service [data-service-orbit-cta].is-service-orbit-arrived::after {
    animation: none !important;
  }

  html.service-motion-ready .page-service [data-service-reveal-item] {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
    translate: none !important;
    animation: none !important;
    transition: none !important;
  }
}
