:root {
  --paper: #f3ece0;
  --paper-2: #ebe2d2;
  --paper-3: #e2d7c2;
  --rule:   #ccc1aa;
  --ink:    #14110c;
  --ink-2:  #3a352b;
  --ink-3:  #6b6354;
  --ox:     #8a2614;   /* oxblood */
  --ox-2:   #6e1d0e;
  --gold:   #b48738;
  --warn:   #b14a1a;

  --display: "Fraunces", "Times New Roman", serif;
  --body:    "Geist", "Helvetica Neue", system-ui, sans-serif;
  --mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint paper grain */
  background-image:
    radial-gradient(circle at 12% 8%, rgba(180,135,56,0.05), transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(138,38,20,0.04), transparent 42%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 25, "WONK" 0;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(48px, 7.2vw, 96px); }
h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.07; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.18; }
h4 { font-size: 18px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.kicker {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--ox);
}
em.disp { font-family: var(--display); font-style: italic; font-weight: 400; }

p { margin: 0 0 1em; max-width: 62ch; }
p.lede { font-size: 22px; line-height: 1.45; color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-3); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(243,236,224,0.86);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  letter-spacing: -0.01em;
}
.brand .mark {
  display: inline-block;
  width: 28px; height: 28px;
  color: var(--ox); /* drives the chariot square fill via currentColor */
  border-radius: 6px;
  flex-shrink: 0;
  transform: translateY(2px);
}
.brand { gap: 12px; align-items: center; }
.nav-links {
  display: flex; gap: 22px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--ox); }
.nav-cta {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 160ms ease, transform 160ms ease;
}
.nav-cta:hover { background: var(--ox); transform: translateY(-1px); }
@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 500;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 180ms ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--ox); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(48px, 7vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.hero h1 {
  font-variation-settings: "opsz" 144, "SOFT" 20, "WONK" 0;
  margin-bottom: 28px;
}
.hero h1 .ital { font-style: italic; font-weight: 300; color: var(--ox); }

/* Mobile: tighten headline so it wraps to 2 lines, not 4 */
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(34px, 9.4vw, 44px); line-height: 1.08; }
  /* hide the explicit <br/> on mobile and let it wrap naturally */
  .hero h1 br { display: none; }
}
.hero .lede { margin-bottom: 36px; max-width: 56ch; }
.hero-quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--ox);
  margin-right: 4px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-inline-link {
  font-family: var(--body);
  font-size: 14.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
  padding-bottom: 1px;
  margin-left: 4px;
  transition: color 160ms ease, border-color 160ms ease;
}
.hero-inline-link:hover { color: var(--ox); border-bottom-color: var(--ox); }
.hero-inline-link .arrow { transition: transform 160ms ease; display: inline-block; }
.hero-inline-link:hover .arrow { transform: translateY(2px); }
.hero-meta {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.hero-meta span { color: var(--ox); }

/* Hero visual: Inertia Trap */
.thresh {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  position: relative;
  padding: 22px;
  overflow: hidden;
}
.thresh .title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.thresh .sub {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  margin-top: 4px;
  max-width: 32ch;
}
.thresh svg {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: 60px;
  width: 100%;
  height: calc(100% - 60px);
  overflow: visible;
}
.thresh .axes line { stroke: var(--ink); stroke-width: 1; }

.thresh .ax-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  fill: var(--ink-2);
  text-transform: uppercase;
}

.thresh .threshold-line {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0;
  animation: fade 0.5s 2.2s forwards;
}
.thresh .threshold-cap {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  fill: var(--ink-3);
  text-transform: uppercase;
  opacity: 0;
  animation: fade 0.5s 2.4s forwards;
}

.thresh .trap-curve {
  fill: none;
  stroke: var(--ox);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2.6s 0.4s cubic-bezier(.6,0,.2,1) forwards;
}
.thresh .trap-dot {
  fill: var(--ox);
  opacity: 0;
  transform: scale(0.6);
  transform-origin: center;
  transform-box: fill-box;
  animation: pop 0.5s 2.6s forwards;
}

.thresh .zone {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  fill: var(--ink);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fade 0.5s 2.6s forwards;
}
.thresh .zone-trap {
  font-style: italic;
  fill: var(--ox);
  font-weight: 400;
  font-size: 14px;
}
.thresh .zone-left, .thresh .zone-right { font-style: italic; font-weight: 400; }

