/* Service-page presentation layer: keeps the Aegis light palette while adding
   clearer editorial hierarchy, proof-led imagery and calmer spacing. */

body[data-service-presentation="true"] {
  --service-ink: #142019;
  --service-muted: #637269;
  --service-line: #dfece3;
  --service-surface: #f7fbf8;
  --service-green: #dff1e5;
  overflow-x: hidden;
}

body[data-service-presentation="true"] .svc-hero-section {
  overflow: visible;
  padding: clamp(28px, 4vw, 58px) 0 18px;
}

body[data-service-presentation="true"] .svc-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: 470px;
  padding: clamp(30px, 5vw, 72px);
  border: 1px solid var(--service-line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 10%, rgba(194, 231, 204, .42), transparent 35%),
    linear-gradient(135deg, #eff9f2 0%, #f8fcf9 54%, #fff 100%);
  box-shadow: 0 20px 56px rgba(20, 32, 25, .07);
}

body[data-service-presentation="true"] .svc-hero-text {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  max-width: 600px;
}

body[data-service-presentation="true"] .svc-hero-text h1 {
  max-width: 680px;
  margin: 14px 0 22px;
  color: var(--service-ink);
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.01;
  letter-spacing: -.065em;
  text-wrap: balance;
}

body[data-service-presentation="true"] .svc-hero-text > p {
  max-width: 560px;
  color: var(--service-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
}

body[data-service-presentation="true"] .svc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

body[data-service-presentation="true"] .svc-hero-img-wrap {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  min-height: 410px;
  height: clamp(360px, 39vw, 500px);
  overflow: hidden;
  border: 1px solid rgba(185, 216, 194, .8);
  border-radius: 28px;
  background: #dfeee3;
  box-shadow: 0 24px 52px rgba(39, 73, 49, .14);
  transform: rotate(1deg);
  -webkit-mask-image: none;
  mask-image: none;
}

body[data-service-presentation="true"] .svc-hero-img-wrap::before {
  position: absolute;
  z-index: -1;
  inset: 16px -14px -14px 16px;
  border: 1px solid rgba(100, 145, 111, .23);
  border-radius: 28px;
  content: "";
  transform: rotate(-2deg);
}

body[data-service-presentation="true"] .svc-hero-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .96;
  transform: scale(1.025);
  transition: transform 700ms cubic-bezier(.22, .61, .36, 1), opacity 450ms ease;
}

body[data-service-presentation="true"] .svc-hero-img-wrap:hover img {
  opacity: 1;
  transform: scale(1.045);
}

body[data-service-presentation="true"] .svc-hero-proof {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 24px rgba(20, 32, 25, .12);
  backdrop-filter: blur(12px);
  transform: rotate(-1deg);
}

body[data-service-presentation="true"] .svc-hero-proof span,
body[data-service-presentation="true"] .svc-hero-proof small {
  color: var(--service-muted);
  font-size: 11px;
  line-height: 1.35;
}

body[data-service-presentation="true"] .svc-hero-proof span {
  color: #4f8b61;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-service-presentation="true"] .svc-hero-proof strong {
  color: var(--service-ink);
  font-size: 17px;
  line-height: 1.2;
}

