/* Antimatter Labs · one universe, dark only */

:root {
  color-scheme: dark;
  --bg: #030308;
  --ink: #eef0f7;
  --ink-2: #b4b9cb;
  --dim: #7d8297;
  --faint: #4b4f63;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(12, 14, 26, 0.5);
  --ice: #a9d4ff;
  --ice-2: #7eb3ff;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(20px, 4.4vw, 72px);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}
html.anti {
  --ice: #c8b4ff;
  --ice-2: #a98bff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection {
  background: rgba(169, 212, 255, 0.25);
  color: #fff;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 1.5px solid var(--ice);
  outline-offset: 4px;
  border-radius: 8px;
}
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}
.mono {
  font-family: var(--mono);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 13px;
}
.skip-link:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- stage */

#universe,
.fallback-sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.fallback-sky {
  display: none;
  background:
    radial-gradient(circle at 70% 48%, #000 0 7vmin, rgba(220, 235, 255, 0.9) 7.3vmin, rgba(169, 212, 255, 0.25) 9vmin, transparent 20vmin),
    radial-gradient(ellipse at 20% 80%, rgba(120, 130, 200, 0.08), transparent 50%),
    var(--bg);
}
.no-gl #universe {
  display: none;
}
.no-gl .fallback-sky {
  display: block;
}
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  pointer-events: none;
}
main {
  position: relative;
  z-index: 2;
}

/* ---------------------------------------------------------------- cursor */

.cursor {
  display: none;
}
.has-cursor:not(:has(dialog:modal)),
.has-cursor:not(:has(dialog:modal)) * {
  cursor: none !important;
}
.has-cursor:not(:has(dialog:modal)) .cursor {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
}
.cursor__dot,
.cursor__ring,
.cursor__label {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}
.cursor__dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #fff;
  transform: translate3d(var(--x), var(--y), 0);
}
.cursor__ring {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate3d(var(--rx), var(--ry), 0);
  transition: width 0.45s var(--out), height 0.45s var(--out), margin 0.45s var(--out), border-color 0.3s, background 0.3s;
}
.cursor__label {
  transform: translate3d(calc(var(--rx) + 24px), calc(var(--ry) + 10px), 0);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  opacity: 0;
  transition: opacity 0.25s;
}
.cursor.is-link .cursor__ring {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
}
.cursor.is-link .cursor__label,
.cursor.is-hole .cursor__label {
  opacity: 1;
}
.cursor.is-hole .cursor__ring {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-color: rgba(169, 212, 255, 0.6);
}