.thresh .caption {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  fill: var(--ink-2);
  text-transform: uppercase;
  opacity: 0;
  animation: fade 0.5s 2.8s forwards;
}
/* Mobile: bump diagram label sizes for readability */
@media (max-width: 600px) {
  .thresh .ax-label    { font-size: 12px; letter-spacing: 0.16em; }
  .thresh .threshold-cap { font-size: 11px; }
  .thresh .zone        { font-size: 15px; }
  .thresh .zone-trap   { font-size: 16px; }
  .thresh .caption     { font-size: 11.5px; letter-spacing: 0.18em; }
}
@keyframes draw  { to { stroke-dashoffset: 0; } }
@keyframes fade  { to { opacity: 1; } }
@keyframes pop   { to { opacity: 1; transform: scale(1); } }

/* ---------- Section ---------- */
section { padding: clamp(64px, 8vw, 110px) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 56px;
  margin-bottom: 56px;
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
}
.section-head .eyebrow { margin: 0; }

/* ---------- How it works ---------- */
.how { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--rule);
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
}
.step .n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ox);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 14px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Mechanism / pull quote ---------- */
.mech-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) { .mech-grid { grid-template-columns: 1fr; gap: 32px; } }
.bigq {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding-left: 18px;
  border-left: 2px solid var(--ox);
  max-width: 52ch;
}
.bigq .cite { display:block; margin-top: 14px; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.mech-pts { display: grid; gap: 28px; }
.mech-pt {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.mech-pt h4 {
  font-family: var(--display); font-weight: 500;
  font-size: 22px; margin: 0 0 8px;
}
.mech-pt p { margin: 0; color: var(--ink-2); }

.mech-intro {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 22px;
  letter-spacing: -0.005em;
  padding-left: 18px;
  border-left: 2px solid var(--ox);
}
.mech-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 14px;
}
.mech-list li {
  padding: 14px 16px 14px 38px;
  background: var(--paper-2);
  border-radius: 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  position: relative;
  border: 1px solid var(--rule);
}
.mech-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 23px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ox);
}
.mech-list li strong { color: var(--ink); font-weight: 600; }

/* ---------- Case study ---------- */
.case {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.case h2, .case .eyebrow, .case .small, .case h4 { color: var(--paper); }
.case .eyebrow { color: rgba(243,236,224,0.55); }
.case .bigq {
  color: var(--paper);
  border-left-color: var(--gold);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  padding-left: 18px;
  border-left-width: 2px;
  max-width: 52ch;
}
.case .bigq .cite { color: rgba(243,236,224,0.6); margin-top: 14px; font-size: 11px; }
.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
}
@media (max-width: 880px) { .case-grid { grid-template-columns: 1fr; gap: 32px; } }
.case p { color: rgba(243,236,224,0.82); max-width: none; }

/* Outcome narrative */
.case-narrative {
  display: grid;
  gap: 32px;
  max-width: 78ch;
}
.case-step { display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: start; }
@media (max-width: 700px) { .case-step { grid-template-columns: 1fr; gap: 8px; } }
.case-step-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 6px;
}
.case-step p { margin: 0; line-height: 1.6; font-size: 16px; }
.case-step p strong { color: var(--paper); font-weight: 600; }

.case-evidence {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(243,236,224,0.18);
  font-size: 14px;
  color: rgba(243,236,224,0.65);
}
.case-evidence a {
  color: var(--gold);
  border-bottom: 1px solid rgba(180,135,56,0.4);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}
.case-evidence a:hover { color: var(--paper); border-bottom-color: var(--paper); }
.case-substack { margin-left: 6px; }

.case-attestation {
  margin-top: 6px;
  border-top: 1px dashed rgba(243,236,224,0.18);
  padding-top: 20px;
}
.case-attestation summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243,236,224,0.55);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 160ms ease;
}
.case-attestation summary:hover { color: var(--paper); }
.case-attestation summary::before {
  content: "▸";
  display: inline-block;
  transition: transform 160ms ease;
  font-size: 12px;
}
.case-attestation[open] summary::before { transform: rotate(90deg); }
.case-attestation summary::-webkit-details-marker { display: none; }
.attest-quote {
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 2px solid rgba(243,236,224,0.25);
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(243,236,224,0.78);
  max-width: 60ch;
}
.case .stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.stat .num {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: clamp(36px, 4.4vw, 56px);
  color: var(--gold);
  line-height: 1;
}
.stat .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243,236,224,0.6);
  margin-top: 10px;
}

