#scroll-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100; /* Brought to the front */
  pointer-events: none; /* Crucial to allow clicks through the animation */
  background: transparent; /* Changed from #070805 to allow seeing the site content */
}

/* Ensure the page body maintains the brand's dark background */
body.has-scroll-bg {
  background: var(--background) !important;
}

/* Make page sections slightly transparent to see the ritual animation.
   padding-top on .hero offsets the fixed header (min-height 76px)
   so hero content is never hidden underneath it — shared by all themes. */
.hero,
.section,
.sensory-band {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

.hero {
  padding-top: 76px;
}

/* Light mode adjustments to ensure visibility of the text over the canvas */
[data-theme="light"] .hero::after {
  background:
    linear-gradient(
      90deg,
      rgba(246, 242, 235, 0.35),
      rgba(246, 242, 235, 0.15),
      rgba(246, 242, 235, 0.3)
    ),
    linear-gradient(
      0deg,
      rgba(246, 242, 235, 0.4) 0%,
      rgba(246, 242, 235, 0.2) 50%,
      rgba(246, 242, 235, 0.35) 100%
    ) !important;
}

[data-theme="light"] .section {
  background: rgba(246, 242, 235, 0.75) !important;
}

/* Dark mode adjustments to ensure visibility of the background */
[data-theme="dark"] .hero::after {
  background: linear-gradient(
    0deg,
    rgba(7, 8, 5, 0.5) 0%,
    rgba(7, 8, 5, 0.2) 50%,
    rgba(7, 8, 5, 0.4) 100%
  ) !important;
}

[data-theme="dark"] .section {
  background: transparent !important;
}

/* Adjusting the hero media visibility */
.hero-media img {
  opacity: 0.6;
  mix-blend-mode: normal;
  filter: brightness(0.7);
}


.hero-content {
  background: radial-gradient(circle at center, rgba(7, 8, 5, 0.2), transparent 80%);
  border-radius: 2rem;
  /* Restore the padding-top that style.css sets (clamp 5rem–10rem).
     The shorthand padding:2rem was overriding it; padding-top is listed
     after so it wins. Identical in both light and dark mode. */
  padding: 2rem;
  padding-top: clamp(5rem, 12vh, 10rem);
  position: relative;
  z-index: 10;
}

[data-theme="light"] .hero-media img {
  filter: brightness(1.15) saturate(1.0);
  opacity: 0.85;
}

[data-theme="light"] .hero-content {
  background: radial-gradient(circle at center, rgba(246, 242, 235, 0.65), transparent 80%);
}

/* Ensure the ambient field doesn't overlap or hide the canvas */
.ambient-field {
  display: none !important;
}

.site-header {
  z-index: 110 !important; /* Above canvas (100) but below hero content */
}


/* Mobile drawer must always sit above the header */
.mobile-drawer {
  z-index: 200 !important;
}

.site-footer {
  position: relative;
  z-index: 130 !important; /* Above header (110) and canvas (100) */
  background: var(--background) !important;
}


/* Bowl Button & Hint */
#bowl-button {
  position: fixed;
  width: 120px;
  height: 120px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: none;
  outline: none;
  transition: transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

#bowl-button:hover {
  transform: scale(1.1);
}

#bowl-button.visible {
  display: block;
}

.click-hint {
  position: fixed;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.1rem;
  color: #f4c879;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1001;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
  text-shadow: 0 0 15px rgba(244, 200, 121, 0.4);
  transform: translateX(-50%);
}

.click-hint.visible {
  opacity: 1;
}
