/**
 * ============================================================================
 * MYMATHGUIDE COSMOS — CENTRAL CONTENT LAYER & TYPOGRAPHY STYLING
 * ============================================================================
 * Pixel-perfect typography and interactive UI layer engineered to match
 * the reference cosmic design target:
 *
 * 1. Protective Dark Vignette:
 *    Soft elliptical radial fade ensuring zero distracting elements obscure typography.
 * 2. Eyebrow:
 *    'STEP 4 · ARTIFICIAL INTELLIGENCE & SACRED ARCHITECTURES'
 *    in golden-amber uppercase (#FFD080) with generous letter-spacing.
 * 3. Headline:
 *    'Where mathematical intuition constructs artificial intelligence.'
 *    - 'Where mathematical intuition constructs' in pure white serif (#FFFFFF).
 *    - 'artificial intelligence.' in glowing golden-amber serif (#F5B842).
 * 4. Description:
 *    Crisp, highly legible body text in #E2D9EB, perfectly centered.
 * 5. 4 Interactive Capsule Pills:
 *    01 Symbols, 02 Linear Algebra, 03 Calculus & Probability, 04 AI & Machine Learning
 *    with golden numbers, glassmorphic dark backdrop, and active glowing indicators.
 * 6. 2 CTA Buttons:
 *    - Primary: Rich burgundy pill (#9E1B4E) with golden Trishul icon (🔱)
 *      'Master AI & Decision Mathematics (120 Visuals) →'.
 *    - Secondary: Clean white capsule (#FFFFFF) with dark charcoal text
 *      'Explore Full Visual Curriculum →'.
 *
 * ============================================================================
 * MARKUP STRUCTURE REFERENCE:
 * ============================================================================
 *
 * <section class="shiva-cosmos-compact" id="cosmos" aria-label="The Sacred Origin of Mathematics">
 *   <!-- Ambient Cosmic Waves & Sacred Symbols in Outer Frame -->
 *   <div class="cosmos-bg-tincture" aria-hidden="true"></div>
 *   <svg class="cosmos-waves-svg" ...></svg>
 *   <div class="cosmos-sacred-symbol cosmos-om" id="cosmos-om">...</div>
 *   <div class="cosmos-sacred-symbol cosmos-trishul" id="cosmos-trishul">...</div>
 *
 *   <!-- 1. Center Content Protection Shield (Dark Elliptical Vignette) -->
 *   <div class="cosmos-center-protection" aria-hidden="true"></div>
 *
 *   <!-- 2. Foreground Central Content Wrapper -->
 *   <div class="su-cosmos-wrap">
 *     <div class="su-cosmos-content" id="cosmos-content-panel">
 *
 *       <!-- Eyebrow -->
 *       <span class="su-sacred-eyebrow" id="su-caption-eyebrow">
 *         STEP 4 · ARTIFICIAL INTELLIGENCE &amp; SACRED ARCHITECTURES
 *       </span>
 *
 *       <!-- Headline -->
 *       <h2 class="su-sacred-title" id="shiva-section-title">
 *         Where mathematical intuition constructs <span class="cosmos-gold-word">artificial intelligence.</span>
 *       </h2>
 *
 *       <!-- Description -->
 *       <p class="su-sacred-body" id="su-caption-body">
 *         Byte-pair tokenization, multi-head attention geometry, Markov decision processes, and Bellman optimization. Build intelligent systems from universal mathematical first principles.
 *       </p>
 *
 *       <!-- 4 Interactive Capsule Pills -->
 *       <div class="su-step-tracker" role="tablist" aria-label="Cosmic 4-step progression">
 *         <button type="button" class="su-track-pill" data-step="1" role="tab" aria-selected="false">
 *           <span class="su-step-num">01</span>
 *           <span class="su-step-txt">Symbols</span>
 *         </button>
 *         <button type="button" class="su-track-pill" data-step="2" role="tab" aria-selected="false">
 *           <span class="su-step-num">02</span>
 *           <span class="su-step-txt">Linear Algebra</span>
 *         </button>
 *         <button type="button" class="su-track-pill" data-step="3" role="tab" aria-selected="false">
 *           <span class="su-step-num">03</span>
 *           <span class="su-step-txt">Calculus &amp; Probability</span>
 *         </button>
 *         <button type="button" class="su-track-pill active" data-step="4" role="tab" aria-selected="true">
 *           <span class="su-step-num">04</span>
 *           <span class="su-step-txt">AI &amp; Machine Learning</span>
 *         </button>
 *       </div>
 *
 *       <!-- Dual Call to Action Buttons -->
 *       <div class="su-cosmos-actions">
 *         <a class="button primary su-start-btn" id="su-cosmos-cta" href="/?view=module&module=mathematics-of-ai" data-go="module" data-id="mathematics-of-ai">
 *           <span class="su-btn-icon" aria-hidden="true">🔱</span>
 *           <span id="su-btn-text">Master AI &amp; Decision Mathematics (120 Visuals) →</span>
 *         </a>
 *         <a class="button quiet su-explore-btn" href="/?view=modules" data-go="modules">
 *           Explore Full Visual Curriculum →
 *         </a>
 *       </div>
 *
 *     </div>
 *   </div>
 * </section>
 * ============================================================================
 */

