:root {
  --paper: #f3f1ec;
  --paper-2: #ebe8e1;
  --ink: #121417;
  --graphite: #474c54;
  --rule: #d3cfc6;
  --accent: #d9531e;
  --accent-text: #a63f15;
  --dark: #121417;
  --dark-2: #1b1e22;
  --on-dark: #ece9e2;
  --on-dark-muted: #a7abb1;
  --error: #a3241b;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 11vw, 148px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(to right, rgba(18, 20, 23, 0.045) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--wrap)) - 2 * var(--gutter)) / 12) 100%;
  background-position: center top;
  opacity: 0.9;
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 241, 236, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin: 0; white-space: nowrap; }
.wordmark-mark { width: 22px; height: 22px; flex: none; }
.wordmark-primary { font-weight: 600; letter-spacing: 0.14em; font-size: 15px; }
.wordmark-secondary { font-weight: 400; letter-spacing: 0.14em; font-size: 15px; color: var(--graphite); text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--graphite); transition: color 0.2s ease; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: var(--ink); border: 1px solid var(--ink); padding: 8px 14px; transition: background 0.2s ease, color 0.2s ease; }
.site-nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 0;
  padding: 15px 24px; font: 500 15px/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.button::after { content: ""; width: 18px; height: 1px; background: var(--accent); transition: width 0.25s ease; }
.button:hover { background: transparent; color: var(--ink); }
.button:hover::after { width: 28px; }
.text-link { font-size: 15px; color: var(--graphite); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--rule); }
.hero { --h1: min(112px, calc((min(100vw, var(--wrap)) - 2 * var(--gutter)) / 9.6)); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
.hero-head { grid-column: 1 / -1; }
.hero-copy { grid-column: 1 / span 6; }
/* Figure rises beside the short second headline line */
.hero-figure { grid-column: 8 / span 5; margin: calc(var(--h1) * -1.25) 0 0; }
.eyebrow, .index, .tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite);
}
.eyebrow { margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
h1 { font-size: var(--h1); letter-spacing: -0.035em; line-height: 0.98; margin-bottom: clamp(24px, 3vw, 36px); }
.h1-line { display: block; white-space: nowrap; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--graphite); max-width: 36em; margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.axon { width: 100%; height: auto; overflow: visible; }
.axon path { fill: none; vector-effect: non-scaling-stroke; }
.axon-grid path { stroke: rgba(18, 20, 23, 0.07); stroke-width: 1; }
.axon-plane path { stroke: var(--ink); stroke-width: 1.25; fill: rgba(243, 241, 236, 0.85); }
.axon-plane.accent path { stroke: var(--accent); stroke-width: 1.75; }
.axon-links path { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; }
.axon-dim path { stroke: var(--graphite); stroke-width: 1; }
.axon-labels text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; fill: var(--graphite); text-transform: uppercase; }
.axon-labels text:nth-child(-n+3) { fill: var(--ink); font-weight: 600; }
.axon-plane { transform-box: fill-box; transform-origin: center; }

/* Sections */
.section { padding: var(--section) 0; border-bottom: 1px solid var(--rule); }
.section-alt { background: var(--paper-2); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 720px; }
.index { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.index span { color: var(--accent-text); font-weight: 600; }
.index::after { content: ""; flex: 0 0 64px; height: 1px; background: currentColor; opacity: 0.4; }
h2 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.03em; margin-bottom: 22px; }
.section-intro { font-size: 19px; color: var(--graphite); max-width: 34em; }
h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 10px; }

/* Challenges: numbered ledger, not cards */
.challenge-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: ch; border-top: 1px solid var(--ink); }
.challenge-list li { counter-increment: ch; padding: 28px 28px 36px 0; border-bottom: 1px solid var(--rule); position: relative; }
.challenge-list li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--rule); }
.challenge-list li::before { content: counter(ch, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 12px; color: var(--graphite); margin-bottom: 26px; letter-spacing: 0.08em; }
.challenge-list p { color: var(--graphite); margin: 0; font-size: 16px; }

/* Perspective */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.split > .section-head { grid-column: 1 / span 5; }
.split > .prose, .split > .form-wrap { grid-column: 7 / span 6; }
.prose p { font-size: 18px; }
.pull {
  margin: 40px 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--accent);
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500;
}
.function-list { list-style: none; margin: 40px 0 20px; padding: 0; border-top: 1px solid var(--ink); }
.function-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 16px; align-items: baseline; font-size: 17px; }
.function-list li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--ink); flex: none; transform: translateY(-1px) rotate(45deg); }
.support { color: var(--graphite); font-size: 16px !important; }

