.home-h2-services {
  --h2-services-surface: #f8fafc;
  --h2-services-deep: #15324b;
  --h2-services-border: rgba(255, 255, 255, 0.3);
  --h2-services-ribbon: #617486;
  position: relative;
  min-height: 688px;
  overflow: hidden;
  isolation: isolate;
}

.home-h2-services__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1);
  background:
    linear-gradient(
      to bottom,
      rgba(7, 19, 29, 0.22) 0%,
      rgba(7, 19, 29, 0.08) 18%,
      rgba(7, 19, 29, 0.08) 82%,
      rgba(7, 19, 29, 0.24) 100%
    ),
    linear-gradient(180deg, rgba(21, 50, 75, 0.95), rgba(21, 50, 75, 0.95)),
    var(--home-h2-services-bg-image) center / cover no-repeat;
}

.home-h2-services__curve {
  position: absolute;
  left: 50%;
  width: max(1688px, calc(100vw + 8px));
  height: 168px;
  transform: translateX(-50%);
  border-radius: 50%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.home-h2-services__curve::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -4px;
  width: calc(100% + 8px);
  height: 168px;
  border-radius: 50%;
  background: var(--h2-services-ribbon);
  pointer-events: none;
}

.home-h2-services__curve::after {
  content: "";
  position: absolute;
  left: -4px;
  width: calc(100% + 8px);
  height: 168px;
  border-radius: 50%;
  background: var(--h2-services-surface);
  pointer-events: none;
}

.home-h2-services__curve--top {
  top: -60px;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.home-h2-services__curve--top::after {
  top: -18px;
}

.home-h2-services__curve--bottom {
  bottom: -60px;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.home-h2-services__curve--bottom::after {
  bottom: -18px;
}

.home-h2-services__inner {
  position: relative;
  z-index: 2;
  width: min(1290px, calc(100% - 40px));
  margin-inline: auto;
  padding: 172px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1) 150ms,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1) 150ms;
}

.home-h2-services__title {
  margin: 0;
  width: min(1068px, 100%);
  font-size: clamp(40px, 4.2vw, 61px);
  line-height: 1.1;
  font-weight: 400;
}

.home-h2-services__title-primary {
  color: #fff;
}

.home-h2-services__title-highlight {
  color: #dde5ec;
}

.home-h2-services__body {
  margin: 0;
  width: min(715px, 100%);
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}

.home-h2-services__button {
  border-radius: 10px;
  border: 2px solid var(--h2-services-surface);
  padding: 16px 32px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--h2-services-surface);
  font-family: var(--font-accent, 'Plus Jakarta Sans', sans-serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.home-h2-services__button:hover,
.home-h2-services__button:focus-visible {
  background: rgba(248, 250, 252, 0.12);
}

.home-h2-services__button-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
}

.home-h2-services__modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.home-h2-services__modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-h2-services__modal.is-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: auto;
}

.home-h2-services__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 50, 75, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-h2-services__modal.is-open .home-h2-services__modal-backdrop {
  opacity: 1;
}