/* ---------- Partners ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (max-width: 980px) { .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .partners-grid { grid-template-columns: 1fr; } }
.partner {
  padding: 20px 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.partner .org {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 3px;
}
.partner .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
  line-height: 1.3;
}
.partner blockquote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.partner blockquote::before { content: "\201C"; color: var(--ox); margin-right: 2px; }
.partner blockquote::after { content: "\201D"; color: var(--ox); }

/* ---------- Templates ---------- */
.templates { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 0 0 32px;
}
.filter {
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 160ms ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}
@media (max-width: 980px) { .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl {
  padding: 22px 22px 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  display: flex; flex-direction: column;
  min-height: 230px;
  transition: background 160ms ease;
  position: relative;
}
.tpl:hover { background: var(--paper-3); }
.tpl .chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tpl .chip::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ox);
}
.tpl[data-cat="research"]   .chip::before { background: #4a6b2e; }
.tpl[data-cat="policy"]     .chip::before { background: var(--ox); }
.tpl[data-cat="coalition"]  .chip::before { background: var(--gold); }
.tpl[data-cat="talent"]     .chip::before { background: #2e5d6e; }
.tpl[data-cat="speech"]     .chip::before { background: var(--warn); }
.tpl[data-cat="funding"]    .chip::before { background: #6a4a7d; }
.tpl[data-cat="civil"]      .chip::before { background: #4a4a4a; }
.tpl[data-cat="labs"]       .chip::before { background: var(--ink); }

.tpl h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.tpl p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.tpl .meta {
  margin-top: auto;
  padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  border-top: 1px dashed var(--rule);
  margin-top: 18px;
}
.tpl .threshold-pill {
  color: var(--ink);
  background: var(--paper-2);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.tpl .start {
  color: var(--ox);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}
.tpl .start::after { content: " →"; }
.tpl[data-hidden="true"] { display: none; }

.tpl-count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 36px;
}
.pagination:empty { display: none; }
.pagination button {
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 160ms ease;
  min-width: 38px;
  border-radius: 999px;
}
.pagination button:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
}
.pagination button.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pagination .arrow-btn { font-family: var(--body); letter-spacing: 0.04em; }
.pagination .dots { color: var(--ink-3); padding: 0 4px; font-family: var(--mono); font-size: 12px; }

/* ---------- AI helper ---------- */
.helper-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 820px) { .helper-grid { grid-template-columns: 1fr; gap: 32px; } }
.terminal {
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 22px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  box-shadow: 0 24px 60px rgba(20,17,12,0.18);
}
.terminal .row { display: block; margin-bottom: 8px; }
.terminal .prompt { color: var(--gold); }
.terminal .user { color: var(--paper); }
.terminal .ai { color: rgba(243,236,224,0.78); }
.terminal .ok  { color: #b1d77a; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.cta h2 {
  font-size: clamp(40px, 5.6vw, 76px);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  max-width: 16ch;
  margin: 0 auto 28px;
}
.cta .lede { margin: 0 auto 36px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 56px;
  font-size: 14px;
  color: var(--ink-3);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
footer h5 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 14px;
  font-weight: 500;
}
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a:hover { color: var(--ox); }
.foot-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Misc ---------- */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ink-2);
}
.acx {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}
.acx + .acx { margin-top: 4px; }
.acx::before {
  content: ""; flex: 0 0 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--ox);
}
.acx a {
  color: inherit;
  border-bottom: 1px solid rgba(107,99,84,0.4);
  padding-bottom: 1px;
  transition: color 160ms ease, border-color 160ms ease;
}
.acx a:hover { color: var(--ox); border-bottom-color: var(--ox); }

