:root {
  --ink: #121311;
  --ink-soft: #1b1d1a;
  --paper: #eee9df;
  --paper-soft: #d4cfc5;
  --signal: #ff6542;
  --acid: #dbe675;
  --line: rgba(238, 233, 223, 0.2);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.signal-mark {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--paper);
}
.signal-mark i { width: 3px; background: var(--signal); }
.signal-mark i:nth-child(1) { height: 5px; }
.signal-mark i:nth-child(2) { height: 10px; }
.signal-mark i:nth-child(3) { height: 16px; }

.window-label,
.eyebrow,
.signal-note,
footer,
legend,
label,
.survey-index span {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.window-label { margin: 0; font-size: 10px; color: var(--paper-soft); }
.window-label span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 101, 66, 0.12);
}

.survey-panel {
  min-height: 640px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(36px, 8vw, 120px);
  align-items: center;
  padding: 80px 0 88px;
  border-bottom: 1px solid var(--line);
}

.survey-index { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
.survey-index span { font-size: 10px; color: var(--signal); }
.survey-index strong {
  font: 400 118px/0.8 var(--serif);
  letter-spacing: -0.09em;
  color: rgba(238, 233, 223, 0.08);
}

.survey-copy { max-width: 840px; }
.eyebrow { margin: 0 0 24px; font-size: 10px; color: var(--signal); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.05em; }
h1 { max-width: 900px; margin: 0; font-size: clamp(48px, 6.5vw, 84px); line-height: 0.98; }
.definition { max-width: 760px; margin: 30px 0 0; color: var(--paper-soft); font-size: 17px; line-height: 1.6; }

.vote-form { margin-top: 42px; }
fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; border: 0; }
legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vote-form button {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border: 1px solid rgba(238, 233, 223, 0.45);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.vote-form button:hover,
.vote-form button:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); outline: none; transform: translateY(-2px); }
.vote-form button:disabled { cursor: wait; opacity: 0.55; transform: none; }
.vote-form button span { font: 400 34px/1 var(--serif); letter-spacing: -0.04em; }
.vote-form button small { font: 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.vote-form.is-complete button.is-selected { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.vote-form.is-complete button:not(.is-selected) { opacity: 0.3; }
.form-status { min-height: 1.5em; margin: 12px 0 0; font: 11px/1.5 var(--mono); color: var(--acid); }
.form-status.is-error { color: #ff937a; }
.signal-note { max-width: 720px; margin: 14px 0 0; font-size: 9px; line-height: 1.55; color: rgba(238, 233, 223, 0.5); }

.project-note {
  display: grid;
  grid-template-columns: 180px minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(30px, 5vw, 70px);
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.project-note .eyebrow { margin: 7px 0 0; }
.project-note h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1; }
.project-note > p:last-child { margin: 4px 0 0; color: var(--paper-soft); font-size: 16px; line-height: 1.65; }

.contact-panel { border-bottom: 1px solid var(--line); }
.contact-panel summary {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font: 400 clamp(25px, 3vw, 38px)/1 var(--serif);
  letter-spacing: -0.04em;
}
.contact-panel summary::-webkit-details-marker { display: none; }
.contact-panel[open] summary span { transform: rotate(180deg); }
.contact-panel form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; padding: 8px 0 60px 180px; }
.field-row { display: flex; flex-direction: column; gap: 9px; }
.field-message { grid-column: 1 / -1; }
label { font-size: 9px; color: var(--paper-soft); }
label span { opacity: 0.55; }
input, textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(238, 233, 223, 0.38);
  border-radius: 0;
  padding: 12px 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--signal); }
.honeypot { position: absolute; left: -9999px; }
.send-button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 0 16px;
  background: var(--signal);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.send-button:disabled { opacity: 0.55; cursor: wait; }

footer {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 9px;
  color: rgba(238, 233, 223, 0.5);
}
footer p { max-width: 610px; margin: 0; text-align: right; line-height: 1.55; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 30px, 1180px); }
  .site-header { min-height: 76px; }
  .window-label { font-size: 0; }
  .window-label span { margin: 0; }
  .survey-panel { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding: 54px 0 62px; }
  .survey-index { display: none; }
  h1 { font-size: clamp(43px, 13vw, 64px); }
  .definition { font-size: 15px; }
  .vote-form { margin-top: 34px; }
  fieldset { grid-template-columns: 1fr; }
  .vote-form button { min-height: 72px; }
  .project-note { grid-template-columns: 1fr; gap: 18px; padding: 56px 0; }
  .project-note .eyebrow { margin: 0; }
  .contact-panel form { grid-template-columns: 1fr; padding: 4px 0 48px; }
  .field-message { grid-column: auto; }
  footer { padding: 28px 0; align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
