:root {
  color-scheme: dark;
  --black: #000;
  --ink: #f4f1ea;
  --acid: #ccff00;
  --muted: #777;
  --line: rgba(244, 241, 234, .2);
  --pad: clamp(20px, 3vw, 48px);
}

* { box-sizing: border-box; }

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--ink);
  font-family: "Cascadia Mono", "IBM Plex Mono", "Courier New", monospace;
  cursor: crosshair;
}

::selection {
  background: var(--acid);
  color: var(--black);
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .9;
}

.grain,
.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.grain {
  opacity: .08;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.scanline {
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, .18) 50%);
  background-size: 100% 4px;
  opacity: .22;
}

.topbar,
main,
.larper {
  position: relative;
  z-index: 2;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
  z-index: 5;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
}

.mark svg { width: 24px; fill: currentColor; }

.signal {
  display: flex;
  gap: 9px;
  align-items: center;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .15em;
}

.signal i {
  width: 6px;
  height: 6px;
  background: var(--acid);
  box-shadow: 0 0 16px var(--acid);
}

.language-switch {
  width: 34px;
  height: 26px;
  padding: 0;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font: 600 9px/1 "Cascadia Mono", "IBM Plex Mono", "Courier New", monospace;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.language-switch:hover {
  background: var(--ink);
  color: var(--black);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 96px var(--pad) 40px;
  overflow: hidden;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(15px, 2vw, 28px);
  color: var(--acid);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
}

.eyebrow span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
}

.eyebrow i,
.vote-split i {
  font-style: normal;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(86px, 21vw, 350px);
  font-weight: 400;
  letter-spacing: -.09em;
  line-height: .67;
  text-transform: uppercase;
}

.title-line {
  display: block;
  width: fit-content;
  transform: translateY(120%);
  animation: title-in 1s cubic-bezier(.16, 1, .3, 1) forwards;
  text-shadow: 0 0 1px rgba(255, 255, 255, .4);
}

.title-line-top { animation-delay: .08s; }

.title-line-bottom {
  margin-left: clamp(12px, 12vw, 210px);
  color: transparent;
  -webkit-text-stroke: clamp(1px, .14vw, 3px) var(--ink);
  animation-delay: .18s;
}

@keyframes title-in {
  to { transform: translateY(0); }
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: min(920px, 72%);
  margin-top: clamp(40px, 7vh, 84px);
  margin-left: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-foot p {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(11px, .9vw, 14px);
  line-height: 1.6;
  letter-spacing: .08em;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .12em;
}

.github-link svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform .25s ease;
}

.github-link:hover { color: var(--acid); }
.github-link:hover svg { transform: translate(4px, -4px); }

.scroll-mark {
  position: absolute;
  bottom: 38px;
  left: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}

.scroll-mark i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--acid), transparent);
}

.larper {
  position: fixed;
  top: 72px;
  right: var(--pad);
  width: min(278px, calc(100vw - 40px));
  padding: 15px;
  background: rgba(0, 0, 0, .78);
  border: 1px solid var(--ink);
  box-shadow: 9px 9px 0 rgba(204, 255, 0, .85);
  backdrop-filter: blur(12px);
  z-index: 6;
}

.larper-head,
.vote-split {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: .12em;
}

.larper h2 {
  margin: 19px 0 13px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.vote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.vote-actions button {
  position: relative;
  padding: 11px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 600 11px/1 "Cascadia Mono", "IBM Plex Mono", "Courier New", monospace;
  letter-spacing: .14em;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}

.vote-actions button:first-child:hover:not(:disabled) {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--black);
  transform: translateY(-2px);
}

.vote-actions button:last-child:hover:not(:disabled) {
  background: var(--ink);
  color: var(--black);
  transform: translateY(-2px);
}

.vote-actions button:disabled {
  opacity: .38;
  cursor: wait;
}

.vote-meter {
  height: 3px;
  margin-top: 14px;
  background: var(--ink);
}

.vote-meter i {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--acid);
  transition: width .55s cubic-bezier(.16, 1, .3, 1);
}

.vote-split {
  margin-top: 7px;
  color: var(--muted);
}

.vote-split b { color: var(--ink); font-weight: 500; }

#vote-status {
  min-height: 12px;
  margin: 15px 0 0;
  color: var(--acid);
  font-size: 8px;
  letter-spacing: .11em;
}

.manifesto {
  position: relative;
  min-height: 100svh;
  padding: clamp(90px, 14vw, 210px) var(--pad) 60px;
  border-top: 1px solid var(--line);
}

