/* East Pillar — Land. Leverage. Legacy.
   Palette: ink navy (logo), field green (logo), paper, mist, slate. */
:root {
  --ink: #141c73;
  --ink-deep: #0d1452;
  --field: #0d6a2c;
  --field-deep: #0a5222;
  --paper: #f4f6f3;
  --white: #ffffff;
  --mist: #dde5ee;
  --slate: #1f2a44;
  --slate-soft: #5a6478;
  --rule: #c9d2dc;
  --measure: 70ch;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--slate);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--field); }
:focus-visible { outline: 3px solid var(--field); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; font-variation-settings: "opsz" 144; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; font-variation-settings: "opsz" 48; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand b { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: .01em; }
.brand small { display: block; font-size: .72rem; color: var(--field); letter-spacing: .12em; font-weight: 600; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; color: var(--slate); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); }
.nav a:hover { color: var(--ink); }
.nav .cta { background: var(--field); color: var(--white); padding: 10px 18px; border-radius: 4px; border: 0; }
.nav .cta:hover { background: var(--field-deep); color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 8px 10px; font: inherit; color: var(--ink); }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--white); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--field); }
  .nav .cta { margin-top: 12px; text-align: center; }
}

/* Hero: a surveyor's plat, drawn in ink on paper. */
.hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--rule); }
.hero .plat { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 110px); }
.hero h1 { max-width: 14ch; }
.hero p { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 52ch; color: var(--slate); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.scale { display: flex; align-items: center; gap: 10px; margin-top: 44px; color: var(--slate-soft); font-size: .85rem; }
.scale .bar { width: 160px; height: 8px; background: linear-gradient(90deg, var(--ink) 0 25%, var(--white) 25% 50%, var(--ink) 50% 75%, var(--white) 75%); border: 1px solid var(--ink); }
.plat path, .plat polyline, .plat line { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .34; }
.plat .contour { stroke: var(--field); stroke-dasharray: 4 6; opacity: .45; }
.plat .parcel { stroke-width: 1.4; opacity: .5; }
@media (max-width: 760px) {
  .hero .plat { left: 35%; width: 120%; opacity: .45; }
  .hero .wrap { padding-top: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .plat .draw { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.6s cubic-bezier(.3,.6,.3,1) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 4px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; font: inherit; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn.primary { background: var(--field); border-color: var(--field); color: var(--white); }
.btn.primary:hover { background: var(--field-deep); border-color: var(--field-deep); }

/* Sections */
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section.band { background: var(--white); border-block: 1px solid var(--rule); }
.section.mist { background: var(--mist); }
.lead { font-size: 1.2rem; max-width: 60ch; }
.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.intro img { border-radius: 6px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }

/* The ledger: pillars of the business, ruled like a register — not cards. */
.ledger { list-style: none; margin: 28px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 40px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.ledger h3 { margin: 0; }
.ledger p { margin: 0; max-width: 60ch; }
@media (max-width: 680px) { .ledger li { grid-template-columns: 1fr; gap: 8px; } }

/* Insights list */
.posts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.posts li { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; }
.posts time { color: var(--slate-soft); font-size: .92rem; padding-top: 4px; }
.posts h3 { margin: 0 0 6px; }
.posts p { margin: 0; }
@media (max-width: 560px) { .posts li { grid-template-columns: 1fr; gap: 4px; } }

/* Prose pages */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.page-title { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--rule); background: var(--white); }
.page-title h1 { max-width: 18ch; }
.page-title p { font-size: 1.15rem; max-width: 56ch; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.photo-pair img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; width: 100%; }
@media (max-width: 680px) { .photo-pair { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.contact dl { margin: 0; }
.contact dt { font-weight: 600; color: var(--ink); margin-top: 18px; }
.contact dd { margin: 4px 0 0; }
form .field { display: grid; gap: 6px; margin-bottom: 18px; }
form label { font-weight: 600; color: var(--ink); }
form input, form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--white); color: var(--slate); width: 100%; }
form textarea { min-height: 150px; resize: vertical; }
form .hint { color: var(--slate-soft); font-size: .9rem; }

/* Footer */
.site-footer { background: var(--ink-deep); color: #c9d0ea; padding: 48px 0 32px; margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer a { color: #e6e9f7; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .brand { color: var(--white); margin-bottom: 10px; }
.site-footer .brand small { color: #9ad0a6; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer p { color: #aab2d6; font-size: .92rem; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; font-size: .88rem; color: #aab2d6; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 680px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
/* The loop on the home page is a real sequence, so it is numbered in the heading text. */
.ledger.loop { counter-reset: none; }
.ledger.loop li h3 { max-width: 16ch; }