/* ── Typography & Cosmos Design Variables ── */
:root {
  --cosmos-bg-deep: #050a20;
  --cosmos-text-white: #ffffff;
  --cosmos-text-body: #e2d9eb;
  --cosmos-gold: #f5b842;
  --cosmos-gold-light: #ffd080;
  --cosmos-gold-glow: rgba(245, 184, 66, 0.55);
  --cosmos-burgundy: #9e1b4e;
  --cosmos-burgundy-light: #b51d56;
  --cosmos-burgundy-dark: #82143f;
  --cosmos-burgundy-glow: rgba(158, 27, 78, 0.55);
  --cosmos-white-btn: #ffffff;
  --cosmos-dark-text: #151226;
  --cosmos-pill-bg: rgba(16, 22, 48, 0.72);
  --cosmos-pill-border: rgba(80, 105, 170, 0.45);
  --cosmos-serif-family: "Playfair Display", "Cinzel", "Georgia", "Times New Roman", serif;
  --cosmos-sans-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ────────────────────────────────────────────────────────────────────────────
 * RECTANGULAR COSMOS BANNER SECTION
 * Single rectangular WebP banner image replacement.
 * ──────────────────────────────────────────────────────────────────────────── */
.shiva-cosmos-compact.cosmos-banner-section,
.cosmos-banner-section {
  position: relative;
  overflow: hidden;
  min-height: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: block !important;
  background: #050a20 !important;
  border: none !important;
  box-sizing: border-box;
}

.cosmos-banner-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  box-sizing: border-box;
}

.cosmos-banner-img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  aspect-ratio: 1024 / 384;
  object-fit: cover;
  box-sizing: border-box;
}

@media (max-width: 840px) {
  .shiva-cosmos-compact.cosmos-banner-section,
  .cosmos-banner-section {
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }

  .cosmos-banner-img {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ────────────────────────────────────────────────────────────────────────────
 * 1. PROTECTIVE DARK VIGNETTE (REMOVED AS REQUESTED)
 * ──────────────────────────────────────────────────────────────────────────── */
.cosmos-center-protection {
  display: none !important;
}

/* ────────────────────────────────────────────────────────────────────────────
 * 2. FOREGROUND CENTRAL CONTENT LAYER
 * Perfectly centered, high-contrast stack floating directly above the cosmic cosmos.
 * ──────────────────────────────────────────────────────────────────────────── */
.su-cosmos-wrap {
  position: relative;
  z-index: 4;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  box-sizing: border-box;
}

.su-cosmos-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.su-cosmos-content.is-fading {
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
}

/* Subheadings and Steps removed as requested */
.su-sacred-eyebrow,
.su-step-tracker {
  display: none !important;
}

/* ────────────────────────────────────────────────────────────────────────────
 * 3. HEADLINE (Changes 4 Times with Sacred Golden Word)
 * ──────────────────────────────────────────────────────────────────────────── */
.su-sacred-title {
  font-family: var(--cosmos-serif-family);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--cosmos-text-white);
  margin: 10px auto 20px;
  max-width: 960px;
  text-align: center;
  text-shadow:
    0 2px 24px rgba(255, 255, 255, 0.22),
    0 4px 34px rgba(0, 0, 0, 0.98),
    0 0 55px rgba(5, 10, 32, 0.95);
  word-wrap: break-word;
}

.su-sacred-title .cosmos-gold-word {
  color: var(--cosmos-gold);
  font-weight: 700;
  text-shadow:
    0 0 28px var(--cosmos-gold-glow),
    0 2px 14px rgba(245, 184, 66, 0.55),
    0 4px 28px rgba(0, 0, 0, 0.98);
}

/* ────────────────────────────────────────────────────────────────────────────
 * 4. DESCRIPTION
 * Crisp, highly legible body text in #E2D9EB, perfectly centered.
 * ──────────────────────────────────────────────────────────────────────────── */
.su-sacred-body {
  font-family: var(--cosmos-sans-family);
  font-size: clamp(14.5px, 1.25vw, 17px);
  font-weight: 400;
  color: var(--cosmos-text-body);
  line-height: 1.62;
  letter-spacing: 0.01em;
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.98), 0 0 24px rgba(5, 10, 32, 0.9);
}

