:root {
  --black: #020105;
  --violet: #b982ff;
  --violet-soft: #efd9ff;
  --blue: #1c4f7d;
  --mist: rgba(246, 240, 255, 0.86);
  --muted: rgba(228, 215, 255, 0.56);
  --faint: rgba(228, 215, 255, 0.32);
  --line: rgba(218, 190, 255, 0.2);
  --mx: 50%;
  --my: 50%;
  --depth-x: 0;
  --depth-y: 0;
  --motion: 1;
  font-family:
    "Avenir Next", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--mist);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(178, 114, 255, 0.17), transparent 24rem),
    radial-gradient(circle at 76% 18%, rgba(62, 139, 207, 0.13), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(89, 34, 140, 0.2), transparent 34rem),
    linear-gradient(180deg, #000 0%, #04030a 48%, #02030a 100%);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: #000;
  pointer-events: none;
}

.loader__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(154, 89, 218, 0.2), transparent 19rem),
    #000;
}

.loader__mark {
  position: relative;
  color: rgba(246, 232, 255, 0.76);
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0;
}

.loader__line {
  position: absolute;
  top: calc(50% + 3.4rem);
  width: 13rem;
  max-width: 40vw;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.loader__line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--violet-soft), transparent);
  animation: loading-line 2.2s ease-in-out infinite;
}

.portal {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  padding: 1.5rem;
  overflow: hidden;
}

.portal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: radial-gradient(circle at 50% 48%, black 0 24%, transparent 72%);
  opacity: 0.2;
}

.atmosphere,
.particle-field,
.grain,
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.atmosphere {
  z-index: -2;
  overflow: hidden;
}

.particle-field {
  z-index: -1;
  opacity: 0.68;
}

.aurora {
  position: absolute;
  width: 68rem;
  max-width: 92vw;
  height: 20rem;
  filter: blur(74px);
  opacity: 0.35;
  mix-blend-mode: screen;
  transform-origin: 50% 50%;
}

.aurora--violet {
  top: 8%;
  left: 50%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196, 137, 255, 0.38), transparent 48%),
    radial-gradient(ellipse at 76% 44%, rgba(93, 38, 158, 0.32), transparent 56%);
  animation: aurora-drift calc(34s / var(--motion)) ease-in-out infinite alternate;
}

.aurora--blue {
  right: -18rem;
  bottom: 3rem;
  background:
    radial-gradient(ellipse at 28% 45%, rgba(97, 176, 255, 0.18), transparent 48%),
    radial-gradient(ellipse at 58% 70%, rgba(118, 71, 190, 0.24), transparent 56%);
  animation: aurora-breathe calc(42s / var(--motion)) ease-in-out infinite alternate;
}

.portal-light {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 42rem;
  max-width: 72vw;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 2%, transparent 8%),
    radial-gradient(circle, rgba(184, 124, 255, 0.18) 0 18%, transparent 46%),
    conic-gradient(from 120deg, transparent, rgba(134, 74, 222, 0.32), transparent, rgba(48, 127, 187, 0.18), transparent);
  filter: blur(18px);
  opacity: 0.42;
  animation: portal-pulse calc(10s / var(--motion)) ease-in-out infinite;
}

.lens {
  position: absolute;
  height: 1px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(223, 202, 255, 0.58), transparent);
  box-shadow: 0 0 34px rgba(176, 120, 255, 0.32);
  opacity: 0.24;
}

.lens--one {
  top: 35%;
  left: 12%;
  width: 28rem;
  animation: lens-float calc(17s / var(--motion)) ease-in-out infinite alternate;
}

.lens--two {
  right: 10%;
  bottom: 28%;
  width: 18rem;
  opacity: 0.14;
  animation: lens-float calc(21s / var(--motion)) ease-in-out infinite alternate-reverse;
}

.fog {
  position: absolute;
  width: 58rem;
  height: 16rem;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.12;
  background: linear-gradient(90deg, transparent, rgba(238, 231, 255, 0.24), transparent);
}

.fog--one {
  left: -12rem;
  bottom: 7rem;
  animation: fog-drift calc(46s / var(--motion)) linear infinite;
}

