:root {
  color-scheme: dark;
  /* Button and bubble fill, sampled from the logo. Too dark to read as text on this background, hence --accent. */
  --violet: #4f27cb;
  --violet-hover: #6340dc;
  --accent: #ab95ff;
  --ink: #f2eefc;
  --muted: #a7a0c0;
  --paper: #0f0b1e;
  --surface: #1a1430;
  --tint: #271e47;
  --band: #1c1240;
  --line: #2f2752;
  --on-violet: #ffffff;
  --placeholder: #6f6890;

  --display: "Gloock", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1120px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */

.top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}
.mark { display: inline-flex; }
.mark img { display: block; height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); }
.nav .nav__cta {
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 7px 16px;
}
.nav .nav__cta:hover { background: var(--accent); color: var(--paper); }

/* Hero */

.hero { padding: 88px 0 96px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow, .thread__label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { color: var(--accent); margin-bottom: 20px; }

h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lede {
  margin-top: 26px;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.15rem;
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.btn {
  display: inline-block;
  background: var(--violet);
  color: var(--on-violet);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background 0.15s;
}
.btn:hover { background: var(--violet-hover); }

/* Signature: the email thread */

.thread {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 30px 80px -30px rgba(79, 39, 203, 0.45);
}
.thread__label { color: var(--muted); margin-bottom: 18px; }

.msg {
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.98rem;
  line-height: 1.55;
}
.msg + .msg { margin-top: 14px; }
.msg--them { background: var(--tint); margin-right: 36px; }
.msg--me {
  background: var(--violet);
  color: var(--on-violet);
  margin-left: 36px;
}
.msg__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-bottom: 6px;
  opacity: 0.75;
}

@media (prefers-reduced-motion: no-preference) {
  .msg--me { animation: arrive 0.6s 0.5s both cubic-bezier(.2,.7,.2,1); }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

/* Sections */

.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section__title {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 40px;
}

.section__intro { max-width: 36em; margin: -20px 0 48px; font-size: 1.25rem; color: var(--ink); }

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.trio h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-bottom: 12px;
  padding-top: 18px;
  border-top: 2px solid var(--accent);
}
.trio p { color: var(--muted); }
.owns {
  margin-top: 48px;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--accent);
}

/* About */

.about { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.about .section__title { margin-bottom: 0; }
.about__body p { font-size: 1.2rem; max-width: 34em; }
.about__body p + p { margin-top: 18px; }

/* Quote request */

.quote { background: var(--band); padding: 96px 0; border-top: 1px solid var(--line); }
.quote__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.quote h2 { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05; }
.quote__intro p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  gap: 20px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__trap { position: absolute; left: -9999px; }

.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: 0.93rem; padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field--narrow { max-width: 280px; }

.field input, .field textarea, .field select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(171, 149, 255, 0.2);
}
.field ::placeholder { color: var(--placeholder); }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 6px; }
.checks label { display: flex; align-items: center; gap: 10px; font-size: 0.97rem; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.form .btn { justify-self: start; border: 0; font: inherit; font-weight: 600; cursor: pointer; }

.foot { padding: 28px 0; font-size: 0.9rem; color: var(--muted); }
.foot__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Responsive */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .quote__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav a:not(.nav__cta) { display: none; }
  .hero { padding: 56px 0 64px; }
  .section, .quote { padding: 64px 0; }
  .trio, .about, .form__row, .checks { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; }
  .trio { gap: 32px; }
  .section__intro { margin: -16px 0 36px; font-size: 1.1rem; }
  .msg--them { margin-right: 16px; }
  .msg--me { margin-left: 16px; }
}
