/* Transparency Canvas & Hero Background Styles */
.page-transparency {
  background-color: #040704;
}

.hero.transparency-hero {
  position: relative;
  min-height: clamp(420px, 48vh, 520px) !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: calc(var(--header-bottom, calc(var(--announce-height, 36px) + var(--nav-height, 70px))) + 2rem) !important;
  padding-bottom: 3.5rem !important;
  margin-bottom: 0 !important;
  margin-top: calc(-1 * (var(--announce-height, 36px) + var(--nav-height, 70px))) !important;
  background: #040704 !important;
  border-bottom: 1px solid rgba(149, 173, 99, 0.12) !important;
  overflow: hidden;
  contain: layout paint;
  isolation: isolate;
  text-align: center;
}

@media (max-width: 640px) {
  .hero.transparency-hero {
    min-height: 380px !important;
    padding-top: calc(var(--header-bottom, calc(var(--announce-height, 36px) + var(--nav-height, 70px))) + 1.2rem) !important;
    padding-bottom: 2.5rem !important;
  }
}

/* WebGL Canvas */
#transparency-fluid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
  touch-action: none;
  contain: strict;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Ambient radial glow over text */
.transparency-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 22%, rgba(4, 7, 4, 0.42) 68%, rgba(4, 7, 4, 0.88) 100%);
}

/* Smooth multi-stop bottom feather transition */
.transparency-bottom-blend-mask {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 140px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, 
    rgba(4, 7, 4, 0) 0%, 
    rgba(4, 7, 4, 0.2) 28%, 
    rgba(4, 7, 4, 0.65) 62%, 
    rgba(4, 7, 4, 0.94) 86%, 
    #040704 100%
  );
  transform: translateZ(0);
}

/* Interactive Hero Content elevated above canvas, vignette, and mask */
.hero.transparency-hero .hero-content {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  max-width: 46rem;
  padding: 0 1.5rem;
  margin: 0 auto;
}

.hero.transparency-hero h1,
.hero.transparency-hero .hero-stagger-line {
  color: #ffffff !important;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.75), 0 0 50px rgba(142, 214, 83, 0.1) !important;
}

.hero.transparency-hero p {
  color: rgba(215, 230, 215, 0.88) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85) !important;
}

/* Fallback video management */
.hero.transparency-hero .transparency-fluid-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0.92;
  object-fit: cover;
}

/* Seamless blend mask when WebGL is running */
.hero.transparency-hero.has-webgl {
  border-bottom: none !important;
}

.hero.transparency-hero.has-webgl::before {
  display: none !important;
}

.hero.transparency-hero.has-webgl .transparency-fluid-bg {
  display: none !important;
}
