:root {
  --brand-mark: #e63946;
  --brand-primary: #941b26;
  --brand-primary-pressed: #6b1219;
  --brand-tint-soft: #fceef0;
  --brand-gold: #f4b14a;
  --surface-canvas: #fff8ee;
  --surface-paper: #ffffff;
  --surface-warm: #fbf0df;
  --surface-subtle: #f8efe7;
  --border-default: #e9dfd6;
  --border-strong: #d8ccc3;
  --text-primary: #211a17;
  --text-secondary: #5e5650;
  --text-tertiary: #726761;
  --state-error-bg: #fdeced;
  --state-error-fg: #9b242e;
  --state-ok-bg: #ecf8ef;
  --state-ok-fg: #246b36;
  --focus-ring: var(--brand-primary);
  --selection-bg: var(--brand-tint-soft);
  --selection-fg: var(--text-primary);
  --font-body: 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  /* The editorial voice. Headings and pull quotes only: the body stays sans, because
     that is what people actually read at length. All system faces, no web fonts. */
  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --t-display: clamp(2.375rem, 1.4rem + 3vw, 3.5rem);
  --t-quote: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
  --t-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --t-h3: 1.375rem;
  --t-lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --t-body: 1.125rem;
  --t-body-sm: 1rem;
  --t-micro: 0.9375rem;
  --t-eyebrow: 0.8125rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --container: 1120px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  text-wrap: pretty;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-primary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-primary-pressed);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

h1,
h2 {
  max-width: 26ch;
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  max-width: 20ch;
  font-size: var(--t-display);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h2 {
  font-size: var(--t-h2);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 em,
h2 em,
.pullquote em {
  color: var(--brand-primary);
  font-style: italic;
}

h3 {
  margin: 0 0 var(--space-4);
  font-size: var(--t-h3);
  line-height: 1.3;
  font-weight: 600;
  text-wrap: balance;
}

p {
  max-width: 66ch;
  margin: 0 0 var(--space-5);
}

ul {
  margin-top: 0;
}

.container {
  width: min(var(--container), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.narrow {
  max-width: var(--container-narrow);
}

.skip-link {
  position: fixed;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 20;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-paper);
  border: 1px solid var(--border-strong);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface-canvas) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-default);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
}

/* The wordmark's box is deep because the y descender runs 131 units below the
   baseline, so centring the two boxes leaves the letters sitting high and the
   mark reading low. Optical centring would be 3.3px at 32px; 2px by eye. */
.brand-mark {
  width: 48px;
  height: 48px;
  transform: translateY(-2px);
}

/* The wordmark is artwork, not text, so it is sized by height and lets its own
   aspect ratio set the width. */
.brand-wordmark {
  width: auto;
  height: 32px;
}

.header-nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: var(--space-5);
}

.header-nav a,
.footer-links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: var(--t-body-sm);
  text-decoration: none;
}

.header-nav a:hover,
.footer-links a:hover {
  color: var(--brand-primary);
}

.header-cta {
  margin-left: auto;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 16px 32px;
  border: 1px solid transparent;
  font-size: var(--t-body);
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 150ms ease-out,
    border-color 150ms ease-out,
    transform 150ms ease-out;
  cursor: pointer;
}

.button-primary {
  background: var(--brand-primary);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--brand-primary-pressed);
  color: #ffffff;
}

.button-primary:active {
  transform: translateY(1px);
}

.text-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
}

.hero-inner {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.hero-copy > *:last-child {
  margin-bottom: 0;
}

/* The map is decoration for the sentence beside it: the cities it names are already
   in the copy, so it carries no information a screen reader would miss. */
.hero-map {
  width: 100%;
  height: auto;
}

.hero-map .map-graticule {
  fill: none;
  stroke: var(--border-default);
  stroke-width: 1;
}

.hero-map .map-path {
  fill: none;
  stroke: var(--brand-primary);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 3 8;
}

.hero-map .map-path-cold {
  stroke: var(--border-strong);
  stroke-width: 2;
}

.hero-map .map-city {
  fill: var(--brand-primary);
}

.hero-map .map-city-near {
  fill: var(--brand-tint-soft);
  stroke: var(--brand-primary);
  stroke-width: 2;
}

.hero-map .map-city-cold {
  fill: var(--border-default);
}

.hero-map text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--text-primary);
}

.hero-map .map-label-cold {
  font-size: 12px;
  fill: var(--text-tertiary);
}

.hero-map .map-key {
  font-size: 11.5px;
  font-weight: 400;
  fill: var(--text-tertiary);
}

/* SVG text scales with the viewBox, so on a narrow screen the labels shrink with the
   drawing. Sized back up here to stay legible. */
@media (max-width: 47.99rem) {
  .hero-map text {
    font-size: 21px;
  }

  .hero-map .map-label-cold {
    font-size: 19px;
  }

  .hero-map .map-key {
    font-size: 18px;
  }
}

