.ai-service-page {
  --ai-blue: #527fa7;
  --ai-blue-soft: #eaf1f6;
  --ai-violet: #8c80b7;
}

.ai-brand-label {
  color: var(--navy-700);
}

.global-nav a[aria-current="page"]:not(.nav-contact) {
  color: var(--ace-blue);
}

.global-nav a[aria-current="page"]:not(.nav-contact)::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ai-hero {
  background:
    radial-gradient(circle at 82% 28%, rgba(140, 128, 183, 0.2), transparent 38%),
    radial-gradient(circle at 12% 90%, rgba(82, 127, 167, 0.25), transparent 44%),
    linear-gradient(140deg, #0b0e13 0%, #131b27 62%, #20243a 100%);
}

.ai-hero .subpage-grid {
  opacity: 0.1;
  background-size: 62px 62px;
  mask-image: linear-gradient(to left, #000, transparent 88%);
}

.ai-hero-orbit {
  position: absolute;
  border: 1px solid rgba(153, 180, 207, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.ai-hero-orbit::before {
  position: absolute;
  width: 8px;
  height: 8px;
  content: "";
  background: #88b5d7;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(136, 181, 215, 0.7);
}

.ai-hero-orbit-one {
  top: 120px;
  right: -260px;
  width: 710px;
  height: 710px;
}

.ai-hero-orbit-one::before {
  top: 72px;
  left: 118px;
}

.ai-hero-orbit-two {
  right: 170px;
  bottom: -410px;
  width: 620px;
  height: 620px;
}

.ai-hero-orbit-two::before {
  top: 76px;
  right: 96px;
  background: var(--red);
  box-shadow: 0 0 24px rgba(197, 27, 30, 0.68);
}

.ai-hero .subpage-hero-layout {
  min-height: 700px;
  grid-template-columns: minmax(0, 1.23fr) minmax(330px, 0.77fr);
  gap: 76px;
}

.ai-hero h1 {
  max-width: 790px;
  font-size: clamp(48px, 5vw, 70px);
}

.ai-hero h1 span {
  color: #9cc2df;
}

.ai-hero .subpage-lead {
  max-width: 760px;
}

.ai-hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.ai-hero-actions .text-link {
  margin-top: 0;
}

.ai-hero-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.ai-hero-card {
  position: relative;
  overflow: hidden;
}

.ai-hero-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 84px;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--ai-blue), var(--ai-violet));
}

.ai-starting-points {
  border-top: 1px solid var(--line);
}

.ai-starting-points > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.ai-starting-points span {
  color: var(--ai-blue);
  font-family: "Inter", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ai-starting-points h3 {
  margin: 7px 0 8px;
  color: var(--navy-900);
  font-size: 17px;
  font-weight: 600;
}

.ai-starting-points p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.ai-fit-grid article {
  min-height: 350px;
}

.ai-fit-grid h3 {
  margin-top: 64px;
}

.ai-expertise-layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr);
  gap: 100px;
}

.ai-expertise-photo {
  max-width: 410px;
}

.ai-expertise-content > p:not(.eyebrow):not(.lead-copy) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.ai-expertise-content .lead-copy {
  margin-top: 34px;
}

