
/* ---------- tokens ---------- */

:root {
  --paper: #F5F6F9;
  --white: #FFFFFF;
  --band:  #E9ECF3;
  --ink:   #12151C;
  --muted: #4F5563;
  --line:  #DCE0E8;
  /* the accent, sampled from the background of the headshot: #8D414D */
  --wine:      #8D414D;
  --wine-deep: #6E323B;
  --wine-tint: #F6EDEF;
  --wine-line: #E2C9CE;
  --wine-lift: #E9A9B4;

  --on-ink:      #F2F3F6;
  --on-ink-mute: #A9ADB6;
  --on-ink-line: #33373F;

  --r-card: 14px;
  --r-pill: 999px;
  --wrap: 1080px;
}

/* ---------- reset and base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 760px) { body { font-size: 17px; } }

@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img { max-width: 100%; height: auto; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--on-ink);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

.wrap--mid  { max-width: 820px; }
.wrap--form { max-width: 620px; }

/* ---------- sticky nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 249, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__in {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
@media (min-width: 760px) { .nav__in { padding: 0 32px; height: 68px; } }

.nav__in--mid { max-width: 820px; }

.mark {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.mark__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--wine);
  vertical-align: 0.06em;
}

.nav__links {
  display: none;
  gap: 30px;
}
@media (min-width: 860px) { .nav__links { display: flex; } }

.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.nav__links a:hover { color: var(--ink); }

/* ---------- pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.pill--dark { background: var(--ink); color: var(--on-ink); }
.pill--dark:hover { background: #2B2F37; }

.pill--light { background: var(--white); color: var(--ink); }
.pill--light:hover { background: #E6E5E1; }

.pill--ghost { background: transparent; color: var(--ink); border-color: #6E7480; }
.pill--ghost:hover { border-color: var(--ink); background: rgba(18, 21, 28, 0.04); }

.pill--lg { padding: 14px 30px; font-size: 16px; }

.pill--yt { padding-left: 18px; }

.yt { flex: 0 0 auto; }
.foot__yt { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- hero ---------- */

.hero {
  padding: 52px 0 22px;
  text-align: center;
}
@media (min-width: 760px) { .hero { padding: 116px 0 30px; } }

@media (min-width: 900px) and (min-height: 620px) {
  .hero {
    min-height: calc(100svh - 69px);
    padding-top: 20px;
    padding-bottom: calc(20px + clamp(8px, 4.75svh - 21.7px, 30px));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.hero__h1 {
  margin: 0 auto 22px;
  max-width: 20ch;
  font-size: clamp(2.15rem, 5.6vw, 4.05rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero__sub {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero__act { margin-top: 30px; }

.rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 30px auto 0;
}

.rail__i {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 15px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 14px;
  line-height: 1.3;
}

.rail__v { font-weight: 700; letter-spacing: -0.01em; }
.rail__l { color: var(--muted); }

/* ---------- the founder card, in the about section ---------- */

.who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 34px;
  padding: 16px 34px 16px 30px;
  border: 1px solid var(--line);
  border-radius: 44px;
  background: var(--white);
  text-align: left;
}
@media (max-width: 560px) {
  .who {
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px 20px;
    border-radius: var(--r-card);
    text-align: center;
  }
}

.who__photo {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  margin-left: -12px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--wine-tint), 0 0 0 3px var(--wine-line);
}
@media (max-width: 560px) { .who__photo { margin-left: 0; } }

.who__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}

.who__name {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- bands and section headings ---------- */

main > section { scroll-margin-top: 76px; }

@media (min-width: 900px) and (min-height: 620px) {
  html { scroll-snap-type: y proximity; }
  .hero { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
}

.band { padding: 60px 0; }
@media (min-width: 760px) { .band { padding: 72px 0; } }

.band--alt { background: var(--band); }

.band--tight { padding: 46px 0; }
@media (min-width: 760px) { .band--tight { padding: 64px 0; } }

.head {
  max-width: 62ch;
  margin: 0 auto 36px;
  text-align: center;
}
@media (min-width: 760px) { .head { margin-bottom: 28px; } }

.h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.head__sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(0.97rem, 1.3vw, 1.05rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.band--tight .head { margin-bottom: 26px; }

.head__act { text-align: center; }

/* ---------- card grids ---------- */

.grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .grid { gap: 16px; } }

.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid--2 { grid-template-columns: 1fr 1fr; } }

.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
}
@media (min-width: 760px) { .card { padding: 26px; } }

.chip {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--wine-line);
  background: var(--wine-tint);
  color: var(--wine);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  line-height: 1.2;
}