/* Approach (dark) */
.section-dark { background: var(--dark); color: var(--on-dark); border-bottom: 0; }
.section-dark .index { color: var(--on-dark-muted); }
.section-dark .index span { color: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(236, 233, 226, 0.35); }
.steps li { padding: 32px 28px 8px 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid rgba(236, 233, 226, 0.14); }
.steps li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--accent); }
.steps li + li::before { left: -4px; }
.step-n { display: block; font-family: var(--mono); font-size: 12px; color: var(--on-dark-muted); letter-spacing: 0.12em; margin-bottom: 40px; }
.steps h3 { font-size: 24px; margin-bottom: 14px; }
.steps p { color: var(--on-dark-muted); font-size: 16px; }
.engagement { margin: clamp(48px, 7vw, 88px) 0 0; max-width: 46em; font-size: 19px; line-height: 1.6; color: var(--on-dark); padding-top: 32px; border-top: 1px solid rgba(236, 233, 226, 0.14); }

/* Applied */
.tag { color: var(--accent-text); margin: 0; }
.applied-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; }
.applied-grid > .prose { grid-column: 1 / span 6; }
.applied-grid > .flow { grid-column: 8 / span 5; }
.points { list-style: none; padding: 0; margin: 28px 0; }
.points li { padding: 14px 0 14px 28px; border-top: 1px solid var(--rule); position: relative; font-size: 16px; color: var(--graphite); }
.points li::before { content: ""; position: absolute; left: 0; top: 26px; width: 14px; height: 1px; background: var(--accent); }
.flow { margin: 0; border: 1px solid var(--ink); background: var(--paper); padding: 28px; }
.flow ol { list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; display: flex; gap: 18px; align-items: baseline; padding: 13px 0 13px; font-size: 16px; }
.flow li + li { border-top: 1px dashed var(--rule); }
.flow li span { font-family: var(--mono); font-size: 12px; color: var(--graphite); }
.flow li:last-child { color: var(--accent-text); }

/* Form */
.form-wrap { max-width: 560px; }
.preview-banner { font-family: var(--mono); font-size: 13px; line-height: 1.55; padding: 14px 16px; border: 1px dashed var(--graphite); color: var(--ink); margin-bottom: 32px; background: var(--paper); }
.field { margin-bottom: 22px; }
.field label { display: flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.req { color: var(--accent-text); }
.opt { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite); font-weight: 400; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid #767a82; border-radius: 0;
  padding: 12px 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: inset 0 0 0 1px var(--error) !important; }
.error { color: var(--error); font-size: 13px; margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 4px 0 18px; min-height: 65px; }
.button[disabled] { opacity: 0.6; cursor: progress; }
.privacy { font-size: 13px; color: var(--graphite); line-height: 1.55; margin: 6px 0 24px; }
.form-status:empty { display: none; }
.form-status { margin-top: 24px; padding: 18px 20px; border-left: 2px solid var(--accent); background: var(--paper); font-size: 15px; }
.form-status strong { display: block; font-weight: 600; margin-bottom: 4px; }
.form-status p { margin: 0 0 6px; }
.form-status p:last-child { margin: 0; color: var(--graphite); font-size: 14px; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark-muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; padding-top: 40px; padding-bottom: 40px; font-size: 13px; }
.footer-inner p { margin: 0; }
.wordmark-small .wordmark-primary { color: var(--on-dark); font-size: 13px; }
.wordmark-small .wordmark-secondary { color: var(--on-dark-muted); font-size: 13px; margin-left: 8px; }
.signature { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }

/* Reveal: progressive enhancement; content visible without JS */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .axon-plane { opacity: 0; transform: translateY(-18px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.js .axon.in .axon-plane { opacity: 1; transform: none; }
.js .axon.in .p2 { transition-delay: 0.15s; }
.js .axon.in .p3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 960px) {
  .hero-copy { grid-column: 1 / span 7; }
  .split > .section-head, .split > .prose, .split > .form-wrap { grid-column: 1 / -1; }
  .applied-grid > .prose, .applied-grid > .flow { grid-column: 1 / -1; }
  .applied-grid > .flow { margin-top: 24px; }
  .challenge-list { grid-template-columns: repeat(2, 1fr); }
  .challenge-list li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .challenge-list li:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--rule); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(3)::before { left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid rgba(236, 233, 226, 0.14); margin-top: 24px; }
}
@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .wordmark-secondary { display: none; }
  .site-footer .wordmark-secondary { display: inline; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-figure { grid-column: 2 / span 10; max-width: 340px; justify-self: center; width: 100%; margin-top: 40px; }
  .challenge-list, .steps { grid-template-columns: 1fr; }
  .challenge-list li, .challenge-list li:nth-child(2n) { padding: 24px 0 28px; border-left: 0; }
  .challenge-list li::before { margin-bottom: 14px; }
  .steps li, .steps li + li { padding: 28px 0 8px; border-left: 0; }
  .steps li + li { border-top: 1px solid rgba(236, 233, 226, 0.14); margin-top: 16px; }
  .steps li + li::before, .steps li::before { left: 0; }
  .step-n { margin-bottom: 18px; }
  .flow { padding: 20px; }
  .site-nav .nav-cta { padding: 7px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal, .js .axon-plane { opacity: 1 !important; transform: none !important; }
}
