:root {
  --bg: #08090d;
  --fg: #f4f4f1;
  --muted: rgba(244, 244, 241, 0.58);
  --line: rgba(244, 244, 241, 0.14);
  --accent: #8ff0c2;
  --accent-soft: rgba(143, 240, 194, 0.18);
  --mx: 0.5;
  --my: 0.5;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
}

#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.page-shell {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  pointer-events: none;
}

.hero {
  width: min(94vw, 118rem);
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  text-align: center;
  transform: translate3d(
    calc((var(--mx) - 0.5) * -1.25rem),
    calc((var(--my) - 0.5) * -1rem),
    0
  );
  transition: transform 0.18s ease-out;
}

.kicker,
.statement {
  margin: 0 auto;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.kicker {
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.42);
  font-size: clamp(0.68rem, 1vw, 0.85rem);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  backdrop-filter: blur(12px);
}

.wordmark {
  position: relative;
  margin: 0;
  font-size: clamp(4.5rem, 20vw, 23rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.105em;
  text-transform: uppercase;
  text-wrap: nowrap;
}

.wordmark::before,
.wordmark::after {
  content: "ANSTOR";
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
}

.wordmark::before {
  transform: translate3d(
    calc((var(--mx) - 0.5) * 1.1rem),
    calc((var(--my) - 0.5) * 0.8rem),
    0
  );
}

.wordmark::after {
  transform: translate3d(
    calc((var(--mx) - 0.5) * -0.8rem),
    calc((var(--my) - 0.5) * -0.65rem),
    0
  );
  opacity: 0.45;
}

.wordmark span {
  display: block;
  color: rgba(244, 244, 241, 0.94);
  text-shadow: 0 0 44px var(--accent-soft);
  animation: wordmark-pulse 7s ease-in-out infinite;
}

.statement {
  max-width: 38rem;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.contact {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  text-align: center;
}

.contact a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact a:hover {
  color: var(--accent);
}

@keyframes wordmark-pulse {
  0%,
  100% {
    opacity: 0.86;
    transform: scale(0.997);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 42rem) {
  .hero {
    gap: 0.8rem;
  }

  .wordmark {
    font-size: clamp(3.35rem, 19vw, 8rem);
    letter-spacing: -0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    transform: none;
  }

  .wordmark span {
    animation: none;
  }
}
