.services {
  padding-block: clamp(3.5rem, 7vw, 7rem);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 0 0, #281ed044, transparent 53%),
    radial-gradient(ellipse at 100% 100%, #0d62f030, transparent 48%),
    #080e20;
}

.services-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, .41fr);
  align-items: end;
  gap: 1.5rem;
  margin-block-end: clamp(1.4rem, 3.1vw, 2.8rem);
}

.services .services-heading > p:not(.eyebrow) {
  margin-block-start: 0;
  padding-block-end: .2rem;
}

.services-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(.65rem, 1.6vw, 1.25rem);
}

.services-card {
  --card-inset: clamp(1rem, 2.2vw, 2rem);
  min-width: 0;
  border: 1px solid #9abaff33;
  border-radius: 1.06rem;
  background: #111a35;
  transition: border-color 220ms ease;
}

.services-card[open], .services-card:focus-within { border-color: #69d2f580; }
.services-card-identity { grid-row: span 2; }

.services-card summary {
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
  border-radius: inherit;
  list-style: none;
  cursor: pointer;
}

.services-card:not([open]) summary { min-height: 100%; }
.services-card summary::-webkit-details-marker { display: none; }
.services-card summary::marker { content: ""; }
.services-card[open] .plus-icon::after { opacity: 0; }

.services-caption {
  display: flex;
  min-height: 4.6rem;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .85rem var(--card-inset);
  font-size: clamp(1.23rem, 2.35vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.13;
}

.services-caption .round-control { width: 2.5rem; height: 2.5rem; }
.services-card-identity .services-caption { font-size: clamp(1.48rem, 3vw, 2.48rem); }

.services-copy {
  max-width: 46rem;
  padding: 0 var(--card-inset) var(--card-inset);
  color: var(--muted);
  line-height: 1.6;
}

.services-copy .tag-list { gap: .42rem; margin-top: .9rem; }
.services-copy .tag-list li { padding: .3rem .66rem; background: #19284f; }

.services-art {
  position: relative;
  display: block;
  min-height: clamp(9rem, 15vw, 13rem);
  overflow: hidden;
  border-block-end: 1px solid var(--stroke);
  border-radius: 1rem 1rem 0 0;
  background: #dce7f3;
}

.services-card-identity .services-art { min-height: clamp(16rem, 34vw, 28rem); }

.services-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-card-identity .services-art img { object-position: 45% 50%; }
.services-art-design img { object-position: 50% 52%; }
.services-art-code img { object-position: 50% 60%; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .services-art img { transition: scale 560ms cubic-bezier(.2, .65, .25, 1); }
  .services-card summary:is(:hover, :focus-visible) .services-art img { scale: 1.04; }
}

@media (max-width: 48rem) {
  .services-heading, .services-bento { grid-template-columns: minmax(0, 1fr); }
  .services-heading { gap: .7rem; }
  .services-card-identity { grid-row: auto; }
  .services-art { min-height: clamp(8.3rem, 31vw, 13rem); }
  .services-card-identity .services-art { min-height: clamp(12.5rem, 56vw, 22rem); }
  .services-caption { min-height: 4rem; }
}

html[data-theme='light'] .services {
  background:
    radial-gradient(ellipse at 0 0, #e9edff, transparent 58%),
    radial-gradient(ellipse at 100% 100%, #e3f1ff, transparent 52%),
    var(--surface);
}

html[data-theme='light'] .services-card {
  border-color: var(--stroke);
  background: var(--page);
}

html[data-theme='light'] .services-card[open],
html[data-theme='light'] .services-card:focus-within { border-color: #5a80d3; }

html[data-theme='light'] .services-card summary:focus-visible { outline-color: var(--brand-blue); }

html[data-theme='light'] .services-caption .round-control {
  border-color: #6586b6;
  color: var(--ink);
  background: var(--surface-raised);
}

html[data-theme='light'] .services-card[open] .round-control,
html[data-theme='light'] .services-card summary:is(:hover, :focus-visible) .round-control {
  border-color: var(--brand-blue);
  color: #fff;
  background: var(--brand-blue);
}

html[data-theme='light'] .services-copy .tag-list li {
  color: var(--ink);
  background: var(--surface);
}

.services-growth {
  margin-block-start: clamp(1.3rem, 3.3vw, 2.85rem);
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--stroke);
  border-radius: 1.06rem;
  background: radial-gradient(ellipse at 98% 0%, var(--surface-raised), transparent 70%), var(--page);
}

.services-growth-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, .52fr);
  align-items: end;
  gap: .9rem 2rem;
  padding-block-end: clamp(1rem, 2.4vw, 1.8rem);
  border-bottom: 1px solid var(--stroke);
}

.services-growth-heading h3 {
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  font-weight: 550;
  letter-spacing: -.055em;
  line-height: 1.1;
}

.services-growth p,
.services-growth dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.services-growth-grid {
  display: grid;
  grid-template-columns: minmax(15rem, .73fr) minmax(0, 1.4fr);
  gap: clamp(1.1rem, 3vw, 2.45rem);
  margin-block-start: clamp(1rem, 2.25vw, 1.7rem);
}

.services-growth h4 {
  margin: 0 0 .75rem;
  color: var(--bright-ink);
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.35;
}

.services-growth-tools,
.services-growth-metrics {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
}

.services-growth-tools { list-style: none; }

.services-growth-tools li,
.services-growth-metrics > div {
  min-width: 0;
  border: 1px solid var(--stroke);
  border-radius: .72rem;
  background: var(--surface);
}

.services-growth-tools li {
  display: grid;
  grid-template-columns: clamp(6.5rem, 9vw, 7.25rem) minmax(0, 1fr);
  align-items: center;
  gap: .7rem;
  min-height: 4.9rem;
  padding: .5rem .75rem .5rem .5rem;
  font-size: .875rem;
}

.services-growth-logo {
  display: grid;
  min-height: 3.55rem;
  place-items: center;
  padding: 0 .45rem;
  border: 1px solid #17356024;
  border-radius: .45rem;
  background: #fff;
  color: #101b34;
  font-size: .875rem;
  font-weight: 700;
}

.services-growth-logo img {
  width: 100%;
  height: 2.35rem;
  object-fit: contain;
}

.services-growth-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.services-growth-metrics > div {
  display: grid;
  align-content: start;
  gap: .45rem;
  padding: clamp(.85rem, 1.4vw, 1.15rem);
}

.services-growth-metrics dt {
  display: grid;
  justify-items: start;
  gap: .9rem;
  font-size: clamp(1rem, 1.34vw, 1.18rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.services-growth-metrics dd { font-size: .875rem; }

.services-growth-icon {
  position: relative;
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: .58rem;
  background: var(--surface-raised);
  color: var(--brand-cyan);
}

[data-theme='light'] .services-growth-icon { color: #1d51cc; }

.services-growth-icon::before,
.services-growth-icon::after {
  position: absolute;
  content: "";
}

.services-growth-icon-audience::before {
  top: .43rem;
  width: .53rem;
  height: .53rem;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}

.services-growth-icon-audience::after {
  bottom: .42rem;
  width: .96rem;
  height: .53rem;
  border: 1.4px solid currentColor;
  border-radius: .5rem .5rem .12rem .12rem;
}

.services-growth-icon-sales::before {
  top: .83rem;
  width: 1rem;
  height: .92rem;
  border: 1.4px solid currentColor;
  border-radius: .12rem;
}

.services-growth-icon-sales::after {
  top: .53rem;
  width: .46rem;
  height: .48rem;
  border: 1.4px solid currentColor;
  border-bottom: 0;
  border-radius: .3rem .3rem 0 0;
}

.services-growth-icon-revenue::before {
  width: 1.06rem;
  height: .98rem;
  border-bottom: 1.4px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) left bottom / .19rem 43% no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / .19rem 66% no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / .19rem 100% no-repeat;
}

@media (max-width: 62rem) {
  .services-growth-grid { grid-template-columns: minmax(0, 1fr); }
  .services-growth-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 43rem) {
  .services-growth-heading,
  .services-growth-tools { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 34rem) {
  .services-growth-metrics { grid-template-columns: minmax(0, 1fr); }

  .services-growth-metrics dt {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
  }

  .services-growth-metrics dd { padding-inline-start: 3rem; }
}

.service-solutions {
  margin-block-start: clamp(3.5rem, 8vw, 7rem);
}

.service-solutions-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, .47fr);
  align-items: end;
  gap: .8rem clamp(1.5rem, 5vw, 4.5rem);
  margin-block-end: clamp(1.5rem, 3.5vw, 2.7rem);
  padding-block-start: clamp(1.25rem, 3vw, 2.5rem);
  border-block-start: 1px solid var(--stroke);
}

.service-solutions-heading h3 {
  margin: 0;
  font-size: clamp(2.4rem, 5.1vw, 4.65rem);
  font-weight: 620;
  letter-spacing: -.073em;
  line-height: 1.02;
}

.service-solutions-heading > p,
.service-solution-copy > p,
.service-solutions-contact > p {
  color: var(--muted);
  line-height: 1.6;
}

.service-solutions-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(2.4rem, 5vw, 4.25rem) clamp(.9rem, 1.8vw, 1.5rem);
}

.service-solution { position: relative; min-width: 0; color: var(--ink); }
.service-solution-automation, .service-solution-landing { grid-column: 1 / -1; }
.service-solution-agent { grid-column: 1 / span 5; }

.service-solution-erp {
  grid-column: 7 / -1;
  margin-block-start: clamp(1.25rem, 4.5vw, 3.7rem);
}

.service-solution-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: .75rem;
}

.service-solution :is(h4, .solution-demo-status) { margin: 0; }

.service-solution h4 {
  font-size: clamp(1.75rem, 3.1vw, 2.8rem);
  font-weight: 640;
  letter-spacing: -.059em;
  line-height: 1.05;
  text-wrap: balance;
}

.service-solution-copy > p:not(.solution-demo-status) { max-width: 43ch; }

.service-solution-agent .service-solution-copy,
.service-solution-erp .service-solution-copy {
  margin-block-start: 1.05rem;
  padding-block-end: .7rem;
  border-block-end: 1px solid var(--stroke);
}

.service-solution-automation {
  --automation-night: #1b2835;
  display: grid;
  min-height: clamp(22.5rem, 31vw, 29rem);
  isolation: isolate;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--automation-night);
  color: #f7faff;
}

.service-solution-automation .service-solution-copy {
  position: relative;
  z-index: 1;
  width: min(42%, 32rem);
  padding: clamp(1.6rem, 4.2vw, 4rem);
}

.service-solution-automation h4,
.service-solution-landing h4 {
  font-size: clamp(2rem, 3.65vw, 3.65rem);
  font-weight: 620;
  letter-spacing: -.068em;
}

.service-solution-automation .service-solution-copy > p { color: #d5dfeb; }

.service-solution-landing {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.4fr);
  grid-template-areas: "copy photo";
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  background: var(--page);
}

.service-solution-landing .service-solution-copy {
  grid-area: copy;
  padding: clamp(1.5rem, 4.4vw, 4rem);
}

.solution-demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem 1rem;
  margin-block-start: .24rem;
}