/* ---------------------------------------------------------------- header */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 16px;
  pointer-events: none;
}
.top > * {
  pointer-events: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  text-decoration: none;
}
.brand__mark {
  width: 30px;
  height: 30px;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(169, 212, 255, 0.35));
  transition: filter 0.4s;
}
.brand:hover .brand__mark {
  filter: drop-shadow(0 0 14px rgba(169, 212, 255, 0.7));
}
.brand__word {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand.knock .brand__mark {
  animation: knock 0.3s var(--spring);
}
@keyframes knock {
  40% {
    transform: scale(0.84);
  }
}
.brand.broken .brand__mark {
  animation: broken 2.4s var(--out);
}
@keyframes broken {
  6% {
    transform: scale(1.4);
    opacity: 0;
    filter: blur(4px);
  }
  70% {
    transform: scale(0.3);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
.nav {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.nav a {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 450;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s, background 0.3s;
}
.nav a:hover {
  color: var(--ink);
}
.nav a.is-on {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.075);
}
.actions {
  display: flex;
  gap: 6px;
  justify-self: end;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  transition: color 0.3s, border-color 0.3s, transform 0.4s var(--spring);
}
.chip:hover {
  color: var(--ink);
  border-color: var(--line-2);
}
.chip--icon {
  width: 36px;
  padding: 0;
  justify-content: center;
}
.chip__ring svg {
  display: block;
  width: 16px;
  height: 16px;
  rotate: -90deg;
}
.chip__ring circle {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 2;
}
.chip__ring .chip__prog {
  stroke: var(--ice);
  stroke-dasharray: 50.27;
  stroke-dashoffset: calc(50.27 - 50.27 * var(--found, 0));
  stroke-linecap: round;
  transition: stroke-dashoffset 1s var(--out);
}
.chip.bump {
  animation: bump 0.6s var(--spring);
}
@keyframes bump {
  35% {
    transform: scale(1.14);
  }
}
.eq {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}
.eq i {
  width: 2px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.sound-on .eq i {
  background: var(--ice);
  animation: eq 0.85s ease-in-out infinite alternate;
}
.sound-on .eq i:nth-child(2) {
  animation-delay: -0.3s;
}
.sound-on .eq i:nth-child(3) {
  animation-delay: -0.6s;
}
.sound-on .eq i:nth-child(4) {
  animation-delay: -0.15s;
}
@keyframes eq {
  to {
    height: 12px;
  }
}

/* ---------------------------------------------------------------- type + reveal */

.kicker {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--dim);
}
h1,
h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.042em;
  line-height: 1;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
h2 {
  font-size: clamp(2.3rem, 5.2vw, 5rem);
}
h1 em,
h2 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffffff 10%, var(--ice) 55%, #dfe9ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub {
  max-width: 46ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
  color: var(--ink-2);
}
.reveal-lines .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.reveal-lines .ln > span {
  display: inline-block;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.25s var(--out);
}
.reveal-lines.in .ln > span {
  transform: none;
}
.reveal-lines .ln:nth-child(2) > span {
  transition-delay: 0.08s;
}
.reveal-lines .ln:nth-child(3) > span {
  transition-delay: 0.16s;
}
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 1.1s var(--out), transform 1.1s var(--out);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.5s var(--spring), box-shadow 0.5s var(--out), background 0.3s;
}
.btn i {
  font-style: normal;
  transition: transform 0.5s var(--out);
}
.btn:hover i {
  transform: translateY(2px);
}
.btn--light {
  color: #05060c;
  background: #f4f6fb;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 8px 30px -10px rgba(169, 212, 255, 0.5);
}
.btn--light:hover {
  background: #fff;
  box-shadow: 0 0 0 1px #fff, 0 12px 44px -8px rgba(169, 212, 255, 0.75);
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 110px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.hero__copy {
  max-width: min(50vw, 820px);
}
h1 {
  font-size: clamp(2.7rem, 5.9vw, 6.6rem);
}
.hero__lede {
  max-width: 36ch;
  margin: 30px 0 0;
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  transition-delay: 0.3s;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
  transition-delay: 0.42s;
}
.hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--dim);
}
.hint__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ice);
}
.hint__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--ice);
  border-radius: 50%;
  animation: ping 2.2s var(--out) infinite;
}
@keyframes ping {
  from {
    transform: scale(0.4);
    opacity: 1;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
}
.scroll-cue i {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--ink-2);
  animation: wheel 2s var(--out) infinite;
}
@keyframes wheel {
  0% {
    opacity: 0;
    transform: translateY(-2px);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

.charge {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4;
  width: var(--size, 200px);
  height: var(--size, 200px);
  margin: calc(var(--size, 200px) / -2) 0 0 calc(var(--size, 200px) / -2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.charge.on {
  opacity: 1;
}
.charge svg {
  width: 100%;
  height: 100%;
  rotate: -90deg;
  overflow: visible;
}
.charge circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 301.6;
  stroke-dashoffset: calc(301.6 - 301.6 * var(--p, 0));
  vector-effect: non-scaling-stroke;
}

/* ---------------------------------------------------------------- manifesto */

.manifesto {
  position: relative;
  height: 240vh;
}
.manifesto__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px var(--gutter) 60px;
}
.manifesto__lead {
  max-width: 23ch;
  margin: 0;
  font-size: clamp(1.9rem, min(3.6vw, 6.2vh), 3.7rem);
  font-weight: 450;
  line-height: 1.14;
  letter-spacing: -0.038em;
  text-wrap: pretty;
}
.w {
  color: rgba(238, 240, 247, 0.16);
  transition: color 0.7s var(--out);
}
.w.lit {
  color: var(--ink);
}
.w--em {
  font-style: normal;
}
.w--em.lit {
  color: var(--ice);
}
.manifesto__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 30ch));
  gap: 28px 56px;
  margin-top: clamp(32px, 6vh, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 70ch;
}
.manifesto__body p {
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--out), transform 1s var(--out);
}
.manifesto__body p:nth-child(2) {
  transition-delay: 0.12s;
}
.manifesto__body.on p {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- worlds */

.worlds {
  position: relative;
  padding: 18vh var(--gutter) 14vh;
}
.world-list {
  max-width: 1240px;
  margin: 8vh auto 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.world-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(210px, 1fr) 1.6fr 110px 28px;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 30px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  overflow: hidden;
  transition: background 0.6s var(--out);
}
.world-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  transform: scaleX(0);
  transition: transform 0.9s var(--out);
}
.world-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 120px at var(--hx, 30%) 100%, color-mix(in oklab, var(--c) 10%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s var(--out);
}
.world-row:hover::after,
.world-row:focus-visible::after {
  transform: scaleX(1);
}
.world-row:hover::before,
.world-row:focus-visible::before {
  opacity: 1;
}
.world-row > * {
  position: relative;
}
.world-row__no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  transition: color 0.4s;
}
.world-row__name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  transition: transform 0.7s var(--out);
}
.world-row__name i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--dim);
}
.world-row__tag {
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.world-row__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
}
.world-row__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}
.is-live .world-row__dot {
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse {
  50% {
    opacity: 0.35;
  }
}
.is-forming .world-row__dot {
  background: none;
  border: 1px dashed var(--dim);
  box-shadow: none;
}
.is-forming .world-row__name {
  color: var(--ink-2);
}
.world-row__arrow {
  justify-self: end;
  color: var(--faint);
  transition: transform 0.7s var(--out), color 0.4s;
}
.world-row:hover .world-row__no {
  color: var(--ink-2);
}
.world-row:hover .world-row__name {
  transform: translateX(6px);
}
.world-row:hover .world-row__arrow {
  color: var(--ink);
  transform: translate(3px, -3px);
}
.world-row.is-dodging .world-row__name {
  animation: shy 0.7s var(--spring);
}
@keyframes shy {
  30% {
    opacity: 0.2;
    transform: translateX(14px);
  }
}

/* ---------------------------------------------------------------- laws */

.laws {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18vh var(--gutter) 16vh;
}
.laws__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 64px;
  perspective: 1200px;
}
.law {
  position: relative;
  min-height: 300px;
  padding: 26px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 60%), rgba(8, 10, 20, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.9s var(--out), border-color 0.4s, opacity 1.1s var(--out);
  overflow: hidden;
}
.law.is-hot {
  border-color: var(--line-2);
  transition: transform 0.2s ease-out, border-color 0.4s, opacity 1.1s var(--out);
}
.laws__grid .law:nth-child(2) {
  transition-delay: 0.06s;
}
.laws__grid .law:nth-child(3) {
  transition-delay: 0.12s;
}
.laws__grid .law:nth-child(4) {
  transition-delay: 0.18s;
}
.laws__grid .law.is-hot {
  transition-delay: 0s;
}
.law__no {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.law__eq {
  margin: 70px 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ice);
}
.law h3 {
  margin: 0 0 10px;
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.law p:not(.law__eq) {
  margin: 0;
  font-size: 0.97rem;
  color: var(--ink-2);
}
.law__sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 45%),
    linear-gradient(115deg, transparent 30%, rgba(169, 212, 255, 0.07) 45%, rgba(196, 186, 255, 0.06) 55%, transparent 70%);
  background-size: 100% 100%, 240% 240%;
  background-position: center, var(--mx, 50%) var(--my, 50%);
  opacity: 0;
  transition: opacity 0.5s;
}
.is-hot > .law__sheen {
  opacity: 1;
}

