*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #1A1816;
  --ink-muted:  #8A8480;
  --paper:      #ECEAE4;
  --paper-2:    #E3E0D9;
  --rule:       #C8C4BB;
  --accent:     #D4520A;
  --accent-dim: #AE4308;
  --surface:    #F5F3EE;
  --font-sans:  'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:  'IBM Plex Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* The one orange element allowed. It earns it. */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  z-index: 100;
}

/* ── Layout ──────────────────────────────────────────── */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ──────────────────────────────────────────── */
header {
  padding: 5.5rem 0 3rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  opacity: 0;
  animation: appear 0.4s ease forwards 0.1s;
}

h1 {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 300;
  line-height: 0.93;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  animation: appear 0.4s ease forwards 0.2s;
}

h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

.tagline {
  margin-top: 2rem;
  font-size: 0.975rem;
  font-weight: 400;
  color: var(--ink-muted);
  max-width: 44ch;
  line-height: 1.7;
  opacity: 0;
  animation: appear 0.4s ease forwards 0.35s;
}

.rule-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--rule);
  margin: 2.5rem 0;
  opacity: 0;
  animation: appear 0.4s ease forwards 0.45s;
}

/* ── About ───────────────────────────────────────────── */
.about {
  padding: 0 0 4.5rem;
  opacity: 0;
  animation: appear 0.4s ease forwards 0.55s;
}

.about p {
  font-size: 0.975rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  max-width: 58ch;
}

.about p + p { margin-top: 0.85rem; }

.about a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.about a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.75rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  padding: 0.25rem 0.6rem;
  background: transparent;
}

/* ── Section label ───────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: appear 0.4s ease forwards 0.65s;
}

.section-label span {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── Form wrapper ────────────────────────────────────── */
.form-wrap {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 3rem;
  opacity: 0;
  animation: appear 0.4s ease forwards 0.75s;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}

.form-grid .span-2 { grid-column: span 2; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ── Labels ──────────────────────────────────────────── */
label {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

label .req {
  color: var(--accent);
}

/* ── Inputs ──────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.6rem 0.75rem;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%238A8480'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-color: var(--paper);
  padding-right: 2rem;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  background: var(--surface);
}

/* ── Form section title ──────────────────────────────── */
.form-section-title {
  grid-column: span 2;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.25rem;
}

.form-section-title:first-child {
  padding-top: 0;
  border-top: none;
  margin-top: 0;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 400;
  color: var(--rule);
  letter-spacing: 0.05em;
  min-width: 1.5rem;
}

/* ── Range ───────────────────────────────────────────── */
.range-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.range-track {
  display: flex;
  align-items: center;
  gap: 1rem;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 1px;
  background: var(--rule);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  background: var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--accent);
}

input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  background: var(--ink);
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.range-val {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--ink);
  min-width: 1.5rem;
  text-align: right;
}

.range-legend {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

/* ── Color input ─────────────────────────────────────── */
.color-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s ease;
}

.color-field:focus-within { border-color: var(--ink); }

input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--rule);
  padding: 1px;
  cursor: pointer;
  background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; }

.color-hint {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ── Radio ───────────────────────────────────────────── */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.radio-item input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  min-width: 12px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease;
}

.radio-item input[type="radio"]:checked {
  border-color: var(--ink);
  background: var(--ink);
}

.radio-item input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--surface);
  border-radius: 50%;
}

.radio-item span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
}

/* ── Checkbox ────────────────────────────────────────── */
.check-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  min-width: 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  margin-top: 4px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.check-item input[type="checkbox"]:checked {
  background: var(--ink);
  border-color: var(--ink);
}

.check-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 2px; top: 0;
  width: 5px; height: 8px;
  border: 1.5px solid var(--surface);
  border-top: none;
  border-left: none;
  transform: rotate(42deg);
}

.check-item span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}

/* ── Submit ──────────────────────────────────────────── */
.submit-row {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.25rem;
  gap: 1rem;
}

.submit-note {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

/* The second orange element. It more than earns it. */
button[type="submit"] {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 0.85rem 2.2rem;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

button[type="submit"]:hover {
  background: var(--accent-dim);
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  animation: appear 0.4s ease forwards 1s;
}

.footer-sig {
  font-size: 0.875rem;
  font-weight: 400;
  font-style: normal;
  color: var(--ink-muted);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rule);
}

/* ── Animation ───────────────────────────────────────── */
@keyframes appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
  .form-wrap { padding: 2rem 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .form-section-title { grid-column: span 1; }
  .submit-row {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
  button[type="submit"] { width: 100%; text-align: center; }
}