.section-code {
  margin: 0 0 clamp(70px, 10vw, 150px);
  color: var(--acid);
  font-size: 10px;
  letter-spacing: .16em;
}

.statement {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(48px, 9.4vw, 158px);
  letter-spacing: -.065em;
  line-height: .88;
}

.statement > span:not(.solid) {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

.statement .solid { color: var(--ink); }

.manifesto-meta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(70px, 11vw, 160px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: .1em;
}

.manifesto-meta p { margin: 0; }
.coords { text-align: right; color: var(--muted); }

.security {
  position: relative;
  min-height: 100svh;
  padding: clamp(90px, 11vw, 170px) var(--pad) clamp(90px, 9vw, 140px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(204, 255, 0, .035), transparent 44%);
}

.security::before {
  content: "SEC";
  position: absolute;
  top: -.16em;
  right: -.08em;
  z-index: -1;
  color: transparent;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(220px, 39vw, 660px);
  line-height: 1;
  -webkit-text-stroke: 1px rgba(244, 241, 234, .07);
}

.security-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .5fr);
  align-items: end;
  gap: clamp(40px, 9vw, 150px);
}

.security-lead h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(54px, 8.7vw, 146px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .9;
}

.security-lead h2 em {
  color: var(--acid);
  font-style: normal;
}

.security-lead > p {
  max-width: 390px;
  margin: 0 0 .5em;
  color: #aaa;
  font-size: clamp(11px, .85vw, 14px);
  line-height: 1.8;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.security-grid {
  margin-top: clamp(80px, 11vw, 170px);
  border-top: 1px solid var(--ink);
}

.security-item {
  display: grid;
  grid-template-columns: 70px minmax(210px, .75fr) 1fr;
  align-items: center;
  gap: 20px;
  min-height: 100px;
  border-bottom: 1px solid var(--line);
  transition: color .18s, padding-left .18s, background .18s;
}

.security-item:hover {
  padding-left: 12px;
  background: rgba(204, 255, 0, .045);
  color: var(--acid);
}

.security-number {
  color: var(--acid);
  font-size: 9px;
}

.security-item h3 {
  margin: 0;
  font-size: clamp(12px, 1.05vw, 17px);
  font-weight: 600;
  letter-spacing: .08em;
}

.security-item p {
  margin: 0;
  color: #8b8b8b;
  font-size: clamp(10px, .78vw, 13px);
  line-height: 1.6;
  letter-spacing: .04em;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 22px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: .12em;
}

.reveal {
  opacity: 0;
  animation: reveal .8s .5s ease forwards;
}

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

@media (max-width: 760px) {
  .topbar { padding-top: 17px; }
  .signal { display: none; }

  .topbar-meta { gap: 0; }

  .larper {
    top: 62px;
    right: 20px;
    bottom: auto;
    width: 242px;
    box-shadow: 6px 6px 0 rgba(204, 255, 0, .85);
  }

  .larper h2 { margin: 12px 0 10px; font-size: 20px; }
  .larper-head, .vote-split, #vote-status { font-size: 7px; }
  .vote-actions button { padding: 9px; }

  .is-scrolled .larper {
    top: 58px;
    right: 16px;
    width: 202px;
    padding: 9px;
    box-shadow: 4px 4px 0 rgba(204, 255, 0, .85);
  }

  .is-scrolled .larper-head,
  .is-scrolled .vote-meter,
  .is-scrolled .vote-split,
  .is-scrolled #vote-status {
    display: none;
  }

  .is-scrolled .larper h2 {
    margin: 0 0 7px;
    font-size: 14px;
  }

  .is-scrolled .vote-actions button { padding: 7px; }

  .hero {
    justify-content: flex-start;
    padding-top: 270px;
  }
  h1 { font-size: clamp(76px, 28vw, 150px); line-height: .73; }
  .title-line-bottom { margin-left: 4vw; }

  .hero-foot {
    align-items: flex-start;
    width: 100%;
    margin-top: 54px;
  }

  .scroll-mark { display: none; }
  .manifesto { padding-bottom: 240px; }
  .manifesto-meta { flex-direction: column; }
  .coords { text-align: left; }

  .security-lead {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .security-lead h2 { font-size: clamp(49px, 15vw, 76px); }
  .security-grid { margin-top: 72px; }

  .security-item {
    grid-template-columns: 34px 1fr;
    gap: 8px 12px;
    padding: 20px 0;
  }

  .security-item p {
    grid-column: 2;
    padding-right: 14px;
  }

  footer { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  #field { display: none; }
}
