:root {
  /* Earth-tone brand palette */
  --espresso: #3A2410;
  --chestnut: #6B3000;
  --sienna:   #7A3B1E;
  --amber:    #B8682A;          /* decorative only — never body text */
  --sage:     #2D5016;
  --sage-fill:#E8F0E3;
  --cream:    #F5EDE0;
  --sand:     #E0C9A8;
  --parchment:#FDF8F2;
  --warm-white:#FDFAF5;
  --warning-bg:#FDF3E4;
  --rule:     #C4A882;
  --footer:   #8A7360;

  /* Brand-spec fonts: Calibri body + Georgia italic accent */
  --sans: "Calibri", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Source Serif 4", "Times New Roman", serif;

  --max: 1180px;
  --pad-x: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--warm-white);
  color: var(--espresso);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }

/* ───── Brand bars (cover page treatment) ───── */
.bar-espresso { background: var(--espresso); height: 12px; width: 100%; }
.bar-amber    { background: var(--amber);    height: 6px;  width: 100%; }
.rule-sand    { background: var(--sand); height: 2px; border: 0; }

/* ───── Nav ───── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,250,245,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad-x);
  max-width: var(--max); margin: 0 auto;
}
.nav-logo {
  display: flex; align-items: baseline; gap: 6px;
  letter-spacing: 0.05em;
}
.nav-logo .mark {
  font-weight: 700; color: var(--espresso); font-size: 18px;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.nav-logo .sub {
  font-family: var(--serif); font-style: italic;
  color: var(--chestnut); font-size: 15px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--espresso); font-weight: 500;
}
.nav-links a:hover { color: var(--chestnut); }
.nav-cta {
  background: var(--espresso); color: #fff !important;
  padding: 10px 18px; border-radius: 2px; font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--chestnut); }
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ───── Hero — document cover inspired ───── */
.hero {
  background: var(--parchment);
  border-bottom: 1px solid var(--rule);
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 10vw, 120px);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .hero-inner { grid-template-columns: 1fr; } }

.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--footer); font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--sans);
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.06;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--chestnut);
}
.hero .lede {
  font-size: 19px; line-height: 1.6; color: var(--espresso);
  max-width: 56ch; margin-bottom: 14px;
}
.hero .lede strong { color: var(--chestnut); font-weight: 600; }
.hero .tagline {
  font-family: var(--serif); font-style: italic;
  color: var(--sienna); font-size: 17px;
  margin-top: 26px; padding-top: 22px;
  border-top: 2px solid var(--sand);
  max-width: 50ch;
}
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; font-size: 15px; font-weight: 600;
  border-radius: 2px; transition: all .2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--espresso); color: #fff;
}
.btn-primary:hover { background: var(--chestnut); }
.btn-ghost {
  background: transparent; color: var(--espresso);
  border-color: var(--espresso);
}
.btn-ghost:hover { background: var(--cream); }

/* Hero visual: stacked document-card */
.hero-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px;
  box-shadow: 0 30px 60px -30px rgba(58,36,16,0.18);
  position: relative;
}
.hero-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 8px; background: var(--espresso);
}
.hero-card::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--amber);
}
.hero-card .doc-label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--footer); font-weight: 600;
  margin-top: 6px; margin-bottom: 18px;
}
.hero-card .doc-title {
  font-size: 22px; font-weight: 700; color: var(--espresso);
  line-height: 1.25; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.hero-card .doc-sub {
  font-family: var(--serif); font-style: italic;
  color: var(--chestnut); font-size: 15px;
  margin-bottom: 22px;
}
.hero-card hr { border: 0; height: 1px; background: var(--rule); margin: 18px 0; }
.doc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.doc-stat {
  background: var(--parchment); padding: 14px 16px; border-radius: 2px;
  border-left: 4px solid var(--amber);
}
.doc-stat .num {
  font-size: 26px; font-weight: 700; color: var(--espresso);
  line-height: 1; margin-bottom: 4px;
}
.doc-stat .lbl {
  font-size: 12px; color: var(--footer); text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600;
}
.doc-foot {
  margin-top: 18px; font-size: 11px; color: var(--footer);
  text-transform: uppercase; letter-spacing: 0.16em;
  display: flex; justify-content: space-between;
}

/* ───── Section scaffolding ───── */
.section { padding: clamp(70px, 9vw, 110px) 0; }
.section.alt { background: var(--cream); }
.section.deep { background: var(--espresso); color: var(--cream); }

.section-eyebrow {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--footer); font-weight: 600; margin-bottom: 14px;
}
.section.deep .section-eyebrow { color: var(--sand); }