.ai-experience-chain {
  display: grid;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.ai-experience-chain > div {
  min-height: 170px;
  padding: 24px 22px;
  border-left: 1px solid var(--line);
}

.ai-experience-chain > div:first-child {
  border-left: 0;
}

.ai-experience-chain span,
.ai-experience-chain strong {
  display: block;
  font-family: "Inter", sans-serif;
}

.ai-experience-chain span {
  color: var(--red);
  font-size: 9px;
}

.ai-experience-chain strong {
  margin-top: 30px;
  color: var(--navy-800);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ai-experience-chain p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.ai-pillars {
  background: var(--paper);
}

.ai-pillar-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-pillar-card {
  position: relative;
  min-height: 620px;
  padding: 52px 50px 44px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(13, 17, 23, 0.06);
}

.ai-pillar-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: var(--ai-blue);
}

.ai-pillar-operations::before {
  background: var(--ai-violet);
}

.ai-pillar-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ai-pillar-heading span {
  display: flex;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-size: 10px;
}

.ai-pillar-heading p {
  margin: 0;
  color: var(--ai-blue);
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ai-pillar-operations .ai-pillar-heading p {
  color: var(--ai-violet);
}

.ai-pillar-card h3 {
  margin: 38px 0 18px;
  color: var(--navy-950);
  font-size: 31px;
  line-height: 1.45;
  font-weight: 600;
}

.ai-pillar-lead {
  min-height: 98px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.ai-pillar-card ul,
.ai-role-card ul {
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.ai-pillar-card li,
.ai-role-card li {
  position: relative;
  padding: 13px 0 13px 19px;
  color: var(--navy-700);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.ai-pillar-card li::before,
.ai-role-card li::before {
  position: absolute;
  top: 21px;
  left: 0;
  width: 6px;
  height: 2px;
  content: "";
  background: var(--red);
}

.ai-pillar-for {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.ai-technology {
  padding-bottom: 112px;
}

.ai-technology-grid {
  display: grid;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.13);
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.ai-technology-grid article {
  min-height: 275px;
  padding: 36px 34px;
  background: var(--navy-900);
}

.ai-technology-grid span {
  color: #83b1d5;
  font-family: "Inter", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ai-technology-grid h3 {
  margin: 68px 0 16px;
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
}

.ai-technology-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.ai-technology-grid .ai-technology-principle {
  background:
    radial-gradient(circle at 90% 15%, rgba(197, 27, 30, 0.2), transparent 45%),
    #23283a;
}

.ai-technology-principle span {
  color: var(--gold);
}

.ai-process {
  padding-top: 24px;
  background:
    radial-gradient(circle at 8% 85%, rgba(82, 127, 167, 0.1), transparent 38%),
    var(--navy-950);
}

.ai-process .process-list li > div {
  grid-template-columns: 150px 280px 1fr;
}

.ai-delivery {
  background: var(--paper);
}

.ai-role-map {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 0.9fr) 72px minmax(0, 1.12fr) 72px minmax(0, 1fr);
}

.ai-role-card {
  min-height: 390px;
  padding: 34px 30px;
  background: var(--white);
  border: 1px solid var(--line);
}

.ai-role-client {
  background: var(--soft);
}

.ai-role-momoca {
  position: relative;
  box-shadow: 0 22px 60px rgba(10, 34, 56, 0.1);
}

.ai-role-momoca::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70px;
  height: 5px;
  content: "";
  background: var(--red);
}

.ai-role-ace {
  background: #f6f9fb;
  border-color: #cddae5;
}

.ai-role-label {
  margin: 0 0 40px;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.ai-role-card h3 {
  margin: 0 0 74px;
  color: var(--navy-900);
  font-size: 27px;
  font-weight: 500;
}

.ai-role-brand {
  display: flex;
  height: 52px;
  margin: 0 0 46px;
  align-items: center;
  gap: 13px;
}

.ai-role-brand img:first-child {
  width: 43px;
  height: 43px;
}

.ai-role-brand img:last-child {
  width: 122px;
}

.ai-role-ace-logo {
  width: 160px;
  height: 56px;
  margin: -8px 0 50px;
  object-fit: contain;
  object-position: left center;
}

.ai-role-card ul {
  margin-top: 0;
}

.ai-role-connector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-role-connector i {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ai-blue);
}

.ai-role-connector i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  content: "";
  border-top: 1px solid var(--ai-blue);
  border-right: 1px solid var(--ai-blue);
  transform: rotate(45deg);
}

.ai-role-connector span {
  position: absolute;
  top: calc(50% - 30px);
  color: var(--ai-blue);
  font-size: 8px;
  white-space: nowrap;
}

.ai-delivery-note {
  max-width: 890px;
  margin: 38px auto 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.ai-related {
  color: var(--white);
  background:
    radial-gradient(circle at 90% 20%, rgba(53, 103, 158, 0.22), transparent 42%),
    var(--navy-900);
}

.ai-related-inner {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  gap: 90px;
}

.ai-related h2 {
  margin: 0;
  font-size: clamp(34px, 3.7vw, 52px);
  line-height: 1.5;
  font-weight: 500;
}

.ai-related-inner > div > p:last-child {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.ai-related-link {
  position: relative;
  display: flex;
  min-height: 250px;
  padding: 38px;
  color: var(--navy-900);
  background: var(--paper);
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.ai-related-link:hover {
  transform: translateY(-4px);
}

.ai-related-link span {
  color: var(--ace-blue);
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ai-related-link strong {
  margin-top: 65px;
  font-size: 21px;
  font-weight: 600;
}

.ai-related-link b {
  margin-top: auto;
  align-self: flex-end;
  color: var(--red);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.25s ease;
}

.ai-related-link:hover b {
  transform: translateX(5px);
}

.ai-final-cta {
  background: var(--paper);
}

@media (max-width: 1080px) {
  .ai-hero .subpage-hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 48px;
  }

  .ai-hero h1 {
    font-size: clamp(43px, 5.2vw, 58px);
  }

  .ai-expertise-layout {
    gap: 65px;
  }

  .ai-process .process-list li > div {
    grid-template-columns: 110px 220px 1fr;
  }

  .ai-role-map {
    grid-template-columns: minmax(0, 0.9fr) 48px minmax(0, 1.1fr) 48px minmax(0, 1fr);
  }

  .ai-role-card {
    padding: 30px 24px;
  }
}

@media (max-width: 900px) {
  .ai-hero .subpage-hero-layout,
  .ai-expertise-layout,
  .ai-related-inner {
    grid-template-columns: 1fr;
  }

  .ai-hero .subpage-hero-layout {
    gap: 54px;
  }

  .ai-hero-card {
    max-width: 620px;
  }

  .ai-expertise-photo {
    max-width: 430px;
  }

  .ai-pillar-grid {
    grid-template-columns: 1fr;
  }

  .ai-pillar-card {
    min-height: auto;
  }

  .ai-pillar-lead {
    min-height: auto;
  }

  .ai-technology-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-process .process-list li > div {
    grid-template-columns: 130px 1fr;
  }

  .ai-process .process-list li > div > p:last-child {
    grid-column: 2;
  }

  .ai-role-map {
    grid-template-columns: 1fr;
  }

  .ai-role-card {
    min-height: 330px;
  }

  .ai-role-connector {
    height: 70px;
  }

  .ai-role-connector i {
    width: 1px;
    height: 100%;
  }

  .ai-role-connector i::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .ai-role-connector span {
    top: 22px;
    left: calc(50% + 15px);
  }
}

@media (max-width: 640px) {
  .ai-brand-label {
    display: none;
  }

  .ai-brand-label + * {
    margin-left: 0;
  }

  .ai-service-page .brand-divider {
    display: none;
  }

  .ai-hero .subpage-hero-layout {
    padding-top: 56px;
  }

  .ai-hero h1 {
    font-size: clamp(34px, 10vw, 41px);
    line-height: 1.4;
  }

  .ai-hero h1 br {
    display: inline;
  }

  .ai-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .ai-hero-actions .text-link {
    width: max-content;
    margin-top: 14px;
  }

  .ai-hero-note {
    margin-top: 14px;
  }

  .ai-fit-grid article {
    min-height: auto;
  }

  .ai-fit-grid h3 {
    margin-top: 36px;
  }

  .ai-expertise-layout {
    gap: 50px;
  }

  .ai-experience-chain {
    grid-template-columns: 1fr;
  }

  .ai-experience-chain > div {
    min-height: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .ai-experience-chain > div:first-child {
    border-top: 0;
  }

  .ai-experience-chain strong {
    margin-top: 16px;
  }

  .ai-pillar-card {
    padding: 38px 25px 34px;
  }

  .ai-pillar-card h3 {
    margin-top: 30px;
    font-size: 25px;
  }

  .ai-technology-grid {
    grid-template-columns: 1fr;
  }

  .ai-technology-grid article {
    min-height: 230px;
    padding: 31px 26px;
  }

  .ai-technology-grid h3 {
    margin-top: 50px;
  }

  .ai-process .process-list li > div {
    grid-template-columns: 1fr;
  }

  .ai-process .process-list li > div > p:last-child {
    grid-column: auto;
  }

  .ai-role-card {
    min-height: auto;
  }

  .ai-role-card h3 {
    margin-bottom: 48px;
  }

  .ai-role-brand {
    margin-bottom: 38px;
  }

  .ai-role-ace-logo {
    margin-bottom: 42px;
  }

  .ai-delivery-note {
    text-align: left;
  }

  .ai-related-inner {
    gap: 48px;
  }

  .ai-related h2 {
    font-size: 31px;
  }

  .ai-related h2 br {
    display: inline;
  }

  .ai-related-link {
    min-height: 220px;
    padding: 30px 25px;
  }

  .ai-related-link strong {
    margin-top: 48px;
    font-size: 18px;
  }
}

@media (hover: none) {
  .ai-related-link:hover,
  .button-primary:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-related-link,
  .ai-related-link b {
    transition: none;
  }
}
