/* Homepage below-the-fold solutions. The accepted hero is intentionally untouched. */
.home-page .service-section {
  display: block;
  width: calc(100% - 32px);
  min-height: 860px;
  margin: 30px 16px 0;
  padding: 104px 28px 90px;
  overflow: hidden;
  border: 1px solid rgba(48, 43, 57, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 18%, rgba(193, 94, 121, 0.18), transparent 30%),
    radial-gradient(circle at 78% 10%, rgba(89, 108, 170, 0.17), transparent 34%),
    linear-gradient(145deg, #dcdae0 0%, #d1d0d8 54%, #c8cbd3 100%);
  box-shadow: 0 28px 78px rgba(55, 49, 67, 0.13);
}

.home-page .service-section::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 72%);
}

.home-page .service-intro {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin: 0 auto 46px;
  text-align: center;
}

.home-page .service-intro .section-kicker {
  margin-bottom: 14px;
  color: #5c5265;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.home-page .service-intro h2 {
  max-width: 760px;
  margin: 0 auto;
  color: #211f25;
  font-size: clamp(1.55rem, 2.35vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.home-page .service-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: calc(100% - clamp(170px, 14vw, 220px));
  max-width: none;
  margin: 0;
  overflow: visible;
}

.home-page .service-card {
  display: block;
  min-height: 555px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  color: #fff;
  background: #15141a;
  box-shadow: 0 22px 58px rgba(36, 31, 45, 0.16);
  isolation: isolate;
}

.home-page .service-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 12, 17, 0.08) 32%, rgba(12, 11, 16, 0.92) 100%),
    linear-gradient(135deg, rgba(133, 77, 155, 0.14), transparent 46%);
}

.home-page .service-card::after {
  position: absolute;
  inset: auto 20px 20px;
  z-index: 1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.44), transparent);
}

