/* ==========================================================================
   Monolith — THE IRIS (WebGL)
   40 concentric text rings rendered as textured triangle meshes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Scroll Container
   -------------------------------------------------------------------------- */
.monolith-scroll-container {
  position: relative;
  height: 100vh;
  background: #ffffff;
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Viewport
   -------------------------------------------------------------------------- */
.monolith-sticky {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

/* --------------------------------------------------------------------------
   WebGL Canvas
   -------------------------------------------------------------------------- */
.monolith-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Text Overlay
   -------------------------------------------------------------------------- */
.monolith__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  padding: var(--space-xl);
}

.monolith__headline {
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  font-weight: var(--weight-black);
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  max-width: 18ch;
  margin: 0;
  text-shadow: 0 0 30px #fff, 0 0 60px #fff, 0 0 90px #fff;
}

.monolith__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-right: 0.25em;
}

.monolith__word--visible {
  opacity: 1;
  transform: translateY(0);
}

.monolith__word--accent {
  color: var(--color-accent);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Mobile Fallback
   -------------------------------------------------------------------------- */
.monolith__fallback-logo { display: none; }

.monolith--fallback .monolith-canvas { display: none; }

.monolith--fallback .monolith__fallback-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.monolith--fallback .monolith__fallback-logo svg {
  width: 40vw;
  max-width: 280px;
  height: auto;
  opacity: 0.15;
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.3));
  animation: monolith-logo-pulse 4s ease-in-out infinite;
}

@keyframes monolith-logo-pulse {
  0%, 100% { opacity: 0.12; filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.2)); }
  50%      { opacity: 0.25; filter: drop-shadow(0 0 60px rgba(59, 130, 246, 0.4)); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .monolith-scroll-container { height: 100vh; }
  .monolith__headline {
    font-size: clamp(2rem, 8vw, 3.5rem);
    max-width: 14ch;
  }
}

@media (max-width: 640px) {
  .monolith__headline {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }
}
