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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.6 'IBM Plex Sans', system-ui, sans-serif;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

/* The accent ring is about 2.5:1 on navy; the light ink keeps it visible. */
footer :focus-visible,
.founders-card :focus-visible {
  outline-color: var(--on-navy);
}

.container {
  width: 100%;
  /* F2's content is 1360px wide with the gutters outside it */
  max-width: calc(1360px + 2 * clamp(16px, 3vw, 40px));
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 40px);
}

.section {
  padding-top: 104px;
  padding-bottom: 24px;
  scroll-margin-top: 24px;
}

h1,
h2,
h3 {
  margin: 0;
  max-width: 24ch;
  font-family: var(--display);
  font-weight: var(--dw);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--ink2);
}

.lead {
  font-size: var(--fs-lead);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn--accent {
  background: var(--accent);
  color: var(--surface);
}

.btn--navy {
  background: var(--navy);
  color: var(--on-navy);
}

.btn--surface {
  background: var(--surface);
  border-color: var(--line2);
  color: var(--navy);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line2);
  color: var(--accent);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-block: 22px;
}

.wordmark {
  color: var(--navy);
  font: 400 44px/1.1 Tinos, 'Times New Roman', serif;
  text-decoration: none;
}

.header-inner .wordmark {
  font-size: 36px;
  letter-spacing: -0.01em;
}

.header-nav,
.nav-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
}

.header-nav {
  gap: 10px;
  font-size: 15px;
}

.nav-pill {
  gap: 0 22px;
  min-height: 46px;
  padding-inline: 22px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 26px -16px color-mix(in srgb, var(--navy) 45%, transparent);
}

.nav-pill a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
  color: var(--ink);
  text-decoration: none;
}

.nav-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.menu-btn {
  display: none;
}

@media (max-width: 759.98px) {
  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    padding-block: 14px;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 8px 26px -16px color-mix(in srgb, var(--navy) 45%, transparent);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
  }

  /* chevron that flips while open */
  .menu-icon {
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  .menu-btn[aria-expanded='true'] .menu-icon {
    margin-top: 4px;
    transform: rotate(225deg);
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 20px 20px;
    border-radius: 0 0 24px 24px;
    background: var(--surface);
    box-shadow: 0 24px 40px -24px color-mix(in srgb, var(--navy) 55%, transparent);
    font-size: 18px;
  }

  .menu-btn[aria-expanded='true'] ~ .header-nav {
    display: flex;
  }

  .nav-pill {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .nav-pill a {
    min-height: 52px;
    padding-block: 0;
  }

  .header-nav .btn {
    justify-content: center;
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .menu-icon {
    transition: transform 0.15s;
  }
}

.hero .btn {
  margin-top: 28px;
}

#company {
  padding-top: 112px;
  padding-bottom: 24px;
}

#company h2 {
  max-width: 820px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.company-layout,
.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
}

.company-layout {
  margin-top: 32px;
}

.company-story {
  flex: 35 1 440px;
  min-width: 0;
}

.company-story p {
  margin-top: 14px;
  font-size: 17px;
}

.company-story .company-origin {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: var(--dw);
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.45;
}

.company-origin + p {
  margin-top: 24px;
}

.founders-card {
  flex: 33 1 320px;
  min-width: 0;
  align-self: flex-start;
  padding: 32px;
  border-radius: 28px;
  background: var(--navy);
  color: var(--on-navy);
}

.founders-card h3 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: normal;
}

.founders-card p {
  margin-top: 12px;
  color: var(--on-navy-2);
}

.founders-card .btn,
.footer-brand .btn {
  margin-top: 22px;
}

.founders-card .btn {
  min-height: 48px;
  border: 0;
}

#contact {
  padding-top: 96px;
  padding-bottom: 104px;
}

.contact-card {
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
}

.contact-intro {
  flex: 1 1 300px;
  min-width: 0;
}

.contact-intro h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -0.015em;
}

.contact-intro p {
  margin-top: 16px;
  font-size: 17px;
}

.contact-form {
  flex: 1.3 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-intents,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intent-toggle {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}

.intent-toggle[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface);
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
}

.contact-form input:not([type="hidden"]),
.contact-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 400;
}

.contact-form textarea {
  padding-block: 12px;
  resize: vertical;
}

.contact-form textarea::placeholder,
.field-optional,
.contact-privacy {
  color: var(--muted);
  opacity: 1;
  font-weight: 400;
}

.contact-actions {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-privacy {
  font-size: 13px;
}

.contact-status {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.contact-status:not(:empty) {
  padding: 14px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-soft);
}

.contact-form .btn {
  align-self: flex-start;
  min-height: 48px;
  padding-inline: 28px;
}

.btn:disabled {
  cursor: wait;
}

.btn[hidden] {
  display: none;
}

footer {
  background: var(--navy);
  color: var(--on-navy);
}

footer .wordmark {
  color: var(--on-navy);
}

.footer-container {
  padding-block: 64px 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 64px;
}

.footer-brand {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 420px;
}

.footer-brand p {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: var(--dw);
  font-size: 22px;
  line-height: 1.35;
  color: var(--on-navy);
}

.footer-nav {
  flex: 1 1 480px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 28px;
}

.footer-nav > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.footer-nav p {
  margin: 0 0 4px;
  color: var(--on-navy);
  font-size: 14px;
  font-weight: 600;
}

.footer-nav a {
  color: var(--on-navy-2);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--surface) 14%, transparent);
  color: var(--on-navy-2);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* the contact form's spam trap: off screen for people, still in the form for bots */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Privacy page */
.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.legal-header .wordmark {
  color: var(--navy);
  font-size: 34px;
}

.legal {
  max-width: calc(760px + 2 * clamp(16px, 3vw, 40px));
  padding-block: 64px 96px;
}

.legal h1 {
  font-size: var(--fs-h2);
}

.legal h2 {
  margin-top: 40px;
  font-size: 24px;
}

.legal p,
.legal li {
  color: var(--ink2);
  font-size: 17px;
  line-height: 1.65;
}

.legal ul {
  padding-left: 20px;
}

.legal-updated {
  color: var(--muted);
  font-size: 15px;
}

.legal-footer {
  border-top: 1px solid var(--line);
}

.legal-footer .footer-bottom {
  color: var(--muted);
}
