/* Delt layout — sløret baggrund, overlay-header, minimal footer */

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

.hero-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
  contain: strict;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(37, 99, 235, 0.28) 0%, transparent 55%),
    linear-gradient(180deg, #0a1220 0%, var(--bg) 55%, #0a0c10 100%);
}

.hero-backdrop--fallback {
  background:
    radial-gradient(ellipse 90% 70% at 50% 15%, rgba(59, 158, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(37, 99, 235, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #0a1628 0%, var(--bg) 50%, #080a0f 100%);
}

.hero-backdrop__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: translate3d(-50%, -50%, 0) scale(1.08);
  filter: saturate(1.08) brightness(0.62);
  opacity: 0;
  transition: opacity var(--hero-fade-ms, 1.4s) ease-in-out;
  pointer-events: none;
  user-select: none;
}

.hero-backdrop__slide.is-active {
  opacity: 1;
}

.hero-backdrop__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.35) 0%, rgba(8, 10, 15, 0.72) 45%, rgba(8, 10, 15, 0.92) 100%),
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(13, 15, 20, 0.15) 0%, rgba(13, 15, 20, 0.75) 100%);
}

.page-shell .site-header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 4.5rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.92) 0%, rgba(8, 10, 15, 0.55) 75%, transparent 100%);
  border-bottom: none;
}

.page-shell .site-header--overlay .brand__text {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-shell .site-header--overlay .site-nav a {
  font-size: 0.8125rem;
  color: rgba(241, 245, 249, 0.72);
}

.page-shell .site-header--overlay .site-nav a:hover,
.page-shell .site-header--overlay .site-nav a.is-active {
  color: var(--text);
}

.page-shell .site-header--overlay .site-nav a.is-active {
  position: relative;
}

.page-shell .site-header--overlay .site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

.page-shell .auth-header {
  display: flex;
  align-items: center;
}

.page-shell .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  justify-self: end;
}

.page-shell .site-footer--minimal {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 10, 15, 0.96);
}

.page-shell .site-footer--minimal .site-footer__copy {
  margin: 0;
}

@media (max-width: 900px) {
  .page-shell .site-header--overlay .site-nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .page-shell .header-actions .btn--primary {
    display: none;
  }
}

.page-shell:not(.page-home) .hero-backdrop__slides {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-backdrop__slide {
    transition: none;
  }

  .hero-backdrop__slide:not(.is-active) {
    display: none;
  }
}