.solution-demo-run {
  display: inline-flex;
  max-width: 100%;
  min-height: 2.75rem;
  align-items: center;
  gap: .55rem;
  padding: .2rem .1rem .2rem 0;
  border: 0;
  border-radius: .25rem;
  background: transparent;
  color: inherit;
  font-size: .91rem;
  font-weight: 770;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.solution-demo-run::before {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  flex: none;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "→";
}

.solution-demo-run:is(:hover, :focus-visible) { color: var(--brand-cyan); }
[data-theme="light"] .solution-demo-run:is(:hover, :focus-visible) { color: #174bdf; }
.service-solution-automation .solution-demo-run:is(:hover, :focus-visible) { color: #a3dbff; }
.service-solution-automation .solution-demo-run:focus-visible { outline-color: #a3dbff; }

.solution-demo-status {
  max-width: 44ch;
  padding-inline-start: .75rem;
  border-inline-start: 2px solid var(--stroke);
  font-size: .83rem;
  line-height: 1.5;
}

.solution-demo-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
}

.service-solution[data-state="complete"] .solution-demo-status { border-inline-start-color: currentColor; }

.service-solutions-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 1.3rem;
  margin-block-start: clamp(1.7rem, 3.6vw, 3rem);
  padding-block-start: clamp(1rem, 2.1vw, 1.6rem);
  border-block-start: 1px solid var(--stroke);
}

.service-solutions-contact .button { min-height: 2.75rem; }

@media (max-width: 51rem) {
  .service-solutions-heading { grid-template-columns: minmax(0, 1fr); }
  .service-solutions-heading > p { max-width: 44ch; }

  .service-solutions-grid { grid-template-columns: minmax(0, 1fr); }
  .service-solution { grid-column: 1; }
  .service-solution-erp { margin-block-start: 0; }

  .service-solution-automation { min-height: 0; }
  .service-solution-automation .service-solution-copy { width: 100%; }

  .service-solution-landing {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "copy";
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .services-growth-logo img,
  .services-growth-icon {
    transition: transform 380ms cubic-bezier(.2, .65, .25, 1), translate 380ms cubic-bezier(.2, .65, .25, 1);
  }

  .services-growth-tools li:hover .services-growth-logo img,
  .services-growth-metrics > div:hover .services-growth-icon { translate: 0 -.22rem; }
}