.fog--two {
  right: -16rem;
  top: 11rem;
  animation: fog-drift calc(58s / var(--motion)) linear infinite reverse;
}

.glass-arc {
  position: absolute;
  top: 44%;
  width: 13rem;
  height: 28rem;
  border: 1px solid rgba(224, 206, 255, 0.12);
  filter: drop-shadow(0 0 26px rgba(139, 87, 255, 0.12));
  opacity: 0.42;
}

.glass-arc--left {
  left: 7vw;
  border-right: 0;
  border-radius: 100% 0 0 100% / 50% 0 0 50%;
  transform: translateY(-50%);
}

.glass-arc--right {
  right: 7vw;
  border-left: 0;
  border-radius: 0 100% 100% 0 / 0 50% 50% 0;
  transform: translateY(-50%);
}

.experience {
  position: relative;
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  width: min(100%, 58rem);
  padding-top: 0.4rem;
  text-align: center;
}

.identity-field {
  width: min(32rem, 58svh, 88vw);
  transform: translate3d(calc(var(--depth-x) * -10px), calc(var(--depth-y) * -8px), 0);
  transition: transform 500ms ease;
}

.identity-lockup {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
}

.identity-lockup::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 157, 255, 0.26), transparent 58%);
  filter: blur(34px);
  opacity: 0.72;
}

.brand-mark {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  opacity: 1;
  filter:
    drop-shadow(0 0 24px rgba(194, 126, 255, 0.22))
    drop-shadow(0 0 90px rgba(72, 28, 133, 0.34));
  mix-blend-mode: normal;
  mask-image: radial-gradient(circle at 50% 50%, black 0 56%, rgba(0, 0, 0, 0.72) 72%, transparent 95%);
}

.identity-lockup.is-distorting .brand-mark {
  filter:
    drop-shadow(0 0 28px rgba(221, 178, 255, 0.28))
    drop-shadow(0 0 100px rgba(72, 28, 133, 0.38));
}

.statement {
  display: grid;
  gap: 0.25rem;
  width: min(100%, 38rem);
  margin: -2.2rem auto 0;
  color: rgba(246, 240, 255, 0.9);
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-size: 1.34rem;
  font-weight: 400;
  line-height: 1.28;
}

.statement__line {
  margin: 0;
}

.statement.is-distorting .statement__line {
  text-shadow:
    0 0 14px rgba(191, 132, 255, 0.22),
    0 0 1px rgba(110, 184, 255, 0.18);
}

.arrival {
  display: grid;
  justify-items: center;
  gap: 0.42rem;
  width: min(100%, 28rem);
  margin-top: 1.25rem;
}

.status {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-height: 2.2rem;
  margin: 0 0 0.12rem;
  padding: 0.24rem 1.1rem;
  color: rgba(250, 246, 255, 0.94);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status::before,
.status::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 197, 255, 0.5));
}

.status::before {
  right: 100%;
}

.status::after {
  left: 100%;
  transform: rotate(180deg);
}

.supporting,
.secondary {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.secondary {
  color: rgba(199, 222, 255, 0.48);
}

.subscribe {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  width: min(100%, 28rem);
  min-height: 3.1rem;
  margin: 0.6rem auto 0;
  padding: 0.32rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(2, 1, 7, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 70px rgba(39, 13, 77, 0.28);
  backdrop-filter: blur(20px);
}

.subscribe::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(209, 182, 255, 0.24), transparent);
  opacity: 0;
  transition: opacity 400ms ease;
}

.subscribe:focus-within::before {
  opacity: 1;
}

.subscribe.is-acknowledged {
  border-color: rgba(185, 139, 255, 0.48);
}

.subscribe input {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 1rem;
  color: #fff;
  background: transparent;
  font-size: 0.9rem;
}

.subscribe input::placeholder {
  color: rgba(232, 224, 255, 0.42);
}