.card__h {
  font-size: clamp(1.13rem, 1.7vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card__p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.62;
}

#running .guard { margin-top: auto; padding-top: 22px; }

.guard {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}

.guard__l {
  display: block;
  margin-bottom: 4px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card__soon {
  margin-top: 18px;
  color: #6A6F7B;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ---------- facts ---------- */

.facts {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 780px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 0; } }

.fact { padding: 4px 0; }
@media (min-width: 780px) {
  .fact { padding: 0 26px; }
  .fact + .fact { border-left: 1px solid var(--line); }
}

.fact__v {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.fact__l {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.bio {
  max-width: 76ch;
  margin: 30px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  text-wrap: pretty;
}
.bio + .bio { margin-top: 12px; }

@media (max-width: 700px) {
  #about .bio, #about .note { text-align: left; }
}

.note {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.risk {
  margin-top: 14px;
  color: var(--on-ink);
  font-size: clamp(0.97rem, 1.3vw, 1.05rem);
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- steps ---------- */

.steps {
  position: relative;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 620px) { .steps { grid-template-columns: 1fr 1fr; gap: 34px 30px; } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 30px; } }

.step { position: relative; }

@media (min-width: 980px) {
  .step::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 40px;
    right: -30px;
    height: 1px;
    background: var(--line);
  }
  .step:last-child::after { display: none; }
}

.step__n {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--wine);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--paper);
}

.step__h {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
}
@media (min-width: 620px) {
  .steps { grid-template-rows: repeat(3, auto); }
  .step {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    align-content: start;
  }
  .step__h { min-height: 0; }
}
@supports not (grid-template-rows: subgrid) {
  @media (min-width: 620px) { .step { display: block; } }
}

.step__p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- the closing call to action, on ink ---------- */

.cta {
  background: var(--ink);
  color: var(--on-ink);
  padding: 60px 0;
}
@media (min-width: 760px) { .cta { padding: 72px 0; } }

.cta .h2 { color: var(--on-ink); }
.cta .head__sub { color: var(--on-ink-mute); }
.cta :focus-visible { outline-color: var(--wine-lift); }

.form { display: block; }

.noscript {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--on-ink-line);
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.55;
}

.field { margin-bottom: 14px; }

.label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}

.hint {
  margin-bottom: 8px;
  color: var(--on-ink-mute);
  font-size: 13.5px;
  line-height: 1.5;
}

.input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #6B7080;
  border-radius: 10px;
  background: #1C1F25;
  color: var(--on-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.input::placeholder { color: var(--on-ink-mute); }
.input:hover { border-color: #8A8F9C; }
.input:focus { border-color: var(--wine-lift); outline: none; }
.input:focus-visible { outline: 2px solid var(--wine-lift); outline-offset: 2px; }

.input--area { resize: vertical; min-height: 120px; }

.input[aria-invalid="true"] { border-color: #FF9E9E; }

/* Must stay display:none: an off-screen honeypot still renders, gets autofilled, and the endpoint then rejects a real enquiry. */
.hp { display: none; }

.btn--submit { margin-top: 6px; }
.cta .btn--submit { display: flex; margin-left: auto; margin-right: auto; }
.cta .fallback { text-align: center; }
.btn--submit:disabled { background: #3A3E46; color: #C6C9D0; cursor: default; }

.status {
  margin-top: 18px;
  min-height: 1.5em;
  font-size: 14.8px;
  line-height: 1.55;
}
.status:empty { margin: 0; min-height: 0; }
.status[data-state="ok"]      { color: #8BE0AE; }
.status[data-state="error"]   { color: #FFA8A8; }
.status[data-state="working"] { color: var(--on-ink-mute); }

.fallback {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}
.fallback a { color: var(--wine); }
.fallback a:hover { color: var(--wine-deep); }

.cta .fallback { color: var(--on-ink-mute); }
.cta .fallback a { color: var(--on-ink-mute); }
.cta .fallback a:hover { color: var(--on-ink); }

.lede {
  max-width: 60ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.lede a { color: var(--wine); }

/* ---------- footer ---------- */

.foot {
  background: var(--ink);
  color: var(--on-ink-mute);
  border-top: 1px solid var(--on-ink-line);
  padding: 28px 0 34px;
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
}

.foot__mark {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-ink);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
}
.foot__links a { color: var(--on-ink-mute); text-underline-offset: 3px; }
.foot__links a:hover { color: var(--on-ink); }

.foot__copy {
  width: 100%;
  font-size: 13px;
  color: #85888F;
  text-wrap: pretty;
}

/* ---------- privacy page ---------- */

.doc { padding: 40px 0 72px; }

.doc h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 8px;
}

.doc h2 {
  font-size: 1.12rem;
  margin: 32px 0 8px;
}

.doc p, .doc li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.doc p { margin-bottom: 12px; }

.doc ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.doc li { margin-bottom: 5px; }

.doc a { color: var(--wine); text-underline-offset: 3px; }
.doc a:hover { color: var(--wine-deep); }

.doc__meta { font-size: 14px; margin-bottom: 26px; }

.doc__back { margin-top: 34px; font-size: 14px; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__h1, .hero__sub, .hero__act, .rail {
    animation: rise .5s cubic-bezier(.22,.61,.36,1) both;
  }
  .hero__sub { animation-delay: .05s; }
  .hero__act { animation-delay: .1s; }
  .rail      { animation-delay: .15s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- print ---------- */

@media print {
  .nav, .skip, .hero__act, .head__act { display: none; }
  body { background: #fff; color: #000; }
  .cta, .foot { background: #fff; color: #000; }
}
