html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Landing: only the hero image */
#body-wrap.type-landing #content-inner,
#body-wrap.type-landing #footer,
#body-wrap.type-landing #rightside,
#body-wrap.type-landing #page-site-info,
#body-wrap.type-landing #site-info {
  display: none !important;
}

#body-wrap.type-landing {
  min-height: 100vh;
}

#page-header.full_page {
  background-attachment: scroll;
  isolation: isolate;
  overflow: hidden;
  box-shadow: inset 0 0 160px rgba(0, 38, 72, 0.24);
  transition: none;
  transform: translate3d(0, var(--page-turn-offset, 0), 0);
  will-change: transform;
}

#body-wrap.type-landing #page-header.full_page,
#body-wrap.type-landing #page-header.not-home-page {
  height: 100vh;
  width: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Homepage elastic turn / underwater look */
#page-header.full_page.jquery-ripples > canvas {
  filter: saturate(1.1) brightness(0.94) contrast(1.03);
}

#page-header.full_page::after {
  position: absolute;
  z-index: 1;
  inset: -12%;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(196, 251, 255, 0.24) 0%, rgba(81, 210, 237, 0.08) 34%, transparent 64%),
    repeating-radial-gradient(ellipse at 50% -18%, transparent 0 58px, rgba(173, 247, 255, 0.065) 64px, transparent 74px 118px);
  background-position: 45% 0, 50% -5%;
  background-size: 125% 112%, 118% 128%;
  content: '';
  mix-blend-mode: screen;
  opacity: 0.56;
  pointer-events: none;
  transform: translate3d(-1.5%, -1%, 0) scale(1.04);
  animation: underwater-light-drift 14s ease-in-out infinite alternate;
  will-change: transform, background-position, opacity;
}

@keyframes underwater-light-drift {
  0% {
    background-position: 42% 0, 48% -5%;
    opacity: 0.46;
    transform: translate3d(-2%, -1%, 0) scale(1.04);
  }

  50% {
    background-position: 55% 3%, 53% 1%;
    opacity: 0.6;
    transform: translate3d(1%, 1.5%, 0) scale(1.07);
  }

  100% {
    background-position: 64% 1%, 58% -2%;
    opacity: 0.5;
    transform: translate3d(2.5%, -0.5%, 0) scale(1.05);
  }
}

#page-header.full_page #homepage-bubbles {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

#page-header.full_page #homepage-bubbles canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none !important;
}

#page-header.full_page #scroll-down {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  left: 50%;
  cursor: pointer;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 28px;
  text-shadow: 0 2px 12px rgba(0, 30, 50, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  #page-header.full_page {
    transform: none;
  }

  #page-header.full_page::after {
    animation: none;
  }
}

/* Hide chrome on landing (sidebar sits outside #body-wrap) */
body:has(#body-wrap.type-landing) #sidebar,
body:has(#body-wrap.type-landing) #rightside,
body:has(#body-wrap.type-landing) .noscript-warning {
  display: none !important;
}