.magnetic {
  position: relative;
  z-index: 1;
  min-height: 2.45rem;
  padding: 0 1.05rem;
  overflow: hidden;
  border-radius: 999px;
  color: #fbf9ff;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(135deg, rgba(168, 103, 255, 0.86), rgba(77, 48, 149, 0.84) 54%, rgba(36, 91, 133, 0.76));
  box-shadow:
    0 0 28px rgba(156, 101, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.magnetic span {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.magnetic::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transition: transform 700ms ease;
}

.magnetic:hover::after,
.magnetic:focus-visible::after {
  transform: translateX(130%);
}

.magnetic:focus-visible,
.social-link:focus-visible {
  outline: 2px solid rgba(222, 201, 255, 0.84);
  outline-offset: 4px;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.62rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 1.85rem;
  aspect-ratio: 1;
  border: 1px solid rgba(219, 198, 255, 0.16);
  border-radius: 50%;
  color: rgba(232, 224, 255, 0.52);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 300ms ease,
    color 300ms ease,
    transform 300ms ease,
    background 300ms ease;
}

.social-link:hover {
  border-color: rgba(207, 181, 255, 0.48);
  color: #fff;
  background: rgba(168, 109, 255, 0.1);
  transform: translateY(-2px);
}

.final-line {
  margin: 0;
  color: rgba(232, 224, 255, 0.4);
  font-size: 0.74rem;
  letter-spacing: 0;
}

.cursor-glow {
  z-index: 10;
  width: 17rem;
  height: 17rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 112, 255, 0.22), rgba(87, 176, 255, 0.07) 34%, transparent 70%);
  filter: blur(18px);
  opacity: 0;
  mix-blend-mode: screen;
}

.grain {
  z-index: 12;
  opacity: 0.1;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  animation: grain-shift 900ms steps(2) infinite;
}

@keyframes loading-line {
  0%,
  18% {
    transform: translateX(-100%);
  }
  78%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes aurora-drift {
  from {
    transform: translate3d(-50%, -6%, 0) rotate(-8deg) scale(0.96);
  }
  to {
    transform: translate3d(-48%, 5%, 0) rotate(6deg) scale(1.08);
  }
}

@keyframes aurora-breathe {
  from {
    transform: translate3d(0, 0, 0) rotate(12deg) scale(0.95);
  }
  to {
    transform: translate3d(-8%, -8%, 0) rotate(-4deg) scale(1.12);
  }
}

@keyframes portal-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.94);
  }
  50% {
    opacity: 0.52;
    transform: translate(-50%, -50%) rotate(10deg) scale(1.02);
  }
}

@keyframes lens-float {
  from {
    transform: translate3d(-4%, -10%, 0);
  }
  to {
    transform: translate3d(6%, 12%, 0);
  }
}

@keyframes fog-drift {
  from {
    transform: translate3d(-10%, 0, 0) rotate(2deg);
  }
  to {
    transform: translate3d(32%, -16%, 0) rotate(-3deg);
  }
}

@keyframes grain-shift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-3%, 2%);
  }
}

@media (min-width: 900px) and (min-height: 760px) {
  .identity-field {
    width: min(36rem, 58svh, 86vw);
  }

  .statement {
    font-size: 1.5rem;
  }
}

@media (max-width: 720px) {
  .portal {
    padding: 1rem;
  }

  .experience {
    align-self: center;
  }

  .identity-field {
    width: min(25rem, 52svh, 94vw);
  }

  .statement {
    width: min(100%, 22rem);
    margin-top: -1.25rem;
    font-size: 1.08rem;
    line-height: 1.3;
  }

  .arrival {
    margin-top: 0.9rem;
    gap: 0.35rem;
  }

  .status::before,
  .status::after {
    width: 2.1rem;
  }

  .subscribe {
    grid-template-columns: 1fr;
    width: min(100%, 21rem);
    border-radius: 1.45rem;
    padding: 0.42rem;
  }

  .subscribe input {
    min-height: 2.6rem;
    text-align: center;
  }

  .glass-arc {
    opacity: 0.22;
  }
}

@media (max-height: 720px) and (min-width: 721px) {
  .portal {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .identity-field {
    width: min(28rem, 52svh, 78vw);
  }

  .statement {
    margin-top: -1.8rem;
    font-size: 1.12rem;
    line-height: 1.22;
  }

  .arrival {
    margin-top: 0.8rem;
    gap: 0.28rem;
  }

  .subscribe {
    margin-top: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion: 0.001;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .loader {
    display: none;
  }

  .cursor-glow {
    display: none;
  }
}
