/*=============================================
=                Services page                =
=============================================*/
.services-page {
  --sv-ink: #1d1838;
  --sv-body: #5d5872;
  --sv-brand: #805dcd;
  --sv-brand-strong: #6340b5;
  --sv-soft: #eee7ff;
  --sv-line: #e5e0f1;
  --sv-tint: #f7f5fc;
  --sv-night: #140d2e;
  --sv-night-2: #2d1a66;
  --sv-header-height: 90px;
}

.services-page #services-main {
  background: #fff;
  color: var(--sv-body);
}

.services-page #services-main h1,
.services-page #services-main h2,
.services-page #services-main h3 {
  color: var(--sv-ink);
  letter-spacing: -0.02em;
}

.services-page #services-main section[id] {
  scroll-margin-top: calc(var(--sv-header-height) + 64px);
}

/* Shared */
.sv-section {
  padding: 104px 0;
}

.sv-section--tint {
  background: var(--sv-tint);
}

.sv-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.services-page #services-main .sv-head h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.15;
}

.sv-head > p:last-child {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

.sv-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  max-width: none;
}

.services-page #services-main .sv-head--light h2 {
  color: #fff;
}

.sv-head--light > p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.sv-head--light a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sv-eyebrow {
  margin: 0 0 16px;
  color: var(--sv-brand-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sv-eyebrow--light {
  color: #cdb8ff;
}

.sv-btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sv-btn--light {
  background: #fff;
  color: var(--sv-brand-strong);
}

.sv-btn--light:hover {
  background: var(--sv-soft);
  color: var(--sv-brand-strong);
}

.sv-btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.sv-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sv-btn--primary {
  width: 100%;
  background: var(--sv-brand-strong);
  color: #fff;
}

.sv-btn--primary:hover {
  background: #4f329a;
  color: #fff;
}

.sv-btn--primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Hero */
.sv-hero {
  position: relative;
  padding: 150px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(128, 93, 205, 0.55), transparent 48%),
    radial-gradient(circle at 10% 100%, rgba(128, 93, 205, 0.25), transparent 40%),
    linear-gradient(135deg, var(--sv-night), var(--sv-night-2));
  color: rgba(255, 255, 255, 0.85);
}

.sv-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}

.services-page #services-main .sv-hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.sv-hero h1 span {
  background: linear-gradient(90deg, #cdb8ff, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sv-hero__lead {
  max-width: 560px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.6;
}

.sv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sv-hero__visual {
  position: relative;
  aspect-ratio: 16 / 11;
}

.sv-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.sv-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.sv-shot--back {
  top: 0;
  right: 0;
  width: 74%;
  transform: rotate(3deg);
}

.sv-shot--front {
  bottom: 0;
  left: 0;
  width: 78%;
  animation: sv-float 6s ease-in-out infinite;
}

.sv-hero__badge {
  position: absolute;
  right: 4%;
  bottom: 6%;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--sv-body);
  font-size: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.sv-hero__badge i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--sv-soft);
  color: var(--sv-brand-strong);
}

.sv-hero__badge strong {
  display: block;
  color: var(--sv-ink);
  font-size: 18px;
}

/* In-page navigation */
.sv-nav {
  position: sticky;
  top: var(--sv-header-height);
  z-index: 5;
  border-bottom: 1px solid var(--sv-line);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.sv-nav .container {
  display: flex;
  gap: 36px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sv-nav .container::-webkit-scrollbar {
  display: none;
}

.sv-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 0;
  color: var(--sv-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.sv-nav a:hover,
.sv-nav a[aria-current] {
  color: var(--sv-ink);
}

.sv-nav a[aria-current]::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--sv-brand);
}

/* Capability cards */
.sv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.sv-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--sv-line);
  border-radius: 18px;
  background: #fff;
  color: var(--sv-body);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sv-card:hover {
  border-color: transparent;
  color: var(--sv-body);
  box-shadow: 0 24px 48px rgba(40, 30, 80, 0.14);
  transform: translateY(-6px);
}

.sv-card.is-highlighted {
  border-color: var(--sv-brand);
  box-shadow: 0 0 0 3px rgba(128, 93, 205, 0.25);
}

.sv-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 26px 28px;
}

.services-page #services-main .sv-card h3 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.sv-card__tag {
  margin: 0 0 12px;
  color: var(--sv-brand-strong);
  font-size: 15px;
  font-weight: 600;
}

