:root {
  --ink: #1C2321;
  --orange: #F2620C;
  --teal: #3EC9A7;
  --cream: #F7F3EC;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Sora", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-accent: "Caveat", cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
}
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 40px; width: auto; display: block; }
.location {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 64px;
}

.hero__copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  white-space: nowrap;
}

.tagline {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  margin: 0;
  max-width: 32ch;
}

/* ---------- Form card ---------- */
.hero__form {
  background: #fff;
  border: 1px solid var(--ink);
  padding: 40px;
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink);
}
.field .optional { text-transform: none; letter-spacing: 0; color: #6b706e; }

.field input[type="email"],
.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 0;
  appearance: none;
}
.field select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path d="M1 1l5 5 5-5" stroke="%231C2321" stroke-width="1.5" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field textarea { resize: vertical; font-family: var(--font-body); }
.field input::placeholder,
.field textarea::placeholder { color: #8b8f8c; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.field input.invalid,
.field select.invalid {
  border-color: #b3261e;
  background: #fdf3f2;
}
.consent.invalid { outline: 2px solid #b3261e; outline-offset: 4px; }

/* Honeypot: hidden from sighted users and mouse/keyboard, but present in the DOM */
.field--trap {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  cursor: pointer;
}
.consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  flex-shrink: 0;
}
.consent a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

button#submit-btn {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(14px, 4vw, 16px);
  white-space: nowrap;
  padding: 16px 8px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
button#submit-btn:hover { background: #d9560b; }
button#submit-btn:active { transform: scale(0.99); }
button#submit-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
button#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  min-height: 1.2em;
  margin: 14px 0 0;
  font-size: 14px;
  color: #b3261e;
}
.form-message:empty { margin: 0; }

/* ---------- Success state ---------- */
.success { text-align: center; padding: 12px 0; }
.success__headline {
  font-family: var(--font-accent);
  font-size: 40px;
  color: var(--orange);
  margin: 0 0 8px;
}
.success__note { margin: 14px 0 0; color: var(--ink); font-size: 15px; }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 40px;
  border-top: 1px solid #d8d2c4;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #55584f;
  flex-wrap: wrap;
}
.socials { display: flex; gap: 16px; flex-wrap: wrap; }
.socials a { color: #55584f; text-decoration-color: var(--orange); }
.socials a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .page { padding: 0 24px; }
  .hero { grid-template-columns: 1fr; row-gap: 24px; padding: 24px 0 48px; }
  .hero__form { padding: 28px; }
  .hero__copy h1 { font-size: clamp(40px, 12vw, 56px); }
}

@media (max-width: 420px) {
  .page { padding: 0 16px; }
  .hero__form { padding: 22px; }
}
