@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #050607;
  --bg-1: #0a0d0c;
  --bg-2: #111614;
  --line: #1c2421;
  --line-2: #2a3430;
  --text: #e9eeeb;
  --muted: #8c9a94;
  --dim: #5b6863;
  --acid: #c6ff1a;
  --acid-ink: #0b0f00;
  --acid-soft: rgb(198 255 26 / 0.08);
  --danger: #ff5a36;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--acid); color: var(--acid-ink); }
a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { color: var(--acid); text-decoration-color: var(--acid); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 14px;
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acid);
}
.n {
  display: inline-block;
  min-width: 2.2em;
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* ---------- Split layout ---------- */
.split { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.intake { display: flex; flex-direction: column; min-width: 0; }

/* Wide screens: the globe on the left, the form on the right. The form stays first in the page
   source, so phones and screen readers still get it first. */
@media (min-width: 1000px) {
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, 1fr); }
  .intake { grid-column: 2; grid-row: 1; border-left: 1px solid var(--line); min-height: 100vh; min-height: 100dvh; }
  .visual { grid-column: 1; grid-row: 1; }
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--pad);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand span {
  font: 800 0.95rem/1 var(--sans);
  font-stretch: 125%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand:hover { color: var(--text); }
.signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.signal i { width: 7px; height: 7px; background: var(--acid); box-shadow: 0 0 10px var(--acid); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; box-shadow: none; } }

/* ---------- Intake ---------- */
.intake-body { flex: 1; padding: clamp(28px, 5vh, 64px) var(--pad) 40px; max-width: 720px; width: 100%; }
.intake-head { margin-bottom: 36px; }
h1 {
  margin: 0 0 14px;
  font: 700 clamp(2rem, 3.6vw, 3rem)/1 var(--sans);
  font-stretch: 112%;
  letter-spacing: -0.02em;
}
.lede { margin: 0; max-width: 44ch; color: var(--muted); font-size: 1.05rem; }

.field { margin-bottom: 26px; }
label, .label {
  display: flex;
  align-items: baseline;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.98rem;
}
.optional {
  margin-left: 10px;
  font: 400 0.68rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.hint { margin: 0 0 10px 2.45em; color: var(--muted); font-size: 0.88rem; }

textarea, input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--bg-1);
  color: var(--text);
  font: 400 0.98rem/1.5 var(--sans);
  transition: border-color 0.15s, background 0.15s;
}
textarea { resize: vertical; min-height: 92px; }
#links { font-family: var(--mono); font-size: 0.88rem; }
textarea::placeholder, input::placeholder { color: var(--dim); }
textarea:hover, input[type="text"]:hover { border-color: #3a4641; }
textarea:focus, input[type="text"]:focus { outline: none; border-color: var(--acid); background: #0c100d; box-shadow: 0 0 0 3px var(--acid-soft); }

.dropzone {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px dashed var(--line-2);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgb(255 255 255 / 0.012) 10px 20px), var(--bg-1);
  cursor: pointer;
  font-weight: 400;
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--acid); background-color: #0c110a; }
.dropzone:focus-within { border-color: var(--acid); box-shadow: 0 0 0 3px var(--acid-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dz-plus {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--acid);
  color: var(--acid);
  font: 400 1.6rem/1 var(--mono);
}
.dz-main { font-weight: 600; }
.dz-sub { font: 400 0.72rem/1.4 var(--mono); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

.previews { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.previews li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.previews img { width: 48px; height: 48px; object-fit: cover; background: var(--bg-2); }
.previews .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 0.82rem/1.3 var(--mono); }
.previews .size { display: block; color: var(--dim); font-size: 0.72rem; }
.previews button {
  border: 0;
  background: none;
  padding: 8px 10px;
  color: var(--muted);
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.previews button:hover { color: var(--danger); }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.consent input {
  appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.consent input:checked { background: var(--acid); border-color: var(--acid); }
.consent input:checked::after { content: ""; width: 9px; height: 5px; border: solid var(--acid-ink); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }

/* Empty unless Cloudflare asks for a click (interaction-only). */
.turnstile:has(iframe) { margin-bottom: 12px; }

.status { min-height: 1.4em; margin: 6px 0 14px; font: 500 0.82rem/1.45 var(--mono); }
.status[data-kind="error"] { color: var(--danger); padding: 10px 12px; border-left: 2px solid var(--danger); background: rgb(255 90 54 / 0.07); }
.status[data-kind="progress"] { color: var(--acid); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px 22px;
  border: 1px solid var(--acid);
  border-radius: 0;
  background: var(--acid);
  color: var(--acid-ink);
  font: 700 0.95rem/1 var(--sans);
  font-stretch: 118%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:hover { box-shadow: 0 0 0 4px var(--acid-soft), 0 0 28px rgb(198 255 26 / 0.25); }
.btn:disabled { opacity: 0.55; cursor: progress; box-shadow: none; }
.btn span:last-child { font-family: var(--mono); font-size: 1.15rem; }
.btn-ghost { background: transparent; color: var(--acid); width: auto; min-width: 240px; }
.btn-ghost:hover { background: var(--acid-soft); }

.success { padding: 28px 0 8px; border-top: 2px solid var(--acid); }
.success:focus { outline: none; }
.success h2 { margin: 0 0 18px; font: 700 2.2rem/1 var(--sans); font-stretch: 112%; }
.success p { margin: 0 0 6px; color: var(--muted); }
.protocol {
  margin: 4px 0 18px !important;
  font: 600 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--acid) !important;
  user-select: all;
}
.success .hint { margin-left: 0; margin-bottom: 24px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px var(--pad);
  border-top: 1px solid var(--line);
  font: 400 0.72rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: var(--dim);
  text-transform: uppercase;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--acid); }
.foot a[href^="mailto"] { text-transform: none; }

/* ---------- Visual panel ---------- */
.visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 680px;
  padding: clamp(24px, 4vh, 48px) var(--pad);
  background: var(--bg);
  isolation: isolate;
}
.globe {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: max(115%, 100vh);
  max-width: none;
  aspect-ratio: 1;
  transform: translate(-36%, -40%);
  opacity: 0.95;
  pointer-events: none;
}
.visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgb(5 6 7 / 0.65) 22%, transparent 42%, transparent 58%, rgb(5 6 7 / 0.8) 80%, var(--bg) 100%),
    linear-gradient(to left, var(--bg) 0%, transparent 18%);
}
.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.018) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.scan {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  height: 22%;
  background: linear-gradient(to bottom, transparent, rgb(198 255 26 / 0.05) 85%, rgb(198 255 26 / 0.22) 100%);
  border-bottom: 1px solid rgb(198 255 26 / 0.18);
  animation: scan 9s linear infinite;
  pointer-events: none;
}
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(560%); } }