.su-track-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 9999px;
  background: var(--cosmos-pill-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--cosmos-pill-border);
  color: var(--cosmos-text-white);
  font-family: var(--cosmos-sans-family);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.su-track-pill:hover {
  background: rgba(26, 36, 78, 0.88);
  border-color: rgba(245, 184, 66, 0.65);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 14px rgba(245, 184, 66, 0.25);
}

.su-track-pill:focus-visible {
  outline: 2px solid var(--cosmos-gold);
  outline-offset: 3px;
}

.su-step-num {
  color: var(--cosmos-gold);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.su-step-txt {
  color: var(--cosmos-text-white);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Active Pill State Indicator (Step 4 and dynamic steps) */
.su-track-pill.active {
  background: linear-gradient(
    135deg,
    rgba(42, 28, 64, 0.92) 0%,
    rgba(22, 26, 56, 0.95) 100%
  );
  border-color: var(--cosmos-gold);
  box-shadow:
    0 0 18px var(--cosmos-gold-glow),
    inset 0 0 12px rgba(245, 184, 66, 0.18),
    0 6px 22px rgba(0, 0, 0, 0.5);
  transform: scale(1.03);
}

.su-track-pill.active .su-step-num {
  color: var(--cosmos-gold-light);
  text-shadow: 0 0 10px rgba(255, 208, 128, 0.85);
}

.su-track-pill.active .su-step-txt {
  color: #ffffff;
  font-weight: 650;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

/* ────────────────────────────────────────────────────────────────────────────
 * 7. 2 CALL TO ACTION BUTTONS
 * Primary: burgundy pill (#9E1B4E) with golden Trishul icon.
 * Secondary: clean white capsule (#FFFFFF) with dark text.
 * ──────────────────────────────────────────────────────────────────────────── */
.su-cosmos-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Primary Burgundy Pill */
.su-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cosmos-burgundy);
  background: linear-gradient(
    135deg,
    var(--cosmos-burgundy-light) 0%,
    var(--cosmos-burgundy) 50%,
    var(--cosmos-burgundy-dark) 100%
  );
  color: var(--cosmos-text-white) !important;
  font-family: var(--cosmos-sans-family);
  font-size: 15px;
  font-weight: 650;
  padding: 13px 30px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 208, 128, 0.35);
  box-shadow:
    0 6px 24px var(--cosmos-burgundy-glow),
    0 0 25px rgba(158, 27, 78, 0.3);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
}

.su-start-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    #c52262 0%,
    #aa1d54 50%,
    #8e1646 100%
  );
  box-shadow:
    0 10px 32px rgba(158, 27, 78, 0.7),
    0 0 30px rgba(255, 208, 128, 0.45);
  border-color: rgba(255, 208, 128, 0.6);
}

.su-start-btn:active {
  transform: translateY(0);
}

.su-start-btn .su-btn-icon {
  font-size: 16px;
  color: var(--cosmos-gold-light);
  filter: drop-shadow(0 0 6px rgba(255, 208, 128, 0.75));
  display: inline-block;
  transform: translateY(-0.5px);
}

/* Secondary White Capsule */
.su-explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cosmos-white-btn);
  background: linear-gradient(180deg, #ffffff 0%, #f5f2eb 100%);
  color: var(--cosmos-dark-text) !important;
  font-family: var(--cosmos-sans-family);
  font-size: 15px;
  font-weight: 650;
  padding: 13px 30px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(255, 255, 255, 0.25);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
}

