@font-face {
  font-family: "InfinitSense Service Sora";
  src: url("../stage4/fonts/Sora-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "InfinitSense Service Sora";
  src: url("../stage4/fonts/Sora-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "InfinitSense Service Sora";
  src: url("../stage4/fonts/Sora-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "InfinitSense Service Inter";
  src: url("../stage4/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body.service-page {
  margin: 0;
  overflow-x: clip;
  color: var(--service-text);
  background: var(--service-bg);
}

.service-page main {
  overflow: clip;
}

.service-theme--light {
  --service-bg: #f8fcff;
  --service-surface: #fff;
  --service-text: #091843;
  --service-body: #3250ab;
  --service-border: #c2d5f4;
  --service-accent-a: #2350ff;
  --service-accent-b: #6f2bff;
  --service-shadow: 0 0.65rem 1.55rem rgba(18, 67, 140, 0.1);
  --service-tag-bg: #edf5ff;
  --service-tag-border: #c7dcff;
}

.service-theme--dark {
  --service-bg: #02132d;
  --service-surface: #051e40;
  --service-text: #f8faff;
  --service-body: #c8d9f6;
  --service-border: rgba(41, 126, 255, 0.72);
  --service-accent-a: #00d0ff;
  --service-accent-b: #a439ff;
  --service-shadow: 0 0 1.4rem rgba(24, 112, 255, 0.2);
  --service-tag-bg: rgba(24, 88, 172, 0.32);
  --service-tag-border: rgba(91, 166, 255, 0.58);
}

.service-detail,
.service-detail * {
  min-inline-size: 0;
  box-sizing: border-box;
}

.service-detail {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-block-size: 1px;
  color: var(--service-text);
  background: var(--service-bg);
  font-family: "InfinitSense Service Inter", "Segoe UI", Arial, sans-serif;
}

.service-detail__background {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  pointer-events: none;
}

.service-detail__background img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: fill;
}

.service-detail__container {
  inline-size: min(100%, 128rem);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3.25rem) clamp(1.125rem, 5vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
}

.service-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

.service-hero__editorial {
  display: contents;
}

.service-hero__copy {
  order: 1;
}

.video-frame {
  order: 2;
}

.service-capabilities__heading {
  order: 3;
}

.service-capabilities__cards {
  order: 4;
}

.service-hero__copy,
.service-capabilities__heading,
.service-process__heading,
.service-cta {
  position: relative;
}

.service-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--service-accent-a);
  font-size: clamp(0.57rem, 2.4vw, 0.72rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.service-eyebrow > span {
  flex: 0 0 1.25rem;
  block-size: 1px;
  background: linear-gradient(90deg, var(--service-accent-a), var(--service-accent-b));
}

.service-hero h1,
.service-capabilities__heading h2,
.service-process__heading h2,
.service-cta h2,
.service-capability-card h3,
.service-process-step h3 {
  font-family: "InfinitSense Service Sora", "Segoe UI", sans-serif;
}

.service-hero h1 {
  max-inline-size: 12em;
  margin: 0;
  font-size: clamp(2rem, 8.5vw, 2.05rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.service-hero h1 span,
.service-capabilities__heading h2 span,
.service-process__heading h2 span,
.service-cta h2 span {
  display: block;
  color: var(--service-accent-a);
}

.service-hero__intro {
  max-inline-size: 38rem;
  margin: 0.85rem 0 0;
  color: var(--service-body);
  font-size: 0.88rem;
  line-height: 1.4;
}

.service-capabilities__heading h2,
.service-process__heading h2,
.service-cta h2 {
  margin: 0;
  font-size: clamp(1.65rem, 7vw, 2rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.service-capabilities__heading p {
  max-inline-size: 38rem;
  margin: 0.8rem 0 0;
  padding-inline-start: 0.85rem;
  border-inline-start: 2px solid var(--service-accent-a);
  color: var(--service-body);
  font-size: 0.94rem;
  line-height: 1.45;
}

.video-frame {
  align-self: start;
  padding: 0.35rem;
  border: 1px solid var(--service-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.85rem 1.8rem rgba(20, 57, 122, 0.16);
}

.video-frame video {
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.72rem;
  background: #020817;
  object-fit: contain;
  object-position: 50% 50%;
}

.video-frame video:focus-visible {
  outline: 0.2rem solid #2fcbff;
  outline-offset: 0.2rem;
}

.service-capabilities__cards,
.service-process__steps,
.service-tags {
  padding: 0;
  list-style: none;
}

.service-capabilities__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin: 0.15rem 0 0;
}

.service-capability-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid var(--service-border);
  border-radius: 1rem;
  background: var(--service-surface);
  box-shadow: var(--service-shadow);
}

.service-icon-medallion {
  display: grid;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  place-items: center;
  flex: none;
  border: 1px solid #b8d3ff;
  border-radius: 50%;
  background: #f7fbff;
}

.service-icon-medallion img {
  inline-size: 72%;
  block-size: 72%;
  object-fit: contain;
}

.service-capability-card__content {
  display: flex;
  min-block-size: 100%;
  flex-direction: column;
}

.service-capability-card h3,
.service-process-step h3 {
  margin: 0;
  color: var(--service-text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.service-capability-card p,
.service-process-step p {
  margin: 0.26rem 0 0;
  color: var(--service-body);
  font-size: 0.78rem;
  line-height: 1.35;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
}

.service-tags li {
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--service-tag-border);
  border-radius: 999px;
  color: var(--service-accent-a);
  background: var(--service-tag-bg);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.25;
}

.service-process {
  margin-block-start: 1rem;
  padding: 1.05rem 1rem 1.15rem;
  border: 1px solid var(--service-border);
  border-radius: 1rem;
  background: var(--service-surface);
  box-shadow: var(--service-shadow);
}

.service-process__heading {
  display: grid;
  gap: 0.7rem;
}

.service-process__heading p {
  position: relative;
  margin: 0;
  padding-block-start: 0.9rem;
  color: var(--service-body);
  font-size: 0.93rem;
  line-height: 1.45;
}

.service-process__heading p::before {
  position: absolute;
  inset: 0 auto auto 0;
  inline-size: 2.75rem;
  block-size: 2px;
  content: "";
  background: linear-gradient(90deg, var(--service-accent-a), var(--service-accent-b));
}

.service-process__steps {
  display: grid;
  gap: 3.1rem;
  margin: 1.15rem 0 0;
}

.service-process-step {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.5rem;
  text-align: center;
}

.service-process-step > div {
  inline-size: 100%;
}

.service-icon-medallion--process {
  position: relative;
  z-index: 1;
  inline-size: 3.4rem;
  block-size: 3.4rem;
}

.service-process-step__connector {
  position: absolute;
  z-index: 0;
  bottom: -2.2rem;
  left: 50%;
  display: grid;
  inline-size: 2rem;
  block-size: 1.25rem;
  place-items: center;
  color: var(--service-accent-a);
  font-size: 1.5rem;
  line-height: 1;
  rotate: 90deg;
  translate: -50% 0;
}

.service-process-step:last-child .service-process-step__connector {
  display: none;
}

.service-process-step--highlighted .service-icon-medallion--process {
  border-color: transparent;
  background: linear-gradient(145deg, var(--service-accent-a), var(--service-accent-b));
  box-shadow: 0 0 0.75rem rgba(66, 72, 255, 0.42), 0 0.55rem 1.3rem rgba(52, 52, 214, 0.2);
}

.service-process-step--highlighted .service-icon-medallion--process img {
  inline-size: 62%;
  block-size: 62%;
  filter: brightness(0) invert(1);
}

.service-process-step--highlighted h3 {
  color: var(--service-accent-a);
}

.service-cta {
  display: grid;
  gap: 0.75rem;
  margin-block-start: 1rem;
  padding: 9.35rem 1rem 1rem;
  overflow: hidden;
  border: 1px solid var(--service-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--service-shadow);
}

.service-cta__art {
  position: absolute;
  inset: 0 0 auto;
  block-size: 8.9rem;
  background-image: var(--service-cta-art);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: auto 8.9rem;
}

.service-cta h2,
.service-cta p,
.service-cta__button {
  position: relative;
  z-index: 1;
}

.service-cta h2 {
  font-size: clamp(1.42rem, 6.4vw, 1.75rem);
}

.service-cta p {
  margin: 0;
  color: var(--service-body);
  font-size: 0.78rem;
  line-height: 1.45;
}

.service-cta__button {
  display: flex;
  inline-size: 100%;
  min-block-size: 2.75rem;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1rem;
}

@media (width >= 48rem) {
  .service-detail__container {
    padding: clamp(2.5rem, 5vw, 3.75rem) 2.5rem 3.5rem;
  }

  .service-hero__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }

  .service-hero__editorial,
  .video-frame,
  .service-capabilities__cards {
    grid-column: 1 / -1;
  }

  .service-hero__copy,
  .service-capabilities__heading {
    grid-column: 1 / -1;
  }

  .service-hero__editorial {
    display: contents;
    max-inline-size: 41rem;
  }

  .service-hero h1 {
    font-size: clamp(2.35rem, 5vw, 2.7rem);
  }

  .service-hero__intro,
  .service-capabilities__heading p {
    font-size: 1rem;
  }

  .service-capabilities__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-capability-card:last-child {
    grid-column: 1 / -1;
    inline-size: calc(50% - 0.375rem);
    justify-self: center;
  }

  .service-icon-medallion {
    inline-size: 3rem;
    block-size: 3rem;
  }

  .service-capability-card h3,
  .service-process-step h3 {
    font-size: 0.94rem;
  }

  .service-capability-card p,
  .service-process-step p {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .service-process {
    padding: 1.35rem;
  }

  .service-process__heading {
    grid-template-columns: minmax(13rem, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 1.5rem;
  }

  .service-process__heading p {
    padding-block-start: 0;
    padding-inline-start: 1.5rem;
    border-inline-start: 2px solid var(--service-accent-a);
  }

  .service-process__heading p::before {
    display: none;
  }

  .service-process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.7rem 3.25rem;
    margin-block-start: 1.1rem;
  }

  .service-process-step__connector {
    bottom: auto;
    left: calc(100% + 0.6rem);
    top: 1.05rem;
    rotate: 0deg;
    translate: 0 0;
  }

  .service-process-step:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .service-process-step:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .service-process-step:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .service-process-step:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
  }

  .service-process-step:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
  }

  .service-process-step:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
  }

  .service-process-step:nth-child(2) .service-process-step__connector,
  .service-process-step:nth-child(4) .service-process-step__connector {
    top: auto;
    bottom: -2rem;
    left: 50%;
    rotate: 90deg;
    translate: -50% 0;
  }

  .service-process-step:nth-child(3) .service-process-step__connector {
    top: 1.05rem;
    right: calc(100% + 0.6rem);
    bottom: auto;
    left: auto;
    rotate: 180deg;
    translate: 0 0;
  }

  .service-process-step:last-child .service-process-step__connector {
    display: none;
  }

  .service-cta {
    padding: 10.5rem 1.35rem 1.35rem;
  }

  .service-cta__art {
    block-size: 9.7rem;
    background-size: auto 9.7rem;
  }

  .service-cta__button {
    max-inline-size: 24rem;
  }
}

@media (width >= 56.25rem) {
  .service-detail__container {
    padding: clamp(1.7rem, 2vw, 2rem) clamp(2.5rem, 4.45vw, 6rem) clamp(2.5rem, 4vw, 3.75rem);
  }

  .service-hero__layout {
    grid-template-columns: minmax(0, 2fr) minmax(32.5rem, 3fr);
    align-items: start;
    column-gap: clamp(3.25rem, calc(16.13vw - 5.825rem), 12.8rem);
    row-gap: 3.6rem;
  }

  .service-hero__editorial {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    max-inline-size: none;
    min-block-size: 100%;
    align-content: center;
    gap: 0.75rem;
    translate: 0 3rem;
  }

  .service-hero__copy,
  .service-capabilities__heading {
    grid-column: auto;
  }

  .service-capabilities__heading {
    inline-size: calc(100% + clamp(2rem, 4.5vw, 4rem));
  }

  .video-frame {
    grid-column: 2;
    grid-row: 1;
  }

  .service-capabilities__cards {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .service-capability-card:last-child {
    grid-column: auto;
    inline-size: auto;
    justify-self: stretch;
  }

  .service-hero h1 {
    font-size: clamp(2.45rem, 4vw, 3.15rem);
  }

  .service-hero__intro {
    max-inline-size: 34rem;
  }

  .service-capabilities__heading h2,
  .service-process__heading h2 {
    font-size: clamp(1.55rem, 2.1vw, 1.85rem);
  }

  .service-capabilities__heading p {
    font-size: clamp(0.84rem, 1.25vw, 0.94rem);
    line-height: 1.4;
  }

  .service-capability-card {
    padding: clamp(0.9rem, 1.25vw, 1.2rem);
  }

  .service-process {
    margin-block-start: 1rem;
    padding: clamp(1rem, 1.5vw, 1.35rem);
  }

  .service-process__heading {
    grid-template-columns: minmax(13rem, 0.85fr) minmax(0, 1.15fr);
  }

  .service-process__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.6rem 3.15rem;
    margin-block-start: 1rem;
  }

  .service-process-step:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .service-process-step:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .service-process-step:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .service-process-step:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .service-process-step:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
  }

  .service-process-step:nth-child(6) {
    grid-column: 1;
    grid-row: 2;
  }

  .service-process-step:nth-child(2) .service-process-step__connector,
  .service-process-step__connector {
    top: 1.05rem;
    bottom: auto;
    left: calc(100% + 0.55rem);
    rotate: 0deg;
    translate: 0 0;
  }

  .service-process-step:nth-child(3n) .service-process-step__connector {
    top: auto;
    bottom: -1.95rem;
    left: 50%;
    rotate: 90deg;
    translate: -50% 0;
  }

  .service-process-step:nth-child(4) .service-process-step__connector,
  .service-process-step:nth-child(5) .service-process-step__connector {
    top: 1.05rem;
    right: calc(100% + 0.55rem);
    bottom: auto;
    left: auto;
    rotate: 180deg;
    translate: 0 0;
  }

  .service-process-step:last-child .service-process-step__connector {
    display: none;
  }

  .service-cta {
    grid-template-columns: 28.5fr 20.5fr 27.5fr 23.5fr;
    min-block-size: clamp(7.2rem, 9.4vw, 9rem);
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background-color: #fff;
    background-image: var(--service-cta-art);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
  }

  .service-cta__art {
    display: none;
  }

  .service-cta h2 {
    grid-column: 2;
    font-size: clamp(1.22rem, 2vw, 1.7rem);
  }

  .service-cta p {
    grid-column: 3;
    font-size: clamp(0.82rem, 1.24vw, 1rem);
  }

  .service-cta__button {
    grid-column: 4;
    inline-size: 100%;
    max-inline-size: none;
  }
}

@media (width >= 64rem) {
  .service-capabilities__heading h2 {
    font-size: clamp(1.4rem, 1.55vw, 1.75rem);
    white-space: nowrap;
  }

  .service-capabilities__heading h2 span {
    display: inline;
  }
}

@media (width >= 75rem) {
  .service-detail__container {
    padding-inline: clamp(4rem, 4.7vw, 6rem);
  }

  .service-hero__layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    row-gap: clamp(1.2rem, 2vw, 1.8rem);
  }

  .service-hero h1 {
    font-size: clamp(3.15rem, 3.35vw, 3.75rem);
  }

  .service-hero__intro {
    font-size: clamp(1rem, 1.05vw, 1.18rem);
  }

  .service-hero__editorial {
    gap: clamp(1.65rem, 2.7vw, 3rem);
    translate: 0 1.25rem;
  }

  .service-hero__copy {
    translate: 0 1.5rem;
  }

  .service-capabilities__heading p {
    font-size: clamp(0.84rem, 0.9vw, 0.94rem);
  }

  .service-process {
    padding: clamp(0.9rem, 1.15vw, 1.1rem) clamp(1rem, 1.25vw, 1.25rem);
  }

  .service-process__heading {
    grid-template-columns: minmax(24rem, 0.95fr) minmax(0, 1.05fr);
    gap: 1.75rem;
  }

  .service-process__heading h2 span {
    display: inline;
  }

  .service-process__steps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(1.75rem, 2.05vw, 2.5rem);
    margin-block-start: 0.85rem;
  }

  body:is(
    [data-service-id="service-02"],
    [data-service-id="service-03"],
    [data-service-id="service-04"],
    [data-service-id="service-05"]
  ) .service-process__steps {
    grid-template-columns: repeat(
      auto-fit,
      minmax(
        0,
        calc((100% - 5 * clamp(1.75rem, 2.05vw, 2.5rem)) / 6)
      )
    );
    justify-content: center;
  }

  .service-process-step:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .service-process-step:nth-child(n) .service-process-step__connector {
    top: 1.05rem;
    right: auto;
    bottom: auto;
    left: calc(100% + 0.35rem);
    rotate: 0deg;
    translate: 0 0;
  }

  .service-process-step:last-child .service-process-step__connector {
    display: none;
  }

  .service-capability-card h3,
  .service-process-step h3 {
    font-size: clamp(0.95rem, 0.92vw, 1.08rem);
  }

  .service-capability-card p,
  .service-process-step p {
    font-size: clamp(0.84rem, 0.78vw, 0.96rem);
  }
}

@media (width >= 112.5rem) {
  .service-detail__container {
    padding-block-start: 2rem;
  }

  .service-detail--wide-editorial-balanced .service-hero__editorial {
    translate: 0 1.5rem;
  }

  .service-detail--wide-editorial-balanced .service-hero__copy {
    max-inline-size: none;
    translate: 0;
  }

  .service-detail--wide-editorial-balanced .service-hero__intro {
    max-inline-size: none;
  }

}

@media (width >= 112.5rem) and (height <= 75rem) {
  .service-detail__container {
    padding-block: 1.25rem;
  }

  .service-hero__layout {
    row-gap: 0.75rem;
  }

  .service-capability-card {
    padding-block: 0.8rem;
  }

  .service-process {
    margin-block-start: 0.65rem;
    padding-block: 0.75rem;
  }

  .service-process__steps {
    margin-block-start: 0.55rem;
  }

  .service-cta {
    min-block-size: 6.75rem;
    margin-block-start: 0.65rem;
    padding-block: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-detail *,
  .service-detail *::before,
  .service-detail *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* SERVICE_DETAIL_TEMPLATE_R1_2 — scoped dark-theme corrective. */
.service-theme--dark .video-frame {
  border-color: rgba(47, 203, 255, 0.88);
  background: linear-gradient(145deg, #03152f 0%, #062854 100%);
  box-shadow:
    0 0 0.9rem rgba(0, 208, 255, 0.25),
    0 0.85rem 1.8rem rgba(0, 5, 20, 0.42);
}

.service-theme--dark .service-cta {
  border-color: rgba(67, 175, 255, 0.78);
  background-color: #031a3a;
  box-shadow:
    0 0 1rem rgba(0, 208, 255, 0.16),
    0 0.75rem 1.7rem rgba(0, 5, 20, 0.34);
}

.service-theme--dark .service-cta h2 {
  color: #f8faff;
}

.service-theme--dark .service-cta p {
  color: #e4efff;
}

.service-theme--dark .service-cta__art {
  background-image:
    linear-gradient(90deg, rgba(2, 19, 45, 0.7) 0%, rgba(2, 19, 45, 0.88) 55%, rgba(3, 26, 58, 0.96) 100%),
    var(--service-cta-art);
  background-repeat: no-repeat, no-repeat;
  background-position: center, left top;
  background-size: 100% 100%, auto 100%;
}

@media (width >= 56.25rem) {
  .service-theme--dark .service-cta {
    background-image:
      linear-gradient(90deg, rgba(2, 19, 45, 0.7) 0%, rgba(2, 19, 45, 0.88) 55%, rgba(3, 26, 58, 0.96) 100%),
      var(--service-cta-art);
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: 100% 100%, 100% 100%;
  }
}
