:root {
  --navy: #212b38;
  --navy-deep: #1a222d;
  --surface: #273242;
  --line: #3b475a;
  --orange: #cf6a33;
  --orange-bright: #dd7b44;
  --orange-dark: #a94f22;
  --cream: #ece6da;
  --grey: #9aa0a8;
  --error: #f4a08c;
  --radius: 10px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hero */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 7vh, 4.5rem);
  padding: 4rem 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, #263142 0%, transparent 70%),
    var(--navy);
}

.lockup {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.mark {
  width: clamp(130px, 23vw, 290px);
  height: auto;
  flex: none;
  overflow: visible;
}

.mark {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Rotated by compass.js. */
.needle {
  transform-box: view-box;
  transform-origin: 50% 50%;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.wordmark h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6.4vw, 5.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.odd {
  color: var(--orange);
}

.tagline {
  margin: 0.9em 0 0;
  color: var(--grey);
  font-size: clamp(0.88rem, 2.52vw, 2.07rem);
  letter-spacing: 0.34em;
  margin-right: -0.34em; /* cancel the trailing letter-space */
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .lockup {
    flex-direction: column;
    text-align: center;
  }
  .wordmark h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .tagline { font-size: clamp(0.8rem, 4.3vw, 1.18rem); }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange-bright);
  color: var(--navy-deep);
  font: 600 1rem/1 var(--font);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.button:hover {
  background: #e88a54;
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange-bright);
  outline-offset: 2px;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Contact */

.contact {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 10vh, 7rem) 1.5rem;
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
}

.contact-inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.contact h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.contact h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 1rem;
  border-radius: 2px;
  background: var(--orange);
}

.lede {
  margin: 1.25rem 0 2.5rem;
  color: var(--grey);
  font-size: 1.075rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.25rem;
}

.field.full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.optional {
  margin-left: 0.35rem;
  color: var(--grey);
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--cream);
  font: 400 1rem/1.4 var(--font);
  transition: border-color 0.15s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #536077;
}

textarea {
  resize: vertical;
  min-height: 9rem;
}

.select {
  position: relative;
}

.select select {
  appearance: none;
  padding-right: 2.75rem;
  cursor: pointer;
}

.select select:invalid {
  color: var(--grey);
}

.select option {
  color: var(--cream);
  background: var(--surface);
}

.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

[aria-invalid="true"] {
  border-color: var(--error);
}

.error {
  min-height: 1.4rem;
  margin: 0.3rem 0 0.4rem;
  color: var(--error);
  font-size: 0.85rem;
  line-height: 1.4;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile {
  min-height: 65px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}

.privacy {
  margin: 0;
  color: var(--grey);
  font-size: 0.875rem;
}

.status {
  min-height: 1.5rem;
  margin: 1.25rem 0 0;
  color: var(--error);
}

.sent {
  padding: 2rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  background: var(--surface);
}

.sent:focus {
  outline: none;
}

.sent h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 500;
}

.sent p {
  margin: 0;
  color: var(--grey);
}

/* Footer */

.footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--navy-deep);
  color: var(--grey);
  font-size: 0.85rem;
  text-align: center;
}

.footer p {
  margin: 0;
}
