@font-face {
  font-family: "Cipher Glass";
  src: url("../fonts/cipher-glass.woff2?v=17") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #000;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  color: #f4f7fa;
  font-family: "Segoe UI Variable Display", "Segoe UI", "SF Pro Display", -apple-system, "Helvetica Neue", system-ui, sans-serif;
}

::selection {
  background: rgba(226, 236, 244, 0.22);
  color: #fff;
}

#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}

.mark {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 28px);
  text-align: center;
  background: none;
  border: 0;
  box-shadow: none;
}

.wordmark {
  margin: 0;
  font-family: "Cipher Glass", sans-serif;
  font-weight: 900;
  font-size: clamp(60px, 8.4vw, 150px);
  letter-spacing: 0.06em;
  text-indent: 0.06em;
  line-height: 0.95;
  white-space: nowrap;
  color: #ffffff;
  opacity: 0;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.85),
    0 0 18px rgba(255, 255, 255, 0.28);
}

.wordmark.glass-on {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0 !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
}

.wordmark-frame {
  position: relative;
  height: calc(clamp(60px, 8.4vw, 150px) * 1.7);
  pointer-events: none;
}
@media (max-width: 520px) {
  .wordmark-frame {
    height: calc(51px * 4.2);
  }
}

.subline {
  margin: 0.35rem auto 0;
  max-width: 46rem;
  padding: 0 1.1rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: rgba(226, 234, 242, 0.82);
  opacity: 0;
}
@media (max-width: 520px) {
  .subline {
    margin-top: 0.25rem;
    font-size: 0.84rem;
    letter-spacing: 0.01em;
    line-height: 1.45;
    max-width: 20.5rem;
  }
}

.subline[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .wordmark {
    font-size: 51px;
    letter-spacing: 0.04em;
    text-indent: 0.04em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .wordmark.css-title {
    animation: rise 2.4s cubic-bezier(0.45, 0.02, 0.25, 1) both;
  }

  .mark.is-in .subline {
    animation: ui-in 0.7s ease both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes ui-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark.css-title {
    animation: rise-quiet 0.42s linear both;
  }

  .mark.is-in .subline {
    animation: rise-quiet 0.42s linear both;
  }
}

@keyframes rise-quiet {
  from { opacity: 0; }
  to { opacity: 1; }
}

.home-offer {
  position: fixed;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
  text-align: center;
  pointer-events: none;
  background: transparent;
}

.home-offer p {
  margin: 0 auto 0.32rem;
  max-width: 40rem;
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: rgba(226, 234, 242, 0.84);
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  pointer-events: auto;
}

.home-links a {
  color: rgba(244, 247, 250, 0.92);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.home-links a:hover,
.home-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
