.services-page {
  --service-ink: #02050a;
  --service-navy: #061a46;
  --service-muted: #31405a;
  --service-line: #cdd7e4;
  --service-soft-line: rgba(185, 198, 216, .44);
  --service-blue: #065cff;
  --service-paper: #f4f7fb;
  --service-card: rgba(255, 255, 255, .82);
  background:
    linear-gradient(rgba(172, 188, 211, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(172, 188, 211, .22) 1px, transparent 1px),
    radial-gradient(circle at 75% 8%, rgba(255, 255, 255, .86), transparent 34%),
    var(--service-paper);
  background-size: 72px 72px, 72px 72px, auto, auto;
  color: var(--service-ink);
  overflow-x: hidden;
}

.services-page .reveal {
  opacity: 1;
  transform: none;
}

.services-page .site-header {
  position: sticky;
  top: 18px;
  width: min(1720px, calc(100% - 64px));
  min-height: 92px;
  margin: 18px auto 0;
  border: 1px solid rgba(128, 180, 255, .24);
  border-radius: 18px;
  background: rgba(6, 10, 15, .72);
  padding: 16px clamp(24px, 3.5vw, 54px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
  color: #f8fbff;
}

.services-page .site-nav a {
  color: rgba(248, 251, 255, .78);
  font-size: 14px;
  text-transform: none;
}

.services-page .site-nav a:hover,
.services-page .site-nav a.active {
  color: #fff;
}

.services-page .menu-toggle {
  color: #f8fbff;
}

.services-page .nav-cta {
  border-color: #1677ff;
  border-radius: 6px;
  background: #1677ff;
  color: #fff !important;
  font-size: 13px !important;
  text-transform: none;
}

.services-page .brand .brand-wordmark {
  width: clamp(210px, 18vw, 292px);
  height: 58px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: screen;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .32));
}

.services-brand {
  color: var(--service-ink);
}

.services-brand span:last-child {
  color: var(--service-ink);
  font-size: 24px;
  font-weight: 950;
  max-width: none;
  overflow-wrap: normal;
  white-space: nowrap;
  text-transform: none;
}

.service-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--service-ink);
  border-radius: 5px;
  color: var(--service-ink);
  font-family: Arial Black, Impact, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.services-section {
  position: relative;
  padding: 86px 24px;
}

.services-hero {
  min-height: calc(100svh - 78px);
  display: grid;
  align-items: center;
  padding-top: 96px;
}

.services-container {
  width: min(100%, 1510px);
  margin: 0 auto;
}

.section-number {
  position: absolute;
  top: 28px;
  right: clamp(28px, 5vw, 88px);
  z-index: 0;
  color: rgba(8, 14, 28, .07);
  font-family: Arial Black, Impact, sans-serif;
  font-size: 118px;
  line-height: 1;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  gap: 56px;
  align-items: center;
}

.services-kicker {
  position: relative;
  margin: 0 0 28px;
  color: var(--service-blue);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .12em;
  line-height: 1.42;
  text-transform: uppercase;
}

.services-kicker:after,
.card-label:after {
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 16px;
  background: var(--service-blue);
  content: "";
}

.services-hero h1,
.services-section h2 {
  margin: 0;
  color: var(--service-ink);
  font-family: Arial Black, Impact, sans-serif;
  font-size: 76px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: .95;
  text-transform: uppercase;
}

.services-hero h1 {
  max-width: 660px;
  font-size: 76px;
}

.hero-subtitle {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--service-navy);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.45;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.service-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 56px;
  border: 2px solid var(--service-blue);
  border-radius: 6px;
  padding: 0 26px;
  color: var(--service-blue);
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.service-button.primary {
  background: var(--service-blue);
  color: #fff;
  box-shadow: 0 16px 32px rgba(6, 92, 255, .2);
}

.service-button.secondary {
  background: rgba(255, 255, 255, .46);
}

.service-button.full {
  width: 100%;
}

.hero-image {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(12, 24, 44, .22);
}

.hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-head {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.section-head.wide {
  max-width: 980px;
}

.service-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

.three-card-grid,
.model-grid,
.deliverable-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.model-card,
.deliverable-card,
.case-card,
.case-detail {
  border: 1px solid var(--service-line);
  border-radius: 7px;
  background: var(--service-card);
  box-shadow: 0 18px 46px rgba(27, 41, 64, .08);
  overflow: hidden;
}

.service-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.service-card-body {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.card-label {
  margin: 0;
  color: var(--service-blue);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.service-card h3,
.model-card h3,
.deliverable-card h3,
.case-card h3,
.case-detail h3 {
  margin: 0;
  color: var(--service-ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.08;
}

.service-card p {
  margin: 0;
  color: var(--service-navy);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.52;
}

.service-card .best-fit {
  min-height: 76px;
  color: var(--service-blue);
  font-weight: 820;
}

.service-trust-strip,
.deliverable-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 68px;
  margin-top: 24px;
  border: 1px solid var(--service-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .56);
  color: var(--service-navy);
  font-size: 18px;
  font-weight: 650;
  text-align: center;
  box-shadow: 0 14px 36px rgba(27, 41, 64, .06);
}

.model-card {
  display: grid;
  grid-template-rows: 1fr auto;
}

.model-body {
  padding: 30px 34px;
}

.model-card b {
  display: block;
  margin-bottom: 12px;
  color: var(--service-blue);
  font-family: Arial Black, Impact, sans-serif;
  font-size: 46px;
  line-height: .9;
}

.model-card p,
.deliverable-card p {
  margin: 10px 0 0;
  color: var(--service-navy);
  font-size: 16px;
  line-height: 1.45;
}

.model-card ul,
.deliverable-card ul,
.case-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--service-navy);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.32;
  list-style: none;
}

.model-card li,
.deliverable-card li,
.case-card li {
  position: relative;
  padding-left: 17px;
}

.model-card li:before,
.deliverable-card li:before,
.case-card li:before {
  position: absolute;
  top: .58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--service-blue);
  content: "";
}

