:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --ink: #111318;
  --muted: #5A6070;
  --line: #DCDCE3;
  --field-line: #868B98;
  --blue: #002FA7;
  --blue-ink: #FFFFFF;
  --ghost-a: #002FA7;
  --ghost-b: #4F7DFF;
  --ghost-c: #9DB7FF;
  --ghost-blend: multiply;
  --field: 0, 47, 167;
  --field-alpha: 0.1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05081A;
    --surface: #0B1029;
    --ink: #F2F3F7;
    --muted: #9AA1B8;
    --line: #1E2547;
    --field-line: #5A6596;
    --blue: #7D97FF;
    --blue-ink: #05081A;
    --ghost-a: #2F5BFF;
    --ghost-b: #7FA0FF;
    --ghost-c: #C3D2FF;
    --ghost-blend: screen;
    --field: 125, 151, 255;
    --field-alpha: 0.12;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 'Hanken Grotesk', "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(16px, 4vw, 48px);
}
.top-mark { font-weight: 700; color: var(--blue); text-decoration: none; letter-spacing: -0.01em; opacity: 0; transition: opacity .4s; }
.scrolled .top-mark { opacity: 1; }
.top-link { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.top-link:hover { color: var(--blue); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100lvh; overflow: hidden;
  display: grid; place-items: center; padding: 96px 16px 64px;
}
.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; text-align: center; max-width: 960px; }

.wordmark {
  margin: 0; color: var(--blue);
  font-size: clamp(64px, 12vw, 168px); line-height: 0.9; font-weight: 700;
  letter-spacing: -0.045em; white-space: nowrap;
}
.wordmark, .field { -webkit-user-select: none; user-select: none; }
.wordmark .lt { position: relative; display: inline-block; text-align: center; }
.wordmark .core { position: relative; display: block; will-change: filter, opacity; }
.wordmark .g {
  position: absolute; inset: 0; display: block; pointer-events: none;
  opacity: 0; mix-blend-mode: var(--ghost-blend); will-change: transform, opacity, filter;
}
.wordmark .g0 { color: var(--ghost-a); }
.wordmark .g1 { color: var(--ghost-b); }
.wordmark .g2 { color: var(--ghost-c); }
.js .wordmark:not(.ready) { opacity: 0; }

.tagline {
  margin: 24px auto 0; max-width: 40ch;
  font-size: clamp(18px, 2vw, 22px); line-height: 1.3; font-weight: 400; letter-spacing: -0.01em; color: var(--muted);
}
.cta { margin-top: 32px; }
.link-cta {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px;
  border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .2s, border-color .2s;
}
.link-cta:hover { color: var(--blue); border-color: var(--blue); }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--blue); color: var(--blue-ink);
  font: 600 16px/1 'Hanken Grotesk', sans-serif; letter-spacing: -0.005em;
  padding: 16px 26px; text-decoration: none;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px var(--blue); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Contact */
.contact {
  max-width: 1080px; margin: 0 auto; padding: 120px clamp(16px, 4vw, 48px) 120px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start;
}
.contact h2 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.contact-copy p { color: var(--muted); margin: 0 0 16px; max-width: 38ch; }
.contact-copy .candidates { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }

.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; }
.form label span { font-size: 14px; font-weight: 600; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--field-line); padding: 13px 14px; border-radius: 0;
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus { border-color: var(--blue); outline: none; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.form textarea { resize: vertical; min-height: 130px; }
.form .fine { margin: 0; font-size: 13px; color: var(--muted); }
.form .btn { justify-self: start; }

.foot {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
  padding: 32px 16px 40px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--blue); }

.js .reveal { opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1), filter .9s; }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

.page { max-width: 720px; margin: 0 auto; padding: 120px 16px 80px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 24px; }
.page h2 { font-size: 20px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.page p, .page li { color: var(--muted); }

@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; gap: 40px; padding-top: 80px; }
  .form .row { grid-template-columns: 1fr; }
}