.hud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: clamp(28px, 6vh, 72px);
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--muted);
}
.hud span:first-child { color: var(--acid); }

.manifesto {
  margin: 0 0 18px;
  font: 800 clamp(2.6rem, min(5.4vw, 8.5vh), 6rem)/0.9 var(--sans);
  font-stretch: 125%;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.manifesto em { font-style: normal; color: var(--acid); text-shadow: 0 0 40px rgb(198 255 26 / 0.35); }
.manifesto-sub { margin: 0; max-width: 34ch; color: #b5c1bc; font-size: 1.02rem; text-shadow: 0 1px 12px var(--bg), 0 0 2px var(--bg); }

.kinds { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line-2); max-width: 560px; }
.kinds li {
  display: grid;
  grid-template-columns: 2.6em 1fr;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  background: linear-gradient(to right, rgb(5 6 7 / 0.7), rgb(5 6 7 / 0.2));
}
.kinds b { color: var(--text); font-weight: 600; }
.kinds .n { color: var(--acid); }
.after { margin: 0; max-width: 46ch; font: 400 0.8rem/1.5 var(--mono); color: var(--dim); }

@media (min-width: 1000px) {
  .visual { position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; }
}

/* ---------- Static pages ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page .topbar { position: sticky; top: 0; z-index: 2; background: rgb(5 6 7 / 0.88); backdrop-filter: blur(8px); }
.prose { flex: 1; width: 100%; max-width: 760px; padding: clamp(32px, 6vh, 72px) var(--pad) 48px; }
.prose h1 { margin-bottom: 10px; }
.prose .updated { margin: 0 0 36px; font: 400 0.75rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.prose h2 {
  margin: 36px 0 10px;
  font: 600 0.8rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acid);
}
.prose p, .prose li { color: #c3cdc9; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--dim); }
.prose strong { color: var(--text); }
.page .foot { margin-top: auto; }

.noscript { margin: 0; padding: 12px var(--pad); background: var(--danger); color: #000; font: 600 0.85rem/1.4 var(--mono); text-align: center; }

@media (max-width: 999px) {
  /* Stacked: form first, then the globe in normal flow between manifesto and list. */
  .visual { min-height: 0; padding-top: 48px; padding-bottom: 40px; border-top: 1px solid var(--line); justify-content: flex-start; }
  .visual-top { order: 1; }
  .globe {
    order: 2;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: calc(100% + 2 * var(--pad));
    margin: -4% calc(-1 * var(--pad)) -8%;
  }
  .visual-bottom { order: 3; }
  .visual::before { background: linear-gradient(to bottom, var(--bg) 0%, transparent 10%, transparent 90%, var(--bg) 100%); }
  .scan { display: none; }
  .hud { margin-bottom: 32px; }
}
@media (max-width: 420px) {
  .brand span { font-stretch: 100%; letter-spacing: 0.1em; font-size: 0.85rem; }
  .signal { font-size: 0; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .signal i, .scan { animation: none; }
  .scan { display: none; }
}