body[data-service-presentation="true"] .svc-service-lens {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(260px, 1fr) minmax(0, 1.45fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  max-width: 1210px;
  margin: -7px auto 0;
  padding: 22px clamp(22px, 4vw, 38px);
  position: relative;
  z-index: 3;
  border: 1px solid var(--service-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 36px rgba(20, 32, 25, .08);
}

body[data-service-presentation="true"] .svc-service-lens > .aegis-overline {
  margin: 0;
  color: #4f8b61;
}

body[data-service-presentation="true"] .svc-service-lens > p {
  margin: 0;
  color: var(--service-ink);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.025em;
}

body[data-service-presentation="true"] .svc-lens-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-service-presentation="true"] .svc-lens-points span {
  display: grid;
  gap: 6px;
  color: var(--service-muted);
  font-size: 12px;
  line-height: 1.35;
}

body[data-service-presentation="true"] .svc-lens-points b {
  color: #4f8b61;
  font-size: 11px;
  letter-spacing: .08em;
}

body[data-service-presentation="true"] > .stats-strip {
  max-width: 1210px;
  margin: 18px auto 0;
  padding: 22px clamp(22px, 4vw, 38px);
  border: 1px solid var(--service-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 32, 25, .045);
}

body[data-service-presentation="true"] .section {
  padding-block: clamp(72px, 8vw, 116px);
}

body[data-service-presentation="true"] .section:nth-of-type(even) {
  background: var(--service-surface);
}

body[data-service-presentation="true"] .feat-card {
  min-height: 100%;
  padding: 30px;
  border: 1px solid var(--service-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 26px rgba(20, 32, 25, .04);
}

body[data-service-presentation="true"] .feat-card:hover {
  border-color: #b8d9c0;
  box-shadow: 0 18px 34px rgba(20, 32, 25, .08);
  transform: translateY(-3px);
}

body[data-service-presentation="true"] .check-chip {
  min-height: 54px;
  border-color: var(--service-line);
  background: #fff;
}

body[data-service-presentation="true"] .process-step {
  min-height: 190px;
  border-color: var(--service-line);
}

body[data-service-presentation="true"] .svc-proof-strip {
  padding: clamp(68px, 8vw, 112px) 0;
  border-top: 1px solid var(--service-line);
  border-bottom: 1px solid var(--service-line);
  background:
    radial-gradient(circle at 9% 18%, rgba(201, 231, 208, .44), transparent 27%),
    var(--service-surface);
}

body[data-service-presentation="true"] .svc-proof-strip > .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.2fr) minmax(180px, .7fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
}

body[data-service-presentation="true"] .svc-proof-copy h2 {
  max-width: 430px;
  margin: 12px 0 16px;
  color: var(--service-ink);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: -.055em;
  text-wrap: balance;
}

body[data-service-presentation="true"] .svc-proof-copy p {
  max-width: 430px;
  color: var(--service-muted);
  line-height: 1.65;
}

body[data-service-presentation="true"] .svc-proof-feature {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid rgba(185, 216, 194, .8);
  border-radius: 24px;
  background: #dfeee3;
  box-shadow: 0 18px 38px rgba(20, 32, 25, .12);
  isolation: isolate;
}

body[data-service-presentation="true"] .svc-proof-feature::after {
  position: absolute;
  inset: 40% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(10, 28, 18, .74));
  content: "";
}

body[data-service-presentation="true"] .svc-proof-feature img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.22, .61, .36, 1);
}

body[data-service-presentation="true"] .svc-proof-feature:hover img {
  transform: scale(1.035);
}

body[data-service-presentation="true"] .svc-proof-feature > span {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 2;
  display: grid;
  gap: 3px;
  color: #fff;
}

body[data-service-presentation="true"] .svc-proof-feature small,
body[data-service-presentation="true"] .svc-proof-feature em {
  font-size: 11px;
  line-height: 1.35;
  opacity: .8;
}

body[data-service-presentation="true"] .svc-proof-feature small {
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-service-presentation="true"] .svc-proof-feature strong {
  font-size: 21px;
}

body[data-service-presentation="true"] .svc-proof-feature em {
  font-style: normal;
}

body[data-service-presentation="true"] .svc-proof-note {
  padding: 22px;
  border: 1px solid #d2e8d8;
  border-radius: 20px;
  background: rgba(224, 243, 228, .65);
}

body[data-service-presentation="true"] .svc-proof-note-mark {
  display: block;
  margin-bottom: 24px;
  color: #4f8b61;
  font-size: 25px;
}

body[data-service-presentation="true"] .svc-proof-note strong {
  display: block;
  color: var(--service-ink);
  font-size: 18px;
}

body[data-service-presentation="true"] .svc-proof-note p {
  margin: 8px 0 0;
  color: var(--service-muted);
  font-size: 13px;
  line-height: 1.55;
}

body[data-service-presentation="true"] .aegis-service-why,
body[data-service-presentation="true"] .aegis-related-work {
  position: relative;
}