.eyebrow {
  margin-bottom: var(--space-3);
  color: var(--brand-primary);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.lead {
  max-width: 58ch;
  color: var(--text-secondary);
  font-size: var(--t-lead);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.hero-platform-note {
  margin-top: var(--space-4);
  color: var(--text-secondary);
  font-size: var(--t-body-sm);
}

.band,
.page-hero,
.page-body {
  padding-block: var(--section-y);
}

.band-warm {
  background: var(--surface-warm);
}

.split {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-7);
}

.pullquote {
  max-width: 20ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-quote);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.pullquote-aside {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.pullquote-aside .pullquote-body > *:last-child {
  margin-bottom: 0;
}

.pull-line {
  font-weight: 600;
}

.prose > *:last-child,
.band > .container > *:last-child,
.page-body .prose > *:last-child,
.waitlist-panel > *:last-child {
  margin-bottom: 0;
}

.promise-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.promise-grid > div {
  border-top: 2px solid var(--border-strong);
  padding-top: var(--space-5);
}

.promise-grid p,
.audience-card p,
.exclusion-list,
.trust-list {
  color: var(--text-secondary);
}

/* The three-person diagram.
   The dashed rail is one line drawn behind the whole row; each mark sits on an opaque
   disc in the band colour that punches a hole in it. That keeps the clearance around
   every mark correct at any container width, which per-gap connectors do not. */
.trio {
  position: relative;
  display: grid;
  gap: var(--space-7);
  margin: var(--space-8) 0 var(--space-7);
  padding: 0;
  list-style: none;
}

.trio-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  text-align: center;
}

.trio-mark {
  display: grid;
  place-items: center;
  height: 176px;
  margin-bottom: var(--space-4);
}

.trio-disc {
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--brand-tint-soft);
  box-shadow: 0 0 0 20px var(--surface-warm);
}

/* The connector is drawn largest on purpose: the copy says the product is built
   around that person, so the layout should agree with the sentence. */
.trio-disc-lead {
  width: 136px;
  height: 136px;
  background: var(--brand-primary);
  box-shadow:
    0 0 0 12px var(--surface-warm),
    0 0 0 14px var(--brand-gold),
    0 0 0 34px var(--surface-warm);
}

.trio-disc-plain {
  background: var(--surface-warm);
  box-shadow: 0 0 0 16px var(--surface-warm);
}

.trio-mark svg {
  display: block;
}

.trio-step h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.trio-step p {
  max-width: 34ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--t-body-sm);
  line-height: 1.6;
}

.trio-closing {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--text-secondary);
}

.audience-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.audience-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-6);
  background: var(--surface-paper);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(33, 26, 23, 0.04);
}

.checklist {
  display: grid;
  gap: var(--space-3);
  margin: auto 0 0;
  padding-left: 0;
  list-style: none;
  font-size: var(--t-body-sm);
}

.checklist li {
  position: relative;
  padding-left: var(--space-5);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.55rem;
  height: 0.55rem;
  border-left: 2px solid var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary);
  transform: rotate(-45deg);
}

.compact-top {
  padding-top: 0;
}

.exclusion-list,
.trust-list {
  display: grid;
  gap: var(--space-5);
  padding: 0;
  list-style: none;
}

.exclusion-list li,
.trust-list li {
  margin: 0;
}

.exclusion-list strong,
.trust-list strong {
  color: var(--text-primary);
}

.waitlist-band {
  background: var(--brand-tint-soft);
}

.waitlist-panel {
  padding: var(--space-6);
  background: var(--surface-paper);
  border-radius: 16px;
}

.waitlist-form {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.form-todo,
.placeholder-block {
  padding: var(--space-4);
  background: var(--surface-subtle);
  border: 1px dashed var(--brand-primary);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: var(--t-body-sm);
}

.field {
  display: grid;
  gap: var(--space-2);
}

label,
legend {
  color: var(--text-primary);
  font-size: var(--t-body-sm);
  font-weight: 600;
}

input[type='text'],
input[type='email'],
select,
textarea {
  min-height: 52px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-paper);
  color: var(--text-primary);
  font: inherit;
  font-size: 1.0625rem;
}

textarea {
  min-height: 9rem;
  line-height: 1.6;
  resize: vertical;
}

