.sp-page {
  background: var(--body-bg);
}

.sp-page .edge-lock-layer {
  z-index: 15;
  opacity: calc(var(--edge-opacity) * 1.2);
}

.sp-page main {
  margin-top: 62px;
  position: relative;
  z-index: 10;
}

.sp-page .hero-header,
.sp-page .site-footer {
  position: relative;
  z-index: 30;
}

.sp-page .site-footer {
  margin-top: 0;
}

.sp-header {
  z-index: 200;
}

.sp-shell {
  width: min(1320px, 92vw);
  margin: 0 auto;
}

.sp-section {
  position: relative;
  padding: clamp(52px, 6vw, 92px) 0;
  overflow: hidden;
}

.sp-section--light {
  background: transparent;
  color: #535962;
}

.sp-section--light h1,
.sp-section--light h2,
.sp-section--light h3 {
  color: #4b5462;
}

.sp-section--muted {
  background: #e8eaee;
  color: #465261;
  padding: clamp(34px, 3.8vw, 48px) 0;
}

.sp-section--dark {
  background: linear-gradient(98deg, #242628 0%, #1b1d20 56%, #242628 100%);
  color: #eef3f8;
}

.sp-media {
  position: relative;
  background: linear-gradient(145deg, rgb(226 232 239 / 0.9), rgb(201 210 220 / 0.96));
  border: 1px solid rgb(118 132 148 / 0.35);
  overflow: hidden;
}

.sp-section--dark .sp-media {
  background: linear-gradient(145deg, rgb(54 63 74 / 0.75), rgb(39 45 53 / 0.88));
  border-color: rgb(169 186 206 / 0.28);
}

.sp-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sp-media--cover img {
  object-fit: cover;
}

.sp-media__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 16px;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1.1rem);
  color: #31455f;
  line-height: 1.35;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.36) 25%, transparent 25%) -16px 0 / 32px 32px,
    linear-gradient(225deg, rgb(255 255 255 / 0.36) 25%, transparent 25%) -16px 0 / 32px 32px,
    linear-gradient(315deg, rgb(255 255 255 / 0.36) 25%, transparent 25%) 0 0 / 32px 32px,
    linear-gradient(45deg, rgb(255 255 255 / 0.36) 25%, transparent 25%) 0 0 / 32px 32px;
}

.sp-media__placeholder code {
  display: inline-block;
  margin-top: 6px;
  color: #1f3b5b;
}

.sp-section--dark .sp-media__placeholder {
  color: #e9f2ff;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.08) 25%, transparent 25%) -16px 0 / 32px 32px,
    linear-gradient(225deg, rgb(255 255 255 / 0.08) 25%, transparent 25%) -16px 0 / 32px 32px,
    linear-gradient(315deg, rgb(255 255 255 / 0.08) 25%, transparent 25%) 0 0 / 32px 32px,
    linear-gradient(45deg, rgb(255 255 255 / 0.08) 25%, transparent 25%) 0 0 / 32px 32px;
}

.sp-section--dark .sp-media__placeholder code {
  color: #ca0d00;
}

.sp-media.has-media .sp-media__placeholder {
  display: none;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  border: 1px solid var(--accent-blue);
  padding: 12px 22px;
}

.sp-btn--solid {
  color: #ffffff;
  background: #ca0d00;
}

.sp-hero {
  position: relative;
  min-height: clamp(500px, 60vh, 680px);
  display: grid;
  align-items: center;
  color: #ffffff;
  background: #0e1218;
}

.sp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sp-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(6 10 16 / 0.78) 0%, rgb(6 10 16 / 0.56) 50%, rgb(6 10 16 / 0.76) 100%);
}

.sp-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.sp-hero__content h1 {
  margin: 0 auto;
  width: min(900px, 94%);
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.08;
}

.sp-hero__content p {
  margin: 18px auto 0;
  width: min(920px, 94%);
  font-size: clamp(1rem, 1.16vw, 1.36rem);
  line-height: 1.5;
  color: rgb(243 248 253 / 0.95);
}

.sp-wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 44px;
  z-index: 4;
  background: #e8eaee;
  clip-path: polygon(0 30%, 10% 42%, 24% 34%, 35% 45%, 50% 32%, 65% 46%, 80% 35%, 92% 43%, 100% 32%, 100% 100%, 0 100%);
}

.sp-wave-divider--bottom {
  background: var(--story-bg);
  bottom: auto;
  top: -2px;
  transform: scaleY(-1);
}

.sp-pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 34px);
}

.sp-pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(10px, 1.2vw, 16px);
  align-items: start;
}

.sp-pillar__icon {
  width: clamp(44px, 3vw, 58px);
  height: clamp(44px, 3vw, 58px);
  border-radius: 50%;
  background: rgb(202 13 0 / 0.16);
  border: 1px solid rgb(202 13 0 / 0.42);
  color: #ca0d00;
  display: grid;
  place-items: center;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
}

