:root {
  color-scheme: dark;
  --ink: #f7f4fb;
  --muted: #aaa5b1;
  --purple: #a33cff;
  --violet: #5d16e7;
  --black: #050507;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-color: var(--purple) #09090c;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #09090c;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #09090c;
  border-radius: 999px;
  background: linear-gradient(180deg, #c05cff, #6819df);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d58aff, #8730ef);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 47%, rgba(112, 25, 234, 0.16), transparent 31rem),
    var(--black);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-loading {
  overflow: hidden;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  background: #030304;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(.65,0,.35,1), visibility 0.65s;
}

.loader::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(142, 37, 255, 0.12), transparent 28rem);
  content: "";
}

.loader-mark,
.loader p,
.loader-line {
  position: relative;
  z-index: 1;
}

.loader-mark {
  width: clamp(4.5rem, 10vw, 6.5rem);
  aspect-ratio: 1;
  filter: drop-shadow(0 0 1.25rem rgba(139, 35, 255, 0.4));
  animation: loader-float 1.5s ease-in-out infinite;
}

.loader-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loader p {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.loader-line {
  width: 8rem;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.loader-line span {
  display: block;
  width: 60%;
  height: 100%;
  background: var(--purple);
  box-shadow: 0 0 1rem var(--purple);
  animation: loader-line 1.1s cubic-bezier(.65,0,.35,1) infinite;
}

body.is-ready .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: -50%;
  z-index: 4;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: grain 0.3s steps(2) infinite;
}

.spotlight {
  position: fixed;
  width: min(34rem, 80vw);
  aspect-ratio: 1;
  left: var(--x, 72%);
  top: var(--y, 45%);
  border-radius: 50%;
  background: rgba(116, 28, 255, 0.10);
  filter: blur(90px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 4.1rem;
  padding: 1.25rem max(clamp(1.25rem, 4vw, 4.5rem), env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-100%);
}

body.is-ready .site-header {
  animation: slide-down 0.8s 0.08s cubic-bezier(.2,.8,.2,1) forwards;
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 1rem rgba(156, 57, 255, 0.9);
}

main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: calc(100vh - 4.1rem);
  min-height: calc(100svh - 4.1rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  padding: clamp(3rem, 8vh, 7rem) max(clamp(1.25rem, 4vw, 4.5rem), env(safe-area-inset-left));
}

.copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: clamp(0.875rem, 1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  opacity: 0;
}

body.is-ready .eyebrow {
  animation: reveal 0.8s 0.28s both;
}

h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(5rem, 13vw, 12rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.74;
  text-transform: uppercase;
}

h1 > span {
  display: block;
  opacity: 0;
}

body.is-ready h1 > span {
  animation: title-in 1.05s cubic-bezier(.16,1,.3,1) both;
}

body.is-ready h1 > span:first-child {
  animation-delay: 0.12s;
}

h1 .outline {
  width: max-content;
  max-width: 100%;
  padding-right: 0.06em;
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.13vw, 2px) rgba(245, 242, 250, 0.92);
}

body.is-ready h1 .outline {
  animation-delay: 0.22s;
}

.period {
  color: var(--purple);
  -webkit-text-stroke: 0;
  letter-spacing: -0.16em;
  text-shadow: 0 0 2rem rgba(156, 57, 255, 0.8);
}

.rule {
  width: min(30rem, 82%);
  height: 1px;
  margin-top: 3rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.rule span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--purple);
  box-shadow: 0 0 1rem var(--purple);
  animation: run-line 4s 1s ease-in-out infinite;
}

.mark {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  width: min(100%, 34rem);
  aspect-ratio: 1;
  margin-inline: auto;
  opacity: 0;
}

body.is-ready .mark {
  animation: reveal 1s 0.42s both;
}

.logo-wrap {
  width: 82%;
  aspect-ratio: 1;
  filter: drop-shadow(0 0 2rem rgba(111, 25, 239, 0.3));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
}

.logo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: logo-breathe 6s ease-in-out infinite;
}

.orbit {
  position: absolute;
  z-index: -1;
  width: 88%;
  aspect-ratio: 1;
  border: 1px solid rgba(188, 114, 255, 0.28);
  border-radius: 50%;
}

.orbit::before {
  position: absolute;
  top: -0.3rem;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 1rem var(--purple);
  content: "";
}

.orbit-one { animation: orbit 11s linear infinite; }
.orbit-two {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.07);
  animation: orbit 18s linear infinite reverse;
}

.index {
  position: absolute;
  right: 1%;
  bottom: 13%;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.quote {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  padding: 1.25rem max(clamp(1.25rem, 4vw, 4.5rem), env(safe-area-inset-left)) max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
}

body.is-ready .quote {
  animation: reveal 0.9s 0.72s both;
}

blockquote {
  max-width: 44rem;
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

cite {
  color: var(--muted);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes loader-float {
  50% { transform: translateY(-0.35rem) scale(1.025); }
}

@keyframes loader-line {
  from { transform: translateX(-110%); }
  to { transform: translateX(180%); }
}

@keyframes title-in {
  from { opacity: 0; transform: translateY(0.55em) skewY(3deg); }
  to { opacity: 1; transform: translateY(0) skewY(0); }
}

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

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes run-line {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(260%); }
}

@keyframes orbit { to { transform: rotate(360deg); } }

@keyframes logo-breathe {
  50% { transform: scale(1.025); filter: saturate(1.12); }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2%, -3%); }
  50% { transform: translate(-3%, 2%); }
  75% { transform: translate(3%, 4%); }
  100% { transform: translate(-2%, -2%); }
}

@media (max-width: 800px) {
  .spotlight {
    left: 50%;
    top: 68%;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: clamp(3.5rem, 9vw, 5rem);
    padding-top: clamp(3.5rem, 10vw, 5rem);
    padding-bottom: clamp(3.5rem, 10vw, 5rem);
  }

  h1 {
    width: 100%;
    font-size: clamp(4.45rem, 23vw, 8rem);
  }

  .mark {
    width: min(82vw, 24rem);
  }

  .quote {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

@media (max-width: 440px) {
  .site-header {
    min-height: 3.75rem;
    padding-block: 1rem;
  }

  main {
    min-height: calc(100svh - 3.75rem);
  }

  .hero {
    gap: 3rem;
  }

  .eyebrow {
    max-width: 18rem;
    margin-bottom: 1.4rem;
    letter-spacing: 0.14em;
  }

  .rule {
    width: 72%;
    margin-top: 2.4rem;
  }

  .mark {
    width: min(78vw, 21rem);
  }

  .quote {
    padding-top: 1.5rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(12rem, 0.6fr);
    padding-block: 2rem;
  }

  h1 { font-size: clamp(4rem, 14vw, 7rem); }
  .mark { width: min(36vw, 18rem); }
}

@media (hover: none), (pointer: coarse) {
  .logo-wrap {
    transform: none !important;
  }

  .noise {
    animation: none;
  }
}

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