select {
  appearance: none;
  padding-right: 44px;
  /* Chevron drawn inline so the page still makes zero external requests. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235E5650' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
}

input[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: var(--state-error-fg);
}

.error-message {
  min-height: 1.4em;
  margin: 0;
  color: var(--state-error-fg);
  font-size: var(--t-micro);
  line-height: 1.5;
}

.checkbox-group {
  border: 0;
  padding: 0;
}

.checkbox-group label {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-block: var(--space-2);
  font-weight: 400;
}

.checkbox-group input {
  width: 24px;
  height: 24px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--brand-primary);
}

.hp-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  min-height: 52px;
}

.form-microcopy {
  color: var(--text-secondary);
  font-size: var(--t-micro);
}

.form-status {
  margin: 0;
  color: var(--state-error-fg);
  font-size: var(--t-micro);
}

.founder-note .signature {
  color: var(--text-secondary);
  font-size: var(--t-body-sm);
}

.signature {
  color: var(--text-secondary);
  font-size: var(--t-body-sm);
}

.founder-photo {
  margin: var(--space-6) 0 0;
}

.founder-photo img {
  width: 200px;
  height: 200px;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-default);
}

.closing-band {
  text-align: center;
}

.closing-band h2 {
  margin-inline: auto;
}

.page-hero {
  background: var(--surface-warm);
}

.page-body {
  background: var(--surface-canvas);
}

.page-body h2 {
  margin-top: var(--space-7);
}

.page-body h2:first-child {
  margin-top: 0;
}

/* The 404 carries two short lines, not a document. The page layout's full
   section padding puts most of a screen between the heading and the sentence
   that explains it, so the two are pulled back into one eyeful here. */
.error-page .page-hero {
  padding-block: var(--section-y) var(--space-6);
}

.error-page .page-body {
  padding-block: var(--space-6) var(--section-y);
}

.placeholder-inline {
  display: inline;
  padding: 0.1em 0.25em;
  background: var(--surface-subtle);
  border: 1px dashed var(--brand-primary);
  border-radius: 4px;
  color: var(--text-primary);
}

.photo-placeholder {
  max-width: 320px;
}

.faq-item {
  margin-bottom: var(--space-7);
}

.faq-item h2 {
  /* The shared 26ch cap is measured in the heading's own font, and the serif's ch is
     narrower than the sans it replaced, which broke these questions mid-phrase. */
  max-width: 36ch;
  font-size: var(--t-h3);
  letter-spacing: 0;
}

.site-footer {
  padding-top: var(--space-9);
  padding-bottom: var(--space-7);
  background: var(--surface-subtle);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: var(--t-body-sm);
}

.footer-bottom p {
  color: var(--text-tertiary);
  font-size: var(--t-body-sm);
}

.footer-links {
  display: grid;
  gap: var(--space-6);
}

.footer-links h2 {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--t-body-sm);
  letter-spacing: 0;
}

/* The contact address is one unbreakable token and overflowed the column at 768px. */
.footer-links a {
  overflow-wrap: anywhere;
}

.footer-links ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  margin-top: var(--space-7);
}

.section-reveal,
.reveal {
  animation: reveal-in 400ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes reveal-in {
  from {
    transform: translateY(12px);
  }

  to {
    transform: translateY(0);
  }
}

@media (min-width: 30rem) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .waitlist-panel {
    padding: var(--space-8);
  }
}

@media (min-width: 48rem) {
  .header-nav {
    display: flex;
  }

  .header-cta {
    margin-left: 0;
  }

  .split,
  .promise-grid,
  .audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split,
  .pullquote-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pullquote-aside {
    gap: var(--space-8);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Below this the three marks cannot sit side by side without the middle one, which is
   the widest, colliding with its neighbours. So the rail turns vertical instead. */
@media (max-width: 61.99rem) {
  .trio-step + .trio-step::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--space-7));
    left: 50%;
    width: 2px;
    height: var(--space-7);
    transform: translateX(-50%);
    background-image: repeating-linear-gradient(
      to bottom,
      var(--brand-primary) 0 4px,
      transparent 4px 13px
    );
  }
}

/* The hero splits later than the diagram does. At 62rem the copy column is only ~400px,
   which breaks the headline into five lines; it needs ~480px to hold four. */
@media (min-width: 68rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 62rem) {
  .trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--space-6);
    row-gap: var(--space-2);
  }

  /* Subgrid so the marks, the headings and the paragraphs each share a baseline,
     even when one heading wraps to two lines and the others do not. */
  @supports (grid-template-rows: subgrid) {
    .trio {
      grid-template-rows: auto auto auto;
    }

    .trio-step {
      grid-row: span 3;
      grid-template-rows: subgrid;
    }
  }

  .trio::before {
    content: '';
    position: absolute;
    top: 88px;
    left: 16.67%;
    right: 16.67%;
    height: 2px;
    background-image: repeating-linear-gradient(
      to right,
      var(--brand-primary) 0 4px,
      transparent 4px 13px
    );
  }
}

@media (max-width: 29.98rem) {
  /* Unchanged behaviour: the brand has always dropped to the mark alone here.
     The link keeps its aria-label, so the accessible name survives. */
  .brand-wordmark {
    display: none;
  }

  .brand-mark {
    transform: none;
  }

  .button {
    width: 100%;
    padding-inline: var(--space-5);
  }

  .header-cta {
    width: auto;
    font-size: var(--t-body-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .section-reveal,
  .reveal {
    animation: none !important;
  }
}
