body[data-service-theme="paid-media"] { --service-accent: #1675ff; --service-accent-2: #ff7a19; --service-soft: #f2f7ff; }
body[data-service-theme="measurement"] { --service-accent: #6538ed; --service-accent-2: #18a6f5; --service-soft: #f6f3ff; }
body[data-service-theme="automation"] { --service-accent: #0cae65; --service-accent-2: #6d3df2; --service-soft: #effaf4; }

body[data-service-theme] main > .section { border-top: 0; }

.service-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.5rem, 5.5vw, 5.5rem);
  background:
    radial-gradient(circle at 86% 24%, color-mix(in srgb, var(--service-accent) 12%, transparent), transparent 32%),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--service-soft) 72%, #fff));
}

.service-detail-hero__grid {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}

.service-detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.service-detail-breadcrumb a { color: var(--service-accent); text-decoration: none; }
.service-detail-breadcrumb a:hover { text-decoration: underline; }
.service-detail-hero .eyebrow { color: var(--service-accent); }

.service-detail-hero h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 5.15vw, 5.35rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.service-detail-hero .lede { margin: 1.4rem 0 0; }
.service-detail-hero .button-group { margin-top: 1.8rem; }

.service-detail-hero__visual {
  position: relative;
  min-height: 390px;
}

.service-art {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(104%, 470px);
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 26px 34px rgba(20, 30, 72, 0.17));
}

.service-detail-intro {
  max-width: 980px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.service-detail-intro .eyebrow { color: var(--service-accent); }
.service-detail-intro .section-heading__text { max-width: 780px; }
.offering-grid { max-width: 1120px; }

.offering-card {
  min-width: 0;
  padding-block: clamp(1.6rem, 3vw, 2.65rem);
}

.offering-card h3 {
  color: var(--text);
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.08;
}

.offering-card > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.offering-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.35rem;
  margin-top: 1.1rem;
  padding: 0;
  list-style: none;
}

.offering-card li {
  position: relative;
  padding-left: 1rem;
  color: #414654;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.55;
}

.offering-card li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--service-accent);
}

.service-method {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 86% 4%, color-mix(in srgb, var(--service-accent) 32%, transparent), transparent 35%),
    radial-gradient(circle at 7% 112%, color-mix(in srgb, var(--service-accent-2) 17%, transparent), transparent 34%),
    #08152f;
}

