:root {
  --bg: #f6f2ea;
  --bg-2: #ede7da;
  --bg-3: #e3dcc9;
  --ink: #1a1814;
  --ink-1: #2a2620;
  --ink-2: #5a5247;
  --ink-3: #8a7f72;
  --ink-4: #b5ac9e;
  --paper: #fbf9f3;
  --line: rgba(26, 24, 20, 0.10);
  --line-2: rgba(26, 24, 20, 0.18);
  --accent: #c1502b;
  --accent-2: #d97757;
  --accent-3: #f3d6c4;
  --forest: #2e4a3a;
  --gold: #b08a3e;
  --display: "Geist", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
section { padding: 88px 0; position: relative; }
code, pre { font-family: var(--mono); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}
.display.xxl { font-size: 132px; }
.display.xl { font-size: 92px; }
.display.lg { font-size: 56px; }
.display.md { font-size: 36px; }
.display em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-3);
  letter-spacing: 0;
}

.lead {
  font-size: 21px;
  color: var(--ink-2);
  line-height: 1.5;
  letter-spacing: 0;
  max-width: 62ch;
}
.body-lg { font-size: 17px; color: var(--ink-2); line-height: 1.6; }
.micro, .email {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.eyebrow {
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow i, .chip i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translate(3px, -1px); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.accent { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn.accent:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { border-color: var(--line-2); color: var(--ink-1); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.dark-ghost { color: var(--paper); border-color: rgba(255, 255, 255, .36); }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.large { padding: 16px 28px; font-size: 16px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 11px 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-1);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.chip.success i { background: var(--forest); }

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
.wordmark span span { color: var(--accent); }
.mark {
  width: 22px;
  height: 22px;
  color: var(--ink);
  fill: none;
  flex: 0 0 auto;
}
.mark rect, .mark path {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mark .filled { fill: currentColor; stroke: none; }
.mark circle { fill: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  background: var(--bg-3);
}

.hero {
  min-height: calc(100vh - 64px);
  padding: 88px 0 92px;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  max-width: 14ch;
  margin: 28px 0 32px;
}
.hero h1 strong { color: var(--accent); font-weight: 500; }
.hero .lead { margin: 0 0 24px; max-width: 58ch; }
.hero-h1 { max-width: 14ch; }
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 10px;
  max-width: 56ch;
}
.hero-bullets li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-1);
  letter-spacing: -0.005em;
}
.hero-bullets .hb-check {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  width: 16px;
  text-align: center;
  transform: translateY(-1px);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero .micro { margin: 16px 0 56px; }
.proof-row {
  display: flex;
  align-items: center;
  gap: 14px 22px;
  flex-wrap: wrap;
}
.proof-label {
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.topo::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 100%;
  left: -10%;
  top: 0;
  background: radial-gradient(ellipse at center, rgba(193, 80, 43, .05), transparent 52%);
}
.topo svg {
  width: 100%;
  height: 100%;
  display: block;
  opacity: .8;
}
.topo path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: .065;
  animation: topo-drift 85s linear infinite alternate;
}
.topo path:nth-child(even) { animation-duration: 110s; }
@keyframes topo-drift { from { transform: translateX(-60px); } to { transform: translateX(60px); } }

.scale-strip {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stats-grid b {
  display: block;
  font-family: var(--display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}
.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.section-head > div { max-width: 68ch; }
.section-head h2 { margin-top: 14px; }
.section-head p {
  max-width: 37ch;
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
}
.tinted, .tools-section { background: var(--bg-2); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -22px rgba(193, 80, 43, .35);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
}
.glyph {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
}
.service-card h3,
.scenario-card h3,
.case-card h3,
.post-card h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}
.service-card h3 { font-size: 22px; }
.service-card p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.service-card a {
  margin-top: auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.approach-stack {
  display: flex;
  flex-direction: column;
  gap: 96px;
}
.approach-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.approach-row.reverse { direction: rtl; }
.approach-row.reverse > * { direction: ltr; }
.approach-row h3 { margin: 14px 0 16px; }
.approach-row p { max-width: 48ch; color: var(--ink-2); }
.mini-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  padding: 0;
  margin: 22px 0 0;
}
.mini-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.mini-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.artifact {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 28px 70px -38px rgba(26, 24, 20, .28);
}
.chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.chrome span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-4);
}
.chrome span:nth-child(1) { background: #e26b5e; }
.chrome span:nth-child(2) { background: #e6c84a; }
.chrome span:nth-child(3) { background: #6ba974; }
.chrome b {
  margin-left: 8px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
}
.chrome small {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
}
.artifact pre {
  margin: 0;
  padding: 22px 24px;
  overflow: auto;
  color: var(--ink-1);
  font-size: 12.5px;
  line-height: 1.65;
}
.artifact pre b { color: var(--accent); font-weight: 500; }
.artifact pre em { color: var(--accent); font-style: normal; }
.audit-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 20px 22px;
  width: calc(100% - 40px);
  font-family: var(--mono);
  font-size: 12px;
}
.audit-table th {
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: .14em;
  text-align: left;
  text-transform: uppercase;
  font-weight: 500;
}
.audit-table th, .audit-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
}
.audit-table td span {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 10px;
}
.audit-table td:last-child { color: var(--forest); font-size: 11px; }
.audit-table .warn { color: var(--accent) !important; }

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.scenario-card {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.scenario-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -20px rgba(26, 24, 20, .18);
}
.scenario-card h3 {
  margin: 18px 0 22px;
  font-size: 26px;
}
.scenario-card h4 {
  margin: 18px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
}
.scenario-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.scenario-card li {
  position: relative;
  margin: 8px 0;
  padding-left: 18px;
  color: var(--ink-1);
  font-size: 14.5px;
}
.scenario-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-3);
}
.scenario-card p { margin: 0; color: var(--ink-1); }

