@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --surface: #F3F5F7;
  --ink: #0B1B2B;
  --mute: #4A5868;
  --line: #D5DCE3;
  --navy: #0F3557;
  --brass: #8A6526;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --sec: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1826;
    --surface: #10233A;
    --ink: #E8EEF4;
    --mute: #A3B1C0;
    --line: #24384F;
    --navy: #8FB8E0;
    --brass: #D2A955;
  }
}

@media (min-width: 768px) { :root { --gutter: 24px; --sec: 96px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}

h1, h2, .big, .brand-name, dt {
  font-family: var(--serif);
  font-weight: 600;
}

h1, h2, p, dl, dd { margin: 0; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness .15s;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--bg);
  padding: 10px 14px;
  z-index: 2;
}
.skip:focus { top: 8px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.mark {
  width: 26px;
  height: 26px;
  flex: none;
  fill: none;
  stroke: var(--brass);
  stroke-width: 2.25;
  stroke-linecap: square;
}
.brand-name { font-size: 1.375rem; letter-spacing: .01em; }

.nav {
  display: flex;
  gap: 4px 20px;
  list-style: none;
  margin: 0 -10px;
  padding: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: .9375rem;
}
.nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }

/* Hero */
.hero { padding: 56px 0 var(--sec); border-bottom: 1px solid var(--line); }
.eyebrow {
  color: var(--mute);
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--brass);
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  max-width: 16ch;
  text-wrap: balance;
}
.lede {
  margin-top: 28px;
  max-width: 40rem;
  font-size: 1.1875rem;
  color: var(--mute);
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 32px;
}
.hero-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* Ledger rows */
.row { padding: var(--sec) 0; border-bottom: 1px solid var(--line); }
.row-in { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .row-in { grid-template-columns: 14rem 1fr; gap: 40px; }
}
.label { display: flex; align-items: baseline; gap: 14px; }
@media (min-width: 768px) { .label { flex-direction: column; gap: 6px; } }
.num {
  color: var(--brass);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
h2 { font-size: 1.5rem; line-height: 1.2; }

.body { max-width: 66ch; }
.big { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.3; margin-bottom: 20px; }
.arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.ledger > div, .contact > div {
  display: grid;
  gap: 4px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.ledger > div:first-child, .contact > div:first-child { border-top: 0; padding-top: 0; }
dt { font-size: 1.1875rem; line-height: 1.3; }
dd { color: var(--mute); }

.row-contact { background: var(--surface); }
.contact dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mute);
}
.contact dd { color: var(--ink); font-size: 1.125rem; }
.contact address { font-style: normal; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 768px) {
  .contact > div { grid-template-columns: 6rem 1fr; align-items: baseline; }
}

/* Footer */
.foot { padding: 28px 0 40px; color: var(--mute); font-size: .875rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }

/* 404 */
.nf { padding: var(--sec) 0; }
.nf p { margin-top: 20px; color: var(--mute); }
.nf .hero-links { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.ar { margin-left: .4em; }

/* Services detail */
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; margin: 0; }
.ledger dd p { color: var(--mute); }
.ticks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; color: var(--ink); font-size: 1rem; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--brass); }

/* Approach */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; color: var(--brass); font-weight: 600; font-size: .875rem; letter-spacing: .08em; padding-top: .3em; }
.steps p { color: var(--mute); margin-top: 4px; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .steps li:nth-child(2) { border-top: 0; padding-top: 0; }
}

/* Form */
.note { color: var(--mute); margin-bottom: 28px; }
.form { display: grid; gap: 20px; }
@media (min-width: 768px) { .form { grid-template-columns: 1fr 1fr; column-gap: 24px; } .f-wide { grid-column: 1 / -1; } }
.f { display: grid; gap: 6px; }
.f label { font-weight: 600; font-size: .9375rem; }
.opt { font-weight: 400; color: var(--mute); }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--mute);
  border-radius: 0;
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
}
textarea { resize: vertical; min-height: 140px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
button {
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: var(--navy);
  color: var(--bg);
  cursor: pointer;
}
button:hover { background: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Service roll-ups (native details/summary, no JS) */
.rollups { border-top: 1px solid var(--line); }
.roll { border-bottom: 1px solid var(--line); }
.roll summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 28px;
  column-gap: 16px;
  row-gap: 2px;
  align-items: center;
  min-height: 44px;
  padding: 18px 0;
}
.roll summary::-webkit-details-marker { display: none; }
.roll summary::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: center;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s;
}
.roll[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.roll summary:hover .roll-t { color: var(--navy); }
.roll summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.roll-t { font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
.roll-s { grid-column: 1; color: var(--mute); font-size: 1rem; }
.roll-b { padding: 0 44px 22px 0; }
.roll-b p { color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .roll summary::after { transition: none; } }
