:root {
  --ink: #0c1110;
  --muted: #59635f;
  --paper: #f6f3eb;
  --deep: #eee9dc;
  --control: #fffdf8;
  --line: rgba(12, 17, 16, .18);
  --signal: #c9ff4d;
  --blue: #97b9ff;
  --danger: #a52d24;
  --success: #355700;
  --max: 1240px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: Georgia, "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(12, 17, 16, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 17, 16, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.home-page { font-family: var(--serif); }
.proposal-page { font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

header {
  position: relative;
  z-index: 20;
  background: rgba(246, 243, 235, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.home-page header, .proposal-page header { position: sticky; top: 0; }
.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -.03em;
}
.brand:hover { text-decoration: none; }
.sigil {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
}
.nav-right, .back {
  display: flex;
  align-items: center;
  gap: 24px;
  font: 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-right a:last-child {
  padding: 10px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--signal);
}
.nav-right a:last-child:hover { text-decoration: none; transform: translateY(-1px); }
.back { display: inline-block; }

/* Landing page */
.hero {
  min-height: 87vh;
  display: grid;
  align-items: center;
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "∴";
  position: absolute;
  right: 4vw;
  bottom: -7vw;
  color: rgba(12, 17, 16, .035);
  font-size: 30vw;
  line-height: 1;
  font-style: italic;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 70px;
  align-items: end;
}
.eyebrow, .section-label, .index, .meta, .cause-meta, .mini-title, .field-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow { margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.home-page h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(64px, 9.5vw, 148px);
  line-height: .88;
  letter-spacing: -.07em;
  font-weight: 400;
}
.hero-copy { max-width: 760px; margin: 34px 0 0; color: #2d3532; font-size: clamp(20px, 2vw, 28px); }
.axiom {
  padding: 24px;
  border: 1px solid currentColor;
  background: rgba(246, 243, 235, .76);
  box-shadow: 10px 10px 0 var(--signal);
}
.axiom .label { margin-bottom: 18px; color: var(--muted); font: 11px var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.axiom p { margin: 0; font-size: 22px; line-height: 1.35; }
.classes { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.panel { min-height: 690px; padding: 58px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.panel + .panel { border-left: 1px solid var(--line); }
.one { color: #f8f5ed; background: radial-gradient(circle at 72% 26%, rgba(151, 185, 255, .2), transparent 25rem), #0d1211; }
.two { background: radial-gradient(circle at 82% 14%, rgba(201, 255, 77, .34), transparent 22rem), var(--deep); }
.index { opacity: .65; }
.diagram { height: 280px; position: relative; margin: 20px 0 30px; }
.home-page .field { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 28%, white 0 3%, var(--blue) 10%, #35567d 38%, #131918 72%); box-shadow: 0 0 88px rgba(151, 185, 255, .35); }
.ellipse { position: absolute; left: 50%; top: 50%; width: 330px; height: 110px; transform: translate(-50%, -50%) rotate(-14deg); border: 1px solid rgba(255, 255, 255, .32); border-radius: 50%; }
.formula { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 18px; font-style: italic; opacity: .76; white-space: nowrap; }
.node { position: absolute; top: 50%; width: 116px; height: 116px; transform: translateY(-50%); display: grid; place-items: center; border-radius: 50%; text-align: center; font: 800 11px/1.15 var(--mono); }
.node.left { left: 5%; color: var(--ink); background: var(--signal); border: 1px solid var(--ink); }
.node.right { right: 5%; color: white; background: var(--ink); }
.route { position: absolute; left: 26%; right: 26%; top: 50%; border-top: 1px dashed currentColor; }
.route::after { content: "→"; position: absolute; right: -8px; top: 50%; transform: translateY(-56%); font-size: 40px; }
.packet { position: absolute; left: 46%; top: calc(50% - 15px); padding: 6px 9px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.copy h2 { max-width: 570px; margin: 0; font-size: clamp(46px, 5vw, 75px); line-height: .95; letter-spacing: -.06em; font-weight: 400; }
.definition { max-width: 630px; margin: 20px 0 0; font-size: 20px; opacity: .72; }
.causes { padding: 120px 0; }
.section-head { display: grid; grid-template-columns: .42fr 1.58fr; gap: 40px; margin-bottom: 64px; }
.section-label { color: var(--muted); font-size: 12px; }
.section-head h2 { max-width: 900px; margin: 0; font-size: clamp(48px, 6vw, 88px); line-height: .95; letter-spacing: -.062em; font-weight: 400; }
.cause-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cause { min-height: 250px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(246, 243, 235, .68); }
.meta, .cause-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.cause h3 { margin: 50px 0 10px; font-size: clamp(31px, 3.2vw, 48px); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.cause p { max-width: 540px; margin: 0; color: var(--muted); font-size: 17px; }
.cause a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.manifesto { padding: 0 0 120px; }
.manifesto-box { padding: 70px; border: 1px solid var(--ink); position: relative; background: var(--signal); }
.manifesto-box::before { content: "Q.E.D."; position: absolute; right: 24px; top: 18px; font: 11px var(--mono); letter-spacing: .12em; }
.manifesto-box p { max-width: 1040px; margin: 0; font-size: clamp(42px, 6vw, 90px); line-height: .97; letter-spacing: -.06em; }
footer { padding: 34px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; }

/* Proposal page */
.proposal-page header { background: rgba(246, 243, 235, .88); }
.proposal-page .page { padding: 72px 0 100px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 82px; align-items: end; padding-bottom: 54px; border-bottom: 1px solid var(--line); }
.intro .eyebrow { margin-bottom: 22px; }
.proposal-page .intro h1 { max-width: 720px; margin: 0; font-family: var(--serif); font-size: clamp(58px, 8vw, 106px); font-weight: 400; letter-spacing: -.07em; line-height: .88; }
.intro > p { max-width: 380px; margin: 0 0 2px; color: var(--muted); font-size: 18px; }
.content { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 82px; padding-top: 52px; }
.form-card { padding: 34px; border: 1px solid var(--ink); background: rgba(246, 243, 235, .74); box-shadow: 9px 9px 0 var(--signal); }
.form-card .section { padding: 0 0 34px; margin: 0 0 31px; border-bottom: 1px solid var(--line); }
.form-card .section:last-of-type { margin-bottom: 24px; }
.form-card .section h2 { margin: 0 0 7px; font-size: 25px; letter-spacing: -.035em; }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 25px; }
.proposal-page .field { display: flex; flex-direction: column; gap: 8px; }
.proposal-page .field.full { grid-column: 1 / -1; }
.field-label { font-weight: 700; }
.optional { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.proposal-page input:not([type="radio"]):not([type="checkbox"]), .proposal-page textarea, .proposal-page select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--ink);
  border-radius: 0;
  outline: none;
  background: var(--control);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.proposal-page textarea { min-height: 142px; resize: vertical; line-height: 1.5; }
.proposal-page input:not([type="radio"]):not([type="checkbox"]):focus, .proposal-page textarea:focus, .proposal-page select:focus { box-shadow: 4px 4px 0 var(--signal); }
.proposal-page input::placeholder, .proposal-page textarea::placeholder { color: #7c827e; opacity: 1; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 21px; }
.choice { position: relative; }
.choice input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice label { display: block; min-height: 102px; padding: 16px; border: 1px solid var(--line); background: var(--control); cursor: pointer; font-size: 14px; transition: background-color .18s, border-color .18s, box-shadow .18s; }
.choice label:hover { border-color: var(--ink); }
.choice input[type="radio"]:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.choice strong { display: block; margin-bottom: 5px; font-size: 16px; }
.choice input[type="radio"]:checked + label { border-color: var(--ink); background: var(--signal); box-shadow: 3px 3px 0 var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); cursor: pointer; font-size: 13px; }
.check input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--ink); }
.check input:focus-visible { outline-offset: 3px; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.submit { appearance: none; padding: 14px 20px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; font: 700 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: transform .18s, box-shadow .18s, opacity .18s; }
.submit:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--signal); }
.submit:disabled { opacity: .65; cursor: wait; }
.status { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.status.error { color: var(--danger); }
.status.success { color: var(--success); }
.side { align-self: start; }
.side-card { padding: 24px; border: 1px solid var(--ink); background: var(--ink); color: #f8f5ed; }
.side-card h2 { margin: 15px 0 26px; font-family: var(--serif); font-size: 31px; font-weight: 400; letter-spacing: -.045em; line-height: 1.02; }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px; }
.steps li::before { content: "0" counter(steps); padding-top: 2px; color: var(--signal); font: 11px var(--mono); }
.privacy { margin: 18px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.required { color: var(--danger); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 920px) {
  .hero-grid, .classes, .section-head, .cause-grid { grid-template-columns: 1fr; }
  .hero-grid { align-items: start; }
  .panel + .panel { border-top: 1px solid var(--line); border-left: 0; }
  .panel { min-height: 610px; padding: 40px 26px; }
  .cause-grid { border-left: 0; }
  .cause { border-left: 1px solid var(--line); }
  .manifesto-box { padding: 48px 28px; }
  .intro, .content { grid-template-columns: 1fr; gap: 28px; }
  .intro { padding-bottom: 35px; }
  .intro > p { max-width: 560px; }
  .content { padding-top: 36px; }
  .side { grid-row: 1; }
  .form-card { box-shadow: 6px 6px 0 var(--signal); }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 24px), var(--max)); }
  .nav-right a:first-child { display: none; }
  .hero { min-height: 78vh; }
  .home-page h1 { font-size: clamp(58px, 18vw, 92px); }
  .hero-copy { font-size: 19px; }
  .axiom { box-shadow: 6px 6px 0 var(--signal); }
  .diagram { height: 230px; }
  .home-page .field { width: 145px; height: 145px; }
  .ellipse { width: 250px; }
  .node { width: 88px; height: 88px; font-size: 9px; }
  .cause { min-height: 220px; }
  .footer-row { flex-direction: column; }
  .proposal-page .page { padding-top: 48px; }
  .proposal-page .intro h1 { font-size: clamp(54px, 17vw, 78px); }
  .form-card { padding: 22px 16px; }
  .fields, .choice-grid { grid-template-columns: 1fr; }
  .submit-row { align-items: flex-start; flex-direction: column; }
  .status { text-align: left; }
  .nav .back { font-size: 10px; }
}

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