/* Shared header/footer + ambient background for homepage + auth entry (WZRD dark / red accent). */

.cs-site-bar,
.cs-site-foot {
  position: relative;
  z-index: 2;
}

/* ── Ambient background (ember wash + grid drift; shared by home + auth) ── */
/* Corner blobs + opacity pulses used to brighten then darken BL/BR; keep upper/center motion. */
.cs-preview-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(225, 29, 46, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 55% 35% at 72% 28%, rgba(225, 29, 46, 0.1) 0%, transparent 55%),
    #030303;
}

.cs-preview-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}

.cs-preview-bg__blob--1 {
  width: min(60vw, 480px);
  height: min(60vw, 480px);
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(225, 29, 46, 0.34);
  opacity: 0.82;
  animation: cs-preview-blob-drift 14s ease-in-out infinite;
}

.cs-preview-bg__wash {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 45% 35% at 30% 22%, rgba(225, 29, 46, 0.26) 0%, transparent 55%),
    radial-gradient(ellipse 38% 28% at 68% 32%, rgba(185, 16, 32, 0.16) 0%, transparent 50%);
  opacity: 0.9;
  animation: cs-preview-wash-pan 24s ease-in-out infinite;
  will-change: transform;
}

.cs-preview-bg__grid {
  position: absolute;
  inset: -48px;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(225, 29, 46, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 29, 46, 0.9) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
  animation: cs-preview-grid-drift 36s linear infinite;
  will-change: transform;
}

.cs-preview-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0.85;
}

@keyframes cs-preview-blob-drift {
  0%, 100% { transform: translateX(-50%) translate(0, 0) scale(1); }
  33% { transform: translateX(-50%) translate(7%, -5%) scale(1.16); }
  66% { transform: translateX(-50%) translate(-5%, 4%) scale(1.1); }
}

@keyframes cs-preview-wash-pan {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  40% { transform: translate(4%, -1.5%) rotate(2deg); }
  70% { transform: translate(-3.5%, -1%) rotate(-1.5deg); }
}

@keyframes cs-preview-grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-48px, -48px); }
}

.cs-site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.72) 0%, rgba(3, 3, 3, 0.28) 100%);
  backdrop-filter: blur(10px);
}

.cs-site-wordmark {
  display: flex;
  min-width: 0;
}

.cs-site-wordmark img {
  display: block;
  height: 2.55rem;
  width: auto;
  max-width: min(16rem, 58vw);
  object-fit: contain;
  object-position: left center;
}

.cs-site-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cs-site-nav__cta {
  color: #ececec;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 0.48rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.4);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cs-site-nav__cta:hover {
  color: #fff;
  border-color: rgba(225, 29, 46, 0.6);
  background: rgba(225, 29, 46, 0.12);
}

.cs-site-nav__cta[hidden] {
  display: none;
}

.cs-site-foot {
  margin-top: auto;
  padding: 1.35rem 1.5rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
}

.cs-site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.35rem;
  font-size: 0.82rem;
}

.cs-site-foot a {
  color: #a6a39e;
  text-decoration: none;
  transition: color 0.15s ease;
}

.cs-site-foot a:hover {
  color: #f3f1ee;
}

.cs-site-foot__sep {
  color: rgba(166, 163, 158, 0.45);
  user-select: none;
  padding: 0 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .cs-site-nav__cta,
  .cs-site-foot a {
    transition: none;
  }

  .cs-preview-bg__blob--1,
  .cs-preview-bg__wash,
  .cs-preview-bg__grid {
    animation: none;
  }
}