/* fade-in on first paint */
.fade-up { opacity: 0; transform: translateY(12px); animation: fadeUp 0.9s 0.05s cubic-bezier(.2,.7,.2,1) forwards; }
.fade-up.d1 { animation-delay: 0.15s; }
.fade-up.d2 { animation-delay: 0.30s; }
.fade-up.d3 { animation-delay: 0.45s; }
.fade-up.d4 { animation-delay: 0.60s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
/* ---------- Policy modal (Privacy / Terms) ---------- */
.policy-dlg {
  border: none;
  border-radius: 6px;
  padding: 0;
  width: min(720px, 92vw);
  max-height: 86vh;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(20,17,12,0.35);
  overflow: hidden;
}
.policy-dlg::backdrop {
  background: rgba(20,17,12,0.55);
  backdrop-filter: blur(4px);
}
.policy-inner {
  padding: 48px 56px 56px;
  max-height: 86vh;
  overflow-y: auto;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
@media (max-width: 600px) { .policy-inner { padding: 36px 24px 40px; } }
.policy-inner h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  margin: 4px 0 10px;
  color: var(--ink);
}
.policy-inner h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  margin: 28px 0 8px;
  color: var(--ink);
}
.policy-inner p { margin: 0 0 12px; max-width: none; }
.policy-inner ul { padding-left: 22px; margin: 0 0 12px; }
.policy-inner ul ul { margin-top: 6px; }
.policy-inner li { margin-bottom: 6px; }
.policy-inner a { color: var(--ox); text-decoration: underline; text-underline-offset: 2px; }
.policy-inner .eyebrow { margin: 0 0 12px; color: var(--ink-3); }
.policy-inner .policy-effective {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.policy-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 36px; height: 36px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 160ms ease;
}
.policy-close:hover { border-color: var(--ink); color: var(--ink); }
/* ---------- Trust strip (under hero CTAs) ---------- */
.trust-strip {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  max-width: 100%;
}
.trust-strip strong { color: var(--ink); font-weight: 500; letter-spacing: 0.08em; }
.trust-strip a.trust-link {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: color 160ms ease, border-color 160ms ease;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.trust-strip a.trust-link strong { color: inherit; }
.trust-strip a.trust-link .ext {
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.9em;
  letter-spacing: 0;
  margin-left: 1px;
  transition: transform 160ms ease;
  display: inline-block;
}
.trust-strip a.trust-link:hover { color: var(--ox); border-bottom-color: var(--ox); }
.trust-strip a.trust-link:hover .ext { transform: translate(2px, -2px); }
.trust-strip .trust-sep { color: var(--rule); }
@media (max-width: 520px) {
  .trust-strip { font-size: 10.5px; letter-spacing: 0.08em; gap: 4px 10px; }
}

/* ---------- Built For section ---------- */
.built-for {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.built-for .eyebrow { margin-bottom: 24px; }
.built-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
@media (max-width: 820px) { .built-grid { grid-template-columns: 1fr; } }
.built-tile {
  padding: 28px 30px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.built-tile h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.built-tile p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: none;
}

/* ---------- Active nav (scroll-spy) ---------- */
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 160ms ease;
}
.nav-links a.is-active { color: var(--ox); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--ox);
  border-radius: 1px;
}

/* ---------- Mobile menu ---------- */
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: absolute;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 220ms ease, opacity 220ms ease, top 220ms ease;
}
.nav-toggle span { top: 50%; left: 50%; margin-left: -9px; margin-top: -0.75px; }
.nav-toggle span::before { content: ""; left: 0; top: -6px; }
.nav-toggle span::after  { content: ""; left: 0; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    left: 0; right: 0;
    top: 64px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px 24px 24px;
    /* fully off-screen above the nav when closed */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 280ms cubic-bezier(.2,.7,.2,1),
                opacity 200ms ease,
                visibility 0s linear 280ms;
    box-shadow: 0 18px 30px rgba(20,17,12,0.10);
    z-index: 25;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 280ms cubic-bezier(.2,.7,.2,1),
                opacity 200ms ease,
                visibility 0s linear 0s;
  }
  .nav-links a {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-links .nav-cta-mobile {
    display: inline-flex;
    margin-top: 16px;
    background: var(--ink);
    color: var(--paper);
    padding: 14px 22px;
    border-radius: 999px;
    border-bottom: none !important;
    justify-content: center;
    font-size: 15px;
  }
  .nav-links a.is-active::after { display: none; }
  .nav-links a.is-active { color: var(--ox); }
}