.manifesto,
.playground {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.manifesto { padding: 140px 0; }
.manifesto .display,
.playground .display { color: var(--paper); }
.manifesto .eyebrow,
.playground .eyebrow { color: rgba(255, 255, 255, .55); }
.manifesto .lead,
.playground .lead { color: rgba(255, 255, 255, .72); }
.manifesto em,
.playground em { color: var(--accent-2); }
.glow {
  position: absolute;
  width: 760px;
  height: 760px;
  top: -280px;
  right: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 87, .18), transparent 60%);
  filter: blur(40px);
}
.manifesto .container { position: relative; }
.manifesto h2 { max-width: 20ch; margin: 28px 0 40px; }

.diagram-wrap {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.diagram {
  width: 100%;
  min-width: 760px;
  height: auto;
  display: block;
}
.diagram-legend {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 1;
  color: var(--ink-3);
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
}
.diagram-legend b { color: var(--accent); font-weight: 500; }
.diagram .lines path {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.2;
  marker-end: url(#arrow);
  transition: stroke .2s, stroke-width .2s;
}
.diagram #arrow path { fill: var(--accent); }
.diagram .lines path.active {
  stroke: var(--accent);
  stroke-width: 1.8;
}
.diagram .node { cursor: pointer; }
.diagram .node rect {
  fill: var(--bg);
  stroke: var(--line-2);
  transition: fill .2s, stroke .2s;
}
.diagram .node text {
  fill: var(--ink-1);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
}
.diagram .node text:first-of-type {
  fill: var(--ink-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}
.diagram .node.active rect {
  fill: var(--accent-3);
  stroke: var(--accent);
}
.center-node { fill: var(--ink); }
.center-title {
  fill: var(--paper);
  text-anchor: middle;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
}
.center-sub {
  fill: rgba(255, 255, 255, .55);
  text-anchor: middle;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
}
.node-label {
  fill: var(--ink-3);
  text-anchor: middle;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
}

.code-shell { max-width: 100%; }
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: -1px;
}
.tabs button {
  padding: 8px 14px;
  border: 1px solid #2a2620;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #15130f;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}
.tabs button.active { background: #1f1c17; color: var(--paper); }
.code-block {
  display: none;
  margin: 0;
  overflow: auto;
  padding: 24px 28px;
  background: #15130f;
  color: #e8e2d5;
  border: 1px solid #2a2620;
  border-radius: 0 16px 16px 16px;
  font-size: 13.5px;
  line-height: 1.65;
}
.code-block.active { display: block; }

.tools-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px 40px;
  align-items: baseline;
}
.tools-grid h3 {
  margin: 0;
  padding-top: 10px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
}
.tools-grid div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tools-grid span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-1);
  font-size: 13.5px;
  font-weight: 500;
}
.tools-grid span::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--bg-2);
}

