:root {
  color-scheme: dark;
  --background: #05070d;
  --foreground: #f4f5fb;
  --muted: #9ca4b9;
  --cyan: #76e6ff;
  --violet: #8d8aff;
  --magenta: #d682ff;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--foreground);
  background:
    radial-gradient(circle at 50% 44%, rgba(29, 34, 58, 0.46), transparent 34rem),
    var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
}

.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.stage::before {
  position: absolute;
  z-index: -4;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.018) 50%, transparent 80%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 28%);
  content: "";
}

.stage::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  box-shadow: inset 0 0 14rem rgba(0, 0, 0, 0.82);
  content: "";
  pointer-events: none;
}

.stage__grid {
  position: absolute;
  z-index: -3;
  inset: -16%;
  background-image:
    linear-gradient(rgba(153, 164, 198, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 164, 198, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, #000 0, transparent 68%);
  transform: perspective(720px) rotateX(68deg) translateY(31%);
  transform-origin: center 72%;
}

.stage__glow {
  position: absolute;
  z-index: -2;
  width: min(70vw, 58rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.17;
  will-change: transform;
}

.stage__glow--violet {
  top: -38%;
  left: -18%;
  background: var(--violet);
  animation: drift-violet 18s ease-in-out infinite alternate;
}

.stage__glow--blue {
  right: -24%;
  bottom: -44%;
  background: var(--cyan);
  animation: drift-blue 22s ease-in-out infinite alternate;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 72rem);
  place-items: center;
  text-align: center;
  animation: hero-entrance 1.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero::before {
  position: absolute;
  z-index: -1;
  width: min(82vw, 50rem);
  height: min(42vw, 22rem);
  border: 1px solid rgba(141, 138, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 7rem rgba(118, 230, 255, 0.08),
    inset 0 0 7rem rgba(214, 130, 255, 0.035);
  content: "";
  transform: rotate(-8deg);
}

.signal {
  width: clamp(12rem, 24vw, 18rem);
  margin: 0 0 clamp(1.1rem, 2.6vh, 2rem);
  overflow: visible;
  filter: drop-shadow(0 0 1.75rem rgba(118, 230, 255, 0.18));
}

.signal path {
  fill: none;
  stroke: url("#signal-gradient");
  stroke-linecap: round;
}

.signal__echo {
  transform-origin: center;
}

.signal__echo--outer {
  stroke-width: 1.2;
  opacity: 0.16;
  animation: signal-breathe 4.8s ease-in-out infinite;
}

.signal__echo--inner {
  stroke-width: 1.5;
  opacity: 0.35;
  animation: signal-breathe 4.8s 0.4s ease-in-out infinite;
}

.signal__core {
  stroke-width: 2.8;
  stroke-dasharray: 9 8;
  animation: signal-flow 9s linear infinite;
}

.signal__node {
  fill: #f7f8ff;
  filter: drop-shadow(0 0 8px var(--cyan));
  animation: node-pulse 2.4s ease-in-out infinite;
}

.brand {
  display: grid;
  margin: 0;
  justify-items: center;
  line-height: 0.86;
}

.brand__name {
  color: var(--foreground);
  font-size: clamp(4rem, 10vw, 8.6rem);
  font-weight: 730;
  letter-spacing: -0.075em;
  text-shadow: 0 0 3rem rgba(255, 255, 255, 0.08);
}

.brand__studio {
  margin-top: clamp(1.2rem, 3.2vh, 2.15rem);
  margin-right: -0.5em;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), #b7bcff 48%, var(--magenta));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(1rem, 2.1vw, 1.55rem);
  font-weight: 650;
  letter-spacing: 0.5em;
}

.opening {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: clamp(2.2rem, 5vh, 3.8rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.15vw, 0.98rem);
  font-weight: 450;
  letter-spacing: 0.16em;
  text-transform: lowercase;
}

.opening span {
  color: rgba(156, 164, 185, 0.42);
}

@keyframes hero-entrance {
  from {
    opacity: 0;
    transform: translateY(1.25rem) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift-violet {
  to {
    transform: translate(14vw, 11vh) scale(1.08);
  }
}

@keyframes drift-blue {
  to {
    transform: translate(-12vw, -9vh) scale(0.92);
  }
}

@keyframes signal-breathe {
  0%,
  100% {
    opacity: 0.16;
    transform: scaleX(0.98);
  }

  50% {
    opacity: 0.46;
    transform: scaleX(1.02);
  }
}

@keyframes signal-flow {
  to {
    stroke-dashoffset: -102;
  }
}

@keyframes node-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.78);
    transform-origin: 160px 63px;
  }

  50% {
    opacity: 1;
    transform: scale(1.22);
    transform-origin: 160px 63px;
  }
}

@media (max-width: 560px) {
  .stage {
    padding: 1.5rem;
  }

  .stage__grid {
    background-size: 48px 48px;
  }

  .hero::before {
    width: 94vw;
    height: 54vw;
  }

  .signal {
    width: 11.5rem;
    margin-bottom: 1rem;
  }

  .brand__name {
    font-size: clamp(3.55rem, 18vw, 5rem);
    letter-spacing: -0.082em;
  }

  .brand__studio {
    margin-top: 1.25rem;
    margin-right: -0.36em;
    font-size: 0.9rem;
    letter-spacing: 0.36em;
  }

  .opening {
    gap: 0.58rem;
    margin-top: 2.5rem;
    font-size: 0.76rem;
    letter-spacing: 0.11em;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .stage {
    padding-block: 1.25rem;
  }

  .signal {
    width: 8.5rem;
    margin-bottom: 0.35rem;
  }

  .brand__name {
    font-size: clamp(3rem, 13vh, 5.5rem);
  }

  .brand__studio {
    margin-top: 0.85rem;
  }

  .opening {
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
