.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.service-page {
  --service-accent: #6a45e3;
  color: #0b1530;
  background:
    radial-gradient(700px 420px at 88% 8%, rgba(106, 69, 227, .1), transparent 68%),
    linear-gradient(180deg, #fafaff 0, #fff 560px);
}

/* Homepage-style fixed nav on inner pages */
body.service-page:has(.nav) #main-content {
  padding-top: 62px;
}

@media (min-width: 901px) {
  body.service-page:has(.nav) #main-content {
    padding-top: 76px;
  }
}

.service-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, 100% - 48px);
  min-height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(231, 234, 243, .8);
}

.service-nav .logo__mark {
  width: clamp(28px, 4.2vw, 36px);
  height: clamp(28px, 4.2vw, 36px);
  min-width: 28px;
  min-height: 28px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
}

.service-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #52617a;
  font-size: .9rem;
  font-weight: 600;
}

.service-nav__back:hover,
.service-breadcrumb a:hover {
  color: var(--service-accent);
}

.service-wrap {
  width: min(1080px, 100% - 48px);
  margin: 0 auto;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr);
  align-items: center;
  gap: clamp(36px, 7vw, 88px);
  padding: clamp(64px, 9vw, 108px) 0 clamp(56px, 8vw, 88px);
}

.service-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #637089;
  font-size: .82rem;
  font-weight: 600;
}

.service-breadcrumb span {
  color: #b0b8c7;
}

.service-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--service-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(106, 69, 227, .13);
  content: "";
}

.service-hero h1 {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.service-hero__intro {
  max-width: 610px;
  margin-top: 20px;
  color: #64748b;
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  line-height: 1.75;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.service-actions .btn {
  min-height: 48px;
}

.service-photo {
  position: relative;
  min-height: 360px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(231, 234, 243, .9);
  border-radius: 22px;
  background: #e8eaf3;
  box-shadow: 0 28px 70px rgba(31, 40, 80, .14);
}

.service-photo::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(8, 20, 43, .72));
  content: "";
  pointer-events: none;
}

.service-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s ease;
}

.service-photo:hover img {
  transform: scale(1.035);
}

.service-photo__caption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-benefits {
  padding: clamp(52px, 7vw, 76px) 0;
  background: #f8f9fd;
}

.service-section-head {
  max-width: 660px;
  margin-bottom: 28px;
}

.service-section-head h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -.04em;
}

.service-section-head p {
  margin-top: 12px;
  color: #64748b;
  line-height: 1.7;
}

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

.service-benefit {
  min-height: 178px;
  padding: 22px;
  border: 1px solid #e7eaf3;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .035);
}

.service-benefit__number {
  color: var(--service-accent);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.service-benefit h3 {
  margin-top: 14px;
  font-size: 1.04rem;
  font-weight: 750;
  letter-spacing: -.02em;
}

.service-benefit p {
  margin-top: 8px;
  color: #64748b;
  font-size: .9rem;
  line-height: 1.65;
}

.service-approach {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: start;
  gap: clamp(32px, 7vw, 88px);
  padding: clamp(56px, 8vw, 88px) 0;
}

.service-approach h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -.04em;
  line-height: 1.14;
}

.service-approach__intro {
  margin-top: 12px;
  color: #64748b;
  font-size: .96rem;
  line-height: 1.7;
}

.service-steps {
  display: grid;
  gap: 18px;
}

.service-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  align-items: start;
}

.service-step__number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e7e1ff;
  border-radius: 12px;
  background: #f3f0ff;
  color: var(--service-accent);
  font-size: .8rem;
  font-weight: 800;
}

.service-step h3 {
  margin-top: 2px;
  font-size: 1rem;
}

.service-step p {
  margin-top: 5px;
  color: #64748b;
  font-size: .9rem;
  line-height: 1.65;
}

.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 56px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(420px 220px at 95% 0, rgba(124, 91, 255, .45), transparent 70%),
    linear-gradient(130deg, #0b2640, #174b78);
}

.service-cta h2 {
  max-width: 560px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -.04em;
  line-height: 1.2;
}

.service-cta p {
  margin-top: 8px;
  color: rgba(255, 255, 255, .75);
  font-size: .93rem;
  line-height: 1.6;
}

.service-cta .btn--primary {
  flex: none;
  background: #fff;
  color: #0b2640;
}

