/*! Novus Caria · https://novuscaria.com */
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Mono";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #2a0a6b;
  --text: #f4efff;
  --soft: #c9c0e6;
  --muted: #9d8fd0;
  --accent: #7ddcff;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4vw, 3rem);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #b4e61e;
  color: #1a0540;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--pad);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--mono);
  text-transform: uppercase;
}

.wordmark {
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  font-weight: 400;
}

.tag {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero {
  align-self: center;
  max-width: 42rem;
  padding: clamp(3rem, 10vh, 6rem) 0;
}

.mark {
  display: block;
  width: clamp(112px, 10vw, 136px);
  height: auto;
  aspect-ratio: 1;
  margin-bottom: clamp(2rem, 5vh, 2.75rem);
  overflow: visible;
}

.mark * {
  transform-origin: 60px 60px;
}

.guide {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.75;
  stroke-opacity: 0.18;
  stroke-dasharray: 100;
}

.g2 {
  stroke-opacity: 0.1;
}

.ring {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 100;
  transform: rotate(-90deg);
}

.ring-outer {
  stroke-width: 9;
}

.ring-inner {
  stroke-width: 6;
}

.core,
.satellite {
  fill: #b4e61e;
}

.core {
  fill: #f4efff;
}

.trail {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 14 86;
  transform: rotate(-140.4deg);
}

.mark.is-live {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.layer-guides {
  rotate: var(--angle, 0deg);
}

.layer {
  scale: calc(1 + var(--near, 0) * 0.08);
}

.layer-outer {
  translate: calc(var(--px, 0) * 3px) calc(var(--py, 0) * 3px);
}

.layer-inner {
  translate: calc(var(--px, 0) * 6px) calc(var(--py, 0) * 6px);
}

.layer-core {
  translate: calc(var(--px, 0) * 9px) calc(var(--py, 0) * 9px);
}

.echo {
  display: none;
  position: fixed;
  z-index: 0;
  top: 50%;
  right: -9vw;
  width: min(92vh, 56vw);
  height: auto;
  aspect-ratio: 1;
  margin-top: calc(min(92vh, 56vw) / -2);
  overflow: visible;
  pointer-events: none;
  translate: calc(var(--px, 0) * -16px) calc(var(--py, 0) * -16px);
}

.echo * {
  transform-origin: 400px 400px;
}

.echo-guide {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-opacity: 0.09;
  stroke-dasharray: 100;
}

.e2 {
  stroke-opacity: 0.06;
}

.echo-guide.dashed {
  stroke-dasharray: 0.4 0.8;
  stroke-opacity: 0.12;
}

.echo-ticks {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-opacity: 0.12;
  stroke-dasharray: 0.12 4.0467;
}

.echo-ring {
  fill: none;
  stroke-width: 1.5;
  stroke-opacity: 0.45;
  stroke-dasharray: 100;
  transform: rotate(-90deg);
}

.er2 {
  stroke-opacity: 0.3;
}

@media (min-width: 1100px) {
  .echo {
    display: block;
  }
}

.headline {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 8vw + 1.5rem, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.intro {
  margin: 0 0 2rem;
  max-width: 32rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  color: var(--soft);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.links a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(201, 192, 230, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.links a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.foot {
  font-family: var(--body);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.legal {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.sign::before {
  content: "·";
  margin: 0 0.6em;
}

.sign a {
  color: #d8ccff;
  text-decoration: none;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

.sign a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .tag {
    display: none;
  }

  .legal {
    flex-direction: column;
    gap: 0.4rem;
  }

  .sign::before {
    content: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .guide {
    animation: draw 1s cubic-bezier(0.65, 0, 0.35, 1) both;
  }

  .g2 {
    animation-delay: 0.15s;
  }

  .g3 {
    animation-delay: 0.25s;
    animation-duration: 1.2s;
  }

  .g4 {
    animation-delay: 0.35s;
    animation-duration: 1.2s;
  }

  .ring-outer {
    animation: draw 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.55s both;
  }

  .ring-inner {
    animation: draw-reverse 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.85s both;
  }

  .core {
    animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 1.6s both;
  }

  .spin-cw {
    animation: spin 28s linear 2s infinite;
  }

  .spin-ccw {
    animation: spin 20s linear 2s infinite reverse;
  }

  .orbit {
    animation: fade 0.8s ease 1.9s both, spin 12s linear 1.9s infinite;
  }

  .echo-turn {
    animation: spin 160s linear infinite;
  }

  .echo-guide {
    animation: draw 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.3s both;
  }

  .echo-guide.dashed,
  .echo-ticks {
    animation: fade 2s ease 1s both;
  }

  .er1 {
    animation: draw 2.6s cubic-bezier(0.65, 0, 0.35, 1) 0.9s both;
  }

  .er2 {
    animation: draw-reverse 2.2s cubic-bezier(0.65, 0, 0.35, 1) 1.2s both;
  }

  .headline,
  .intro,
  .links {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .headline {
    animation-delay: 0.35s;
  }

  .intro {
    animation-delay: 0.5s;
  }

  .links {
    animation-delay: 0.65s;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 100;
  }
}

@keyframes draw-reverse {
  from {
    stroke-dashoffset: -100;
  }
}

@keyframes pop {
  from {
    transform: scale(0);
  }
}

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

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