body[data-service-presentation="true"] .aegis-service-why::before,
body[data-service-presentation="true"] .aegis-related-work::before {
  position: absolute;
  top: -44px;
  right: 4%;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(131, 184, 143, .2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

@media (max-width: 1080px) {
  body[data-service-presentation="true"] .svc-hero-grid {
    gap: 34px;
    padding: 38px;
  }

  body[data-service-presentation="true"] .svc-service-lens {
    grid-template-columns: 1fr 1.4fr;
  }

  body[data-service-presentation="true"] .svc-lens-points {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  body[data-service-presentation="true"] .svc-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-service-presentation="true"] .svc-hero-text {
    max-width: 760px;
    grid-column: 1;
    grid-row: 1;
  }

  body[data-service-presentation="true"] .svc-hero-img-wrap {
    grid-column: 1;
    grid-row: 2;
    min-height: 310px;
    height: min(56vw, 440px);
  }

  body[data-service-presentation="true"] .svc-proof-strip > .shell {
    grid-template-columns: 1fr 1fr;
  }

  body[data-service-presentation="true"] .svc-proof-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body[data-service-presentation="true"] .svc-hero-section {
    padding-top: 18px;
  }

  body[data-service-presentation="true"] .svc-hero-grid {
    gap: 28px;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    padding: 24px 20px 20px;
    border-radius: 24px;
  }

  body[data-service-presentation="true"] .svc-hero-text {
    width: auto;
    max-width: 100% !important;
  }

  body[data-service-presentation="true"] .svc-hero-text h1 {
    margin-top: 10px;
    font-size: clamp(38px, 11vw, 54px);
    letter-spacing: -.06em;
  }

  body[data-service-presentation="true"] .svc-hero-text > p {
    font-size: 15px;
  }

  body[data-service-presentation="true"] .svc-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  body[data-service-presentation="true"] .svc-hero-img-wrap {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-height: 280px;
    height: 76vw;
    max-height: 360px;
    border-radius: 22px;
    z-index: 1;
  }

  body[data-service-presentation="true"] .svc-hero-proof {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 11px 12px;
  }

  body[data-service-presentation="true"] .svc-service-lens {
    grid-template-columns: 1fr;
    gap: 17px;
    margin: 0 12px;
    padding: 20px;
    border-radius: 18px;
  }

  body[data-service-presentation="true"] .svc-lens-points {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  body[data-service-presentation="true"] > .stats-strip {
    margin-right: 12px;
    margin-left: 12px;
    padding: 18px;
  }

  body[data-service-presentation="true"] .section {
    padding-block: 62px;
  }

  body[data-service-presentation="true"] .feat-card {
    padding: 24px;
  }

  body[data-service-presentation="true"] .svc-proof-strip > .shell {
    grid-template-columns: 1fr;
  }

  body[data-service-presentation="true"] .svc-proof-copy h2 {
    font-size: 38px;
  }

  body[data-service-presentation="true"] .svc-proof-feature {
    min-height: 210px;
  }

  body[data-service-presentation="true"] .svc-proof-feature img {
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-service-presentation="true"] .svc-hero-img-wrap,
  body[data-service-presentation="true"] .svc-proof-feature img,
  body[data-service-presentation="true"] .svc-hero-img-wrap img,
  body[data-service-presentation="true"] .feat-card {
    transform: none;
    transition: none;
  }
}

/* Reference composition: large editorial hero, overlapping service cards,
   alternating project story and a more deliberate service-page rhythm. */
body[data-service-presentation="true"] .svc-hero-section {
  padding: 0;
  background: #fff;
  overflow: visible;
}

body[data-service-presentation="true"] .svc-hero-grid {
  max-width: 1280px;
  min-height: 520px;
  padding: clamp(54px, 7vw, 92px) clamp(28px, 6vw, 86px) clamp(82px, 9vw, 124px);
  border: 0;
  border-radius: 0 0 42px 42px;
  background:
    radial-gradient(circle at 87% 16%, rgba(255,255,255,.7), transparent 26%),
    linear-gradient(135deg, #e1f2e6 0%, #edf8f0 52%, #f8fcf9 100%);
  box-shadow: 0 18px 44px rgba(27, 74, 43, .08);
}

body[data-service-presentation="true"] .svc-hero-text h1 {
  max-width: 640px;
  margin: 16px 0 22px;
  font-size: clamp(44px, 5.8vw, 78px);
  line-height: .98;
  letter-spacing: -.07em;
}

body[data-service-presentation="true"] .svc-hero-text > p {
  max-width: 520px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
}

body[data-service-presentation="true"] .svc-hero-img-wrap {
  width: min(100%, 560px);
  min-height: 450px;
  height: clamp(410px, 38vw, 520px);
  justify-self: end;
  border: 0;
  border-radius: 30px 30px 48px 48px;
  box-shadow: 0 24px 56px rgba(27, 74, 43, .16);
  transform: rotate(1.2deg);
}

body[data-service-presentation="true"] .svc-hero-img-wrap::before {
  inset: 18px -16px -18px 18px;
  border-radius: 30px 30px 48px 48px;
  background: rgba(192, 225, 199, .52);
}

body[data-service-presentation="true"] .svc-hero-proof {
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 15px 18px;
  border-radius: 18px;
}

body[data-service-presentation="true"] .svc-service-lens {
  display: block;
  max-width: 1210px;
  margin: -70px auto 0;
  padding: 0 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-service-presentation="true"] .svc-service-lens > .aegis-overline {
  display: block;
  margin: 0 auto 12px;
  text-align: center;
}

body[data-service-presentation="true"] .svc-service-lens > p {
  max-width: 840px;
  margin: 0 auto 34px;
  color: var(--service-ink);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.06em;
  text-align: center;
  text-wrap: balance;
}

body[data-service-presentation="true"] .svc-lens-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-service-presentation="true"] .svc-lens-points span {
  min-height: 152px;
  padding: 27px 25px;
  border: 1px solid #d9e9dd;
  border-bottom: 4px solid #83bd91;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(27, 74, 43, .08);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

body[data-service-presentation="true"] .svc-lens-points b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #dff1e5;
  color: #2f8750;
  font-size: 11px;
}

body[data-service-presentation="true"] > .stats-strip {
  margin-top: 52px;
  border: 0;
  border-radius: 0;
  background: #f5faf6;
  box-shadow: none;
}

body[data-service-presentation="true"] .section {
  padding-block: clamp(86px, 10vw, 140px);
}

body[data-service-presentation="true"] .section:nth-of-type(even) {
  background: #f5faf6;
}

body[data-service-presentation="true"] .section-hd.c,
body[data-service-presentation="true"] .section-hd:not(.c) {
  max-width: 760px !important;
  margin-bottom: 42px;
}

body[data-service-presentation="true"] .section-hd h2 {
  max-width: 780px;
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: .98;
  letter-spacing: -.065em;
  text-wrap: balance;
}

body[data-service-presentation="true"] .feat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body[data-service-presentation="true"] .feat-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 30px 28px 28px;
  border: 0;
  border-bottom: 4px solid #b9dec1;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(27, 74, 43, .07);
}

body[data-service-presentation="true"] .feat-card:nth-child(3n + 2) {
  transform: translateY(24px);
}

body[data-service-presentation="true"] .feat-card .feat-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 50%;
  background: #dff1e5;
}

body[data-service-presentation="true"] .feat-card h3 {
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.15;
}

body[data-service-presentation="true"] .feat-card p {
  font-size: 15px;
  line-height: 1.65;
}

body[data-service-presentation="true"] .svc-reference-story {
  padding: clamp(84px, 10vw, 140px) 0;
  background: #fff;
}

body[data-service-presentation="true"] .svc-reference-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: center;
}