.sp-pillar h3 {
  margin: 0;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.22rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3f4855;
}

.sp-pillar p {
  margin: 6px 0 0;
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  line-height: 1.45;
  color: #4f5661;
}

.sp-explainer {
  padding-top: clamp(40px, 4.6vw, 72px);
}

.sp-titleline {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.sp-titleline span {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgb(120 145 178 / 0.36) 45%,
    rgb(120 145 178 / 0.1) 100%
  );
}

.sp-titleline span:last-child {
  background: linear-gradient(
    to left,
    transparent 0%,
    rgb(120 145 178 / 0.36) 45%,
    rgb(120 145 178 / 0.1) 100%
  );
}

.sp-titleline h2 {
  margin: 0;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 2.9vw, 3.45rem);
  line-height: 1.08;
  color: #3a475f;
  text-align: center;
}

.sp-explainer__grid {
  margin-top: clamp(30px, 3.2vw, 48px);
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 2.5vw, 36px);
  align-items: end;
}

.sp-explainer__copy {
  font-size: clamp(1rem, 1.08vw, 1.17rem);
  line-height: 1.58;
  color: #2f4258;
}

.sp-explainer__copy p {
  margin: 0 0 18px;
}

.sp-explainer__copy h3 {
  margin: 24px 0 8px;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 1.4vw, 1.55rem);
  color: #3d4e64;
}

.sp-explainer__copy ul {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 10px;
}

.sp-explainer__media {
  min-height: clamp(300px, 31vw, 450px);
}

.sp-band {
  min-height: clamp(300px, 34vw, 430px);
  display: grid;
  align-items: center;
  border-top: none;
  padding-top: 0;
  padding-bottom: 0;
}

.sp-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ca0d00;
  z-index: 5;
}

.sp-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sp-band__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(4 10 18 / 0.8) 0%, rgb(4 10 18 / 0.52) 48%, rgb(4 10 18 / 0.8) 100%);
}

.sp-band__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.sp-band__content h2 {
  margin: 0;
  font-family: "MyriadProRegular", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  line-height: 1.05;
  color: #ffffff;
}

.sp-band__content p {
  margin: 14px auto 0;
  width: min(900px, 94%);
  font-size: clamp(1rem, 1.14vw, 1.26rem);
  line-height: 1.5;
  color: rgb(239 246 255 / 0.94);
}

.sp-band__content .sp-btn {
  margin-top: 20px;
}

.sp-services {
  padding-top: clamp(58px, 6.2vw, 96px);
}

.sp-services__lead {
  margin: 16px auto 0;
  width: min(940px, 94%);
  text-align: center;
  font-size: clamp(1.06rem, 1.2vw, 1.35rem);
  line-height: 1.5;
  color: #4c5f75;
}

.sp-services__grid {
  margin-top: clamp(30px, 3.2vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 32px);
}

.sp-service-card {
  text-align: center;
}

.sp-service-card .sp-media {
  min-height: clamp(190px, 15vw, 250px);
}

.sp-service-card h3 {
  margin: 16px 0 0;
  font-family: "MyriadProBold", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 1.95vw, 2.3rem);
  line-height: 1.2;
  color: #3f4b60;
}

.sp-service-card p {
  margin: 10px auto 0;
  max-width: 420px;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.5;
  color: #4d5f75;
}

.sp-service-card a {
  margin-top: 18px;
  display: inline-block;
  text-decoration: none;
  font-family: "MyriadProRegular", "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 1.22vw, 1.35rem);
  color: #ca0d00;
  position: relative;
  padding-bottom: 5px;
}

.sp-service-card a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgb(202 13 0 / 0.55);
}

body.theme-dark .sp-section--light {
  color: #c9d5e4;
}

body.theme-dark .sp-section--light h1,
body.theme-dark .sp-section--light h2,
body.theme-dark .sp-section--light h3 {
  color: #e5eef8;
}

body.theme-dark .sp-section--muted {
  background: rgb(10 17 26 / 0.92);
}

body.theme-dark .sp-pillar p,
body.theme-dark .sp-explainer__copy,
body.theme-dark .sp-services__lead,
body.theme-dark .sp-service-card p {
  color: #bdccde;
}

body.theme-dark .sp-titleline h2 {
  color: #f0f6ff;
}

@media (max-width: 1200px) {
  .sp-pillar {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .sp-explainer__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sp-explainer__media {
    min-height: clamp(300px, 46vw, 460px);
  }
}

@media (max-width: 980px) {
  .sp-pillars__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-services__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 760px) {
  .sp-page main {
    margin-top: 56px;
  }

  .sp-shell {
    width: min(1320px, 94vw);
  }

  .sp-hero {
    min-height: clamp(420px, 58vh, 560px);
  }

  .sp-hero__content h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .sp-hero__content p {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
  }

  .sp-wave-divider {
    height: 34px;
  }

  .sp-pillars__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sp-titleline h2 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .sp-band__content h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }
}
