:root {
  color-scheme: dark;

  /* Sampled by eye from the logo: midnight navy, owl-eye blue, moonlight cream. */
  --night: #070b16;
  --night-raised: #0c1324;
  --surface: #121b33;
  --line: #24304f;
  --line-strong: #3a4a73;
  --text: #e8ecf6;
  --text-muted: #a3aec7;
  --blue: #2f8cff;
  --blue-bright: #6db2ff;
  --moon: #f3e6c8;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-bright); }
a:hover { color: var(--moon); }

:focus-visible {
  outline: 2px solid var(--moon);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--moon);
  color: var(--night);
}
.skip-link:focus { top: 12px; color: var(--night); }

.eyebrow {
  margin: 0 0 16px;
  color: var(--moon);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1875rem;
  line-height: 1.6;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(7 11 22 / 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { border-radius: 50%; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9375rem;
}
.site-header nav a { color: var(--text-muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a.nav-cta { color: var(--moon); font-weight: 500; }

/* Hero: a night sky, with the stars drawn as small radial gradients. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, var(--moon), transparent),
    radial-gradient(1px 1px at 27% 68%, #fff, transparent),
    radial-gradient(1px 1px at 41% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 56% 82%, var(--blue-bright), transparent),
    radial-gradient(1px 1px at 63% 26%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 14%, var(--moon), transparent),
    radial-gradient(1px 1px at 94% 72%, #fff, transparent),
    radial-gradient(1px 1px at 76% 90%, #fff, transparent),
    radial-gradient(circle at 78% 50%, rgb(47 140 255 / 0.2), transparent 42%),
    var(--night);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-block: clamp(64px, 11vw, 136px);
}

.hero .lede { max-width: 38em; margin-top: 24px; }

.hero__note {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.hero__mark { display: flex; justify-content: center; }
.hero__mark img {
  width: 200px;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 0 90px rgb(47 140 255 / 0.35);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: 500 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.button:hover { border-color: var(--blue-bright); color: var(--text); }

.button--primary {
  border-color: var(--blue);
  background: #1668d8;
  color: #fff;
}
.button--primary:hover { background: var(--blue); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Sections */
.section {
  padding-block: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--line);
}
.section--raised { background: var(--night-raised); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 80px);
}

.traits {
  margin: 32px 0;
  padding: 0;
  list-style: none;
}
.traits li {
  padding-block: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}
.traits strong { color: var(--text); font-weight: 600; }

.text-link { font-weight: 500; }

.heading-wide { max-width: 22em; }

h2 + .lede { margin-top: 16px; }

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 6vw, 80px);
  margin: 48px 0 0;
}
.services > div {
  padding-block: 24px;
  border-top: 1px solid var(--line-strong);
}
.services dt {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}
.services dd {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.expectations { margin: 32px 0 0; }
.expectations > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.expectations dt {
  color: var(--moon);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.95;
}
.expectations dd { margin: 0; }

/* Contact */
.contact-alt { margin: 24px 0 0; color: var(--text-muted); }

.contact-form {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.field { display: grid; gap: 6px; width: 100%; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.optional { color: var(--text-muted); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--blue-bright);
  outline-offset: 0;
  border-color: transparent;
}

/* Hidden from people; bots tend to fill it in. */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { margin: 0; min-height: 1.65em; }
.form-status[data-state="success"] { color: var(--moon); }
.form-status[data-state="error"] { color: #ffb4a8; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 28px;
}
.site-footer p { margin: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Standalone pages: thanks and 404 */
.notice {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 32px 24px;
  text-align: center;
}
.notice img { border-radius: 50%; }
.notice p { margin: 0; color: var(--text-muted); max-width: 32em; }

@media (max-width: 820px) {
  .hero__inner,
  .split,
  .services { grid-template-columns: minmax(0, 1fr); }
  .hero__mark { order: -1; justify-content: flex-start; }
  .hero__mark img { width: 120px; }
  .nav-section { display: none; }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .brand span { font-size: 0.9375rem; }
  .brand { gap: 8px; }
  .site-header nav { gap: 14px; }
  .expectations > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

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