.case-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case-card,
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  transition: border-color .15s, transform .2s;
}
.case-card:hover,
.post-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.case-card > div:last-child { padding: 22px 24px; }
.case-card h3 { margin: 10px 0; font-size: 22px; }
.case-card p, .post-card p { color: var(--ink-2); font-size: 14px; margin: 0; line-height: 1.5; }
.case-cover {
  min-height: 200px;
  border-bottom: 1px solid var(--line);
  background-size: 48px 48px, cover;
}
.case-cover.social {
  background-image: radial-gradient(rgba(255,255,255,.26) 2px, transparent 3px), linear-gradient(135deg, #c1502b, #d97757);
}
.case-cover.martech {
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.16) 0 1px, transparent 1px 28px), linear-gradient(135deg, #2e4a3a, #4a6e57);
}
.case-cover.adtech {
  background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(135deg, #1a1814, #4a4238);
}
.metric-row {
  display: flex;
  gap: 18px;
  margin-top: 16px;
}
.metric-row b {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
}
.metric-row span {
  margin-top: 2px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.post-card {
  padding: 28px;
  gap: 16px;
}
.post-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.post-card.featured p,
.post-card.featured span { color: rgba(255,255,255,.7); }
.post-card span {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.post-card h3 { font-size: 20px; }
.post-card.featured h3 { font-size: 28px; color: var(--paper); }
.post-card small {
  margin-top: auto;
  color: var(--accent);
  font-size: 13px;
}
.post-cover {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}
.post-cover.auth { background: radial-gradient(circle at 25% 55%, rgba(255,255,255,.16) 0 5px, transparent 6px), linear-gradient(135deg, #c1502b, #3a2418); }
.post-cover.no { background: linear-gradient(45deg, transparent 48%, rgba(255,255,255,.42) 49%, rgba(255,255,255,.42) 51%, transparent 52%), linear-gradient(135deg, #2e4a3a, #1a2a22); }
.post-cover.guide { background: repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 1px, transparent 1px 40px), linear-gradient(135deg, #b08a3e, #2a2620); }

.playground { padding: 104px 0; }
.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.playground code {
  color: var(--accent-2);
  font-size: .95em;
}
.artifact.dark {
  background: #15130f;
  border-color: #2a2620;
  box-shadow: 0 40px 80px -32px rgba(0,0,0,.4);
}
.artifact.dark .chrome {
  background: #15130f;
  border-bottom-color: #2a2620;
}
.artifact.dark .chrome b { color: rgba(255,255,255,.6); }
.artifact.dark pre { color: #e8e2d5; }
.artifact.dark pre b,
.artifact.dark pre em { color: var(--accent-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: url("assets/founder-photo.jpg") center 22% / cover no-repeat;
}
.about-grid h2 { margin: 18px 0; }
.cred-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
}
.cred-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cred-list b {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
}
.cred-list span { color: var(--ink-1); font-weight: 500; }
.cred-list a { color: var(--accent); }

.big-cta {
  overflow: hidden;
  padding: 140px 0;
  background: var(--accent);
  color: var(--paper);
}
.big-cta .display,
.big-cta .lead { color: var(--paper); }
.big-cta em { color: rgba(255,255,255,.72); }
.big-cta .eyebrow { color: rgba(255,255,255,.72); }
.big-cta .eyebrow i { background: var(--paper); }
.big-cta h2 { max-width: 18ch; margin: 28px 0 32px; }
.big-cta .lead { color: rgba(255,255,255,.86); margin-bottom: 40px; }
.big-cta .email { color: rgba(255,255,255,.68); }

/* Marketing detail pages */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 84px;
  border-bottom: 1px solid var(--line);
}
.page-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: end;
}
.page-hero h1 {
  max-width: 14ch;
  margin: 24px 0 28px;
}
.page-hero .lead { margin-bottom: 34px; }
.pricing-note {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -42px rgba(26,24,20,.35);
}
.pricing-note strong {
  display: block;
  margin: 16px 0 14px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
}
.pricing-note p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.pricing-section { padding-top: 72px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 510px;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.price-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -22px rgba(193, 80, 43, .35);
}
.price-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.price-card.featured .glyph { background: rgba(255,255,255,.1); color: var(--paper); }
.price-card.featured .price-top,
.price-card.featured p,
.price-card.featured .mini-list li { color: rgba(255,255,255,.7); }
.price-card.featured .mini-list li::before { color: var(--accent-2); }
.price-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.price-card h2 { margin-top: 10px; }
.price-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.price-card .mini-list {
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 0;
}
.price-card .btn { margin-top: auto; justify-content: center; }
.badge {
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.compare-table {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.compare-table > div {
  display: grid;
  grid-template-columns: 190px 1fr 1fr;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.compare-table > div:last-child { border-bottom: 0; }
.compare-table b {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.compare-table span {
  color: var(--ink-2);
  font-size: 15px;
}
.compare-table span:first-child {
  color: var(--ink);
  font-weight: 600;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.faq-card {
  min-height: 250px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.faq-card h3 {
  margin: 18px 0 12px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
}
.faq-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.featured-case {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 46px;
  align-items: stretch;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.featured-case .case-cover {
  min-height: 430px;
  border: 0;
  border-radius: 12px;
}
.featured-case > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 24px 0;
}
.featured-case h2 {
  margin: 18px 0 20px;
  max-width: 12ch;
}
.featured-case .metric-row { margin-top: 28px; }
.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.detail-panel {
  min-height: 245px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.detail-panel h3 {
  margin: 22px 0 10px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
}
.detail-panel p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.58;
}
.case-cover.ops {
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.24) 0 4px, transparent 5px), repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 34px), linear-gradient(135deg, #b08a3e, #5a5247);
}
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.proof-note h2 { margin: 18px 0 18px; }
.proof-note p {
  max-width: 52ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
}

/* Contact page */
.contact-hero {
  min-height: auto;
  padding-bottom: 72px;
}
.contact-hero h1 {
  max-width: 18ch;
  margin: 24px 0 28px;
}
.contact-hero h1 strong {
  color: var(--accent);
  font-weight: 500;
}
.contact-hero .lead { margin-bottom: 32px; }
.contact-form-section { padding: 72px 0 88px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.side-block {
  padding: 24px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.side-block .eyebrow { margin-bottom: 16px; }
.expect-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.expect-list li {
  display: flex;
  gap: 16px;
}
.expect-list li > span {
  min-width: 28px;
  padding-top: 3px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
}
.expect-list b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}
.expect-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.elsewhere-list {
  display: flex;
  flex-direction: column;
}
.elsewhere-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .15s, color .15s;
}
.elsewhere-list a:last-child { border-bottom: none; }
.elsewhere-list a:hover { padding-left: 4px; }
.elsewhere-list a:hover b { color: var(--accent); }
.elsewhere-list span {
  min-width: 64px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.elsewhere-list b {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  text-align: right;
}
.side-block.quirk {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.side-block.quirk .eyebrow { color: rgba(255,255,255,.55); }
.side-block.quirk h2 {
  margin: 0 0 8px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}
.side-block.quirk p {
  margin: 0 0 16px;
  color: rgba(255,255,255,.65);
  font-size: 13.5px;
  line-height: 1.5;
}
.side-block.quirk code {
  display: block;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: #0d0c0a;
  color: rgba(255,255,255,.8);
  font-size: 12px;
  line-height: 1.7;
  white-space: normal;
}
.side-block.quirk code span { color: var(--accent-2); }
.side-block.quirk a {
  display: inline-block;
  color: var(--accent-2);
  border-bottom: 1px solid rgba(217,119,87,.4);
  padding-bottom: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.side-block.quirk a:hover {
  color: var(--paper);
  border-color: var(--paper);
}
.contact-form-wrap {
  padding: 40px 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.form-head { margin-bottom: 32px; }
.form-head h2 { margin: 12px 0 6px; }
.form-head p {
  margin: 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.form-head p span { color: var(--accent); }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-row {
  display: grid;
  gap: 18px;
}
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field > span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
}
.form-field > span b {
  color: var(--accent);
  font-weight: 500;
}
.form-field > span em {
  margin-left: auto;
  color: var(--ink-3);
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  font-style: normal;
  font-weight: 400;
}
.form-field small {
  min-height: 15px;
  color: var(--accent);
  font-size: 12px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  outline: none;
  font: 500 15.5px/1.4 var(--body);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(193,80,43,.08);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form textarea::placeholder { color: var(--ink-3); }
.form-field.has-error input,
.form-field.has-error select {
  border-color: var(--accent);
  background: rgba(193,80,43,.04);
}
.journey-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}
.journey-chips button {
  padding: 9px 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-1);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.journey-chips button:hover { border-color: var(--ink); }
.journey-chips button.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form-actions p {
  margin: 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
}
.contact-form button[disabled] {
  opacity: .65;
  cursor: wait;
}
.form-status {
  min-height: 18px;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
}
.form-consent {
  margin: -8px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.5;
}
.form-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-success {
  text-align: center;
  padding: 60px 20px;
}
.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 28px;
}
.contact-success h2 { margin: 20px 0 12px; }
.contact-success p {
  max-width: 40ch;
  margin: 0 auto 28px;
  color: var(--ink-2);
  font-size: 17px;
}
.findus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.findus-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px 28px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .15s, transform .15s;
}
.findus-card:hover {
  border-color: var(--ink-3);
  transform: translateY(-2px);
}
.findus-card .eyebrow { margin-bottom: 16px; }
.findus-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}
.findus-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}
.findus-card small {
  margin-top: auto;
  padding-top: 16px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
}
.findus-card a:hover { color: var(--accent); }
.thanks-hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.thanks-card {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.thanks-card .eyebrow { margin: 26px 0 22px; }
.thanks-card h1 { margin-bottom: 28px; }
.thanks-card .lead { margin-bottom: 34px; }
.thanks-card .lead a { color: var(--accent); }

.legal-hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  margin: 22px 0 26px;
}
.legal-date {
  margin: 28px 0 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal-section {
  padding: 72px 0 96px;
}
.legal-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 72px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.legal-toc a {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.legal-toc a:hover { color: var(--accent); }
.legal-content {
  padding: 40px 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.legal-content h2 {
  margin: 42px 0 14px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer {
  padding: 80px 0 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}
.footer-grid p {
  max-width: 330px;
  margin: 16px 0 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
}
.footer-grid h4 {
  margin: 0 0 16px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
}
.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-grid a { color: var(--ink-1); font-size: 14px; }
.footer-grid a:hover { color: var(--accent); }
.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

::selection { background: var(--accent); color: var(--paper); }

@media (max-width: 1080px) {
  .display.xxl { font-size: 92px; }
  .display.xl { font-size: 70px; }
  .display.lg { font-size: 48px; }
  .display.md { font-size: 32px; }
  .lead { font-size: 19px; }
  .stats-grid b { font-size: 46px; }
  .nav-links { display: none; }
  .service-grid,
  .price-grid,
  .case-grid,
  .post-grid { grid-template-columns: 1fr 1fr; }
  .approach-row,
  .approach-row.reverse,
  .playground-grid,
  .about-grid,
  .page-hero-grid,
  .featured-case,
  .proof-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 36px;
  }
  .featured-case > div:last-child { padding: 16px 8px 12px; }
  .case-detail-grid,
  .faq-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }
  .findus-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .display.xxl { font-size: 62px; }
  .display.xl { font-size: 50px; }
  .display.lg { font-size: 36px; }
  .display.md { font-size: 28px; }
  .lead { font-size: 18px; }
  .stats-grid b { font-size: 38px; }
  .scenario-card h3 { font-size: 22px; }
  section { padding: 64px 0; }
  .hero { min-height: 0; padding: 72px 0; }
  .section-head {
    display: block;
    margin-bottom: 36px;
  }
  .section-head p { margin-top: 18px; max-width: none; }
  .stats-grid,
  .service-grid,
  .price-grid,
  .scenario-grid,
  .case-grid,
  .case-detail-grid,
  .post-grid,
  .faq-grid,
  .findus-grid,
  .tools-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .page-hero { padding: 72px 0 64px; }
  .page-hero h1 { max-width: none; }
  .pricing-note { padding: 22px; }
  .price-card { min-height: 0; }
  .compare-table { overflow-x: auto; }
  .compare-table > div {
    min-width: 720px;
    grid-template-columns: 160px 1fr 1fr;
  }
  .featured-case { padding: 12px; }
  .featured-case .case-cover { min-height: 260px; }
  .form-row.two { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px; }
  .legal-content { padding: 28px; }
  .elsewhere-list a { display: block; }
  .elsewhere-list b {
    display: block;
    margin-top: 4px;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .mini-list { grid-template-columns: 1fr; }
  .diagram-wrap { overflow-x: auto; padding: 24px; }
  .diagram-legend { position: static; text-align: left; margin-bottom: 12px; }
  .cred-list div { grid-template-columns: 1fr; gap: 4px; }
  .footer-bottom { flex-direction: column; }
}

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