body[data-service-presentation="true"] .svc-reference-story-media {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 46px 46px 46px 0;
  background: #dff1e5;
  box-shadow: 0 20px 48px rgba(27, 74, 43, .13);
}

body[data-service-presentation="true"] .svc-reference-story-media::after {
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(180deg, transparent, rgba(20, 58, 32, .68));
  content: "";
}

body[data-service-presentation="true"] .svc-reference-story-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

body[data-service-presentation="true"] .svc-reference-story-caption {
  position: absolute;
  right: 25px;
  bottom: 24px;
  left: 25px;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: #fff;
}

body[data-service-presentation="true"] .svc-reference-story-caption b {
  color: #c6e7cd;
  font-size: 12px;
  letter-spacing: .12em;
}

body[data-service-presentation="true"] .svc-reference-story-caption span {
  font-size: 25px;
  font-weight: 750;
}

body[data-service-presentation="true"] .svc-reference-story-caption small {
  font-size: 12px;
  opacity: .8;
}

body[data-service-presentation="true"] .svc-reference-story-copy h2 {
  max-width: 580px;
  margin: 15px 0 22px;
  color: var(--service-ink);
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: .98;
  letter-spacing: -.07em;
  text-wrap: balance;
}

body[data-service-presentation="true"] .svc-reference-story-copy > p {
  max-width: 580px;
  color: var(--service-muted);
  font-size: 16px;
  line-height: 1.75;
}

body[data-service-presentation="true"] .svc-reference-story-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 30px;
}

body[data-service-presentation="true"] .svc-reference-story-list span {
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--service-ink);
  font-size: 15px;
  font-weight: 650;
}

body[data-service-presentation="true"] .svc-reference-story-list b {
  color: #4f8b61;
  font-size: 11px;
  letter-spacing: .08em;
}

body[data-service-presentation="true"] .process-steps {
  position: relative;
  gap: 18px;
}

body[data-service-presentation="true"] .process-steps::before {
  position: absolute;
  top: 43px;
  right: 9%;
  left: 9%;
  height: 1px;
  background: #cce5d2;
  content: "";
}

body[data-service-presentation="true"] .process-step {
  position: relative;
  z-index: 1;
  min-height: 220px;
  padding: 27px;
  border: 0;
  border-radius: 24px;
  background: #f5faf6;
  box-shadow: 0 10px 24px rgba(27, 74, 43, .05);
}

body[data-service-presentation="true"] .process-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: #2e8b50;
  color: #fff;
  letter-spacing: 0;
}

body[data-service-presentation="true"] .faq-item {
  border: 0;
  border-bottom: 1px solid #d9e9dd;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-service-presentation="true"] .faq-q {
  padding: 23px 4px;
  font-size: 17px;
}

body[data-service-presentation="true"] .cta-band {
  padding: clamp(76px, 9vw, 128px) 40px;
  background: #e1f2e6;
  border: 0;
}

