:root {
    --bg: #f4efe6;          /* matches the headshot backdrop exactly */
    --band: #ebe4d8;
    --card: #fbf8f3;
    --ink: #1d242b;
    --muted: #56616c;
    --slate: #26303a;
    --slate-deep: #1a2129;
    --rust: #a9582f;
    --rust-dark: #8c4523;
    --rust-soft: #f3e1d6;
    --line: #dcd3c4;
    --ok: #3f6b4f;
    --serif: "Source Serif 4", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(29, 36, 43, .06), 0 8px 24px rgba(29, 36, 43, .07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 18px/1.65 var(--sans);
}
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 16px; }
a { color: var(--rust-dark); }

section { padding: 88px 0; }
.band { background: var(--band); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 19px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(244, 239, 230, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; }
.mark { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: #fff; background: var(--slate); padding: 9px 16px; border-radius: 6px; }
.nav .nav-cta:hover { background: var(--slate-deep); color: #fff; }

/* ---------- buttons ---------- */
.button {
    display: inline-block;
    background: var(--slate);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 15px 26px;
    border-radius: 8px;
    transition: background .15s;
}
.button:hover { background: var(--slate-deep); }
.button.light { background: #fff; color: var(--slate); }
.button.light:hover { background: var(--rust-soft); }
.text-link { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--rust); padding-bottom: 2px; }
.text-link:hover { color: var(--rust-dark); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--rust-dark); margin-bottom: 18px; }
.lede { font-size: 20px; color: var(--muted); margin-bottom: 32px; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.portrait { margin: 0; position: relative; justify-self: end; width: 100%; max-width: 400px; }
.portrait::before {
    content: "";
    position: absolute;
    inset: 28px -18px -18px 28px;
    border-radius: 16px;
    background: repeating-linear-gradient(0deg, var(--band) 0 18px, #e2d9ca 18px 22px, var(--band) 22px 40px, var(--rust-soft) 40px 44px);
    z-index: 0;
}
.portrait img { position: relative; z-index: 1; border-radius: 16px; width: 100%; height: auto; box-shadow: var(--shadow); }
.portrait figcaption {
    position: absolute;
    z-index: 2;
    left: -28px;
    bottom: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted);
}
.portrait figcaption strong { color: var(--ink); font-size: 16px; }
.cap-note { color: var(--rust-dark); font-weight: 500; margin-top: 2px; }

/* ---------- example flow ---------- */
.example { padding-top: 24px; }
.flow { display: grid; grid-template-columns: 1fr 150px 1.35fr; align-items: center; gap: 12px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.panel-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); background: #f7f2ea; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }
.mail { padding: 18px 18px 20px; font-size: 15px; }
.mail p { margin: 0 0 6px; }
.mail-from { color: var(--muted); font-size: 13px; }
.mail-subj { font-weight: 600; }
.mail-body { color: var(--muted); margin-bottom: 14px !important; }
.attach { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--rust-dark); }
.attach svg { width: 18px; height: 18px; }

.arrow { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--rust); }
.arrow svg { width: 100%; max-width: 110px; height: 24px; }
.arrow span { font-size: 13px; line-height: 1.35; color: var(--muted); }

.badge { margin-left: auto; background: var(--rust-soft); color: var(--rust-dark); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.erp table { width: 100%; border-collapse: collapse; font-size: 14px; }
.erp th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px 8px; }
.erp td { padding: 9px 16px; border-top: 1px solid #ece5d9; }
.erp .num { text-align: right; white-space: nowrap; }
.erp tr.flag td { background: #fbeee5; }
.erp tr.flag td:first-child { box-shadow: inset 3px 0 0 var(--rust); }
.flag-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 16px; font-size: 13px; color: var(--rust-dark); border-top: 1px solid #ece5d9; }
.flag-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.erp-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px 16px; }
.btn-ghost, .btn-solid { font-size: 13px; font-weight: 600; border-radius: 6px; padding: 7px 14px; }
.btn-ghost { border: 1px solid var(--line); color: var(--muted); background: #fff; }
.btn-solid { background: var(--ok); color: #fff; }
.illustration-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- jobs ---------- */
.jobs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.jobs li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px; }
.jobs p { color: var(--muted); font-size: 16px; margin: 0; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--rust-soft); color: var(--rust-dark); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }

/* ---------- pilot steps ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps li { position: relative; }
.step-num { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--slate); color: #fff; font-weight: 600; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--bg); }
.steps p { color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.callout { display: flex; gap: 18px; background: var(--slate); color: #e9e4db; border-radius: 12px; padding: 28px; }
.callout h3 { color: #fff; }
.callout p { margin: 0; }
.callout .icon { flex: none; background: rgba(255, 255, 255, .1); color: #f0c9b2; margin: 0; }
.relationship { border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: var(--card); }
.relationship p { color: var(--muted); margin: 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.facts { margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.facts dt { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--rust-dark); line-height: 1.1; margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---------- CTA ---------- */
.cta { background: var(--slate); color: #d9d3c9; }
.cta-grid { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; max-width: 900px; }
.cta h2 { color: #fff; }
.cta p { font-size: 19px; margin-bottom: 26px; }
.cta-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255, 255, 255, .15); }

/* ---------- footer ---------- */
.foot { padding: 28px 0; color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .jobs { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
    .steps::before { display: none; }
}
@media (max-width: 860px) {
    .hero-grid, .about-grid, .split { grid-template-columns: 1fr; gap: 40px; }
    .portrait { justify-self: start; max-width: 280px; margin-left: 18px; }
    .flow { grid-template-columns: 1fr; }
    .arrow { flex-direction: row; justify-content: center; }
    .arrow svg { transform: rotate(90deg); width: 40px; max-width: 40px; }
    .arrow span { text-align: left; max-width: 240px; }
    .nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 600px) {
    body { font-size: 17px; }
    .wrap { padding: 0 16px; }
    section { padding: 60px 0; }
    .hero { padding: 44px 0 56px; }
    .lede, .section-head p { font-size: 18px; }
    .jobs, .steps, .facts { grid-template-columns: 1fr; }
    .button { display: block; text-align: center; }
    .actions { flex-direction: column; align-items: stretch; gap: 18px; }
    .text-link { align-self: center; }
    .erp th:first-child, .erp td:first-child { display: none; }
    .erp th, .erp td { padding-left: 12px; padding-right: 12px; }
    .cta-grid { grid-template-columns: 1fr; gap: 24px; }
    .portrait figcaption { left: -12px; }
}

/* ---------- case studies ---------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.case-wide { grid-column: 1 / -1; border-top: 4px solid var(--rust); }
.case-kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rust-dark); margin-bottom: 10px; }
.case h3 { font-family: var(--serif); font-size: 24px; }
.case > p:not(.case-kicker) { color: var(--muted); font-size: 16px; }
.metrics { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.metrics dt { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.metrics dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } }

/* ---------- more builds ---------- */
.more { margin-top: 28px; padding: 26px 30px; border: 1px dashed var(--line); border-radius: 12px; }
.more h3 { margin-bottom: 12px; }
.more ul { margin: 0; padding-left: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; }
.more li { color: var(--muted); font-size: 16px; }
.more li::marker { color: var(--rust); }

/* ---------- contact ---------- */
.contact { background: var(--slate); color: #d9d3c9; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact h2 { color: #fff; }
.contact-copy p { font-size: 18px; }
.contact-copy .cta-photo { margin-bottom: 24px; }
.contact-alt a { color: #f0c9b2; }
.form { background: var(--card); color: var(--ink); border-radius: 14px; padding: 28px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--rust); outline-offset: 1px; border-color: var(--rust); }
.form textarea { resize: vertical; min-height: 110px; }
.form .button { border: 0; cursor: pointer; font: inherit; font-weight: 600; width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; background: #fbeee5; border: 1px solid #e8c3ad; color: var(--rust-dark); border-radius: 8px; padding: 10px 14px; font-size: 14px; }

@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .more ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .row2 { grid-template-columns: 1fr; }
    .form { padding: 22px 18px; }
}
.thanks { max-width: 720px; }
.thanks .cta-photo { margin-bottom: 28px; border-color: var(--line); }

/* ---------- logo ---------- */
.brand .mark { width: 40px; height: auto; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: -.01em; color: var(--ink); }
.wordmark i { font-style: normal; font-family: var(--sans); font-weight: 600; font-size: 8.4px; letter-spacing: .34em; text-transform: uppercase; color: var(--rust); margin-top: 4px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand .mark { width: 24px; height: auto; }
