html,
body.home {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body.home::-webkit-scrollbar {
  display: none;
}

/* Liquid glass logo: the video is blurred/saturated through the logo silhouette,
   highlights come from a separate transparent layer. No filter on .splash-logo
   itself — a filter there would cut the backdrop-filter off from the video. */
.splash-logo {
  aspect-ratio: 1;
  height: auto;
}
.splash-logo > span {
  position: absolute;
  inset: 0;
  -webkit-mask: url("/assets/aeverce-logo-mask.png?v=1") center / contain no-repeat;
  mask: url("/assets/aeverce-logo-mask.png?v=1") center / contain no-repeat;
}
/* Soft shadow drawn from the silhouette itself (not masked, so the blur can spill out). */
.splash-logo > .splash-logo-shadow {
  -webkit-mask: none;
  mask: none;
  background: url("/assets/aeverce-logo-mask.png?v=1") center / contain no-repeat;
  transform: translateY(2.5%);
  filter: brightness(0) blur(5px);
  opacity: 0.22;
}
.splash-logo-glass {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.08) 100%);
  -webkit-backdrop-filter: blur(3px) saturate(1.7) brightness(1.15);
  backdrop-filter: blur(3px) saturate(1.7) brightness(1.15);
}
.splash-logo-shine {
  background: url("/assets/aeverce-logo-shine.png?v=2") center / contain no-repeat;
}
/* Browsers without backdrop-filter still get a tinted translucent glass. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .splash-logo-glass { background-color: rgba(255, 255, 255, 0.22); }
}
@media (max-width: 768px) {
  .splash .splash-logo {
    width: min(30vw, 135px);
    min-width: 100px;
  }
}

/* Footer on the video: "Aeverce © 2026" left, legal links right.
   Each word is liquid glass like the logo: the video is blurred/brightened
   through an SVG outline of the text. The real text stays for screen readers. */
.splash-glass-footer {
  position: absolute;
  left: clamp(20px, 3vw, 48px);
  right: clamp(20px, 3vw, 48px);
  bottom: calc(clamp(18px, 3.5vh, 36px) + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.splash-glass-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2vw, 32px);
}
.glass-word {
  position: relative;
  display: block;
  flex: none;
  margin: 0;
  font-size: 1.05rem;
  height: 1.21em;
  aspect-ratio: var(--ar);
  text-decoration: none;
}
.glass-word--copy {
  font-size: 0.92rem;
}
.glass-word-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.glass-word > span[aria-hidden] {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: var(--m) center / 100% 100% no-repeat;
  mask: var(--m) center / 100% 100% no-repeat;
}
.glass-word > .gw-shadow {
  -webkit-mask: none;
  mask: none;
  background: var(--m) center / 100% 100% no-repeat;
  transform: translateY(5%);
  filter: brightness(0) blur(1.5px);
  opacity: 0.35;
}
.glass-word > .gw-glass {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.32) 55%, rgba(255, 255, 255, 0.42) 100%);
  -webkit-backdrop-filter: blur(2px) saturate(1.8) brightness(1.75);
  backdrop-filter: blur(2px) saturate(1.8) brightness(1.75);
  transition: background 180ms ease;
}
.glass-word > .gw-shine {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.12) 40%, rgba(255, 255, 255, 0) 60%);
}
a.glass-word:hover > .gw-glass {
  background: rgba(255, 255, 255, 0.7);
}
a.glass-word:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 5px;
  border-radius: 3px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-word > .gw-glass { background: rgba(255, 255, 255, 0.75); }
}
@media (max-width: 640px) {
  .splash-glass-footer {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .splash-glass-nav {
    gap: 18px;
  }
  .glass-word {
    font-size: 0.92rem;
  }
  .glass-word--copy {
    font-size: 0.8rem;
  }
}

/* No directional shine on the words: uniform glass, no white glare on the left. */
.glass-word > .gw-shine {
  display: none;
}
.glass-word > .gw-glass {
  background: rgba(255, 255, 255, 0.4);
}
a.glass-word:hover > .gw-glass {
  background: rgba(255, 255, 255, 0.7);
}

/* Copyright matches the links' size. */
.glass-word--copy {
  font-size: 1.05rem;
}
@media (max-width: 640px) {
  .glass-word--copy {
    font-size: 0.92rem;
  }
}
