:root {
  color-scheme: dark;
  background: #120f17;
}
*, *::before, *::after { box-sizing: border-box; }
html, body, #root { margin: 0; width: 100%; min-height: 100%; }
html { background: #120f17; }
body { min-height: 100svh; background: #120f17; color: #fff; overflow: hidden; }
.landing {
  isolation: isolate;
  position: relative;
  height: 100svh;
  min-height: 350px;
  width: 100%;
  overflow: hidden;
  background: #120f17;
}
.hero {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
  transform: translateY(0.9%);
}
.wordmark {
  width: min(84vw, 1220px);
  flex: none;
  margin: 0;
  line-height: 0;
  text-align: center;
}
.wordmark-image { display: block; width: 100%; height: auto; user-select: none; }
.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(14px, 2.7vw, 44px);
  --nav-cap-height: clamp(10px, 0.95vw, 14px);
  margin-top: clamp(26px, 3.8vw, 50px);
}
.nav-link {
  display: flex;
  position: relative;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  outline-offset: 10px;
  text-decoration: none;
  transition: opacity .22s ease, transform .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-label {
  display: block;
  height: var(--nav-cap-height);
  width: auto;
  max-width: none;
  user-select: none;
}
/* Normalise visual cap height: the RGB asset has slight overshoot and
   the Cyrillic asset contains the descender of the letter Ц. */
.nav-link:nth-child(2) .nav-label {
  height: calc(var(--nav-cap-height) * 1.02825); /* 728 / 708 */
  transform: translateY(calc(var(--nav-cap-height) * 0.014));
}
.nav-link:nth-child(3) .nav-label {
  height: calc(var(--nav-cap-height) * 1.24011); /* 878 / 708 */
  transform: translateY(calc(var(--nav-cap-height) * 0.120));
}
.nav-link:hover { opacity: .62; transform: translateY(-2px); }
.nav-link:focus-visible { opacity: .68; outline: 1px solid rgba(255,255,255,.95); }
.glass-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media(max-width: 660px) {
  .wordmark { width: min(90vw, 550px); }
  .navigation { gap: clamp(11px, 2.3vw, 18px); margin-top: 29px; --nav-cap-height: clamp(8px, 2.65vw, 11px); }
  .hero { transform: translateY(0); }
}
@media(max-width: 350px) {
  .navigation { gap: 9px; }
  .navigation { --nav-cap-height: 8px; }
}
@media(prefers-reduced-motion: reduce) {
  .nav-link { transition: none; }
}

/* CSS/DOM lens for browsers that disable WebGL2 (same type, true magnification). */
.glass-fallback {
  display: none;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 224px;
  height: 224px;
  pointer-events: none;
  isolation: isolate;
  will-change: transform, border-radius;
  border-radius: 46% 54% 52% 48% / 51% 48% 52% 49%;
  box-shadow: -14px 22px 36px rgba(0,0,0,.40), 0 0 7px rgba(255,255,255,.09);
}
.no-webgl .glass-fallback { display: block; }
.glass-fallback__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #120f17;
  filter: contrast(1.07);
}
.glass-fallback__scene { position: absolute; top: 0; left: 0; transform-origin: 50% 50%; }
.glass-fallback__scene > .hero { transform: translateY(0.9%); }
.glass-fallback::before,
.glass-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.glass-fallback::before {
  z-index: 1;
  background:
    radial-gradient(ellipse at 29% 20%, rgba(255,255,255,.32), transparent 32%),
    radial-gradient(ellipse at 90% 68%, rgba(255,255,255,.30), transparent 25%),
    linear-gradient(115deg, rgba(255,255,255,.38), transparent 24%, transparent 61%, rgba(255,255,255,.25) 87%, rgba(255,255,255,.53));
  mix-blend-mode: screen;
  opacity: .59;
}
.glass-fallback::after {
  z-index: 2;
  border: 1.8px solid rgba(255,255,255,.42);
  background: radial-gradient(ellipse at 47% -10%, rgba(255,255,255,.18),transparent 52%);
  box-shadow:
    inset 5px 7px 13px rgba(255,255,255,.21),
    inset -7px -9px 11px rgba(6,5,12,.45),
    inset 0 0 21px rgba(255,255,255,.14),
    2px 1px 4px rgba(255,255,255,.14);
}