/* ---------------------------------------------------------------- void */

.void {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10vh var(--gutter) 16vh;
  text-align: center;
}
.void__core {
  width: 100%;
  height: clamp(280px, 48vh, 540px);
}
.void__inner {
  max-width: 640px;
}
.void .sub {
  margin-left: auto;
  margin-right: auto;
}
.void__form {
  display: flex;
  gap: 6px;
  max-width: 520px;
  margin: 36px auto 0;
  padding: 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(10, 12, 22, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.4s, box-shadow 0.5s var(--out);
}
.void__form:focus-within {
  border-color: rgba(169, 212, 255, 0.45);
  box-shadow: 0 0 60px -18px rgba(169, 212, 255, 0.6);
}
.void__form input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 400 16px var(--sans);
  outline: none;
}
.void__form input::placeholder {
  color: var(--faint);
}
.void__reply {
  min-height: 1.6em;
  margin: 24px 0 0;
  font-size: 1.05rem;
  color: var(--ice);
  animation: fadeUp 1.2s var(--out);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------------------------------------------------------------- footer */

.footer {
  position: relative;
  z-index: 2;
  padding: 10vh var(--gutter) max(36px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(3, 3, 8, 0.85) 30%);
  transform: translateY(calc(var(--edge, 0) * -24px));
  transition: transform 0.4s var(--out);
}
.wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  -webkit-user-select: none;
  user-select: none;
}
.wordmark text {
  font-family: var(--sans);
  font-size: 150px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.wm-outline {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1;
}
.wm-fill {
  fill: url(#wm-grad);
}
.footer__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-top: 9vh;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.footer__h {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}
.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a,
.footer__row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.3s;
}
.footer__row button {
  display: flex;
}
.footer__links a i {
  font-style: normal;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: 0.4s var(--out);
}
.footer__links a:hover,
.footer__row button:hover {
  color: var(--ink);
}
.footer__links a:hover i {
  opacity: 1;
  transform: none;
}
.footer__row p {
  margin: 0;
}
.footer__end {
  text-align: right;
}
.footer__copy {
  margin-top: 10px !important;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}
.anomaly-count {
  font-family: var(--mono);
}

.edge {
  position: fixed;
  left: 50%;
  bottom: 14vh;
  z-index: 70;
  width: min(460px, calc(100vw - 32px));
  padding: 24px 26px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: rgba(8, 10, 20, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 30px);
  pointer-events: none;
  transition: 0.9s var(--out);
}
.at-edge .edge {
  opacity: 1;
  transform: translate(-50%, 0);
}
.edge__tag {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ice);
}
.edge__msg {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.edge__msg span {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- quark */

.quark-wrap {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 65;
}
.quark {
  display: block;
  position: relative;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  filter: drop-shadow(0 0 16px rgba(169, 212, 255, 0.45));
  animation: bob 5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.quark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.quark__eyes {
  fill: #0c1426;
  transition: transform 0.18s ease-out;
}
.quark__eyes ellipse {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.12s;
}
.quark__mouth {
  fill: none;
  stroke: #0c1426;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.blink .quark__eyes ellipse,
.is-asleep .quark__eyes ellipse {
  transform: scaleY(0.12);
}
.quark.boop {
  animation: boop 0.55s var(--spring), bob 5s ease-in-out infinite;
}
@keyframes boop {
  30% {
    transform: scale(1.18, 0.84);
  }
  60% {
    transform: scale(0.92, 1.08);
  }
}
@keyframes bob {
  50% {
    translate: 0 -6px;
  }
}
.quark__z {
  position: absolute;
  right: 0;
  top: -6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ice);
  opacity: 0;
}
.is-asleep .quark {
  filter: drop-shadow(0 0 8px rgba(169, 212, 255, 0.25)) saturate(0.6);
}
.is-asleep .quark__z {
  animation: zzz 2.6s ease-in-out infinite;
}
@keyframes zzz {
  0% {
    opacity: 0;
    transform: translate(0, 4px);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(10px, -16px);
  }
}
.quark-bubble {
  position: absolute;
  right: 2px;
  bottom: 66px;
  width: max-content;
  max-width: min(270px, calc(100vw - 44px));
  margin: 0;
  padding: 11px 15px;
  border: 1px solid var(--line-2);
  border-radius: 16px 16px 4px 16px;
  background: rgba(10, 12, 24, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  box-shadow: 0 16px 50px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.4s var(--out), transform 0.55s var(--spring);
}
.is-talking .quark-bubble {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- toasts */

.toasts {
  position: fixed;
  left: 50%;
  top: 74px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(10, 12, 24, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 13px;
  white-space: nowrap;
  animation: toastIn 0.7s var(--spring);
  transition: opacity 0.6s, transform 0.6s var(--out);
}
.toast b {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ice);
}
.toast.out {
  opacity: 0;
  transform: translateY(-8px);
}
.toast__d {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 10px var(--ice);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.94);
  }
}

/* ---------------------------------------------------------------- dialogs */

dialog {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  max-width: none;
  max-height: none;
  overflow: visible;
}
dialog::backdrop {
  background: rgba(2, 3, 8, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
dialog[open] {
  animation: dialogIn 0.6s var(--out);
}
@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}
.x {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--ink-2);
  transition: color 0.3s, background 0.3s;
}
.x:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}
.dossier__frame,
.anomalies__frame,
.cert__frame {
  border: 1px solid var(--line-2);
  border-radius: 26px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), transparent 40%), rgba(8, 10, 20, 0.82);
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dossier__frame {
  position: relative;
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  overflow: auto;
  padding: 32px;
}
.dossier__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}
.dossier__meta .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--c) 55%, rgba(0, 0, 0, 0.6));
  box-shadow: 0 0 10px var(--c);
}
.dossier__meta .st {
  color: var(--ice);
}
.dossier h2 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
}
.dossier__tagline {
  margin: 14px 0 0;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.dossier__facts {
  display: grid;
  margin: 26px 0 28px;
  border-top: 1px solid var(--line);
}
.dossier__facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.dossier__facts dt {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}
.dossier__facts dd {
  margin: 0;
  font-size: 0.97rem;
}
.dossier__shy {
  margin: 0;
  color: var(--ice);
}

.terminal__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, calc(100vw - 24px));
  height: min(520px, calc(100svh - 80px));
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(5, 7, 14, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 40px 120px -40px #000;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
}
.terminal__bar {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--dim);
}
.terminal__bar p {
  flex: 1;
  margin: 0;
}
.terminal__bar button {
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: none;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}
.terminal__out {
  flex: 1;
  overflow: auto;
  padding: 18px 18px 8px;
  color: #d9e6ff;
  white-space: pre-wrap;
  overscroll-behavior: contain;
}
.terminal__out p {
  margin: 0 0 3px;
}
.terminal__out b {
  color: #fff;
  font-weight: 500;
}
.terminal__out i {
  font-style: normal;
  color: var(--ice);
}
.terminal__out .dim {
  color: var(--dim);
}
.terminal__out .warn {
  color: #ffb4c0;
}
.terminal__out .cmd {
  margin-top: 10px;
  color: #fff;
}
.prompt {
  color: var(--dim);
}
.terminal__in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
}
.terminal__in label {
  color: var(--dim);
}
.terminal__in input {
  flex: 1;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  outline: none;
  caret-color: var(--ice);
}