/* ---------- Clickable template cards ---------- */
.tpl { cursor: pointer; }
.tpl:focus-within { outline: 2px solid var(--ox); outline-offset: -2px; }
.tpl .start { pointer-events: none; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, background 160ms ease;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(20,17,12,0.22);
}
.to-top:hover { background: var(--ox); }
.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (max-width: 520px) {
  .to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}
/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; visibility: hidden; }

/* ---------- Forms (shared) ---------- */
.form-row {
  display: flex; gap: 8px; align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 6px;
  max-width: 460px;
}
.form-row input[type="email"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.form-row input::placeholder { color: var(--ink-3); }
.form-row .btn { padding: 10px 18px; font-size: 14px; }
.form-status {
  margin-top: 14px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ox);
}

/* ---------- Newsletter strip (mid-page) ---------- */
.newsletter-strip {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(56px, 7vw, 84px) 0;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) { .newsletter-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.newsletter-copy .eyebrow { margin-bottom: 12px; }
.newsletter-copy h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.newsletter-copy .newsletter-sub {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 50ch;
}

/* ---------- Lead form section ---------- */
.lead-section {
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .lead-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

.lead-copy .eyebrow { margin-bottom: 18px; }
.lead-copy h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.07;
  margin: 0 0 18px;
}
.lead-sub {
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 44ch;
  font-size: 16px;
}
.lead-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  max-width: 46ch;
}
.lead-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}
.lead-bullet-dot {
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ox);
}

.lead-form {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px;
}
@media (max-width: 520px) { .lead-form { padding: 22px; } }

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 16px;
}
.field-wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field .req { color: var(--ox); font-weight: 700; }
.field .opt { color: var(--ink-3); text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 12px; }
.field input,
.field textarea,
.field select {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(138,38,20,0.10);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='none' stroke='%2314110c' stroke-width='1.4' d='M1 1 L6 6 L11 1'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}

.form-submit {
  margin-top: 22px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.form-hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.form-status-success {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--ox);
  border-radius: 4px;
}
.form-status-success h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 6px;
  color: var(--ink);
}
.form-status-success p { margin: 0; font-size: 14px; color: var(--ink-2); }
.form-status-success a { color: var(--ox); border-bottom: 1px solid var(--ox); }

/* ---------- LOI institutional CTA strip ---------- */
.loi-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.btn-on-dark { /* not used; kept for future LOI section if it goes dark */ }

/* ---------- Anonymity section ---------- */
.anonymity {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.anon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (max-width: 980px) { .anon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .anon-grid { grid-template-columns: 1fr; } }
.anon-card {
  padding: 32px 30px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.anon-card-wide { grid-column: span 3; }
@media (max-width: 980px) { .anon-card-wide { grid-column: span 2; } }
@media (max-width: 600px) { .anon-card-wide { grid-column: span 1; } }
.anon-card .anon-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ox);
  margin-bottom: 18px;
}
.anon-card h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.anon-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: none;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(19px, 1.9vw, 22px);
  letter-spacing: -0.005em;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color 160ms ease;
}
.faq-item summary:hover { color: var(--ox); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev {
  font-family: var(--body);
  font-weight: 300;
  font-size: 22px;
  color: var(--ink-3);
  transition: transform 200ms ease, color 160ms ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-chev { transform: rotate(45deg); color: var(--ox); }
.faq-body {
  padding: 0 0 24px;
  max-width: 72ch;
}
.faq-body p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.faq-body a {
  color: var(--ox);
  border-bottom: 1px solid rgba(138,38,20,0.4);
}
.faq-body a:hover { border-bottom-color: var(--ox); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; gap: 24px; } }
.team-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
@media (max-width: 520px) { .team-card { grid-template-columns: 88px 1fr; gap: 18px; padding: 22px; } }
.team-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-3);
  border: 2px solid var(--paper);
  box-shadow: 0 6px 18px rgba(20,17,12,0.10);
}
@media (max-width: 520px) { .team-photo { width: 88px; height: 88px; } }
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.team-text h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 4px;
  color: var(--ink);
}
.team-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.team-text p:not(.team-role) {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: none;
}

/* ---------- Footer newsletter ---------- */
.footer-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 760px) { .footer-newsletter { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.footer-nl-copy h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.18;
  margin: 0 0 6px;
  color: var(--ink);
}
.footer-nl-copy p { margin: 0; }

