:root {
  --bg: #000000;
  --text: #FFFFFF;
  --muted: #A3ABA6;
  --rule: #1C2A21;
  --forest: #1F6F3F;      /* buttons, filled UI (white text: 6.2:1) */
  --forest-hi: #4CAF6E;   /* links, focus, icons (on black: 7.7:1) */
  --field: #07110B;
  --field-border: #2A3D31;
  --danger: #FF8A8A;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest-hi); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--forest-hi); outline-offset: 3px; border-radius: 3px; }

.page { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
main.page { flex: 1; }

/* Top bar: menu (left), social links (right) */
.topbar { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.menu { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.menu a, .back {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.menu a:hover, .back:hover { color: var(--forest-hi); }
.menu a[aria-current="page"] { border-bottom-color: var(--forest-hi); }
.back { display: inline-flex; align-items: center; gap: 0.5rem; }
.back .arrow { font-size: 1.2em; line-height: 1; transition: transform 150ms ease; }
.back:hover .arrow { transform: translateX(-3px); }
@media (prefers-reduced-motion: reduce) { .back .arrow { transition: none; } }
.social { display: flex; gap: 0.6rem; align-items: center; margin-right: -0.4rem; }
.social a { display: inline-flex; color: var(--forest-hi); padding: 0.4rem; }
.social a:hover { color: var(--text); }
.social svg { width: 1.6rem; height: 1.6rem; }

/* Home */
.hero { max-width: 50rem; padding: 14vh 0 5rem; }
.name {
  margin: 0;
  font-size: clamp(2.9rem, 10.5vw, 5.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.name .dot {
  display: inline-block;
  max-width: 0.4em;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--forest-hi);
  transition: max-width 700ms cubic-bezier(.7,0,.2,1), opacity 400ms ease;
}
.name.resolved .dot { max-width: 0; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .name .dot { transition: none; } }
.role {
  margin: 1.1rem 0 0;
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 700;
  color: var(--forest-hi);
  letter-spacing: -0.01em;
}
.intro { max-width: 34rem; margin: 1.75rem 0 0; font-size: 1.125rem; }
.actions { margin-top: 2.25rem; }

.button {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  background: var(--forest);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--forest);
  border-radius: 6px;
  cursor: pointer;
}
.button:hover { background: #26844B; border-color: #26844B; text-decoration: none; }
.button.ghost { background: transparent; border-color: var(--forest); }
.button.ghost:hover { background: rgba(76, 175, 110, 0.12); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Contact */
.inner { max-width: 36rem; padding: 10vh 0 4rem; }
.inner h1 { margin: 0; font-size: clamp(2.4rem, 7vw, 3.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.lede { margin: 1.25rem 0 2.25rem; color: var(--muted); font-size: 1.125rem; }

form { display: grid; gap: 1.1rem; }
label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.95rem; }
input, textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--forest-hi); outline-offset: 0; border-color: transparent; }
textarea { min-height: 10rem; resize: vertical; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; min-height: 1.6em; }
.status.error { color: var(--danger); }
.sent h2 { margin: 0 0 0.4rem; font-size: 1.3rem; color: var(--forest-hi); }
.sent p { margin: 0; color: var(--muted); }

footer { border-top: 1px solid var(--rule); }
footer .page { padding-top: 1.75rem; padding-bottom: 2.5rem; color: var(--muted); font-size: 0.9rem; }
