/* Full-bleed perspective grid + particles (Digiency brand colors) */

.de-hero-swiss {
  position: relative;
  overflow: hidden;
  /* Content already sits below topbar + header in document flow — no double offset */
  padding: clamp(20px, 3vw, 36px) 0 clamp(40px, 6vw, 72px);
  background: #0b0f19;
  min-height: min(82vh, 640px);
  display: flex;
  align-items: center;
  margin-top: 0;
}

/* Cancel stacked padding from luxury/modern hero rules */
.de-hero.de-hero-swiss.de-hero--lux,
.de-hero-swiss.de-page-hero--lux,
.de-hero-swiss.de-service-hero {
  padding-top: clamp(20px, 3vw, 36px) !important;
  padding-bottom: clamp(40px, 6vw, 64px) !important;
}

/* Remove legacy service-hero container offset (was causing large gap under menu) */
.de-hero-swiss.de-service-hero .container,
.de-hero-swiss .de-hero-swiss__content-wrap,
.de-hero-swiss .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.de-hero-gridfx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.de-hero-gridfx__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.de-hero-gridfx__glow {
  position: absolute;
  left: 0;
  right: 0;
  top: 48%;
  height: 28%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(233, 30, 99, 0.22) 45%,
    rgba(255, 64, 129, 0.12) 70%,
    transparent 100%
  );
  filter: blur(28px);
  animation: de-horizon-pulse 6s ease-in-out infinite;
}

.de-hero-gridfx__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11, 15, 25, 0.92) 0%,
    rgba(11, 15, 25, 0.72) 38%,
    rgba(11, 15, 25, 0.35) 62%,
    rgba(11, 15, 25, 0.55) 100%
  );
}

.de-hero-gridfx__cta {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(145deg, #c2185b 0%, #e91e63 45%, #ff4081 100%);
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.34, 1.45, 0.64, 1), filter 0.35s ease;
  animation: de-cta-banner-glow 3.2s ease-in-out infinite;
}

/* Ripple rings — banner feels active without touching the menu */
.de-hero-gridfx__cta::before,
.de-hero-gridfx__cta::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  border: 1px solid rgba(255, 140, 180, 0.52);
  animation: de-cta-banner-ring 2.65s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.de-hero-gridfx__cta::after {
  border-color: rgba(233, 30, 99, 0.32);
  animation-delay: 0.95s;
}

.de-hero-gridfx__cta:hover {
  transform: translateY(-50%) scale(1.08);
  filter: brightness(1.08);
  color: #fff !important;
}

.de-hero-gridfx__cta:hover::before,
.de-hero-gridfx__cta:hover::after {
  animation-play-state: paused;
  opacity: 0;
}

.de-hero-swiss__content-wrap,
.de-hero-swiss__grid {
  position: relative;
  z-index: 1;
  width: 100%;
}

.de-hero-swiss__grid {
  display: block;
  max-width: 100%;
}

.de-hero-swiss__content,
.de-hero-swiss__content-wrap .de-hero-swiss__content {
  max-width: 40rem;
}

.de-hero-swiss__content h1,
.de-hero-swiss__content-wrap h1 {
  font-size: clamp(1.85rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.de-hero-swiss__content .de-hero__lead,
.de-hero-swiss__content-wrap .de-hero__lead {
  font-size: clamp(1rem, 2.1vw, 1.12rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
}

.de-hero-swiss__stage {
  display: none;
}

.de-service-hero.de-hero-swiss {
  min-height: auto;
  align-items: flex-start;
  padding-bottom: clamp(24px, 4vw, 40px) !important;
}

.de-service-hero .de-service-hero__bg,
.de-service-hero .de-service-hero__vector {
  display: none !important;
}

.de-hero--lux.de-hero-swiss,
.de-hero.de-hero-swiss {
  min-height: min(88vh, 720px);
}

@keyframes de-horizon-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes de-cta-banner-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12) inset,
      0 0 26px rgba(233, 30, 99, 0.55),
      0 8px 30px rgba(0, 0, 0, 0.4);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.2) inset,
      0 0 46px rgba(255, 64, 129, 0.72),
      0 12px 40px rgba(0, 0, 0, 0.46);
    filter: brightness(1.07);
  }
}

@keyframes de-cta-banner-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@media (max-width: 991px) {
  .de-hero-swiss {
    min-height: auto;
    padding-top: clamp(16px, 4vw, 28px) !important;
  }
  .de-service-hero.de-hero-swiss {
    min-height: auto;
  }
  .de-hero-gridfx__cta {
    right: 16px;
    top: auto;
    bottom: 24px;
    transform: none;
    min-width: 44px;
    min-height: 44px;
    font-size: 9px;
  }
  .de-hero-gridfx__cta:hover {
    transform: scale(1.08);
    filter: brightness(1.08);
  }
  .de-hero-gridfx__vignette {
    background: linear-gradient(
      180deg,
      rgba(11, 15, 25, 0.88) 0%,
      rgba(11, 15, 25, 0.65) 45%,
      rgba(11, 15, 25, 0.85) 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .de-hero-gridfx__glow,
  .de-hero-gridfx__cta {
    animation: none !important;
  }
  .de-hero-gridfx__cta {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12) inset,
      0 0 26px rgba(233, 30, 99, 0.5),
      0 8px 30px rgba(0, 0, 0, 0.38);
  }
  .de-hero-gridfx__cta::before,
  .de-hero-gridfx__cta::after {
    animation: none !important;
    opacity: 0 !important;
  }
}