.su-explore-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  color: #0a0815 !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(255, 255, 255, 0.4);
}

.su-explore-btn:active {
  transform: translateY(0);
}

/* ────────────────────────────────────────────────────────────────────────────
 * 8. RESPONSIVE OPTIMIZATIONS
 * Flawless typography and containment across desktop, tablet, and mobile.
 * ──────────────────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .cosmos-center-protection {
    width: 95%;
    height: 92%;
    background: radial-gradient(
      ellipse 65% 60% at 50% 50%,
      rgba(5, 9, 28, 0.98) 0%,
      rgba(5, 9, 28, 0.92) 42%,
      rgba(5, 9, 28, 0.7) 70%,
      transparent 100%
    );
  }
  .su-step-tracker {
    gap: 10px;
    margin-bottom: 26px;
  }
  .su-track-pill {
    padding: 7px 16px;
    font-size: 12.5px;
  }
}

@media (max-width: 640px) {
  .su-sacred-eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
  }
  .su-sacred-title {
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.22;
    margin-bottom: 14px;
  }
  .su-sacred-body {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 22px;
    padding: 0 4px;
  }
  .su-step-tracker {
    gap: 8px;
    margin-bottom: 24px;
  }
  .su-track-pill {
    padding: 6px 14px;
    font-size: 12px;
  }
  .su-step-num {
    font-size: 11px;
  }
  .su-cosmos-actions {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    gap: 12px;
  }
  .su-start-btn,
  .su-explore-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    white-space: normal;
    text-align: center;
  }
}

/* ────────────────────────────────────────────────────────────────────────────
 * 9. ACCESSIBILITY & PREFERS-REDUCED-MOTION
 * ──────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .su-cosmos-content,
  .su-track-pill,
  .su-start-btn,
  .su-explore-btn {
    transition: none !important;
    transform: none !important;
  }
}

/* ────────────────────────────────────────────────────────────────────────────
 * 10. RAW VISUAL COMPONENT LAYERS (10-PART COSMIC COMPOSITION)
 * ──────────────────────────────────────────────────────────────────────────── */
.cosmos-layer {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Layer 1: Flowing Plasma Wave Engine across entire canvas */
.cosmos-layer-waves {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  mix-blend-mode: screen;
  opacity: 0.92;
  animation: cosmosPlasmaBreathe 12s ease-in-out infinite alternate;
}

@keyframes cosmosPlasmaBreathe {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.025) translateY(-5px);
    opacity: 0.98;
  }
  100% {
    transform: scale(0.99) translateY(4px);
    opacity: 0.88;
  }
}

/* Layer 2: 3D Wave Surface Manifold Grid (Left Margin) */
.cosmos-layer-manifold {
  left: clamp(12px, 3.5vw, 64px);
  top: clamp(140px, 28vh, 230px);
  width: clamp(170px, 20vw, 290px);
  height: auto;
  opacity: 0.88;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.5));
  animation: manifoldRecedeDrift 14s ease-in-out infinite alternate;
}

/* Layer 3: Top Ribbon — Mathematical Travellers (Gaussian Integral, Tesseract, Laplace, Spiral, Basel Sum, Bayes) */
.cosmos-layer-spiral {
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: min(1440px, 98%);
  height: clamp(55px, 7vw, 80px);
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.5));
  animation: spiralFlowDrift 10s ease-in-out infinite alternate;
}

@keyframes spiralFlowDrift {
  0% {
    transform: translateX(-50%) translateY(0px) scale(1);
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.45));
  }
  50% {
    transform: translateX(calc(-50% + 8px)) translateY(3px) scale(1.015);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.65));
  }
  100% {
    transform: translateX(calc(-50% - 7px)) translateY(-2px) scale(0.985);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
  }
}

/* Layer 4: Bottom Ribbon — Mass-Energy E=mc², Definite Integral, and 3D Torus Donut Wireframe */
.cosmos-layer-torus {
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: min(1440px, 98%);
  height: clamp(60px, 7.5vw, 85px);
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.5));
  animation: torusFlowDrift 11s ease-in-out infinite alternate;
}

