/* Homepage-specific corrections. Kept separate from the legacy theme. */
.sge-home .at-hero-bg {
  justify-content: center;
  transform: translate3d(0, 50px, 0);
}

.sge-home .sge-home-hero__visual {
  width: min(100vw, 1190px) !important;
  max-width: none;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 24px 40px rgb(35 5 0 / 22%));
}

@media screen and (min-width: 1401px) {
  html[lang="de-CH"] .sge-home .at-hero-title {
    font-size: 64px;
  }
}

.sge-home .sge-home-hero__cta {
  min-height: 52px;
  border-width: 1px;
  border-style: solid;
  box-shadow: 0 9px 24px rgb(44 8 2 / 16%);
}

.sge-home .sge-home-hero__cta--primary {
  color: #111 !important;
  background: #fff !important;
  border-color: #fff !important;
}

.sge-home .sge-home-hero__cta--primary :where(span, i, svg) {
  color: #111 !important;
}

.sge-home .sge-home-hero__cta--primary:hover,
.sge-home .sge-home-hero__cta--primary:focus-visible {
  color: #111 !important;
  background: #38eadb !important;
  border-color: #38eadb !important;
}

.sge-home .sge-home-hero__cta--secondary {
  color: #fff !important;
  background: rgb(15 15 15 / 88%) !important;
  border-color: rgb(255 255 255 / 72%) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sge-home .sge-home-hero__cta--secondary :where(span, i, svg) {
  color: #fff !important;
}

.sge-home .sge-home-hero__cta--secondary:hover,
.sge-home .sge-home-hero__cta--secondary:focus-visible {
  color: #111 !important;
  background: #fff !important;
  border-color: #fff !important;
}

.sge-home .sge-home-hero__cta--secondary:hover :where(span, i, svg),
.sge-home .sge-home-hero__cta--secondary:focus-visible :where(span, i, svg) {
  color: #111 !important;
}

.sge-home .sge-scale-statement {
  padding: clamp(72px, 8vw, 128px) 0;
}

.sge-home .sge-scale-statement__title {
  max-width: 18ch;
  font-size: clamp(3.25rem, 7.2vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.sge-home .sge-scale-statement__subtitle {
  max-width: 26ch;
  font-size: clamp(1.65rem, 3.15vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sge-home .at-about-title {
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sge-home .at-about-thumb {
  height: clamp(320px, 31vw, 440px);
}

.sge-home .at-about-thumb img {
  height: 100%;
  margin-top: 0;
  object-position: center;
}

.sge-home .sge-portfolio-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.36fr);
  align-items: start !important;
  gap: 24px;
  overflow: visible;
}

.sge-home .sge-portfolio-copy {
  min-width: 0;
}

.sge-home .sge-portfolio-title {
  margin: 0 0 10px;
  overflow: visible;
  font-size: clamp(1.8rem, 2.45vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sge-home .sge-portfolio-title a {
  color: inherit;
  text-shadow: none;
}

.sge-home .sge-portfolio-content .cs-portfolio-tag {
  width: auto;
  min-width: 0;
}

.sge-home .sge-portfolio-content .cs-portfolio-tag ul {
  gap: 8px;
  margin: 0;
  padding: 0;
  white-space: normal !important;
}

.sge-home .sge-portfolio-content .cs-portfolio-tag ul li {
  max-width: 100%;
  margin: 0;
}

.sge-home .sge-portfolio-content .cs-portfolio-tag ul li a {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
  text-align: center;
}

.sge-home .mg-portfolio-desc {
  max-width: 42ch;
  margin-bottom: 0;
  line-height: 1.4;
}

.sge-home .mg-portfolio-thumb > a {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.sge-home .mg-portfolio-thumb > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 992px) {
  .sge-home .at-service-list-wrap .at-service-item {
    grid-template-columns: minmax(70px, 100px) minmax(0, 1fr) minmax(180px, 280px);
  }

  .sge-home .at-service-list-wrap .at-service-item > .content {
    min-width: 0;
  }

  .sge-home .at-service-list-wrap .at-service-item .content .title {
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .sge-home .at-service-list-wrap .at-service-item > .thumb {
    width: 100%;
    min-width: 0;
    justify-self: end;
    transform: none;
    transform-origin: right center;
  }
}

.sge-home .sge-home-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 8, 8, 0.78),
    rgba(8, 8, 8, 0.12) 58%,
    rgba(8, 8, 8, 0.55)
  );
  pointer-events: none;
}

.sge-home .sge-home-cta {
  height: clamp(720px, 58vw, 820px) !important;
}

.sge-home .sge-home-cta > .position-absolute:last-child {
  z-index: 1;
}

.sge-home .sge-home-cta__top {
  padding-top: clamp(54px, 6vw, 92px);
}

.sge-home .sge-home-cta__response {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.46);
  color: #fff;
  font-size: clamp(0.9rem, 1.15vw, 1.1rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sge-home .sge-home-cta__response:hover {
  border-color: #fff;
  background: rgba(10, 10, 10, 0.68);
  color: #fff;
}

.sge-home .sge-home-cta__content {
  padding-top: clamp(140px, 15vw, 220px);
}

.sge-home .sge-home-cta__title {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.sge-home .sge-home-cta__description {
  display: inline-block;
  max-width: 38ch;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 1.35;
}

.sge-home .sge-capabilities-title {
  max-width: 18ch;
  font-size: clamp(2.75rem, 4.6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.sge-home .at-sec13-thumb .blog-card__img-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.sge-home .at-sec13-thumb .blog-card__img22 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sge-home .at-sec13-thumb .blog-card__title {
  font-size: clamp(1.25rem, 1.55vw, 1.65rem);
  line-height: 1.12;
  text-wrap: balance;
}

@media (max-width: 991px) {
  .sge-home .sge-home-hero__visual {
    width: min(92vw, 820px) !important;
    opacity: 0.72;
  }

  .sge-home .sge-portfolio-content {
    grid-template-columns: 1fr;
  }

  .sge-home .sge-portfolio-content .cs-portfolio-tag ul {
    justify-content: flex-start !important;
  }

  .sge-home .sge-capabilities-title {
    max-width: 22ch;
  }
}

@media (max-width: 767px) {
  .sge-home .at-hero-video {
    display: none !important;
  }

  .sge-home .at-hero-spacing {
    padding-top: 225px;
  }

  .sge-home .at-hero-bg {
    transform: translate3d(-10%, 35px, 0);
  }

  .sge-home .sge-home-hero__visual {
    width: 740px !important;
    max-width: none;
    opacity: 0.5;
  }

  .sge-home .sge-scale-statement {
    padding: 64px 0;
  }

  .sge-home .sge-scale-statement__title {
    font-size: clamp(2.65rem, 13vw, 4.75rem);
  }

  .sge-home .sge-scale-statement__subtitle {
    font-size: clamp(1.4rem, 7vw, 2.25rem);
  }

  .sge-home .at-about-thumb-wrap {
    margin-left: 0;
  }

  .sge-home .at-about-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .sge-home .at-about-thumb {
    height: min(108vw, 460px);
  }

  .sge-home .sge-portfolio-title {
    font-size: clamp(1.65rem, 7.5vw, 2.25rem);
  }

  .sge-home .sge-capabilities-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sge-home .mg-portfolio-thumb img,
  .sge-home .at-sec13-thumb img {
    transition: none !important;
  }
}