.h1 {
  font-size: clamp(28px, 3.6vw, 42px); font-weight: 700;
  color: var(--espresso); text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 1.15;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--amber);  /* H1 spec rule */
  margin-bottom: 24px; max-width: 22ch;
}
.section.deep .h1 { color: var(--cream); }
.h2 {
  font-size: 22px; font-weight: 700;
  color: var(--chestnut); margin-bottom: 10px;
}
.h3 {
  font-size: 17px; font-weight: 700;
  color: var(--sienna); margin-bottom: 8px;
}
.lead {
  font-size: 19px; color: var(--espresso);
  max-width: 64ch; line-height: 1.65;
}
.section.deep .lead { color: var(--cream); }
.muted { color: var(--footer); }
.body p { margin-bottom: 14px; }
.body p:last-child { margin-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ───── Who we help cards ───── */
.audience {
  background: #fff; padding: 28px 26px;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--espresso);
  border-radius: 2px;
  transition: transform .2s, box-shadow .2s;
}
.audience:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(58,36,16,0.25);
}
.audience .num {
  font-family: var(--serif); font-style: italic;
  color: var(--amber); font-size: 28px; font-weight: 500;
  line-height: 1; margin-bottom: 14px;
  display: block;
}
.audience h3 {
  font-size: 18px; font-weight: 700; color: var(--espresso);
  margin-bottom: 10px; line-height: 1.25;
}
.audience p { font-size: 15px; color: var(--espresso); line-height: 1.55; }

/* ───── Callout (How we work) — left-border accent ───── */
.callout {
  background: var(--cream);
  border-left: 6px solid var(--amber);
  padding: 28px 32px;
  border-radius: 2px;
}
.callout .title {
  font-size: 18px; font-weight: 700; color: var(--espresso);
  margin-bottom: 10px;
}
.callout p { font-size: 15px; line-height: 1.6; }
.callout.sage { background: var(--sage-fill); border-left-color: var(--sage); }
.callout.sage .title { color: var(--sage); }
.callout.summary { background: var(--cream); border-left-color: var(--espresso); }

.check-list { list-style: none; margin-top: 18px; }
.check-list li {
  position: relative; padding-left: 28px; margin-bottom: 10px;
  font-size: 16px; line-height: 1.5;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 14px; height: 14px;
  background: var(--amber);
  transform: rotate(45deg);
  border-radius: 2px;
}
.check-list.sage li::before { background: var(--sage); }

/* ───── Services ───── */
.service {
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 36px 34px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
  position: relative;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--amber);
}
@media (max-width: 880px) { .service { grid-template-columns: 1fr; gap: 24px; } }

.service .svc-head .tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--amber); text-transform: uppercase;
  margin-bottom: 12px;
}
.service h2 {
  font-size: 24px; font-weight: 700; color: var(--espresso);
  line-height: 1.2; margin-bottom: 12px;
}
.service .pitch {
  font-family: var(--serif); font-style: italic;
  color: var(--chestnut); font-size: 16px; line-height: 1.5;
}
.service .body p { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.service .body h4 {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sienna); margin: 18px 0 10px; font-weight: 700;
}
.service .body ul {
  list-style: none; columns: 2; column-gap: 24px;
}
.service .body ul li {
  font-size: 14px; padding-left: 18px; position: relative;
  margin-bottom: 8px; break-inside: avoid;
}
.service .body ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 2px; background: var(--amber);
}
@media (max-width: 700px) { .service .body ul { columns: 1; } }
.diff-box {
  margin-top: 22px;
  background: var(--sage-fill); border-left: 6px solid var(--sage);
  padding: 16px 20px; border-radius: 2px;
}
.diff-box .label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage); font-weight: 700; margin-bottom: 6px;
}
.diff-box p { font-size: 14px; line-height: 1.55; color: var(--espresso); margin: 0; }

