:root {
  --paper: #FAFAF7;
  --ink: #111111;
  --mute: #6B6B66;
  --quiet: #C9C9C2;
  --violet: #7C3AED;
  --blue: #3B7BE0;
  --teal: #17A08C;
  --line-green: #4E9E3E;
  --amber: #E8930C;
  --coral: #E0563A;
  --magenta: #D4437E;
  --ember: #FF7A1A;
  --go: #C8FF2E;
  --border: rgba(17, 17, 17, .18);
  --border-strong: rgba(17, 17, 17, .38);
  --inverse-border: rgba(250, 250, 247, .26);
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --page-pad: clamp(20px, 5vw, 72px);
  --section-gap: clamp(72px, 10vw, 128px);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

::selection {
  background: var(--violet);
  color: #fff;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus { transform: none; }

.wrap {
  width: min(100%, calc(var(--max) + 2 * var(--page-pad)));
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 247, .94);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  font-variation-settings: "wdth" 80;
}

.wordmark i {
  width: .34em;
  height: .34em;
  margin: 0 .05em 0 .06em;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px 2px rgba(255, 122, 26, .35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Q22: a stored session swaps the auth link for "Open the app" (member-nav.js);
   hidden in between so a member never sees "Join" flash. */
[data-session="member"] a[href^="/auth?intent="] { visibility: hidden; }

.site-menu { position: relative; }

.site-menu summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 700;
}

.site-menu summary::-webkit-details-marker { display: none; }

.site-menu[open] summary { background: var(--ink); color: var(--paper); }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--paper);
}

.menu-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 650;
}

.menu-panel a:hover,
.menu-panel a:focus-visible { background: rgba(17, 17, 17, .05); }

.menu-panel small { color: var(--mute); font-weight: 500; }

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 21px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  font-size: 16px;
  line-height: 1;
  transition: transform 200ms ease;
}

.btn-primary { background: var(--go); color: var(--ink); }

.btn-secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-dark {
  border-color: var(--paper);
  background: transparent;
  color: var(--paper);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }

.hero {
  min-height: min(820px, calc(100svh - 68px));
  display: grid;
  align-items: center;
  padding-top: clamp(72px, 10vh, 118px);
  padding-bottom: clamp(72px, 10vh, 118px);
}

.hero-copy { max-width: 970px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--mute);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -.018em;
}

h1 {
  max-width: 12ch;
  margin-bottom: clamp(22px, 3vw, 34px);
  font-size: clamp(52px, 10vw, 108px);
  line-height: .92;
  font-weight: 800;
  font-variation-settings: "wdth" 78, "opsz" 96;
}

h1 .light,
.display .light { font-weight: 420; }

.hero .lead {
  max-width: 37ch;
  margin-bottom: 30px;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.28;
}

.hero .support {
  max-width: 55ch;
  color: var(--mute);
  font-size: 16px;
  line-height: 1.5;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.cta-note {
  width: 100%;
  margin: 2px 0 0;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.4;
}

.accent-rule {
  width: min(540px, 100%);
  height: 4px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 38px 0 0;
  overflow: hidden;
  border-radius: 999px;
}

.accent-rule i:nth-child(1) { background: var(--violet); }
.accent-rule i:nth-child(2) { background: var(--blue); }
.accent-rule i:nth-child(3) { background: var(--teal); }
.accent-rule i:nth-child(4) { background: var(--line-green); }
.accent-rule i:nth-child(5) { background: var(--amber); }
.accent-rule i:nth-child(6) { background: var(--coral); }
.accent-rule i:nth-child(7) { background: var(--magenta); }

.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  border-top: 1px solid var(--border);
}

.section-tight {
  padding-top: clamp(54px, 7vw, 84px);
  padding-bottom: clamp(54px, 7vw, 84px);
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--mute);
  font-size: 14px;
  font-weight: 700;
}

.display {
  max-width: 16ch;
  margin-bottom: 24px;
  font-size: clamp(38px, 6.5vw, 74px);
  line-height: .97;
  font-weight: 800;
  font-variation-settings: "wdth" 78, "opsz" 96;
}

.section-lead {
  max-width: 52ch;
  color: var(--mute);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.4;
}

.copy {
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.58;
}

.copy p:last-child { margin-bottom: 0; }

.split {
  display: grid;
  gap: 38px;
  align-items: start;
}

