:root {
  color-scheme: light dark;
  --background: #f7f8f4;
  --surface: #fffefa;
  --text: #20271f;
  --muted: #626a60;
  --accent: #397342;
  --button: #d2eb92;
  --button-hover: #c5df81;
  --button-text: #202b15;
  --line: #d7dcd1;
  --soft: #edf0e7;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111411;
    --surface: #191d18;
    --text: #eceee5;
    --muted: #a0a799;
    --accent: #b4d982;
    --button: #c7e99c;
    --button-hover: #d7f3b5;
    --button-text: #182310;
    --line: #333a2f;
    --soft: #22291f;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--mono); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
::selection { background: var(--button); color: var(--button-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.page-shell { max-width: 1280px; min-height: 100svh; padding: 0 64px; margin-inline: auto; display: flex; flex-direction: column; }
.site-header { min-height: 114px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 13px; font-size: 22px; font-weight: 700; letter-spacing: -.8px; text-decoration: none; }
.wordmark-dot { margin-left: -12px; color: var(--accent); }
.brand-mark { width: 31px; height: 31px; color: var(--accent); }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero { padding-top: clamp(64px, 9vh, 112px); padding-bottom: 38px; }
.eyebrow { display: flex; gap: 10px; align-items: center; color: var(--muted); text-transform: uppercase; font-size: 11px; line-height: 1.6; letter-spacing: 1.4px; margin: 0 0 30px; }
.status-dot { width: 6px; height: 6px; flex: 0 0 6px; background: var(--accent); }
h1 { font-weight: 500; font-size: clamp(38px, 5.45vw, 70px); line-height: 1.15; letter-spacing: -.065em; margin: 0; }
.accent { color: var(--accent); }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-top: 43px; }
.hero-copy { max-width: 475px; font-size: 14px; line-height: 1.8; }
.hero-copy p { margin: 0; }
.hero-copy .description { color: var(--muted); margin-top: 16px; font-size: 13px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; min-width: 204px; padding-bottom: 4px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 26px; padding: 0 21px; text-decoration: none; font-size: 13px; font-weight: 500; line-height: 1.4; border: 1px solid transparent; border-radius: 3px; transition: background-color 150ms, border-color 150ms; }
.button-primary { color: var(--button-text); background: var(--button); }
.button-primary:hover:enabled { background: var(--button-hover); }
.button-secondary { color: var(--text); background: transparent; border-color: var(--line); gap: 12px; }
.button-secondary svg { width: 16px; height: 16px; }
.button-secondary:hover { background: var(--soft); border-color: var(--muted); }
.principles { margin-top: 52px; border-top: 1px solid var(--line); padding-top: 24px; }
.principles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; }
.principle dt { font-size: 12px; line-height: 1.6; font-weight: 500; }
.principle dt span { color: var(--accent); font-size: 10px; margin-right: 5px; }
.principle dd { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 10px 0 0; }
.signal { display: flex; align-items: center; gap: 20px; margin-top: 42px; color: var(--accent); }
.signal > span { font-size: 10px; letter-spacing: 2px; color: var(--muted); white-space: nowrap; }
.signal-line { height: 1px; background: var(--line); flex: 1; }
.signal svg { width: 160px; height: 36px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); min-height: 85px; font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.footer-message { text-align: right; }
.footer-message .accent { margin-left: 3px; }
.skip-link { position: absolute; top: -80px; left: 24px; z-index: 10; padding: 14px; background: var(--button); color: var(--button-text); }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

dialog { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; overscroll-behavior: contain; }
dialog::backdrop { background: rgb(8 14 8 / 65%); backdrop-filter: blur(5px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-content { padding: 39px; }
.close-button { position: absolute; top: 16px; right: 16px; color: var(--muted); background: transparent; border: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 3px; }
.close-button:hover { background: var(--soft); color: var(--text); }
.close-button svg { width: 22px; height: 22px; }
dialog .eyebrow { margin-bottom: 19px; }
h2 { font-size: 32px; line-height: 1.18; letter-spacing: -1.5px; font-weight: 500; margin: 0; }
#contact-intro { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 16px 0 23px; }
.form-notice { font-size: 11px; line-height: 1.7; background: var(--soft); padding: 13px 15px; margin: 0 0 24px; color: var(--muted); border-left: 2px solid var(--accent); }
.form-notice a { color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
label { font-size: 11px; }
.optional { color: var(--muted); font-size: 10px; }
input, textarea { width: 100%; color: var(--text); background: var(--background); border: 1px solid var(--line); border-radius: 3px; padding: 11px 12px; font-size: 13px; line-height: 1.5; }
textarea { resize: vertical; min-height: 100px; }
input:focus-visible, textarea:focus-visible { outline-offset: 2px; }
.submit-button { width: 100%; margin-top: 2px; }
.submit-button:disabled { color: var(--muted); background: var(--soft); border-color: var(--line); }
.form-footnote { color: var(--muted); font-size: 10px; margin: 13px 0 0; }
.noscript-message { margin: 24px; font-size: 13px; line-height: 1.8; }
[hidden] { display: none !important; }

@media (min-width: 1600px) { .page-shell { max-width: 1400px; padding-inline: 80px; } h1 { font-size: 78px; } }
@media (max-width: 900px) {
  .page-shell { padding-inline: 36px; }
  .hero-bottom { gap: 32px; }
  .hero-actions { min-width: 174px; }
  .hero-copy { font-size: 13px; }
  .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
}
@media (max-width: 620px) {
  .page-shell { padding-inline: 24px; }
  .site-header { min-height: 88px; }
  .wordmark { font-size: 18px; gap: 9px; }
  .wordmark-dot { margin-left: -9px; }
  .brand-mark { width: 25px; height: 25px; }
  .hero { padding-top: 61px; padding-bottom: 25px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.1px; margin-bottom: 27px; }
  h1 { font-size: clamp(26px, 6.55vw, 40px); letter-spacing: -.065em; line-height: 1.23; }
  .hero-bottom { flex-direction: column; align-items: stretch; gap: 29px; margin-top: 30px; }
  .hero-copy { max-width: 430px; }
  .hero-copy .description { font-size: 12px; margin-top: 13px; }
  .hero-actions { flex-direction: row; gap: 10px; }
  .hero-actions .button { flex: 1; padding-inline: 15px; gap: 10px; font-size: 12px; }
  .principles { margin-top: 36px; }
  .principles-grid { gap: 24px 20px; }
  .principle dt span { display: block; margin: 0 0 4px; }
  .signal { margin-top: 43px; gap: 15px; }
  .signal svg { width: 110px; }
  .site-footer { min-height: 78px; font-size: 9px; letter-spacing: 0; gap: 14px; }
  .dialog-content { padding: 33px 23px 26px; }
  h2 { font-size: 29px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 360px) {
  .page-shell { padding-inline: 18px; }
  .footer-message { max-width: 116px; line-height: 1.8; }
  .principles-grid { grid-template-columns: 1fr; gap: 22px; }
  .principle dt span { display: inline; margin-right: 5px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