/* ───── Why us (deep section) ───── */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 880px) { .reasons { grid-template-columns: 1fr; } }
.reason {
  border: 1px solid rgba(228, 201, 168, 0.25);
  padding: 26px 24px; border-radius: 2px;
  background: rgba(245, 237, 224, 0.04);
}
.reason .icon-rule {
  width: 32px; height: 3px; background: var(--amber);
  margin-bottom: 16px;
}
.reason h3 {
  color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 10px;
}
.reason p {
  color: var(--sand); font-size: 14px; line-height: 1.6;
}
.reason.featured {
  grid-column: 1 / -1;
  background: rgba(184, 104, 42, 0.12);
  border-left: 6px solid var(--amber);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 880px) { .reason.featured { grid-template-columns: 1fr; padding: 26px; } }
.reason.featured h3 {
  font-size: 22px; line-height: 1.25; margin-bottom: 0;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.reason.featured h3 em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--amber); text-transform: none;
}
.reason.featured p { color: var(--cream); font-size: 16px; }
.reason.featured .icon-rule { margin-bottom: 12px; width: 40px; }

.framework-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 30px;
}
.chip {
  border: 1px solid var(--sand);
  color: var(--sand);
  padding: 8px 16px; font-size: 12px;
  letter-spacing: 0.14em; font-weight: 600;
  text-transform: uppercase;
  border-radius: 2px;
}
.section:not(.deep) .chip {
  border-color: var(--rule); color: var(--chestnut);
}

/* ───── Founder ───── */
.founder {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 50px; align-items: center;
}
@media (max-width: 800px) { .founder { grid-template-columns: 1fr; } }
.founder-photo {
  width: 100%; aspect-ratio: 4/5; overflow: hidden;
  background: var(--cream); border-radius: 3px;
  border: 1px solid var(--rule);
  position: relative;
}
.founder-photo image-slot,
.founder-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.founder-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; background: var(--amber);
}
.founder .quote {
  font-family: var(--serif); font-style: italic;
  font-size: 24px; line-height: 1.4; color: var(--chestnut);
  margin-top: 18px; padding-top: 18px;
  border-top: 2px solid var(--sand);
}

/* ───── Contact ───── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.form { background: #fff; padding: 32px; border: 1px solid var(--rule); border-radius: 3px; }
.form-row { margin-bottom: 18px; }
.form label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--footer); margin-bottom: 6px;
}
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 2px;
  background: var(--parchment); font-family: inherit;
  color: var(--espresso); font-size: 15px;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--chestnut); background: #fff;
}
.form-banner {
  padding: 14px 18px;
  border-radius: 2px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.5;
  border-left: 6px solid;
}
.form-banner.success {
  background: #E8F0E3;
  border-color: #2D5016;
  color: #2D5016;
}
.form-banner.error {
  background: #FAE9E3;
  border-color: #7B2000;
  color: #7B2000;
}
.form-banner a { color: inherit; text-decoration: underline; }
.hp-field {
  position: absolute;
  left: -10000px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.contact-info .item {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-info .item:last-child { border-bottom: none; }
.contact-info .item .lbl {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--footer); font-weight: 600; margin-bottom: 6px;
}
.contact-info .item .val { font-size: 17px; color: var(--espresso); font-weight: 500; }

/* ───── Footer ───── */
footer.foot {
  background: var(--espresso); color: var(--sand);
  padding: 50px 0 24px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h4 {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 14px; font-weight: 700;
}
.foot-col a, .foot-col p { color: var(--sand); font-size: 14px; line-height: 1.8; }
.foot-col a:hover { color: var(--cream); }
.foot-logo .mark {
  font-size: 22px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.foot-logo .sub {
  font-family: var(--serif); font-style: italic;
  color: var(--amber); font-size: 16px; margin-left: 6px;
}
.foot-logo p {
  margin-top: 14px; font-size: 14px; color: var(--sand);
  max-width: 32ch; line-height: 1.6;
}
.foot-bar {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid rgba(228,201,168,0.25);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--footer);
  flex-wrap: wrap; gap: 10px;
}