.service-method .eyebrow { color: color-mix(in srgb, var(--service-accent) 70%, #fff); }
.service-method__head { display: grid; align-items: end; gap: 1.5rem; }
.service-method__head p { max-width: 590px; margin: 0; color: #c1cada; line-height: 1.75; }
.service-method__grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.service-method__card { padding: 0; }

.service-method__card i {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: var(--service-accent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--service-accent) 16%, transparent);
}

.service-method__card h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.service-method__card p { margin: 0.75rem 0 0; color: #bec8d9; font-size: 0.79rem; line-height: 1.75; }

.service-deliverables {
  background:
    radial-gradient(circle at 92% 16%, color-mix(in srgb, var(--service-accent) 9%, transparent), transparent 30%),
    color-mix(in srgb, var(--service-soft) 54%, #fff);
}

.service-deliverables__grid { display: grid; align-items: start; gap: clamp(2.5rem, 6vw, 6.5rem); }
.service-deliverables__copy .eyebrow { color: var(--service-accent); }
.service-deliverables__copy p:not(.eyebrow) { max-width: 650px; margin: 1.25rem 0 0; color: var(--text-soft); line-height: 1.75; }

.deliverable-list {
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deliverable-list li {
  position: relative;
  padding-left: 2.15rem;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.55;
}

.deliverable-list li::before {
  content: "\2713";
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--service-accent);
  font-size: 0.65rem;
}

.service-fit { margin-top: clamp(2rem, 4vw, 3rem); }
.service-fit strong { display: block; margin-bottom: 0.8rem; font-size: 0.76rem; }
.service-fit__tags { display: flex; flex-wrap: wrap; gap: 0.4rem 0; color: var(--text-soft); }
.service-fit__tags span { font-size: 0.7rem; font-weight: 700; }
.service-fit__tags span:not(:last-child)::after { content: "\00b7"; margin-inline: 0.7rem; color: var(--service-accent); }

.service-siblings { background: #fff; }
.service-siblings__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem; }
.service-siblings__head h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
.service-siblings__grid { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; }

.service-sibling {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--service-accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.service-sibling::after { content: "\2192"; font-size: 1.05rem; transition: transform 180ms ease; }

.service-detail-cta {
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, color-mix(in srgb, var(--service-accent) 28%, transparent), transparent 30%),
    #08152f;
}

.service-detail-cta .final-cta {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.service-detail-cta .final-cta .eyebrow { color: color-mix(in srgb, var(--service-accent) 72%, #fff); }
.service-detail-cta .final-cta p { color: #bdc8da; }
.service-detail-cta .button--primary { background: #fff; color: #10182c; box-shadow: none; }

@media (hover: hover) {
  .service-sibling:hover::after { transform: translateX(4px); }
}

@media (min-width: 768px) {
  .service-detail-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); }
  .offering-card { display: grid; grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr); gap: 0 clamp(2.5rem, 6vw, 6rem); }
  .offering-card h3 { grid-row: 1 / span 2; }
  .offering-card > p,
  .offering-card ul { grid-column: 2; }
  .service-method__head { grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); }
  .service-method__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-deliverables__grid { grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.72fr); }
  .deliverable-list { padding-top: 0.6rem; }
}

@media (max-width: 767px) {
  .service-detail-hero h1 { font-size: clamp(2.5rem, 12vw, 3.9rem); }
  .service-detail-hero__visual { min-height: 285px; }
  .service-art { width: min(96%, 350px); }
  .offering-card > p { margin-top: 0.8rem; }
  .service-method__card { max-width: 560px; }
}

@media (max-width: 430px) {
  .service-detail-hero__visual { min-height: 245px; }
  .service-art { width: min(98%, 305px); }
}

@media (prefers-reduced-motion: reduce) {
  .service-sibling::after { transition: none; }
}

/* Included service system */
.service-included {
  padding-block: clamp(3.2rem, 4.5vw, 4.5rem);
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--service-accent) 7%, transparent), transparent 28%),
    #fff;
}

.service-included .service-detail-intro {
   max-width: none;
   margin-bottom: clamp(1.5rem, 2.4vw, 2.1rem);
}

.service-included__summary {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  margin-top: 1rem;
  padding: 0.45rem 0.9rem;
  color: var(--service-accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-included__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(0.85rem, 1.5vw, 1.2rem);
  color: #fff;
  border: 1px solid rgba(117, 171, 255, 0.22);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 82% 0%, color-mix(in srgb, var(--service-accent) 24%, transparent), transparent 36%),
    radial-gradient(circle at 8% 100%, color-mix(in srgb, var(--service-accent-2) 13%, transparent), transparent 28%),
    #071936;
  box-shadow: 0 24px 60px rgba(7, 25, 54, 0.17);
}

.service-included__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(circle, #91b8ff 1px, transparent 1px);
  background-size: 22px 22px;
}

.service-journey {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-journey::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 2%;
  left: 2%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #9672ff, #2e9eff, #59e595, #ffba45);
}

.service-journey span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #fff;
  border: 1px solid rgba(133, 174, 236, 0.5);
  border-radius: 999px;
  background: rgba(8, 27, 59, 0.94);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.service-journey span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9672ff;
  box-shadow: 0 0 14px currentColor;
}
.service-journey span:nth-child(2)::before { background: #2e9eff; }
.service-journey span:nth-child(3)::before { background: #59e595; }
.service-journey span:nth-child(4)::before { background: #ffba45; }

.service-included__visual {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: clamp(135px, 18vw, 225px);
  align-items: center;
  margin: -0.4rem 0 0.8rem;
  overflow: hidden;
}

.service-included__visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
}

.service-included .offering-grid {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: none;
  gap: 0.75rem;
}

.service-included .offering-card {
  --card-accent: #39a9ff;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-items: start;
  gap: 0 1rem;
  min-height: 205px;
  padding: clamp(1rem, 1.5vw, 1.25rem);
  border: 1px solid rgba(116, 165, 231, 0.25);
  border-radius: 18px;
  background: rgba(10, 31, 66, 0.76);
}
.service-included .offering-card:nth-child(2) { --card-accent: #ffb642; }
.service-included .offering-card:nth-child(3) { --card-accent: #ff7193; }
.service-included .offering-card:nth-child(4) { --card-accent: #65e58c; }

.service-included .offering-card h3 {
  display: flex;
  grid-column: 2;
  grid-row: auto;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-size: clamp(1.1rem, 1.75vw, 1.45rem);
}

.service-included .offering-card h3::before { content: none; }

.offering-card__art {
  position: relative;
  grid-row: 1 / span 3;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.offering-card__art img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 400%;
  max-width: none;
  height: auto;
  transform: translateY(-50%);
}
.offering-card__art--2 img { left: -100%; }
.offering-card__art--3 img { left: -200%; }
.offering-card__art--4 img { left: -300%; }

.service-included .offering-card > p {
  grid-column: 2;
  margin-top: 0.65rem;
  color: #c6d2e5;
  font-size: 0.76rem;
  line-height: 1.6;
}

.service-included .offering-card ul {
  grid-column: 2;
  display: grid;
  gap: 0.32rem;
  margin-top: 0.8rem;
}

.service-included .offering-card li {
  color: #edf4ff;
  font-size: 0.66rem;
  font-weight: 650;
}

.service-included .offering-card li::before { background: var(--card-accent); }

.service-management {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
  min-height: 46px;
  margin-top: 0.75rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(119, 164, 230, 0.25);
  border-radius: 14px;
  background: rgba(7, 24, 53, 0.88);
}

.service-management strong {
  color: #fff;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-management span {
  position: relative;
  padding-left: 1rem;
  color: #d4def0;
  font-size: 0.65rem;
  font-weight: 700;
}

.service-management span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--service-accent);
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  .service-included .service-detail-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 0.7rem clamp(2rem, 6vw, 6rem);
    align-items: start;
  }
  .service-included .service-detail-intro .eyebrow,
  .service-included .service-detail-intro h2 { grid-column: 1; }
  .service-included .service-detail-intro .section-heading__text,
  .service-included__summary { grid-column: 2; }
  .service-included .service-detail-intro .section-heading__text { grid-row: 2; margin-top: 0.2rem; }
  .service-included__summary { grid-row: 3; }
  .service-included .offering-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .service-included { padding-block: 3rem; }
  .service-included .service-detail-intro { margin-bottom: 1.45rem; }
  .service-included .service-detail-intro { text-align: center; }
  .service-included .service-detail-intro h2 { font-size: clamp(2.15rem, 10vw, 3rem); line-height: 1.04; }
  .service-included .service-detail-intro .section-heading__text { margin: 1rem auto 0; font-size: 0.82rem; line-height: 1.6; }
  .service-included__summary { margin: 1rem auto 0; }
  .service-included__panel { padding: 0.6rem; }
  .service-included__visual { min-height: 0; max-height: 125px; margin: 0 0 0.35rem; }
  .service-included__visual img { width: 100%; max-width: 100%; margin: 0; }
  .service-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .service-journey::before { display: none; }
  .service-included .offering-card { grid-template-columns: 86px minmax(0, 1fr); gap: 0 0.75rem; min-height: 0; padding: 0.82rem; border-radius: 14px; }
  .offering-card__art { width: 86px; height: 86px; border-radius: 13px; }
  .service-included .offering-card h3 { font-size: 1.05rem; }
  .service-included .offering-card > p { margin-top: 0.35rem; font-size: 0.68rem; line-height: 1.48; }
  .service-included .offering-card ul { gap: 0.18rem; margin-top: 0.5rem; }
  .service-included .offering-card li { line-height: 1.4; }
  .service-management { grid-template-columns: 1fr; gap: 0.3rem; min-height: 0; padding: 0.7rem 0.8rem; }
}

@media (max-width: 430px) {
  .service-included__panel { margin-inline: calc(var(--page-pad) * -0.45); }
  .service-included .offering-card { grid-template-columns: 78px minmax(0, 1fr); gap: 0 0.7rem; padding: 0.85rem; }
  .offering-card__art { width: 78px; height: 78px; border-radius: 12px; }
  .service-included .offering-card h3 { font-size: 0.96rem; }
  .service-included .offering-card li { font-size: 0.62rem; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .service-included .service-detail-intro {
    display: block;
    max-width: 880px;
    margin-inline: auto;
    text-align: center;
  }

  .service-included .service-detail-intro h2 {
    max-width: 780px;
    margin-inline: auto;
    font-size: clamp(3rem, 6.3vw, 4.3rem);
    line-height: 1.02;
  }

  .service-included .service-detail-intro .section-heading__text {
    max-width: 760px;
    margin: 1.25rem auto 0;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .service-included__summary { margin: 1.1rem auto 0; }
  .service-included__panel { padding: 0.85rem; }
  .service-included__visual { min-height: clamp(155px, 20vw, 205px); margin-bottom: 0.45rem; }
  .service-included .offering-grid { gap: 0.65rem; }
  .service-included .offering-card { min-height: 220px; padding: 1rem; }
  .service-management { grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr)); }
}