.home-page .service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(0.83) contrast(1.02) brightness(0.9);
  transform: scale(1.015);
  transition: opacity 450ms ease, filter 450ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-page .service-card-index {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.home-page .service-card-copy {
  position: absolute;
  right: 22px;
  bottom: 34px;
  left: 22px;
  z-index: 3;
}

.home-page .service-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.28rem, 1.72vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.home-page .service-card p {
  position: static;
  margin: 0;
  color: rgba(243, 241, 246, 0.76);
  font-size: 0.86rem;
  line-height: 1.52;
  opacity: 1;
  transform: none;
}

.home-page .service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-page .service-card-link b {
  font-size: 1rem;
  transition: transform 220ms ease;
}

.home-page .service-card:hover,
.home-page .service-card:focus-visible {
  z-index: 3;
  border-color: rgba(255, 255, 255, 0.4);
  background: #15141a;
  box-shadow: 0 30px 78px rgba(39, 32, 50, 0.26);
  transform: translateY(-7px);
}

.home-page .service-card:hover h3,
.home-page .service-card:focus-visible h3 {
  color: #fff;
  transform: none;
}

.home-page .service-card:hover img,
.home-page .service-card:focus-visible img {
  opacity: 0.98;
  filter: saturate(1.06) contrast(1.04) brightness(0.94);
  transform: scale(1.06);
}

.home-page .service-card:hover .service-card-link b,
.home-page .service-card:focus-visible .service-card-link b {
  transform: translate(3px, -3px);
}

/* Keep the revealed homepage sphere useful without covering the card row. */
.home-page .interface-panel.sphere-visible {
  top: 34%;
  right: 8px;
}

.home-page .interface-panel.sphere-visible .sphere-shell {
  width: clamp(220px, 20vw, 265px);
  height: clamp(220px, 20vw, 265px);
}

.home-page .interface-panel.sphere-visible .sphere-core {
  width: 66px;
  height: 66px;
  font-size: 0.7rem;
}

.home-page .interface-panel.sphere-visible .sphere-link {
  width: 92px;
  min-height: 32px;
  padding: 0 8px;
  font-size: 0.68rem;
}

.home-page .interface-panel.sphere-visible .sphere-link:hover,
.home-page .interface-panel.sphere-visible .sphere-link:focus-visible {
  font-size: 0.78rem;
}

@media (max-width: 1180px) {
  .home-page .service-section {
    min-height: 800px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-page .service-grid {
    grid-template-columns: repeat(4, minmax(270px, 1fr));
    width: 100%;
    padding: 7px 180px 22px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .home-page .service-card {
    min-height: 510px;
    scroll-snap-align: start;
  }
}

@media (max-width: 900px) {
  .home-page .service-section {
    width: calc(100% - 16px);
    min-height: auto;
    margin: 18px 8px 0;
    padding: 78px 14px 58px;
    border-radius: 26px;
  }

  .home-page .service-intro {
    margin-bottom: 34px;
    padding: 0 18px;
  }

  .home-page .service-grid {
    grid-template-columns: repeat(4, minmax(78vw, 1fr));
    gap: 10px;
    padding-right: 16vw;
  }

  .home-page .service-card {
    min-height: 520px;
  }
}

@media (max-width: 560px) {
  .home-page .service-section {
    padding-top: 66px;
  }

  .home-page .service-grid {
    grid-template-columns: repeat(4, minmax(82vw, 1fr));
  }

  .home-page .service-card {
    min-height: 490px;
  }

  .home-page .interface-panel.sphere-visible .sphere-shell {
    width: 210px;
    height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .service-card,
  .home-page .service-card img,
  .home-page .service-card-link b {
    transition: none;
  }
}

/* Full-screen section rhythm and an intentionally overlapping large sphere. */
.home-page .service-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: calc(100% - 32px);
  min-height: max(820px, 100svh);
  margin: 30px 16px 0;
  padding: 104px 28px 82px;
}

.home-page .service-intro {
  margin-bottom: 48px;
}

.home-page .service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.home-page .service-card {
  min-height: clamp(540px, 60svh, 680px);
}

.home-page .about-section,
.home-page .contact-section {
  width: calc(100% - 32px);
  min-height: max(820px, 100svh);
  margin: 30px 16px 0;
  padding: 104px clamp(34px, 5vw, 78px);
  border: 1px solid rgba(48, 43, 57, 0.12);
  border-radius: 34px;
  box-shadow: 0 28px 78px rgba(55, 49, 67, 0.12);
}

.home-page .about-section {
  grid-template-columns: minmax(320px, 0.72fr) minmax(560px, 1.28fr);
  gap: clamp(48px, 7vw, 110px);
  background:
    radial-gradient(circle at 12% 82%, rgba(184, 75, 108, 0.13), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(69, 105, 175, 0.16), transparent 35%),
    linear-gradient(145deg, #dcdae0, #ced0d8);
}

.home-page .about-copy {
  max-width: 620px;
}

.home-page .about-copy h2,
.home-page .contact-copy h2 {
  margin-bottom: 28px;
  color: #211f25;
  font-size: clamp(3.7rem, 6.8vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.home-page .about-copy p:last-child,
.home-page .contact-copy p:last-child {
  color: #595560;
  font-size: clamp(1rem, 1.22vw, 1.16rem);
  line-height: 1.72;
}

.home-page .about-gallery {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  min-height: clamp(600px, 68svh, 760px);
}

.home-page .about-gallery figure {
  border-radius: 24px;
}

.home-page .contact-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(600px, 1.28fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  background:
    radial-gradient(circle at 84% 18%, rgba(92, 105, 173, 0.15), transparent 34%),
    radial-gradient(circle at 12% 84%, rgba(181, 77, 110, 0.12), transparent 30%),
    linear-gradient(145deg, #d9d8de, #cbd0d7);
}

.home-page .contact-header {
  width: 100%;
  max-width: 620px;
  align-self: center;
}

.home-page .contact-console {
  width: 100%;
  max-width: none;
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 28px;
}

.home-page .contact-console-top {
  padding: 26px 34px 0;
}

.home-page .contact-form {
  gap: 24px;
  padding: 42px;
}

.home-page .contact-row {
  gap: 22px;
}

.home-page .contact-form input {
  min-height: 64px;
}

.home-page .contact-form textarea {
  min-height: 240px;
}

.home-page .interface-panel.sphere-visible {
  top: 54%;
  right: 8px;
}

.home-page .interface-panel.sphere-visible .sphere-shell {
  width: clamp(370px, 36vw, 520px);
  height: clamp(370px, 36vw, 520px);
}

.home-page .interface-panel.sphere-visible .sphere-core {
  width: 98px;
  height: 98px;
  font-size: 0.88rem;
}

.home-page .interface-panel.sphere-visible .sphere-link {
  width: 116px;
  min-height: 38px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.home-page .interface-panel.sphere-visible .sphere-solutions {
  width: 138px;
}

.home-page .interface-panel.sphere-visible .sphere-link:hover,
.home-page .interface-panel.sphere-visible .sphere-link:focus-visible {
  font-size: 0.96rem;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .home-page .service-section,
  .home-page .about-section,
  .home-page .contact-section {
    width: calc(100% - 32px);
    padding-right: 28px;
    padding-left: 28px;
  }

  .home-page .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
    overflow: visible;
  }

  .home-page .about-section,
  .home-page .contact-section {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 34px;
  }

  .home-page .service-card {
    min-height: 560px;
  }
}

@media (max-width: 900px) {
  .home-page .service-section,
  .home-page .about-section,
  .home-page .contact-section {
    width: calc(100% - 16px);
    min-height: 100svh;
    margin: 18px 8px 0;
    padding: 80px 20px;
    border-radius: 26px;
  }

  .home-page .service-grid {
    grid-template-columns: repeat(4, minmax(82vw, 1fr));
    gap: 12px;
    width: 100%;
    padding: 6px 12vw 20px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .home-page .service-card {
    min-height: 560px;
    scroll-snap-align: start;
  }

  .home-page .about-section,
  .home-page .contact-section {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .home-page .about-gallery {
    min-height: 620px;
  }

  .home-page .contact-console {
    min-height: 560px;
  }
}

@media (max-width: 560px) {
  .home-page .service-section,
  .home-page .about-section,
  .home-page .contact-section {
    padding: 68px 14px;
  }

  .home-page .service-intro {
    padding: 0 8px;
  }

  .home-page .service-card {
    min-height: 520px;
  }

  .home-page .about-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 1.25fr 0.8fr 0.8fr;
    min-height: 980px;
  }

  .home-page .about-gallery figure:nth-child(1) {
    grid-row: auto;
  }

  .home-page .contact-form {
    padding: 28px 20px 24px;
  }

  .home-page .contact-row {
    grid-template-columns: 1fr;
  }
}