@keyframes torusFlowDrift {
  0% {
    transform: translateX(-50%) translateY(0px) scale(1);
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.45));
  }
  50% {
    transform: translateX(calc(-50% - 9px)) translateY(-3px) scale(1.015);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.65));
  }
  100% {
    transform: translateX(calc(-50% + 7px)) translateY(2px) scale(0.985);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
  }
}

/* Layer 5: Bottom-Right 3D Neural Simplex Network & Geodesic Sphere */
.cosmos-layer-simplex {
  right: clamp(16px, 3.5vw, 64px);
  bottom: clamp(12px, 2.8vh, 32px);
  width: clamp(200px, 25vw, 360px);
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.5));
  animation: simplexRecedeDrift 13s ease-in-out infinite alternate;
}

/* Layer 6: Right Side Wavefunction Graph, Euler Equation & Matrix A */
.cosmos-layer-dynamics {
  right: clamp(16px, 3.5vw, 64px);
  top: clamp(90px, 18vh, 170px);
  width: clamp(160px, 19vw, 270px);
  height: auto;
  opacity: 0.88;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.5));
  animation: dynamicsRecedeDrift 12s ease-in-out infinite alternate;
}

/* Layer 7: Sacred Golden Om & Amber Vortex (Lower-Left Anchor) */
.cosmos-om-anchor {
  position: absolute;
  left: clamp(12px, 3.5vw, 56px);
  bottom: clamp(10px, 2.8vh, 32px);
  width: clamp(100px, 13vw, 175px);
  height: clamp(100px, 13vw, 175px);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 24px rgba(255, 165, 0, 0.65));
  animation: cosmosOmGentleFloat 6.5s ease-in-out infinite alternate;
}
.cosmos-om-anchor img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Layer 8: Sacred Golden Trishul & Solar Corona (Upper-Right Anchor) */
.cosmos-trishul-anchor {
  position: absolute;
  right: clamp(16px, 3.5vw, 56px);
  top: clamp(12px, 2.5vh, 28px);
  width: clamp(86px, 11vw, 150px);
  height: clamp(115px, 15vw, 205px);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 26px rgba(255, 215, 0, 0.7));
  animation: cosmosTrishulGentleFloat 5.5s ease-in-out infinite alternate;
}
.cosmos-trishul-anchor img {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes cosmosOmGentleFloat {
  0% {
    transform: translateY(0px) scale(0.98) rotate(0deg);
    filter: drop-shadow(0 0 24px rgba(255, 165, 0, 0.65));
  }
  50% {
    transform: translateY(-8px) scale(1.03) rotate(1deg);
    filter: drop-shadow(0 0 32px rgba(255, 208, 128, 0.85));
  }
  100% {
    transform: translateY(-3px) scale(1) rotate(-0.5deg);
    filter: drop-shadow(0 0 22px rgba(255, 165, 0, 0.6));
  }
}

@keyframes cosmosTrishulGentleFloat {
  0% {
    transform: translateY(0px) rotate(-1deg) scale(0.99);
    filter: drop-shadow(0 0 26px rgba(255, 215, 0, 0.7));
  }
  50% {
    transform: translateY(-9px) rotate(1.5deg) scale(1.02);
    filter: drop-shadow(0 0 34px rgba(255, 215, 0, 0.9));
  }
  100% {
    transform: translateY(-4px) rotate(0deg) scale(1);
    filter: drop-shadow(0 0 24px rgba(255, 215, 0, 0.65));
  }
}

/* ────────────────────────────────────────────────────────────────────────────
 * 11. DYNAMIC 3D DEEP UNIVERSE MATHEMATICAL CANVAS & PARTICLES
 * "Symbols move back in the universe in the same color and go blur at different parts"
 * ──────────────────────────────────────────────────────────────────────────── */
.cosmos-depth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  display: block;
}

/* Ensure buttons and subheadings are completely removed from presentation */
.su-sacred-body,
.su-cosmos-actions,
.su-start-btn,
.su-explore-btn,
.su-sacred-eyebrow,
.su-step-tracker {
  display: none !important;
}

@keyframes manifoldRecedeDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.45)) blur(0px);
  }
  50% {
    transform: translate3d(-6px, 12px, -40px) scale(0.96) rotate(-0.5deg);
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.6)) blur(0.6px);
  }
  100% {
    transform: translate3d(-14px, 6px, -90px) scale(0.91) rotate(0.5deg);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35)) blur(1.5px);
  }
}