.promise-grid,
.work-grid,
.cross-grid {
  display: grid;
  gap: 14px;
  margin-top: 42px;
}

.card {
  min-height: 100%;
  padding: clamp(22px, 3vw, 30px);
  border: 1.5px solid var(--border-strong);
  border-radius: 22px;
  background: transparent;
}

.card h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.05;
  font-weight: 800;
  font-variation-settings: "wdth" 82;
}

.card p,
.card li {
  color: var(--mute);
  font-size: 16px;
  line-height: 1.5;
}

.card p:last-child,
.card ul:last-child { margin-bottom: 0; }

.card-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.plain-list {
  padding-left: 1.15em;
  margin: 14px 0 0;
}

.plain-list li + li { margin-top: 8px; }

.status-grid {
  display: grid;
  gap: 14px;
  margin-top: 38px;
}

.status {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 22px;
  background: rgba(17, 17, 17, .045);
}

.status h3 {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 800;
}

.status ul {
  margin: 0;
  padding-left: 1.2em;
}

.status li {
  font-size: 16px;
  line-height: 1.5;
}

.status li + li { margin-top: 8px; }

.truth {
  padding-top: clamp(26px, 4vw, 42px);
  padding-bottom: clamp(26px, 4vw, 42px);
}

.truth-inner {
  padding: clamp(28px, 5vw, 58px);
  border-radius: 28px;
  background: var(--ink);
  color: var(--paper);
}

.truth .section-kicker { color: #B9B9B3; }

.truth .display { max-width: 20ch; }

.truth p {
  max-width: 58ch;
  color: #B9B9B3;
  font-size: 17px;
  line-height: 1.55;
}

.truth strong { color: var(--paper); }

.definition {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.definition > div {
  padding: 18px 20px;
  border: 1px solid var(--inverse-border);
  border-radius: 16px;
}

.definition b {
  display: block;
  margin-bottom: 5px;
  color: var(--paper);
  font-size: 18px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.pill-list span,
.pill-list a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.note {
  margin-top: 32px;
  padding: 18px 20px;
  border-left: 4px solid var(--amber);
  background: rgba(232, 147, 12, .08);
  font-size: 15px;
  line-height: 1.5;
}

.empty-state {
  margin-top: 34px;
  padding: clamp(26px, 4vw, 38px);
  border: 1.5px dashed var(--border-strong);
  border-radius: 22px;
}

.empty-state h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.empty-state p {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--mute);
  line-height: 1.55;
}

.contact-card {
  max-width: 780px;
  padding: clamp(24px, 4vw, 38px);
  border: 1.5px solid var(--border-strong);
  border-radius: 22px;
}

.contact-card h3 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 36px);
}

.contact-card p {
  color: var(--mute);
  font-size: 16px;
  line-height: 1.5;
}

form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

.field small {
  display: block;
  margin-top: 6px;
  color: var(--mute);
  line-height: 1.4;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 16px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  color: var(--mute);
  font-size: 13px;
  line-height: 1.45;
}

.cross-grid a {
  min-height: 100%;
  display: block;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
}

.cross-grid a:hover,
.cross-grid a:focus-visible { border-color: var(--ink); }

.cross-grid b {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.cross-grid span {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.45;
}

.site-footer {
  background: var(--ink);
  color: #B9B9B3;
  padding-top: 54px;
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  gap: 34px;
}

.footer-mark .wordmark { color: var(--paper); }

.footer-mark p {
  max-width: 34ch;
  margin: 14px 0 0;
  line-height: 1.45;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}

.footer-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--paper); }

.footer-small {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 26px;
  margin-top: 34px;
  border-top: 1px solid var(--inverse-border);
  font-size: 13px;
}

.footer-small a { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 700px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-grid,
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cross-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .definition { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: .8fr 1.2fr; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 70px; }
  .promise-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-grid.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .work-grid.five .card { grid-column: span 2; }
  .work-grid.five .card:nth-child(4) { grid-column: 2 / span 2; }
  .work-grid.five .card:nth-child(5) { grid-column: 4 / span 2; }
}

@media (max-width: 560px) {
  .header-actions > .btn { display: none; }
  .hero { min-height: auto; }
  h1 { font-size: clamp(49px, 15vw, 72px); }
  .display { font-size: clamp(36px, 11vw, 54px); }
  .cta-row .btn { width: 100%; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

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