.service-cta .btn--primary:hover {
  background: #f0edff;
}

.service-footer {
  padding: 20px 0 28px;
  border-top: 1px solid #e7eaf3;
}

.service-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #637089;
  font-size: .82rem;
}

.service-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.service-footer__links a:hover {
  color: var(--service-accent);
}

@media (max-width: 760px) {
  .service-hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 52px;
  }

  .service-photo {
    width: min(460px, 92%);
    margin: 0 auto;
  }

  .service-benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-approach {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.service-faq {
  padding: clamp(48px, 8vw, 72px) 0;
  border-top: 1px solid rgba(231, 234, 243, .9);
}

.service-faq__list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.service-faq details {
  border: 1px solid rgba(231, 234, 243, .95);
  border-radius: 14px;
  background: #fff;
  padding: 0 18px;
}

.service-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #0b1530;
  padding: 16px 0;
  list-style: none;
}

.service-faq summary::-webkit-details-marker {
  display: none;
}

.service-faq details[open] summary {
  color: var(--service-accent);
}

.service-faq details p {
  margin: 0 0 16px;
  color: #52617a;
  line-height: 1.65;
}

.service-deliverables,
.service-pricing,
.service-portfolio,
.service-remote-clients {
  padding: clamp(40px, 6vw, 64px) 0;
}

.service-deliverables__list {
  display: grid;
  gap: 12px 24px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .service-deliverables__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-deliverables__list li {
  position: relative;
  padding-left: 1.35rem;
  color: #52617a;
  line-height: 1.6;
}

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

.service-pricing__bands {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

@media (min-width: 720px) {
  .service-pricing__bands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service-pricing__band {
  border: 1px solid rgba(231, 234, 243, .95);
  border-radius: 16px;
  padding: 18px 20px;
  background: #fff;
}

.service-pricing__band h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #0b1530;
}

.service-pricing__band p {
  margin: 0;
  font-size: 0.95rem;
  color: #52617a;
  line-height: 1.6;
}

.service-pricing__note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: #64748b;
}

.service-pricing__note a {
  color: var(--service-accent);
  font-weight: 600;
}

.service-portfolio__grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 720px) {
  .service-portfolio__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-portfolio__card {
  display: grid;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(231, 234, 243, .95);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-portfolio__card:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.service-portfolio__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  display: block;
}

.service-portfolio__card-body {
  padding: 16px 18px 18px;
}

.service-portfolio__card-body h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #0b1530;
}

.service-portfolio__card-body p {
  margin: 0;
  font-size: 0.92rem;
  color: #52617a;
  line-height: 1.55;
}

.service-portfolio__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 14px;
}

.service-portfolio__links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--service-accent);
}

.service-remote-clients {
  padding-top: 0;
}

.service-remote-clients__box {
  border-radius: 16px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(106, 69, 227, 0.07), #f8fafc);
  border: 1px solid rgba(231, 234, 243, .95);
}

.service-remote-clients__box p {
  margin: 0;
  color: #52617a;
  line-height: 1.65;
}

.service-resource-links {
  padding: 0 0 clamp(32px, 5vw, 48px);
}

.service-resource-links ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  color: #52617a;
  line-height: 1.7;
}

.service-resource-links a {
  color: var(--service-accent);
  font-weight: 600;
}

.service-related {
  padding: 0 0 clamp(56px, 8vw, 80px);
}

.service-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-related a {
  color: var(--service-accent);
  font-weight: 600;
}

@media (max-width: 520px) {
  .service-nav,
  .service-wrap {
    width: min(100% - 36px, 1080px);
  }

  .service-nav {
    min-height: 66px;
  }

  .service-nav .logo {
    font-size: .98rem;
  }

  .service-nav .logo__mark {
    width: clamp(28px, 4.2vw, 36px);
    height: clamp(28px, 4.2vw, 36px);
    min-width: 28px;
    min-height: 28px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
  }

  .service-nav__back {
    font-size: .8rem;
  }

  .service-hero {
    padding: 42px 0 48px;
  }

  .service-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.3rem);
  }

  .service-benefit-grid {
    grid-template-columns: 1fr;
  }

  .service-benefit {
    min-height: 0;
  }

  .service-actions,
  .service-actions .btn {
    width: 100%;
  }

  .service-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