@keyframes dynamicsRecedeDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.45)) blur(0px);
  }
  50% {
    transform: translate3d(-8px, -6px, -40px) scale(0.96) rotate(-1deg);
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.55)) blur(0.7px);
  }
  100% {
    transform: translate3d(10px, -10px, -80px) scale(0.93) rotate(0.8deg);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)) blur(1.5px);
  }
}

@keyframes simplexRecedeDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.45)) blur(0px);
  }
  50% {
    transform: translate3d(6px, -8px, -45px) scale(0.97) rotate(1deg);
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.6)) blur(0.8px);
  }
  100% {
    transform: translate3d(12px, 12px, -90px) scale(0.92) rotate(-0.8deg);
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.3)) blur(1.6px);
  }
}

/* Responsive adjustment: Keep decorative layers visible and clean on all viewports */
@media (max-width: 900px) {
  .cosmos-layer-manifold,
  .cosmos-layer-dynamics {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

@media (max-width: 840px) {
  .shiva-cosmos-compact:not(.cosmos-banner-section) {
    min-height: 520px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ────────────────────────────────────────────────────────────────────────────
 * MOBILE VIEWPORT (< 768px, specifically optimized for 400x650)
 * ──────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .shiva-cosmos-compact:not(.cosmos-banner-section) {
    min-height: 520px !important;
    height: auto !important;
    padding: 24px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .shiva-cosmos-compact.cosmos-banner-section,
  .cosmos-banner-section {
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }
  .cosmos-banner-img {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Central content wrapper: perfectly centered in cosmos container */
  .su-cosmos-wrap {
    position: relative !important;
    z-index: 5 !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .su-cosmos-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* Central heading: smaller font size (~1.15rem - 1.35rem), line-height ~1.35, tight max-width, perfectly centered */
  .su-sacred-title {
    font-size: clamp(1.15rem, 4.8vw, 1.35rem) !important;
    line-height: 1.35 !important;
    max-width: 290px !important;
    margin: 0 auto !important;
    letter-spacing: -0.015em !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-shadow:
      0 2px 20px rgba(255, 255, 255, 0.28),
      0 4px 30px rgba(0, 0, 0, 0.98),
      0 0 45px rgba(5, 10, 32, 0.95) !important;
  }

  .su-sacred-title .cosmos-gold-word {
    color: var(--cosmos-gold) !important;
    text-shadow:
      0 0 24px var(--cosmos-gold-glow),
      0 2px 14px rgba(245, 184, 66, 0.6),
      0 4px 28px rgba(0, 0, 0, 0.98) !important;
  }

  /* Background elements pushed towards outer borders/margins to keep central area completely uncluttered */
  .cosmos-layer-manifold {
    display: block !important;
    opacity: 0.42 !important;
    transform: scale(0.62) !important;
    transform-origin: left center !important;
    left: -28px !important;
    top: 13% !important;
    width: 130px !important;
    max-width: 32vw !important;
  }

  .cosmos-layer-dynamics {
    display: block !important;
    opacity: 0.42 !important;
    transform: scale(0.62) !important;
    transform-origin: right center !important;
    right: -24px !important;
    top: 14% !important;
    width: 130px !important;
    max-width: 32vw !important;
  }

  .cosmos-layer-spiral {
    display: block !important;
    opacity: 0.65 !important;
    height: 38px !important;
    top: 2px !important;
  }

  .cosmos-layer-torus {
    display: block !important;
    opacity: 0.65 !important;
    height: 40px !important;
    bottom: 4px !important;
  }

  .cosmos-layer-simplex {
    display: block !important;
    opacity: 0.42 !important;
    transform: scale(0.62) !important;
    transform-origin: right bottom !important;
    right: -24px !important;
    bottom: 10px !important;
    width: 145px !important;
    max-width: 36vw !important;
  }

  .cosmos-layer-waves {
    opacity: 0.78 !important;
  }

  /* Sacred Golden Om & Trishul in outer corners */
  .cosmos-om-anchor {
    width: 70px !important;
    height: 70px !important;
    left: 8px !important;
    bottom: 8px !important;
    opacity: 0.95 !important;
  }

  .cosmos-trishul-anchor {
    width: 60px !important;
    height: 82px !important;
    right: 8px !important;
    top: 8px !important;
    opacity: 0.95 !important;
  }
}
