@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.04em;
  text-indent: 0.04em;
  line-height: 0.95;
  white-space: nowrap;
  color: #ffffff;
  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;
}

.subline {
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(226, 234, 242, 0.72);
}

.subline[hidden] {
  display: none;
}

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

@media (prefers-reduced-motion: no-preference) {
  .wordmark {
    animation: rise 1.4s ease both;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .wordmark {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }
}