.model-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7.5;
  object-fit: cover;
}

.deliverable-card {
  padding: 28px;
}

.deliverable-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid var(--service-line);
  border-radius: 9px;
  color: var(--service-blue);
  font-size: 14px;
  font-weight: 950;
}

.deliverable-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  margin-top: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.deliverable-bar {
  justify-content: space-around;
  min-height: 78px;
  padding: 0 20px;
  font-size: 16px;
}

.deliverable-bar span {
  flex: 1;
  padding: 0 18px;
  border-right: 1px solid var(--service-line);
}

.deliverable-bar span:last-child {
  border-right: 0;
}

.case-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .72fr) minmax(320px, .78fr);
  gap: 42px;
  align-items: center;
}

.case-head h2 {
  font-size: 64px;
}

.case-head > p {
  margin: 0;
  color: var(--service-navy);
  font-size: 19px;
  font-weight: 620;
  line-height: 1.42;
}

.case-head > img {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(19, 31, 50, .17));
}

.case-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.35fr .95fr .85fr;
  gap: 16px;
  margin-top: 38px;
}

.case-card {
  padding: 22px;
}

.case-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--service-blue);
  color: #fff;
  font-weight: 950;
}

.case-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  margin-top: 16px;
  border-radius: 6px;
  object-fit: cover;
}

.case-card img[src$="jetson-front.jpg"] {
  background: rgba(255, 255, 255, .72);
  object-fit: contain;
}

.case-card.risk {
  background: rgba(255, 255, 255, .64);
}

.case-detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.case-detail img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7.8;
  object-fit: cover;
}

.case-detail h3 {
  margin: 18px 18px 0;
  font-size: 19px;
}

.case-detail h3:after {
  display: block;
  width: 32px;
  height: 3px;
  margin-top: 10px;
  background: var(--service-blue);
  content: "";
}

.case-detail p {
  margin: 12px 18px 22px;
  color: var(--service-navy);
  font-size: 14px;
  line-height: 1.42;
}

@media (max-width: 1180px) {
  .hero-layout,
  .case-head {
    grid-template-columns: 1fr;
  }

  .hero-image {
    max-width: 900px;
  }

  .three-card-grid,
  .model-grid,
  .deliverable-grid {
    grid-template-columns: 1fr;
  }

  .case-flow,
  .case-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .services-page .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 14px 18px 20px;
    border: 1px solid rgba(128, 180, 255, .24);
    border-radius: 14px;
    z-index: 40;
    background: #060a0f;
  }

  .services-page .site-nav.open {
    display: flex;
  }

  .services-page .site-nav a {
    min-height: 44px;
    padding: 13px 0;
    font-size: 13px;
  }

  .services-page .menu-toggle {
    display: block;
  }

  .services-page .nav-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 8px;
  }
}

@media (max-width: 760px) {
  .services-page .site-header {
    top: 10px;
    width: min(100% - 20px, 1720px);
    min-height: 70px;
    margin-top: 10px;
    padding: 10px 16px;
  }

  .services-brand span:last-child {
    font-size: 17px;
    max-width: none;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .service-brand-mark {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .services-section,
  .services-hero {
    padding: 64px 18px;
  }

  .services-hero {
    min-height: auto;
  }

  .section-number {
    top: 18px;
    right: 18px;
    font-size: 74px;
  }

  .services-hero h1,
  .services-section h2,
  .case-head h2 {
    font-size: 44px;
    line-height: .96;
    overflow-wrap: anywhere;
  }

  .services-kicker {
    margin-bottom: 22px;
    font-size: 12px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .service-actions {
    flex-direction: column;
  }

  .service-button {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    font-size: 15px;
  }

  .service-card-body,
  .model-body,
  .deliverable-card,
  .case-card {
    padding: 22px;
  }

  .service-card .best-fit {
    min-height: 0;
  }

  .service-trust-strip,
  .deliverable-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 18px;
    font-size: 15px;
    line-height: 1.45;
  }

  .deliverable-bar span {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--service-line);
    padding: 12px 0;
  }

  .deliverable-bar span:last-child {
    border-bottom: 0;
  }

  .case-flow,
  .case-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduce Services page typography one step for a denser, calmer reading scale. */
.services-hero h1 {
  font-size: clamp(32px, 3vw, 44px);
  max-width: 620px;
}

.services-section h2 {
  font-size: clamp(28px, 2.72vw, 42px);
}

.case-head h2 {
  font-size: clamp(26px, 2.42vw, 38px);
}

.hero-subtitle {
  font-size: clamp(13px, .82vw, 15px);
}

.services-kicker {
  font-size: 11px;
}

.service-button {
  font-size: 12px;
}

.service-card h3,
.model-card h3,
.deliverable-card h3,
.case-card h3,
.case-detail h3 {
  font-size: 16px;
}

.service-card p,
.model-card p,
.deliverable-card p,
.case-head > p {
  font-size: 12px;
}

.model-card b {
  font-size: 29px;
}

.model-card ul,
.deliverable-card ul,
.case-card ul {
  font-size: 12px;
}

.service-trust-strip,
.deliverable-bar {
  font-size: 12px;
}

.case-detail p {
  font-size: 11px;
}

@media (max-width: 760px) {
  .services-hero h1,
  .services-section h2,
  .case-head h2 {
    font-size: clamp(22px, 6vw, 27px);
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .service-card h3,
  .model-card h3,
  .deliverable-card h3,
  .case-card h3,
  .case-detail h3 {
    font-size: 15px;
  }
}