.sv-card__body > p:not(.sv-card__tag),
.sv-ind > p:not(.sv-card__tag) {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.6;
}

.sv-card__link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  color: var(--sv-ink);
  font-size: 15px;
  font-weight: 600;
}

.sv-card__link i {
  color: var(--sv-brand);
  transition: transform 0.2s ease;
}

.sv-card:hover .sv-card__link i {
  transform: translateX(5px);
}

/* Generated artwork: a gradient scene with a glass icon and two floating status chips */
.sv-art {
  --sv-a: #805dcd;
  --sv-b: #3b1f8f;
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, var(--sv-a), var(--sv-b));
}

.sv-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 90%);
  mask-image: linear-gradient(120deg, transparent 20%, #000 90%);
}

.sv-art::after {
  content: '';
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.05), 0 0 0 56px rgba(255, 255, 255, 0.03);
}

.sv-art__icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 34px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease;
}

.sv-card:hover .sv-art__icon {
  transform: scale(1.08) rotate(-4deg);
}

.sv-art__chip {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 20px;
  background: #fff;
  color: var(--sv-ink);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.sv-art__chip i {
  color: var(--sv-a);
}

.sv-art__chip--a {
  top: 16%;
  left: 8%;
}

.sv-art__chip--b {
  right: 8%;
  bottom: 16%;
}

.sv-card:hover .sv-art__chip--a {
  transform: translate(-3px, -3px);
}

.sv-card:hover .sv-art__chip--b {
  transform: translate(3px, 3px);
}

.sv-art__chip {
  transition: transform 0.4s ease;
}

.sv-art--violet { --sv-a: #8e6be6; --sv-b: #4a25a8; }
.sv-art--indigo { --sv-a: #6a6ff0; --sv-b: #2e2a91; }
.sv-art--plum { --sv-a: #a35bd6; --sv-b: #4d1d7a; }
.sv-art--teal { --sv-a: #23a39b; --sv-b: #0f4f5e; }
.sv-art--blue { --sv-a: #3f8bf0; --sv-b: #1b3c8f; }
.sv-art--slate { --sv-a: #6c7a99; --sv-b: #2a3047; }
.sv-art--green { --sv-a: #3fae6b; --sv-b: #145238; }
.sv-art--navy { --sv-a: #4a5bd6; --sv-b: #161a4d; }
.sv-art--magenta { --sv-a: #d65ba8; --sv-b: #6b1f5c; }

/* Technology band */
.sv-tech {
  padding: 64px 0;
  background: var(--sv-night);
}

.services-page #services-main .sv-tech h2 {
  margin: 0 0 30px;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  text-align: center;
}

.sv-tech__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sv-tech__list li {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.sv-tech__list i {
  color: #cdb8ff;
  font-size: 18px;
}

/* Impetus's own offerings stand out from third-party technology */
.sv-tech__list .sv-tech__own {
  border-color: transparent;
  background: linear-gradient(135deg, #805dcd, #5a33c2);
}

.sv-tech__list .sv-tech__own i {
  color: #fff;
}

/* Industries */
.sv-ind {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--sv-line);
  border-radius: 18px;
  background: #fff;
  color: var(--sv-body);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sv-ind:hover {
  color: var(--sv-body);
  box-shadow: 0 20px 40px rgba(40, 30, 80, 0.12);
  transform: translateY(-4px);
}

.sv-ind__icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sv-a), var(--sv-b));
  color: #fff;
  font-size: 22px;
}

.services-page #services-main .sv-ind h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
}

.sv-ind > p:last-child {
  margin-bottom: 0;
}

/* Case studies */
.sv-cases {
  padding: 104px 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(128, 93, 205, 0.45), transparent 45%),
    linear-gradient(135deg, var(--sv-night), var(--sv-night-2));
}

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

.sv-case {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  color: var(--sv-body);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.sv-case:hover {
  color: var(--sv-body);
  transform: translateY(-6px);
}

.sv-case img {
  display: block;
  width: 100%;
  height: auto;
  /* Matches the screenshots' roughly 2:1 shape so nothing important is cropped */
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: top;
  background: var(--sv-tint);
  transition: transform 0.5s ease;
}

.sv-case:hover img {
  transform: scale(1.04);
}

.sv-case__body {
  position: relative;
  padding: 26px;
  background: #fff;
}

.sv-case__stat {
  display: block;
  margin-bottom: 6px;
  color: var(--sv-brand-strong);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
}

.services-page #services-main .sv-case h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.sv-case p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
}

/* Why Impetus */
.sv-why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.sv-why__item {
  border: 1px solid var(--sv-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sv-why__item[open] {
  border-color: var(--sv-brand);
  box-shadow: 0 16px 34px rgba(40, 30, 80, 0.1);
}

.sv-why__item summary {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px 26px;
  color: var(--sv-ink);
  font-size: 19px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.sv-why__item summary::-webkit-details-marker {
  display: none;
}

.sv-why__num {
  color: var(--sv-brand);
  font-size: 15px;
  font-weight: 700;
}

.sv-why__item summary i {
  margin-left: auto;
  color: var(--sv-brand);
  transition: transform 0.25s ease;
}

.sv-why__item[open] summary i {
  transform: rotate(45deg);
}

.sv-why__item p {
  margin: 0;
  padding: 0 26px 26px 58px;
  font-size: 16px;
  line-height: 1.65;
}

/* Consultation */
.sv-consult {
  padding: 104px 0;
  background: linear-gradient(135deg, #5a33c2, #805dcd);
  color: rgba(255, 255, 255, 0.88);
}

.sv-consult__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.services-page #services-main .sv-consult h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.15;
}

.sv-consult__copy > p {
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.6;
}

.sv-consult__steps {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.sv-consult__steps li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 16px;
}

.sv-consult__steps i {
  color: #7ee2b8;
}

.sv-consult__copy a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.sv-form {
  padding: 34px;
  border-radius: 18px;
  background: #fff;
  color: var(--sv-ink);
  box-shadow: 0 30px 60px rgba(20, 10, 50, 0.3);
}

.sv-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sv-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.sv-form label span {
  color: var(--sv-body);
  font-weight: 400;
}

.sv-form input,
.sv-form select,
.sv-form textarea {
  width: 100%;
  min-width: 0;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #cfc7e3;
  border-radius: 8px;
  background: #fff;
  color: var(--sv-ink);
  font-size: 15px;
}

.sv-form input:focus,
.sv-form select:focus,
.sv-form textarea:focus {
  border-color: var(--sv-brand);
  outline: 3px solid rgba(128, 93, 205, 0.25);
}

.sv-form textarea {
  min-height: 120px;
  resize: vertical;
}

#consultation-status {
  margin: 12px 0 0;
  color: var(--sv-body);
  font-size: 14px;
}

.services-page #services-main a:focus-visible,
.services-page #services-main summary:focus-visible,
.services-page #services-main button:focus-visible {
  outline: 3px solid #f9c322;
  outline-offset: 3px;
}

@keyframes sv-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive */
@media (max-width: 1199px) {
  .sv-grid {
    gap: 22px;
  }

  .sv-consult__grid {
    gap: 44px;
  }
}

@media (max-width: 991px) {
  .sv-section,
  .sv-cases,
  .sv-consult {
    padding: 72px 0;
  }

  .sv-hero {
    padding: 120px 0 80px;
  }

  .sv-hero__grid,
  .sv-consult__grid,
  .sv-head--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .sv-hero__visual {
    max-width: 620px;
  }

  .sv-grid,
  .sv-cases__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sv-grid,
  .sv-cases__grid,
  .sv-why {
    grid-template-columns: minmax(0, 1fr);
  }

  .sv-nav .container {
    gap: 24px;
  }

  .sv-form {
    padding: 24px;
  }

  .sv-form__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .sv-why__item p {
    padding-left: 26px;
  }
}

@media (max-width: 575px) {
  .sv-hero__actions .sv-btn {
    width: 100%;
  }

  .sv-hero__badge {
    right: 0;
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-shot--front {
    animation: none;
  }

  .sv-card,
  .sv-ind,
  .sv-case,
  .sv-case img,
  .sv-art__icon,
  .sv-art__chip,
  .sv-card__link i {
    transition: none;
  }

  .sv-card:hover,
  .sv-ind:hover,
  .sv-case:hover,
  .sv-case:hover img,
  .sv-card:hover .sv-art__icon,
  .sv-card:hover .sv-art__chip--a,
  .sv-card:hover .sv-art__chip--b {
    transform: none;
  }
}
