:root {
  --bg: #05070b;
  --text: #f5f1e8;
  --line: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.06);
  --metal: rgba(184, 197, 214, 0.12);
  --metal-strong: rgba(184, 197, 214, 0.22);
  --accent: rgba(201, 255, 168, 0.1);
  --accent-strong: rgba(201, 255, 168, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(160deg, #030508 0%, #060b12 44%, #09111a 100%);
  color: var(--text);
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

body::before {
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body::after {
  top: 50%;
  left: 50%;
  width: min(92vw, 1120px);
  height: min(72vw, 720px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transform: translate(-50%, -50%);
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, black 16%, black 84%, transparent 100%);
}

.shape-grid::before,
.shape-beam > .beam-glow,
.shape-column > .column-glow {
  content: "";
  position: absolute;
  pointer-events: none;
}

.shape {
  position: absolute;
}

.shape-frame {
  inset: 8% 7%;
  border: 1px solid var(--line-soft);
}

.shape-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006)),
    linear-gradient(135deg, rgba(184, 197, 214, 0.05), rgba(184, 197, 214, 0.012));
  border: 1px solid rgba(184, 197, 214, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 44px rgba(0, 0, 0, 0.12);
  opacity: 0.54;
}

.shape-panel-a {
  top: 10%;
  right: 8%;
  width: min(30vw, 360px);
  height: min(40vw, 460px);
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
}

.shape-panel-b {
  left: 6%;
  bottom: 10%;
  width: min(24vw, 300px);
  height: min(18vw, 220px);
  clip-path: polygon(0 0, 86% 0, 100% 24%, 100% 100%, 14% 100%, 0 76%);
}

.shape-beam {
  top: 14%;
  left: 28%;
  width: 1px;
  height: 68%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  box-shadow:
    140px 40px 0 0 rgba(255, 255, 255, 0.12),
    320px -10px 0 0 rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.shape-beam::before,
.shape-column::before,
.shape-column::after {
  content: "";
  position: absolute;
}

.shape-beam::after {
  content: "";
  position: absolute;
  bottom: 18%;
  left: 40px;
  width: 280px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.shape-grid {
  right: 10%;
  bottom: 14%;
  width: min(28vw, 320px);
  height: min(18vw, 180px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(184, 197, 214, 0.036), rgba(184, 197, 214, 0.008));
  background-size: 20px 20px, 20px 20px, auto;
  transform: skewX(-18deg);
  overflow: hidden;
  opacity: 0.46;
}

.shape-grid::before {
  inset: -12%;
  background:
    linear-gradient(90deg, transparent 0%, transparent 44%, rgba(255, 255, 255, 0.03) 48%, rgba(201, 255, 168, 0.14) 50%, rgba(255, 255, 255, 0.03) 52%, transparent 56%, transparent 100%);
  transform: translateX(-140%);
  filter: blur(7px);
  opacity: 0.28;
  animation: grid-sweep 7.5s linear infinite;
}

.shape-column {
  left: 18%;
  top: 18%;
  width: min(14vw, 120px);
  height: min(48vw, 520px);
  border-left: 1px solid rgba(255, 255, 255, 0.11);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.04));
  opacity: 0.78;
  overflow: hidden;
}

.shape-column::after {
  right: -180px;
  bottom: 18%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transform: rotate(45deg);
}

.shape-column::before {
  top: 12%;
  left: 16%;
  width: 68%;
  height: 1px;
  background: rgba(201, 255, 168, 0.22);
  box-shadow:
    0 120px 0 0 rgba(255, 255, 255, 0.13),
    0 240px 0 0 rgba(255, 255, 255, 0.1);
}

.shape-beam .beam-glow,
.shape-column .column-glow {
  inset: 0;
  position: absolute;
  pointer-events: none;
}

.shape-beam .beam-glow {
  left: 0;
  width: 1px;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(201, 255, 168, 0.34), transparent);
  filter: blur(0.8px);
  opacity: 0.7;
  transform: translateY(-150%);
  animation: vertical-sweep 5.5s linear infinite;
}

.shape-column .column-glow {
  left: 0;
  width: 100%;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(201, 255, 168, 0.16), transparent);
  filter: blur(4px);
  opacity: 0.38;
  transform: translateY(-140%);
  animation: vertical-sweep 7.5s linear infinite;
  mask-image: linear-gradient(90deg, transparent 0, black 10%, black 90%, transparent 100%);
}

.wordmark {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.5rem, 14vw, 11rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-indent: 0.24em;
  line-height: 0.9;
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.8s ease forwards;
}

.tagline {
  margin: 0;
  max-width: 32rem;
  color: rgba(245, 241, 232, 0.78);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.8s ease forwards;
  animation-delay: 0.12s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grid-sweep {
  0% {
    transform: translateX(-140%);
  }

  100% {
    transform: translateX(140%);
  }
}

@keyframes vertical-sweep {
  0% {
    transform: translateY(-150%);
  }

  100% {
    transform: translateY(420%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark,
  .tagline,
  .shape-grid::before,
  .shape-beam .beam-glow,
  .shape-column .column-glow {
    animation: none;
    transform: none;
  }
}

@media (max-width: 640px) {
  body {
    padding: 18px;
  }

  body::before {
    inset: 18px;
  }

  body::after {
    width: 120vw;
    height: 90vw;
  }

  .page {
    min-height: calc(100vh - 36px);
  }

  .scene {
    background-size: 42px 42px;
  }

  .shape-frame {
    inset: 10% 4%;
  }

  .shape-panel-a {
    top: 12%;
    right: -14%;
    width: 48vw;
    height: 56vw;
  }

  .shape-panel-b {
    left: -8%;
    bottom: 12%;
    width: 42vw;
    height: 28vw;
  }

  .shape-beam {
    left: 22%;
    height: 62%;
    box-shadow:
      90px 20px 0 0 rgba(255, 255, 255, 0.08),
      180px -10px 0 0 rgba(255, 255, 255, 0.06);
  }

  .shape-beam::after {
    left: 20px;
    width: 160px;
  }

  .shape-grid {
    right: -10%;
    bottom: 18%;
    width: 48vw;
    height: 30vw;
    background-size: 14px 14px, 14px 14px, auto;
  }

  .shape-column {
    left: 8%;
    top: 22%;
    width: 18vw;
    height: 48vw;
  }

  .shape-column::after {
    right: -110px;
    width: 120px;
    height: 120px;
  }

  .wordmark {
    font-size: clamp(2.4rem, 16vw, 4.8rem);
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .tagline {
    max-width: 18rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }
}