.home-h2-services__modal-shell {
  position: relative;
  z-index: 2;
  width: min(1290px, 100%);
  max-height: calc(100vh - 48px);
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 24px;
  background: #dde5ec;
  border: 1px solid rgba(21, 50, 75, 0.18);
  padding: 48px 40px 32px;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.home-h2-services__modal.is-open .home-h2-services__modal-shell {
  opacity: 1;
  transform: none;
}

.home-h2-services__accordion-panel {
  will-change: height, opacity;
}

.home-h2-services.is-inview .home-h2-services__bg {
  opacity: 1;
}

.home-h2-services.is-inview .home-h2-services__inner {
  opacity: 1;
  transform: translateY(0);
}

@keyframes home-h2-services-bg-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes home-h2-services-content-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-h2-services-curve-top {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes home-h2-services-curve-bottom {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-h2-services__bg,
  .home-h2-services__curve--top,
  .home-h2-services__curve--bottom,
  .home-h2-services__inner {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .home-h2-services__modal,
  .home-h2-services__modal-backdrop,
  .home-h2-services__modal-shell {
    transition: none;
  }
}

.home-h2-services__modal-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.home-h2-services__modal-close {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #2f80b7;
  background: transparent;
  color: #2f80b7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.home-h2-services__modal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 40%) minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 46px);
  align-items: start;
}

.home-h2-services__modal-media-col {
  align-self: stretch;
}

.home-h2-services__modal-media-wrap {
  position: sticky;
  top: 8px;
  height: min(calc(100vh - 190px), 640px);
  max-height: 100%;
  overflow: hidden;
  border-radius: 24px;
}

.home-h2-services__modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-h2-services__modal-content {
  min-width: 0;
}

.home-h2-services__modal-title {
  margin: 0 0 18px;
  max-width: 760px;
  color: #15324b;
  font-size: clamp(36px, 3.4vw, 48px);
  line-height: 1.1;
  font-weight: 400;
}

.home-h2-services__modal-body {
  color: #15324b;
  font-size: 16px;
  line-height: 1.6;
  max-width: 1100px;
}

.home-h2-services__modal-body p {
  margin: 0 0 14px;
}

.home-h2-services__modal-accordions {
  margin-top: 20px;
  border-top: 1px solid rgba(21, 50, 75, 0.2);
}

.home-h2-services__accordion-item {
  border-bottom: 1px solid rgba(21, 50, 75, 0.2);
}

.home-h2-services__accordion-heading {
  margin: 0;
}

.home-h2-services__accordion-toggle {
  width: 100%;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: 0;
  color: #15324b;
  font-size: 34px;
  line-height: 1.15;
  font-family: var(--font-display);
  text-align: left;
  cursor: pointer;
}

.home-h2-services__accordion-title {
  display: inline-block;
}

.home-h2-services__accordion-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  position: relative;
}

.home-h2-services__accordion-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.home-h2-services__accordion-minus {
  display: none;
}

.home-h2-services__accordion-toggle[aria-expanded="true"] .home-h2-services__accordion-plus {
  display: none;
}

.home-h2-services__accordion-toggle[aria-expanded="true"] .home-h2-services__accordion-minus {
  display: block;
}

.home-h2-services__accordion-panel {
  padding: 0 0 20px;
  color: #15324b;
  font-size: 16px;
  line-height: 1.6;
}

.home-h2-services__accordion-panel p {
  margin: 0 0 12px;
}

body.home-h2-services-modal-open {
  overflow: hidden;
}

html.home-h2-services-nav-suppressed .site-header,
body.home-h2-services-nav-suppressed .site-header,
html.home-h2-services-modal-open .site-header,
body.home-h2-services-modal-open .site-header {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  transform: translateY(-120%) !important;
  transition: none !important;
}

@media (max-width: 900px) {
  .home-h2-services {
    min-height: 560px;
  }

  .home-h2-services__curve {
    width: max(908px, calc(120vw + 8px));
    height: 124px;
  }

  .home-h2-services__curve::before,
  .home-h2-services__curve::after {
    height: 124px;
  }

  .home-h2-services__curve--top {
    top: -38px;
  }

  .home-h2-services__curve--top::after {
    top: -14px;
  }

  .home-h2-services__curve--bottom {
    bottom: -38px;
  }

  .home-h2-services__curve--bottom::after {
    bottom: -14px;
  }

  .home-h2-services__inner {
    padding: 130px 0;
  }

  .home-h2-services__modal-shell {
    width: min(1290px, 100%);
    margin: 0;
    max-height: calc(100vh - 24px);
    padding: 44px 22px 24px;
  }

  .home-h2-services__modal-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .home-h2-services__accordion-toggle {
    font-size: 26px;
  }
}

@media (max-width: 680px) {
  .home-h2-services {
    min-height: 500px;
  }

  .home-h2-services__inner {
    width: min(100% - 28px, 1290px);
    padding: 110px 0;
    gap: 18px;
  }

  .home-h2-services__button {
    font-size: 18px;
    padding: 12px 18px;
  }

  .home-h2-services__modal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-h2-services__modal-media-wrap {
    position: relative;
    top: auto;
    height: clamp(220px, 44vw, 360px);
  }

  .home-h2-services__modal-title {
    font-size: clamp(30px, 8.4vw, 40px);
  }

  .home-h2-services__accordion-toggle {
    font-size: 22px;
  }
}
