/* Emergent House — self-hosted webfonts (latin + latin-ext). Inter & Space Grotesk are variable. */
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/ibm-plex-mono-400-latin-ext.woff2") format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/ibm-plex-mono-400-latin.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/ibm-plex-mono-500-latin-ext.woff2") format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/ibm-plex-mono-500-latin.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/ibm-plex-mono-600-latin-ext.woff2") format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/ibm-plex-mono-600-latin.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url("../fonts/inter-var-latin-ext.woff2") format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url("../fonts/inter-var-latin.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url("../fonts/space-grotesk-var-latin-ext.woff2") format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url("../fonts/space-grotesk-var-latin.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* Emergent House — design tokens (from the Emergent House Design System). */
:root {
  /* Ink */
  --ink-950: #05070b; --ink-900: #0b0f17; --ink-800: #121826; --ink-700: #1b2233;
  /* Gray */
  --gray-700: #2a323f; --gray-600: #454e5c; --gray-500: #667085; --gray-400: #8a94a6;
  --gray-300: #b7bfcc; --gray-200: #dde1e8; --gray-100: #eef0f4; --gray-50: #f7f8fa;
  --white: #ffffff;
  /* Blue (accent — used sparingly) */
  --blue-800: #0e2a5c; --blue-700: #163a76; --blue-600: #1e4a93; --blue-500: #2f63c4;
  --blue-400: #5580d6; --blue-300: #9db6e8; --blue-100: #e7edf9;

  --border-inverse: rgba(255, 255, 255, 0.16);
  --accent-on-dark: var(--blue-400);
  --status-negative: #b13030;
  --status-negative-on-dark: #e5787a;

  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600;
  --leading-normal: 1.5; --leading-loose: 1.7;
  --tracking-wide: 0.04em; --tracking-widest: 0.12em;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 120ms;
}
/* Emergent House — page styles. */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--ink-950);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blue-700); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 3px; }

a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--border-inverse); transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard); }
a:hover { color: var(--accent-on-dark); border-color: var(--accent-on-dark); }

.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; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.page {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 5vw, 64px) clamp(24px, 6vw, 96px);
  gap: 48px;
}

/* Wordmark */
.mark { font-family: var(--font-mono); font-weight: var(--weight-semibold); font-size: 20px; letter-spacing: -0.01em; display: inline-flex; align-items: center; border: 0; color: var(--white); }
.mark:hover { color: var(--white); }
.mark .h { color: var(--accent-on-dark); }
.cursor { display: inline-block; width: 0.5em; height: 1.05em; background: var(--accent-on-dark); margin-left: 3px; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* Hero + form */
.main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 140px); align-items: end; }
h1 { font-family: var(--font-display); font-weight: var(--weight-medium); font-size: clamp(44px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
h1 span { color: var(--gray-400); }

form { display: flex; flex-direction: column; gap: 28px; max-width: 440px; width: 100%; }
.label { font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--tracking-widest); text-transform: uppercase; color: var(--gray-400); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--gray-700); color: var(--white);
  font: inherit; font-size: 16px; padding: 8px 0 12px; outline: none; resize: none; border-radius: 0;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.field textarea { field-sizing: content; min-height: 3.2em; max-height: 14em; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-600); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent-on-dark); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: var(--status-negative); }
.err { font-size: 13px; color: var(--status-negative-on-dark); min-height: 0; }
.err:empty { display: none; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
button {
  appearance: none; border: 1px solid var(--white); background: var(--white); color: var(--ink-950);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: var(--tracking-wide); text-transform: uppercase;
  padding: 14px 22px; cursor: pointer; display: flex; align-items: center; gap: 10px; border-radius: 0;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
button:hover { background: transparent; color: var(--white); }
button[disabled] { opacity: 0.6; cursor: progress; }
button svg { width: 16px; height: 16px; flex: none; }
.note { font-size: 13px; color: var(--gray-500); }
.form-error { font-size: 14px; color: var(--status-negative-on-dark); margin: 0; }
.form-error:empty { display: none; }

.sent { display: none; flex-direction: column; gap: 12px; max-width: 440px; }
.sent p { margin: 0; font-size: 16px; color: var(--gray-300); line-height: var(--leading-normal); }
.sent .t { font-family: var(--font-display); font-size: 28px; color: var(--white); letter-spacing: -0.02em; }
.is-sent form { display: none; }
.is-sent .sent { display: flex; }

footer { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
footer a { color: var(--gray-500); border-color: transparent; }
footer a:hover { color: var(--white); border-color: var(--border-inverse); }
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }

@media (max-width: 860px) { .main { grid-template-columns: 1fr; align-items: start; } }

/* Long-form pages (privacy, 404) */
.prose { max-width: 680px; align-self: start; }
.prose h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 32px; }
.prose h2 { font-family: var(--font-display); font-weight: var(--weight-medium); font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--gray-300); font-size: 16px; line-height: var(--leading-loose); }
.prose ul { padding-left: 1.2em; }
.prose .label { display: block; margin-bottom: 16px; }