.anomalies__frame {
  position: relative;
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100svh - 48px);
  overflow: auto;
  padding: 30px;
  overscroll-behavior: contain;
}
.anomalies h2 {
  max-width: 16ch;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}
.anomalies .sub {
  margin: 14px 0 22px;
  font-size: 0.97rem;
}
.anomalies__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.anomalies__list li {
  display: grid;
  grid-template-columns: 28px 140px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.a-no,
.a-state {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
}
.a-name {
  font-weight: 500;
  color: var(--faint);
}
.a-hint {
  color: var(--dim);
}
.is-found .a-name {
  color: var(--ink);
}
.is-found .a-hint {
  color: var(--ink-2);
}
.is-found .a-state {
  color: var(--ice);
}

.cert__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(540px, calc(100vw - 24px));
  padding: 44px 24px 28px;
  text-align: center;
}
.cert__card {
  position: relative;
  width: 100%;
  padding: 30px 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(169, 212, 255, 0.28), transparent 70%),
    radial-gradient(70% 60% at 0% 100%, rgba(196, 186, 255, 0.18), transparent 70%),
    #070912;
  text-align: left;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.3s ease-out;
}
.cert__tag,
.cert__no,
.cert__foot {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}
.cert__card h2 {
  margin: 14px 0 10px;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
}
.cert__no {
  color: var(--ice);
}
.cert__msg {
  margin: 14px 0 22px;
  color: var(--ink-2);
}
.cert__foot {
  display: flex;
  justify-content: space-between;
}
.cert__note {
  margin: 0;
  color: var(--ice);
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .laws__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 899px), (max-aspect-ratio: 1/1) and (max-width: 1180px) {
  .top {
    grid-template-columns: 1fr auto;
  }
  .nav,
  .scroll-cue {
    display: none;
  }
  .hero {
    align-items: flex-end;
    padding-top: 54vh;
    padding-bottom: 64px;
  }
  .hero__copy {
    max-width: none;
  }
  h1 {
    font-size: clamp(2.5rem, 11vw, 4.4rem);
  }
  .hero__lede {
    margin-top: 20px;
  }
  .hero__cta {
    margin-top: 28px;
    gap: 18px;
  }
  .manifesto {
    height: 230vh;
  }
  .worlds {
    padding-top: 12vh;
  }
  .world-list {
    margin-top: 5vh;
  }
  .world-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name status" "tag tag";
    gap: 10px 14px;
    padding: 24px 2px;
  }
  .world-row__no,
  .world-row__arrow {
    display: none;
  }
  .world-row__name {
    grid-area: name;
    font-size: 1.4rem;
  }
  .world-row__tag {
    grid-area: tag;
    font-size: 0.96rem;
  }
  .world-row__status {
    grid-area: status;
    align-self: start;
    margin-top: 4px;
  }
  .manifesto__body {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .laws__grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  .law {
    min-height: 0;
  }
  .law__eq {
    margin-top: 36px;
  }
  .void__core {
    height: clamp(240px, 40vh, 420px);
  }
  .void__form {
    flex-direction: column;
    border-radius: 22px;
    padding: 6px;
  }
  .void__form input {
    height: 48px;
  }
  .void__form .btn {
    justify-content: center;
  }
  .footer__row {
    grid-template-columns: 1fr 1fr;
  }
  .footer__end {
    grid-column: 1 / -1;
    text-align: left;
  }
  .quark {
    width: 46px;
    height: 46px;
  }
  .quark-bubble {
    bottom: 56px;
  }
  .dossier {
    width: 100%;
    margin: auto 0 0;
  }
  .dossier__frame {
    width: 100%;
    max-height: 88svh;
    padding: 26px 22px max(26px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
  .dossier__facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .anomalies__list li {
    grid-template-columns: 24px 1fr auto;
    grid-template-areas: "no name state" ". hint hint";
    gap: 2px 10px;
  }
  .a-no {
    grid-area: no;
  }
  .a-name {
    grid-area: name;
  }
  .a-hint {
    grid-area: hint;
  }
  .a-state {
    grid-area: state;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal],
  .reveal-lines .ln > span {
    opacity: 1;
    transform: none;
  }
}
