:root {
  --paper: #f2ede3;
  --paper-2: #e9e2d4;
  --ink: #14261f;
  --ink-2: #3d4c45;
  --muted: #6b766f;
  --line: rgba(20, 38, 31, 0.14);
  --accent: #c8572a;
  --accent-2: #e2a15a;
  --forest: #14261f;
  --forest-2: #1d3a2f;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.15 0 0 0 0 0.12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 em, h2 em, .brand em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
.nav.scrolled { border-bottom-color: var(--line); padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 26px/1 var(--serif); }
.brand-mark { width: 30px; height: 30px; fill: var(--ink); stroke: var(--ink); }
.brand-mark circle:first-child { fill: var(--accent); }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav a:not(.brand) { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
.nav li a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav li a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px; transition: background .25s, color .25s; }
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); box-shadow: 0 10px 30px -12px rgba(200, 87, 42, .7); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 9vw, 120px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero h1 { font-size: clamp(52px, 8.2vw, 116px); line-height: .94; margin-bottom: 32px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-art { margin: 0; color: var(--ink); position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 12% 8%;
  background: radial-gradient(closest-side, rgba(226, 161, 90, .45), transparent);
  filter: blur(30px); z-index: -1;
}
.hero-art svg { width: 100%; height: auto; }
.orbit { fill: none; stroke: var(--ink); stroke-opacity: .22; stroke-dasharray: 2 7; transform-origin: 240px 240px; animation: spin 90s linear infinite; }
.orbit.o2 { stroke-dasharray: 1 5; animation-duration: 60s; animation-direction: reverse; }
.links path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s var(--ease) .5s forwards; }
.n { fill: var(--paper); stroke: var(--ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pop .7s var(--ease) both; }
.n-accent { fill: var(--accent); stroke: var(--accent); animation-delay: 1.1s; }
.nodes .n:nth-child(2) { animation-delay: 1.3s; }
.nodes .n:nth-child(3) { animation-delay: 1.5s; }
.n-core { fill: var(--ink); animation-delay: 1.7s; }
.labels text { font: 400 20px var(--serif); font-style: italic; fill: var(--ink-2); opacity: 0; animation: fade .8s ease 2s forwards; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 120ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal-scroll { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-scroll.in { opacity: 1; transform: none; }
.no-js .reveal-scroll { opacity: 1; transform: none; }

/* ---------- strip ---------- */
.strip { border-block: 1px solid var(--line); }
.strip ul {
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter);
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  font-size: 15px; color: var(--ink-2);
}
.strip .k { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- section heads ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2, .contact h2 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; margin-bottom: 22px; }
.section-head > p:not(.eyebrow) { color: var(--ink-2); font-size: 19px; max-width: 58ch; }

/* ---------- services (dark) ---------- */
.services {
  background: var(--forest); color: var(--paper);
  padding: clamp(72px, 11vw, 140px) var(--gutter);
  position: relative; overflow: hidden;
}
.services::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -260px; top: -260px;
  border-radius: 50%; border: 1px solid rgba(242, 237, 227, .08);
  box-shadow: 0 0 0 80px rgba(242, 237, 227, .025), 0 0 0 160px rgba(242, 237, 227, .02);
  pointer-events: none;
}
.services > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.services .section-head { margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.services .eyebrow { color: var(--accent-2); }
.services .section-head > p:not(.eyebrow) { color: rgba(242, 237, 227, .72); }
.services h2 em { color: var(--accent-2); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.card {
  background: var(--forest-2);
  border: 1px solid rgba(242, 237, 227, .1);
  border-radius: var(--radius);
  padding: 36px 32px 34px;
  transition: transform .5s var(--ease), border-color .4s, background .4s, opacity .8s var(--ease);
}
.card:nth-child(2) { transition-delay: .08s; }
.card:nth-child(3) { transition-delay: .16s; }
.card:hover { transform: translateY(-6px); border-color: rgba(226, 161, 90, .5); background: #214235; }
.card-num { font: italic 400 22px var(--serif); color: var(--accent-2); }
.card h3 { font-size: 36px; line-height: 1.05; margin: 40px 0 14px; }
.card > p { color: rgba(242, 237, 227, .72); font-size: 16px; }
.card ul { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid rgba(242, 237, 227, .12); }
.card li { font-size: 15px; padding: 7px 0 7px 22px; position: relative; color: rgba(242, 237, 227, .9); }
.card li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: var(--accent-2); }

/* ---------- approach ---------- */
.approach { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--gutter); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 28px 26px 0 0; position: relative; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); display: block; font: 500 12px var(--mono); letter-spacing: .1em; color: var(--accent); margin-bottom: 44px; }
.steps h3 { font-size: 34px; margin-bottom: 12px; }
.steps p { color: var(--ink-2); font-size: 16px; }
.steps li:nth-child(2) { transition-delay: .08s; }
.steps li:nth-child(3) { transition-delay: .16s; }
.steps li:nth-child(4) { transition-delay: .24s; }

/* ---------- about ---------- */
.about {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 11vw, 140px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start;
}
.about blockquote { margin: 0; font: 400 clamp(36px, 4.4vw, 58px)/1.05 var(--serif); }
.about blockquote::first-letter { color: var(--accent); }
.about-body { padding-top: 38px; color: var(--ink-2); }
.facts { margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 18px 32px; border-top: 1px solid var(--line); padding-top: 22px; }
.facts dt { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; color: var(--ink); font-weight: 500; }
.facts a { text-underline-offset: 3px; text-decoration-color: var(--accent); }

/* ---------- contact ---------- */
.contact {
  background: var(--paper-2);
  padding: clamp(72px, 11vw, 140px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 6vw, 96px);
}
.contact-intro > p:not(.eyebrow) { color: var(--ink-2); max-width: 40ch; }
.contact-direct { margin-top: 36px; font-size: 15px; }
.contact-direct a { font: italic 400 clamp(22px, 2.3vw, 30px) var(--serif); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease); color: var(--ink); overflow-wrap: anywhere; }
.contact-direct a:hover { background-size: 0 1px; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 30px 60px -40px rgba(20, 38, 31, .35);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.opt { text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input, .field textarea, .field select {
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; border-radius: 0; width: 100%;
  transition: border-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314261f' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 24px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field.invalid input, .field.invalid textarea { border-bottom-color: #b3261e; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.fine { font-size: 13px; color: var(--muted); margin: 0; max-width: 36ch; }
.fine a { color: var(--ink-2); }
.form-status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: #2d6a4f; }
.form-status.err { color: #b3261e; }

/* ---------- footer ---------- */
.footer { background: var(--forest); color: var(--paper); padding: 56px var(--gutter) 40px; }
.footer-top { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(242, 237, 227, .14); }
.footer .brand-mark { fill: var(--paper); stroke: var(--paper); }
.footer .brand em { color: var(--accent-2); }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; font-size: 15px; opacity: .8; }
.footer nav a:hover { opacity: 1; }
.legal { max-width: var(--max); margin: 24px auto 0; font-size: 13px; line-height: 1.7; color: rgba(242, 237, 227, .6); }

/* ---------- privacy page ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 100px) var(--gutter); }
.doc h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1; margin-bottom: 28px; }
.doc h2 { font-size: 30px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; justify-self: center; width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; border-top: 0; }
  .steps li, .steps li + li { padding: 26px 20px 20px 0; border-left: 0; border-top: 1px solid var(--ink); }
  .steps li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .steps li::before { margin-bottom: 20px; }
  .about, .contact { grid-template-columns: 1fr; }
  .about-body { padding-top: 0; }
  .strip ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav ul li:not(:last-child) { display: none; }
  .brand { font-size: 22px; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(even) { padding-left: 0; border-left: 0; }
  .form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .card { padding: 28px 22px; }
  .card h3 { margin-top: 24px; }
}

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