body[data-service-presentation="true"] .cta-band h2 {
  font-size: clamp(36px, 5vw, 66px);
  letter-spacing: -.07em;
}

@media (max-width: 900px) {
  body[data-service-presentation="true"] .svc-hero-grid {
    padding-bottom: 96px;
  }

  body[data-service-presentation="true"] .svc-hero-img-wrap {
    justify-self: center;
  }

  body[data-service-presentation="true"] .svc-reference-story-grid {
    grid-template-columns: 1fr;
  }

  body[data-service-presentation="true"] .svc-reference-story-media {
    max-width: 700px;
  }
}

@media (max-width: 640px) {
  body[data-service-presentation="true"] .svc-hero-grid {
    padding: 38px 20px 90px;
    border-radius: 0 0 28px 28px;
  }

  body[data-service-presentation="true"] .svc-hero-text h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  body[data-service-presentation="true"] .svc-hero-img-wrap {
    min-height: 300px;
    height: 78vw;
    max-height: 390px;
    border-radius: 24px 24px 34px 34px;
  }

  body[data-service-presentation="true"] .svc-service-lens {
    margin-top: -50px;
    padding: 0 16px;
  }

  body[data-service-presentation="true"] .svc-service-lens > p {
    margin-bottom: 24px;
    font-size: 36px;
  }

  body[data-service-presentation="true"] .svc-lens-points,
  body[data-service-presentation="true"] .feat-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-service-presentation="true"] .process-steps {
    grid-template-columns: 1fr !important;
  }

  body[data-service-presentation="true"] .svc-lens-points span {
    min-height: 0;
  }

  body[data-service-presentation="true"] .feat-card:nth-child(3n + 2) {
    transform: none;
  }

  body[data-service-presentation="true"] .svc-reference-story {
    padding: 72px 0;
  }

  body[data-service-presentation="true"] .svc-reference-story-media,
  body[data-service-presentation="true"] .svc-reference-story-media img {
    min-height: 320px;
  }

  body[data-service-presentation="true"] .process-steps::before {
    display: none;
  }
}

