:root {
  --paper: #F4F1E8;
  --white: #FFFFFF;
  --ink: #14161A;
  --ink-2: #3C3E44;
  --muted: #6B6A64;
  --grid: #E3DDCB;
  --blue: #2F5BEA;
  --blue-tint: #D3DDFB;
  --signal: #FF5A1F;
  --signal-tint: #FFD3C2;
  --lose: #D9D6CE;
  --dim: #B5B2A8;
  --dim-2: #D8D5CC;
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
a { color: var(--blue); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}

h1, h2, h3, p { margin: 0; }
h2 { font-weight: 800; font-size: 36px; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.signal { color: var(--signal); }
.body-2 { color: var(--ink-2); text-wrap: pretty; }
.measure { max-width: 58ch; }
.narrow { max-width: 46ch; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.row-12 { display: flex; gap: 12px; flex-wrap: wrap; }
.row-8 { display: flex; gap: 8px; flex-wrap: wrap; }

.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
}
.kicker-dim { color: var(--dim); }

.chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--ink); background: var(--white);
}
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; color: var(--ink); white-space: nowrap;
  background: var(--blue-tint);
}

.btn {
  text-decoration: none; font-weight: 600; font-size: 16px; padding: 0 20px; min-height: 48px;
  display: inline-flex; align-items: center; border-radius: 8px; border: 1.5px solid var(--ink);
  transition: background 150ms ease;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-2); color: var(--paper); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { background: var(--white); color: var(--ink); }

.card { border: 1.5px solid var(--ink); border-radius: 12px; background: var(--white); }

.track { height: 10px; background: var(--grid); border-radius: 999px; }
.track .fill { height: 100%; width: 0; border-radius: 999px; }
.track-lg { height: 14px; background: var(--paper); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--grid); }
.header-inner {
  padding-top: 12px; padding-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.logo {
  text-decoration: none; color: var(--ink); font-weight: 800; font-size: 30px; letter-spacing: -.045em;
  line-height: 1; display: inline-flex; align-items: center; white-space: nowrap; min-height: 44px;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  display: inline-block; width: .6em; height: .68em; background: var(--signal); margin: 0 .06em;
  clip-path: polygon(0 0, 100% 0, 60% 48%, 60% 100%, 40% 100%, 40% 48%);
  transition: transform .3s ease;
}
.logo:hover .logo-mark, .logo:focus-visible .logo-mark { transform: rotate(180deg); }
.logo-media { font-weight: 400; margin-left: .25em; }
.nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a {
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.nav a:hover { text-decoration: underline; }

/* Hero */
.hero {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1.5px solid var(--ink);
}
.hero-inner {
  padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px; align-items: center;
}
.hero h1 {
  font-weight: 800; font-size: clamp(44px, 7vw, 80px); letter-spacing: -.045em; line-height: .95;
  max-width: 12ch; text-wrap: balance;
}
.lede { font-size: 19px; max-width: 46ch; color: var(--ink-2); text-wrap: pretty; }

.ab { font-size: 13px; }
.ab-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1.5px dashed var(--ink);
}
.ab-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.ab-arm { display: flex; flex-direction: column; gap: 8px; }
.ab-label { display: flex; gap: 10px; align-items: baseline; }
.ab-headline { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.ab-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 10px; align-items: center; }
.ab-fill { transition: width .14s linear; }
.ab-rate { text-align: right; }
.ab-foot {
  padding: 12px 16px; border-top: 1px solid var(--grid);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* Sections */
.band { border-bottom: 1.5px solid var(--ink); }
.band-white { background: var(--white); }
.band-paper { background: var(--paper); }
.section-inner { padding-top: 80px; padding-bottom: 80px; }
.gap-40 { display: flex; flex-direction: column; gap: 40px; }
.gap-32 { display: flex; flex-direction: column; gap: 32px; }
.split { display: grid; align-items: start; }
.split-400 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 48px; }
.split-320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.step {
  border: 1.5px solid var(--ink); border-radius: 12px; padding: 24px; background: var(--paper);
  display: flex; flex-direction: column; gap: 10px;
}
.step p { color: var(--ink-2); text-wrap: pretty; }
.step-no { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--blue); }

.funnel { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--grid); }
.funnel-row {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 48px; gap: 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--grid); opacity: .35;
}
.funnel-label { font-size: 15px; font-weight: 600; }
.funnel-idx { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.funnel-n { font-family: var(--mono); font-size: 14px; font-weight: 600; text-align: right; }
.funnel figcaption { padding-top: 12px; }

/* Significance toy */
.toy { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.slider { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.slider-head { display: flex; justify-content: space-between; gap: 12px; }
.slider input { width: 100%; min-height: 28px; }
.toy-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  border-top: 1.5px dashed var(--ink); padding-top: 16px;
}
.toy-stats > div { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.stat-val { font-size: 22px; font-weight: 600; }
.verdict { padding: 12px 16px; border-radius: 8px; background: var(--paper); font-weight: 600; color: var(--ink); }

/* Portfolio */
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.site {
  border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--white);
  display: flex; flex-direction: column; transition: background 150ms ease;
}
.site:hover { background: var(--paper); }
.site-shot {
  aspect-ratio: 16 / 10; border-bottom: 1px solid var(--grid); background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.site-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.site-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.site-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.site-desc { font-size: 15px; color: var(--ink-2); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; border-top: 1.5px solid var(--ink); grid-column: span 2; min-width: 0; }
@media (max-width: 760px) { .faq-list { grid-column: auto; } }
.faq-item { border-bottom: 1px solid var(--grid); }
.faq-q {
  all: unset; cursor: pointer; width: 100%; box-sizing: border-box;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; min-height: 44px;
  font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--ink);
}
.faq-q:hover { color: var(--blue); }
.faq-q:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.faq-sign { font-family: var(--mono); font-size: 18px; }
.faq-a { padding: 0 0 20px; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }

/* Contact + footer */
.contact { background: var(--ink); color: var(--paper); }
.contact-inner {
  padding-top: 96px; padding-bottom: 96px;
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}
.contact h2 { font-size: clamp(40px, 6vw, 64px); line-height: .95; letter-spacing: -.045em; max-width: 14ch; }
.contact p { color: var(--dim-2); max-width: 46ch; text-wrap: pretty; }
.site-footer { background: var(--ink); color: var(--dim); border-top: 1px solid var(--ink-2); }
.footer-inner {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px;
}

/* Simple pages (404) */
.simple { max-width: 40rem; margin: 0 auto; padding: 4rem var(--gutter); display: flex; flex-direction: column; gap: 16px; }
.simple h1 { font-weight: 800; font-size: clamp(44px, 7vw, 80px); letter-spacing: -.045em; line-height: .95; }
