.services-home {
  position: relative;
  overflow: hidden;
  background: #101b25;
  color: #f3f7f3;
}

.services-home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(90deg, #4a7883 1px, transparent 1px), linear-gradient(#4a7883 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, transparent, #000 28%, #000 78%, transparent);
}

.services-home .section { position: relative; }
.services-home .eyebrow { color: #a9bec1; }
.services-home .eyebrow span { color: #b9ff70; }
.services-home .section-lead h2 em { color: #b9ff70; }
.services-home .section-lead { display: block; margin-bottom: 48px; }
.services-home .section-lead h2 { color: var(--white); font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif; font-size: clamp(58px, 6vw, 90px); line-height: .92; letter-spacing: -.07em; }
.services-home .section-lead > p { max-width: 710px; margin: 20px 0 0; color: #b5c7c9; font-size: 17px; line-height: 1.5; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 296px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(140, 214, 201, .28);
  background: linear-gradient(140deg, rgba(30, 52, 60, .94), rgba(12, 23, 34, .97));
  color: #f3f7f3;
  text-decoration: none;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .55;
  background: radial-gradient(circle at 95% 2%, rgba(77, 213, 221, .2), transparent 47%);
  transition: opacity .28s ease, transform .4s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #b9ff70, #55dcec);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s ease;
}

.service-card:hover, .service-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(115, 240, 218, .75);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22), 0 0 24px rgba(86, 224, 220, .13);
}
.service-card:hover::before, .service-card:focus-visible::before { opacity: 1; transform: scale(1.1); }
.service-card:hover::after, .service-card:focus-visible::after { transform: scaleX(1); }

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  color: #9feabb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}
.service-card-top > span:last-child {
  color: #69e9ec;
  font-size: 24px;
  line-height: .8;
  transition: transform .28s ease;
}
.service-card:hover .service-card-top > span:last-child,
.service-card:focus-visible .service-card-top > span:last-child { transform: translate(4px, -4px); }
.service-card-bottom { display: grid; gap: 14px; }
.service-card-bottom strong {
  max-width: 360px;
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  font-size: clamp(30px, 2.75vw, 43px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.04;
  text-transform: uppercase;
}
.service-card-bottom > span { max-width: 340px; color: #b7c9cd; font-size: 16px; line-height: 1.55; }

.service-card-next {
  background: linear-gradient(130deg, #b9ff70, #71eec2 55%, #5adcea);
  border-color: transparent;
  color: #11232a;
}
.service-card-next::before { background: radial-gradient(circle at 95% 2%, rgba(255, 255, 255, .45), transparent 55%); }
.service-card-next .service-card-top,
.service-card-next .service-card-top > span:last-child,
.service-card-next .service-card-bottom > span { color: #173b3d; }
.services-all {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 37px;
  color: #b9ff70;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}
.services-all:hover { color: #69e9ec; }

:root[data-theme="light"] .services-home { background: #e5f0e9; color: #14262d; }
:root[data-theme="light"] .services-home::before { opacity: .1; }
:root[data-theme="light"] .services-home .eyebrow,
:root[data-theme="light"] .services-home .section-lead > p { color: #4f696e; }
:root[data-theme="light"] .services-home .eyebrow span,
:root[data-theme="light"] .services-home .section-lead h2 em { color: var(--lime); }
:root[data-theme="light"] .service-card { background: linear-gradient(135deg, #f7faf6, #e6f3ed); border-color: #a9c7b7; color: #152d32; }
:root[data-theme="light"] .service-card::before { background: radial-gradient(circle at 95% 2%, rgba(32, 183, 170, .16), transparent 47%); }
:root[data-theme="light"] .service-card-top { color: #327f52; }
:root[data-theme="light"] .service-card-top > span:last-child { color: #087e82; }
:root[data-theme="light"] .service-card-bottom > span { color: #506c70; }
:root[data-theme="light"] .service-card-next { background: linear-gradient(130deg, #b9ff70, #71eec2 55%, #5adcea); border-color: #8bd5aa; }
:root[data-theme="light"] .service-card-next .service-card-top,
:root[data-theme="light"] .service-card-next .service-card-top > span:last-child,
:root[data-theme="light"] .service-card-next .service-card-bottom > span { color: #173b3d; }
:root[data-theme="light"] .services-all { color: #287b52; }

/* Eight compact links form two rows of four on wide screens. */
.services-index-hero { position: relative; overflow: hidden; padding: 60px 36px 55px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 88% 0, #1d3640, transparent 42%), var(--night); }
.services-index-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .13; background-image: linear-gradient(90deg, #4a7883 1px, transparent 1px), linear-gradient(#4a7883 1px, transparent 1px); background-size: 84px 84px; }
.services-index-hero > div { position: relative; width: min(1370px, 100%); margin: auto; }
.services-index-hero h1 { margin: 20px 0 12px; font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif; font-size: clamp(58px, 6vw, 90px); font-weight: 900; line-height: .92; letter-spacing: -.07em; text-transform: uppercase; }
.services-index-hero h1 em { font-style: normal; color: var(--lime); }
.services-index-hero p:last-child { max-width: 710px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.services-index { padding-top: 40px; padding-bottom: 90px; }
.services-index-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.services-index-heading span { color: var(--aqua); font-size: 11px; font-weight: 900; letter-spacing: .17em; }
.services-index-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.services-index .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.services-index .service-card { min-height: 198px; padding: 19px; }
.services-index .service-card-bottom strong { font-size: clamp(23px, 2vw, 31px); }
.services-index .service-card-bottom > span { font-size: 13px; }

.service-page-hero { position: relative; overflow: hidden; padding: 52px 36px 65px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 35%, rgba(75, 180, 172, .16), transparent 37%), var(--night); }
.service-page-hero-inner { position: relative; z-index: 1; width: min(1370px, 100%); margin: auto; }
.service-back { display: inline-block; margin-bottom: 40px; color: var(--aqua); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.service-back:hover { color: var(--lime); }
.service-page-hero h1 { max-width: 1000px; margin: 18px 0; font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif; font-size: clamp(55px, 7.2vw, 104px); font-weight: 900; line-height: .94; letter-spacing: -.07em; text-transform: uppercase; }
.service-page-hero p:not(.eyebrow) { max-width: 700px; margin: 0 0 30px; color: var(--muted); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; }
.service-page-index { position: absolute; right: max(25px, calc((100vw - 1370px)/2)); bottom: -100px; color: rgba(120, 235, 202, .065); font: 900 clamp(250px, 34vw, 550px)/1 Bahnschrift, "Arial Narrow", sans-serif; pointer-events: none; }
.service-page-content { padding-top: 76px; padding-bottom: 78px; }
.service-label { display: block; color: var(--aqua); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.service-page-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding-bottom: 55px; border-bottom: 1px solid var(--line); }
.service-page-intro p { max-width: 780px; margin: 0; color: var(--white); font-size: clamp(22px, 2.35vw, 32px); line-height: 1.35; }
.service-page-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; padding: 54px 0 70px; }
.service-scope, .service-questions { margin: 20px 0 0; padding: 0; list-style: none; }
.service-scope li, .service-questions li { position: relative; padding: 17px 8px 17px 23px; border-top: 1px solid var(--line); color: var(--white); font-size: 17px; line-height: 1.45; }
.service-scope li::before { content: ""; position: absolute; left: 0; top: 25px; width: 7px; height: 7px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.service-questions { counter-reset: questions; }
.service-questions li { counter-increment: questions; padding-left: 42px; }
.service-questions li::before { content: "0" counter(questions); position: absolute; left: 0; color: var(--lime); font-size: 11px; font-weight: 900; }
.service-page-action { display: flex; justify-content: space-between; align-items: end; gap: 35px; padding: 35px; border: 1px solid var(--line); background: var(--night-3); }
.service-page-action h2 { margin: 12px 0 5px; font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif; font-size: clamp(32px, 3vw, 43px); line-height: 1; letter-spacing: -.05em; text-transform: uppercase; }
.service-page-action p { margin: 0; color: var(--muted); font-size: 15px; }
.service-inquiry { display: inline-flex; justify-content: space-between; align-items: center; gap: 25px; min-height: 54px; padding: 14px 20px; border: 1px solid transparent; background: linear-gradient(var(--night), var(--night)) padding-box, linear-gradient(110deg, #b9ff70, #5adcea) border-box; color: var(--white); font-size: 12px; font-weight: 900; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; white-space: nowrap; transition: transform .25s ease, box-shadow .25s ease; }
.service-inquiry:hover, .service-inquiry:focus-visible { transform: translateY(-3px); box-shadow: 0 0 24px rgba(105, 233, 236, .27); }
.service-related { padding-top: 0; }
.service-related-head { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 25px; }
.service-related-head h2 { margin: 0; font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif; font-size: clamp(32px, 3.5vw, 48px); line-height: 1; letter-spacing: -.055em; text-transform: uppercase; }
.service-related-head a { color: var(--aqua); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.service-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.service-related-grid .service-card { min-height: 195px; }
:root[data-theme="light"] .services-index-hero { background: radial-gradient(circle at 88% 0, #c8e6da, transparent 42%), var(--night); }
:root[data-theme="light"] .services-index-hero p:last-child { color: #4e666a; }
:root[data-theme="light"] .service-page-intro p, :root[data-theme="light"] .service-scope li, :root[data-theme="light"] .service-questions li { color: #244047; }
:root[data-theme="light"] .service-inquiry { color: #244047; }

@media (max-width: 1080px) { .services-index .service-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .service-related-grid, .service-page-intro, .service-page-columns { grid-template-columns: 1fr; } .service-page-intro { gap: 22px; } .service-page-columns { gap: 42px; } .service-page-action { display: block; } .service-inquiry { margin-top: 24px; white-space: normal; } }
@media (max-width: 620px) { .services-index-hero, .service-page-hero { padding-left: 23px; padding-right: 23px; } .services-index-hero h1, .services-home .section-lead h2 { font-size: clamp(47px, 11vw, 70px); } .services-index-hero p:last-child { font-size: 16px; } .services-index-heading { display: block; } .services-index-heading p { margin-top: 8px; } .services-index .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; } .services-index .service-card { min-height: 185px; padding: 13px; } .services-index .service-card-top { font-size: 9px; letter-spacing: .06em; } .services-index .service-card-top > span:last-child { font-size: 19px; } .services-index .service-card-bottom strong { font-size: clamp(20px, 6vw, 27px); } .services-index .service-card-bottom > span { font-size: 12px; line-height: 1.35; } .services-home .service-grid { grid-template-columns: 1fr; } .service-card { min-height: 240px; padding: 24px; } .service-card-bottom strong { font-size: 36px; } .services-index .service-card { min-height: 185px; padding: 13px; } .services-index .service-card-bottom strong { font-size: clamp(20px, 6vw, 27px); } .service-page-hero h1 { font-size: clamp(52px, 12vw, 72px); overflow-wrap: anywhere; } .service-page-index { font-size: 240px; bottom: -40px; } .service-page-action { padding: 24px; } .service-related-head { display: block; } .service-related-head a { display: inline-block; margin-top: 15px; } }
@media (max-width: 360px) { .services-index .service-card { min-height: 175px; } .services-index .service-card-bottom strong { font-size: 20px; } .services-index .service-card-bottom > span { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .service-card, .service-card::before, .service-card::after, .service-card-top > span:last-child, .service-inquiry { transition: none; } .service-card:hover, .service-card:focus-visible, .service-inquiry:hover, .service-inquiry:focus-visible { transform: none; } }