/* Service detail hero alignment with the supplied reference pages. */
body[data-service-presentation="true"] .svc-hero-grid {
  max-width: 1280px;
  min-height: 560px;
  padding: clamp(56px, 7vw, 92px) clamp(28px, 6vw, 86px) clamp(88px, 10vw, 132px);
  border-radius: 0 0 44px 44px;
  background:
    linear-gradient(120deg, #e1f2e6 0%, #f2faf4 57%, #fff 100%);
  box-shadow: 0 20px 50px rgba(16, 55, 35, .10);
}
body[data-service-presentation="true"] .svc-hero-text h1 { color: var(--service-ink) !important; }
body[data-service-presentation="true"] .svc-hero-text > p { color: var(--service-muted) !important; }
body[data-service-presentation="true"] .svc-hero-text .eyebrow,
body[data-service-presentation="true"] .svc-hero-text .aegis-overline { color: #178a4c !important; }
body[data-service-presentation="true"] .svc-hero-img-wrap {
  border: 9px solid rgba(255,255,255,.9);
  border-radius: 24px 24px 42px 42px;
  background: #e1f2e6;
  box-shadow: 0 24px 56px rgba(16, 55, 35, .16);
}
body[data-service-presentation="true"] .svc-hero-img-wrap::before {
  border-color: rgba(255,255,255,.3);
  background: rgba(23, 138, 76, .10);
}
body[data-service-presentation="true"] .svc-hero-proof {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.94);
}
body[data-service-presentation="true"] .svc-service-lens { margin-top: -74px; }
body[data-service-presentation="true"] .svc-service-lens > .aegis-overline { color: #178a4c; }
body[data-service-presentation="true"] .svc-lens-points span { border-bottom-color: #afd7ba; }
body[data-service-presentation="true"] .svc-lens-points b,
body[data-service-presentation="true"] .process-num { background: #178a4c; }
body[data-service-presentation="true"] .process-steps::before { background: #afd7ba; }
body[data-service-presentation="true"] .cta-band { background: #edf7f0; }

@media (max-width: 900px) {
  body[data-service-presentation="true"] .svc-hero-grid { padding-bottom: 124px; }
}

@media (max-width: 640px) {
  body[data-service-presentation="true"] .svc-hero-grid {
    min-height: 0;
    padding: 48px 20px 106px;
    border-radius: 0 0 28px 28px;
  }
  body[data-service-presentation="true"] .svc-service-lens { margin-top: -56px; }
}

/* Final reference grammar for service detail pages: one full-width interior
   banner, a readable left gradient, then the editorial content below. */
body[data-service-presentation="true"] .svc-hero-grid {
  display: block;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  background: #edf7f0;
  box-shadow: none;
}
body[data-service-presentation="true"] .svc-hero-grid::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.82) 31%, rgba(255,255,255,.22) 57%, rgba(23,138,76,.03) 76%);
  content: '';
  pointer-events: none;
}
body[data-service-presentation="true"] .svc-hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 360px;
  max-width: 660px;
  flex-direction: column;
  justify-content: center;
  padding: 54px 48px;
}
body[data-service-presentation="true"] .svc-hero-text h1 {
  max-width: 620px;
  color: var(--service-ink) !important;
  font-size: clamp(42px, 5.7vw, 76px);
}
body[data-service-presentation="true"] .svc-hero-text > p { max-width: 520px; color: var(--service-muted) !important; }
body[data-service-presentation="true"] .svc-hero-text .eyebrow,
body[data-service-presentation="true"] .svc-hero-text .aegis-overline { color: #178a4c !important; }
body[data-service-presentation="true"] .svc-hero-img-wrap {
  position: absolute !important;
  z-index: 0;
  inset: 0 !important;
  width: 100%;
  min-height: 0;
  height: auto !important;
  max-height: none;
  aspect-ratio: auto !important;
  border: 0;
  border-radius: 0;
  background: #edf7f0;
  box-shadow: none;
  transform: none;
}
body[data-service-presentation="true"] .svc-hero-img-wrap::before { display: none; }
body[data-service-presentation="true"] .svc-hero-img-wrap img { opacity: 1; transform: none; }
body[data-service-presentation="true"] .svc-hero-proof { right: 24px; bottom: 22px; left: auto; max-width: 300px; }
body[data-service-presentation="true"] .svc-service-lens { margin-top: 0; padding-top: 72px; }

@media (max-width: 900px) {
  body[data-service-presentation="true"] .svc-hero-text { padding-inline: 28px; }
}

@media (max-width: 640px) {
  body[data-service-presentation="true"] .svc-hero-grid { min-height: 430px; border-radius: 0 0 28px 28px; }
  body[data-service-presentation="true"] .svc-hero-text { min-height: 430px; padding: 58px 20px 76px; }
  body[data-service-presentation="true"] .svc-hero-img-wrap {
    position: absolute !important;
    inset: 0 !important;
    width: 100%;
    height: auto !important;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto !important;
  }
  body[data-service-presentation="true"] .svc-hero-text h1 { font-size: clamp(42px, 12vw, 60px); }
  body[data-service-presentation="true"] .svc-hero-grid::after { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.84) 74%, rgba(255,255,255,.24)); }
  body[data-service-presentation="true"] .svc-hero-proof { display: none !important; }
  body[data-service-presentation="true"] .svc-service-lens { padding-top: 58px; }
}

/* Services index: a visual map of the capabilities that sit around a digital
   product. The cards deliberately use the same editorial language as the
   service detail pages, but remain compact enough to scan on one page. */
.aegis-service-systems {
  --systems-bg: var(--site-bg, #eff8f2);
  --systems-ink: var(--site-ink, #142019);
  --systems-muted: var(--site-muted, #6b7a72);
  --systems-line: var(--site-border, #e3ece6);
  margin: 82px 0 0;
  padding: clamp(58px, 8vw, 112px) 0 clamp(68px, 9vw, 124px);
  border-top: 1px solid var(--systems-line);
  border-bottom: 1px solid var(--systems-line);
  background: var(--systems-bg);
  color: var(--systems-ink);
  overflow: hidden;
}
.aegis-service-systems-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .72fr);
  gap: clamp(28px, 7vw, 110px);
  align-items: end;
  margin-bottom: 44px;
}
.aegis-service-systems .aegis-overline,
.aegis-service-operating-model .aegis-overline { color: var(--site-green, #178a4c); }
.aegis-service-systems h2 {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--systems-ink);
  font-size: clamp(34px, 5vw, 70px);
  line-height: .98;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.aegis-service-systems-head > p {
  max-width: 440px;
  margin: 0 0 3px;
  color: var(--systems-muted);
  font-size: 16px;
  line-height: 1.75;
}
.aegis-service-system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.aegis-service-system-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--systems-line);
  border-radius: 24px;
  background: var(--site-surface, #fff);
  color: var(--systems-ink);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.aegis-service-system-card:hover,
.aegis-service-system-card:focus-visible {
  border-color: rgba(23,138,76,.38);
  background: var(--site-surface, #fff);
  transform: translateY(-5px);
}
.aegis-service-system-media {
  position: relative;
  height: 188px;
  overflow: hidden;
  background: #dcefe1;
}
.aegis-service-system-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(239,248,242,.02), rgba(20,32,25,.32));
  content: '';
}
.aegis-service-system-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
  filter: saturate(.74);
  transition: transform .5s ease, filter .25s ease;
}
.aegis-service-system-card:hover .aegis-service-system-media img {
  transform: scale(1.06);
  filter: saturate(1);
}
.aegis-service-system-media > span {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.aegis-service-system-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px 23px 24px;
}
.aegis-service-system-label {
  color: var(--site-green, #178a4c);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.aegis-service-system-body h3 {
  margin: 10px 0 10px;
  color: var(--systems-ink);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.aegis-service-system-body p {
  flex: 1;
  margin: 0;
  color: var(--systems-muted);
  font-size: 14px;
  line-height: 1.7;
}
.aegis-service-system-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 21px 0 22px;
}
.aegis-service-system-tags span {
  padding: 6px 9px;
  border: 1px solid var(--systems-line);
  border-radius: 999px;
  color: var(--systems-ink);
  font-size: 11px;
}
.aegis-service-system-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--site-green-dark, #126b3b);
  font-size: 13px;
}
.aegis-service-system-link span { font-size: 18px; transition: transform .2s ease; }
.aegis-service-system-card:hover .aegis-service-system-link span { transform: translateX(4px); }
.aegis-service-operating-model {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 7vw, 110px);
  align-items: start;
  margin-top: 78px;
  padding-top: 58px;
  border-top: 1px solid var(--systems-line);
}
.aegis-service-operating-copy h3 {
  max-width: 460px;
  margin: 14px 0 18px;
  color: var(--systems-ink);
  font-size: clamp(28px, 3.7vw, 48px);
  line-height: 1.02;
  letter-spacing: -.06em;
}
.aegis-service-operating-copy p {
  max-width: 500px;
  margin: 0 0 25px;
  color: var(--systems-muted);
  line-height: 1.75;
}
.aegis-service-operating-copy .btn-primary { background: var(--site-green, #178a4c); color: #fff; }
.aegis-service-operating-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.aegis-service-operating-steps > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 13px;
  padding: 17px 18px 19px 0;
  border-bottom: 1px solid var(--systems-line);
}
.aegis-service-operating-steps > div:nth-child(odd) { margin-right: 20px; }
.aegis-service-operating-steps span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(23,138,76,.3);
  border-radius: 50%;
  color: var(--site-green, #178a4c);
  font-size: 11px;
  font-weight: 800;
}
.aegis-service-operating-steps strong { color: var(--systems-ink); font-size: 15px; }
.aegis-service-operating-steps small { grid-column: 2; margin-top: 5px; color: var(--systems-muted); font-size: 12px; line-height: 1.45; }

[data-theme="dark"] .aegis-service-systems {
  --systems-bg: #102218;
  --systems-ink: #f6fbf7;
  --systems-muted: rgba(240,249,242,.7);
  --systems-line: rgba(194,230,201,.18);
}
[data-theme="dark"] .aegis-service-system-card { background: rgba(255,255,255,.065); color: #fff; }
[data-theme="dark"] .aegis-service-system-card:hover,
[data-theme="dark"] .aegis-service-system-card:focus-visible { background: rgba(255,255,255,.105); border-color: rgba(168,224,179,.55); }
[data-theme="dark"] .aegis-service-system-media { background: #1b3827; }
[data-theme="dark"] .aegis-service-system-media::after { background: linear-gradient(180deg, rgba(8,24,14,.05), rgba(8,24,14,.73)); }
[data-theme="dark"] .aegis-service-system-media img { opacity: .82; }
[data-theme="dark"] .aegis-service-system-media > span { color: #c8edd0; }
[data-theme="dark"] .aegis-service-system-label { color: #a9dcb4; }
[data-theme="dark"] .aegis-service-system-tags span { border-color: rgba(194,230,201,.18); color: #d8f0dc; }
[data-theme="dark"] .aegis-service-system-link { color: #b8e9c1; }
[data-theme="dark"] .aegis-service-operating-copy .btn-primary { background: #b8e9c1; color: #102218; }
[data-theme="dark"] .aegis-service-operating-steps span { border-color: rgba(184,233,193,.42); color: #b8e9c1; }

@media (max-width: 980px) {
  .aegis-service-system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aegis-service-operating-model { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .aegis-service-systems { margin-top: 54px; }
  .aegis-service-systems-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
  .aegis-service-system-grid { grid-template-columns: 1fr; }
  .aegis-service-system-media { height: 165px; }
  .aegis-service-operating-model { margin-top: 54px; padding-top: 40px; }
  .aegis-service-operating-steps { grid-template-columns: 1fr; }
  .aegis-service-operating-steps > div:nth-child(odd) { margin-right: 0; }
}

/* Shared Services dropdown. It is a single vertical menu so its rows stay
   stable while the pointer moves from the trigger into the panel. */
.aegis-services-menu { position: relative; display: inline-flex; align-items: center; height: 100%; }
.aegis-services-trigger-row { display: inline-flex; align-items: center; }
.aegis-services-trigger { display: inline-flex; align-items: center; }
.aegis-services-toggle { display: inline-grid; width: 22px; height: 30px; margin-left: 1px; padding: 0; place-items: center; border: 0; border-radius: 6px; color: currentColor; background: transparent; cursor: pointer; }
.aegis-services-toggle span { display: block; font-size: 11px; line-height: 1; transition: transform .18s ease; }
.aegis-services-menu.is-open .aegis-services-toggle span,
.aegis-services-menu:focus-within .aegis-services-toggle span { transform: rotate(180deg); }
.aegis-services-dropdown {
  position: absolute;
  z-index: 120;
  top: 100%;
  left: 50%;
  display: flex;
  width: min(380px, calc(100vw - 32px));
  max-height: min(72vh, 680px);
  padding: 8px;
  flex-direction: column;
  overflow-y: auto;
  border: 1px solid var(--site-border, #e3ece6);
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 50px rgba(20,32,25,.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0);
  transition: opacity .2s ease, transform .2s ease;
}
.aegis-services-dropdown::before { position: absolute; top: -9px; right: 0; left: 0; height: 10px; content: ''; }
.aegis-services-menu.is-open .aegis-services-dropdown,
.aegis-services-menu:focus-within .aegis-services-dropdown { opacity: 1; pointer-events: auto; }
.aegis-services-dropdown-link {
  display: grid;
  min-height: 60px;
  box-sizing: border-box;
  padding: 10px 11px;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  color: var(--site-ink, #142019) !important;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.aegis-service-menu-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: var(--site-green, #178a4c); background: var(--site-bg, #eff8f2); font-size: 16px; line-height: 1; }
.aegis-service-menu-copy { display: grid; min-width: 0; gap: 3px; }
.aegis-service-menu-copy strong { overflow: hidden; color: inherit; font-size: 12px; font-weight: 800; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.aegis-service-menu-copy small { overflow: hidden; color: var(--site-muted, #6b7a72); font-size: 10px; font-weight: 500; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.aegis-service-menu-chevron { color: var(--site-green, #178a4c); font-size: 22px; font-weight: 400; line-height: 1; text-align: right; }
.aegis-service-menu-all { margin-top: 4px; border-top: 1px solid var(--site-border, #e3ece6); border-radius: 0 0 9px 9px; }
.aegis-services-dropdown-link:hover,
.aegis-services-dropdown-link:focus-visible,
.aegis-services-dropdown-link:hover { background: var(--site-bg, #eff8f2); color: var(--site-green, #178a4c) !important; }
.aegis-services-mobile { border-bottom: 1px solid var(--site-border, #e3ece6); }
.aegis-services-mobile-trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 13px 4px; border: 0; color: var(--site-ink, #142019); background: transparent; cursor: pointer; font: inherit; font-weight: 650; text-align: left; }
.aegis-services-mobile-trigger span { color: var(--site-green, #178a4c); font-size: 13px; font-weight: 400; transition: transform .18s ease; }
.aegis-services-mobile.is-open .aegis-services-mobile-trigger span { transform: rotate(180deg); }
.aegis-services-mobile > div { padding: 0 0 8px 14px; }
.aegis-services-mobile-link { display: grid !important; min-height: 52px; padding: 8px 4px !important; grid-template-columns: 28px minmax(0, 1fr) 14px; align-items: center; gap: 8px; border: 0 !important; color: var(--site-muted, #6b7a72) !important; font-size: 13px !important; }
.aegis-services-mobile-link .aegis-service-menu-icon { width: 26px; height: 26px; font-size: 13px; }
.aegis-services-mobile-link .aegis-service-menu-copy strong { font-size: 11px; }
.aegis-services-mobile-link .aegis-service-menu-copy small { font-size: 9px; }
.aegis-services-mobile-link:hover,
.aegis-services-mobile-link:focus-visible { color: var(--site-green, #178a4c) !important; }
[data-theme="dark"] .aegis-services-dropdown { border-color: rgba(194,230,201,.18); background: #102218; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
[data-theme="dark"] .aegis-services-dropdown::before { border-color: rgba(194,230,201,.18); background: #102218; }
[data-theme="dark"] .aegis-services-dropdown-link { color: #f6fbf7 !important; }
[data-theme="dark"] .aegis-services-dropdown-link:hover,
[data-theme="dark"] .aegis-services-dropdown-link:focus-visible { background: rgba(255,255,255,.08); color: #b8e9c1 !important; }

@media (max-width: 980px) {
  .aegis-services-menu { display: none; }
}
