:root {
  --spruce: #1F3247;
  --spruce-2: #2E4A66;
  --granite: #59636A;
  --ink: #1B2428;
  --mist: #E4E9EF;
  --paper: #FBFBF8;
  --line: #CDD6E0;
  --brass: #A9853A;
  --brass-dark: #8A6B2B;
  --soft: #CBD6E3;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--spruce-2); text-underline-offset: 3px; }
a:hover { color: var(--brass-dark); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--spruce); margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 500; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--granite); max-width: 58ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--spruce); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Client portal bar */
.client-bar { background: var(--spruce); color: var(--soft); font-size: .84rem; }
.client-bar .wrap { display: flex; justify-content: flex-end; padding-top: 7px; padding-bottom: 7px; }
.client-bar a { color: #fff; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--spruce); }
.brand img { width: 46px; height: 46px; flex: none; }
.brand span { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; font-family: var(--sans); font-size: .75rem; font-weight: 400; color: var(--granite); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .drop > button { font: 500 .97rem var(--sans); color: var(--ink); text-decoration: none; padding: 10px 12px; white-space: nowrap; border-radius: 6px; background: none; border: 0; cursor: pointer; }
.nav > a:hover, .nav .drop > button:hover, .nav a[aria-current="page"] { color: var(--spruce); background: var(--mist); }
.drop { position: relative; }
.drop > button::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.drop-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: 0 14px 30px -18px rgba(31,50,71,.45); }
.drop:hover .drop-menu, .drop:focus-within .drop-menu, .drop.open .drop-menu { display: block; }
.drop-menu a { display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.drop-menu a:hover { background: var(--mist); color: var(--spruce); }
.nav > a.btn { margin-left: 10px; color: #fff; background: var(--spruce); padding: 11px 18px; }
.nav > a.btn:hover { background: var(--spruce-2); color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: 500 .95rem var(--sans); color: var(--spruce); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; font: 600 .98rem var(--sans); text-decoration: none; padding: 13px 22px; border-radius: 8px; border: 1.5px solid var(--spruce); background: var(--spruce); color: #fff; transition: background .15s, color .15s; }
.btn:hover { background: var(--spruce-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--spruce); }
.btn.ghost:hover { background: var(--mist); color: var(--spruce); }
.btn.light { background: var(--paper); color: var(--spruce); border-color: var(--paper); }
.btn.light:hover { background: var(--mist); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.hero-art { position: relative; aspect-ratio: 10 / 7; margin: 0 -60px 0 -40px; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; }
.hero-meta { margin-top: 36px; font-size: .92rem; color: var(--granite); }

/* Page header */
.page-head { position: relative; background: var(--spruce); color: var(--mist); padding: 72px 0 64px; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -120px; top: -80px; width: 640px; height: 450px; background: url("/images/contours.svg") no-repeat center / contain; opacity: .35; pointer-events: none; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; max-width: 18ch; }
.page-head p { color: var(--soft); font-size: 1.15rem; max-width: 56ch; }
.crumbs { font-size: .88rem; margin-bottom: 18px; color: #A3B4C8; }
.crumbs a { color: var(--soft); }

/* Sections */
section.block { padding: 88px 0; }
section.tint { background: var(--mist); }
section.dark { background: var(--spruce); color: var(--mist); }
section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: var(--soft); }
.section-intro { max-width: 720px; margin-bottom: 48px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; display: flex; flex-direction: column; }
.panel .who { font-size: .92rem; color: var(--brass-dark); font-weight: 600; margin-bottom: 10px; }
.panel ul { padding-left: 1.1em; margin: 0 0 24px; }
.panel li { margin-bottom: 6px; }
.panel .btn { margin-top: auto; align-self: flex-start; }

.statement { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.35; color: var(--spruce); max-width: 30ch; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.commitments { list-style: none; padding: 0; margin: 0; }
.commitments li { padding: 22px 0; border-top: 1px solid var(--line); }
.commitments li:last-child { border-bottom: 1px solid var(--line); }
.commitments strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--spruce); margin-bottom: 4px; }
.commitments span { color: var(--granite); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .98rem; }
thead th { background: var(--spruce); color: #fff; font-weight: 600; }
tbody th { font-weight: 600; color: var(--spruce); width: 26%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.note { font-size: .88rem; color: var(--granite); margin-top: 14px; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: s; border-top: 2px solid var(--brass); padding-top: 18px; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 2rem; color: var(--brass); display: block; line-height: 1; margin-bottom: 12px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--granite); font-size: .98rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.service { padding: 28px 0; border-top: 1px solid var(--line); }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--granite); margin: 0; }
.aside-cta { background: var(--mist); border-radius: 14px; padding: 32px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--spruce-2); color: var(--ink); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--granite); font-size: .97rem; margin: 0; }

/* Calendar */
.calendar th { width: 22%; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--mist); margin-bottom: 18px; }
.member h3 { margin-bottom: 2px; font-size: 1.25rem; }
.member .creds { font-size: .9rem; color: var(--brass-dark); font-weight: 600; margin-bottom: 6px; }
.member .role { color: var(--granite); font-size: .97rem; margin-bottom: 12px; }
.member a.email { font-size: .95rem; font-weight: 500; overflow-wrap: anywhere; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { display: block; font-size: .85rem; color: var(--granite); }
.contact-list .v { font-size: 1.15rem; color: var(--spruce); font-weight: 500; }
.map { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 360px; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* Long-form text */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }

/* Proposal form */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.proposal-form fieldset { border: 0; padding: 0; margin: 0 0 36px; }
.proposal-form legend { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--spruce); padding: 0; margin-bottom: 16px; }
.proposal-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.proposal-form .row-3 { grid-template-columns: 2fr 1fr 1fr; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--granite); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--spruce-2); box-shadow: 0 0 0 3px rgba(46,74,102,.18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B3261E; }
.field.invalid .radios { outline: 1.5px solid #B3261E; outline-offset: 6px; border-radius: 4px; }
.radios { display: flex; gap: 28px; }
.radio, .check { display: flex; align-items: center; gap: 8px; font-size: 1rem; cursor: pointer; }
.radio input, .check input { width: 18px; height: 18px; accent-color: var(--spruce); margin: 0; flex: none; }
.check { align-items: flex-start; color: var(--granite); font-size: .95rem; }
.check input { margin-top: 3px; }
.conditional { background: var(--mist); border-radius: 10px; padding: 18px 18px 2px; margin-bottom: 18px; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form-actions .btn[disabled] { opacity: .65; cursor: wait; }
.form-status { margin: 0; font-size: .97rem; }
.form-status.success { color: #1E6B3A; font-weight: 500; }
.form-status.error { color: #B3261E; font-weight: 500; }
.contact-aside { background: var(--mist); border-radius: 14px; padding: 32px; position: sticky; top: 100px; }
.contact-aside h2 { font-size: 1.6rem; }
.contact-aside .map { min-height: 220px; margin: 8px 0 16px; }
.contact-aside .map iframe { min-height: 220px; }

/* CTA band */
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #B7C2C6; padding: 64px 0 40px; font-size: .92rem; }
.site-footer a { color: #DCE4EC; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { font: 600 .95rem var(--sans); color: #fff; margin: 0 0 12px; }
.site-footer h4.foot-brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 16px; }
.foot-brand img { width: 40px; height: 40px; flex: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.legal { border-top: 1px solid #33404A; padding-top: 24px; font-size: .84rem; line-height: 1.6; }
.legal p { max-width: none; }

/* Responsive */
@media (max-width: 1100px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; }
  .nav.open { display: flex; }
  .drop-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; background: transparent; }
  .drop > button { text-align: left; }
  .drop > button::after { display: none; }
  .nav > a.btn { margin: 10px 0 0; text-align: center; }
}
@media (max-width: 960px) {
  .hero-art { margin: 0; max-width: 520px; }
  .hero .wrap, .two-col, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .hero { padding: 56px 0 64px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards, .team { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section.block { padding: 64px 0; }
  .split, .services, .cards, .steps, .team, .proposal-form .row, .proposal-form .row-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .panel { padding: 28px; }
  .brand small { display: none; }
  .client-bar .wrap { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
