/* =========================================================
   Wisfield Survey Engineering - main stylesheet
   Institutional, annual-report layout: fixed sheet, serif type,
   hairline and double rules, flat ink colours.
   ========================================================= */

:root {
  --desk: #e7e1d3;
  --paper: #f8f5ee;
  --paper-tint: #f1ece0;
  --card: #fffdf8;
  --ink: #1a1e24;
  --ink-2: #3b4049;
  --muted: #706c62;
  --navy: #13233a;
  --navy-2: #1d3352;
  --navy-deep: #0d1828;
  --oxblood: #6e1f27;
  --brass: #94763a;
  --brass-light: #cdb684;
  --rule: #d9d0bd;
  --rule-dark: #b7aa8f;
  --display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 400 17px/1.7 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy); text-decoration-color: var(--brass-light); text-underline-offset: 3px; }
a:hover { color: var(--oxblood); text-decoration-color: var(--oxblood); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--navy); margin: 0; }
p { margin: 0 0 1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  padding: 8px 14px; background: var(--navy); color: var(--paper);
  font: 600 13px var(--ui);
}
.skip-link:focus { top: 12px; }

.label {
  margin: 0;
  font: 600 11.5px/1.3 var(--ui);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--oxblood);
}
.label-light { color: var(--brass-light); }

/* ---------- Sheet ---------- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid var(--rule-dark);
  border-right: 1px solid var(--rule-dark);
  box-shadow: 0 0 0 6px rgba(248,245,238,.5), 0 0 40px rgba(60,50,30,.08);
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 48px; }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: -39px; z-index: 10; background: var(--paper); }
.topline { border-bottom: 1px solid var(--rule); }
.topline-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  height: 38px;
  font: 400 12.5px/1.4 var(--ui); color: var(--muted);
}
.topline p { margin: 0; font-style: normal; letter-spacing: .02em; }
.topline ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.topline a { color: var(--ink-2); text-decoration: none; letter-spacing: .04em; }
.topline a:hover { color: var(--oxblood); }

.masthead-main {
  position: relative;
  background: var(--paper);
  border-bottom: 3px double var(--rule-dark);
}
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 18px; padding-bottom: 18px; }

.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--navy); }
.seal { width: 60px; height: 60px; flex: none; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; align-items: center; }
/* negative right margin = letter-spacing, cancels the trailing space so both lines centre truly */
.brand-name {
  font: 400 27px/1 var(--display);
  letter-spacing: .2em; margin-right: -.2em; text-transform: uppercase; color: var(--navy);
}
.brand-sub {
  margin-top: 8px; margin-right: -.38em;
  font: 600 10.5px/1 var(--ui);
  letter-spacing: .38em; text-transform: uppercase; color: var(--brass);
}

.primary-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
  display: block; padding: 6px 0;
  font: 600 12px/1 var(--ui); letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover { color: var(--navy); border-bottom-color: var(--rule-dark); }
.primary-nav a.is-current { color: var(--navy); border-bottom-color: var(--brass); }
.primary-nav a.nav-cta {
  padding: 10px 16px; color: var(--paper); background: var(--navy); border: 0;
}
.primary-nav a.nav-cta:hover, .primary-nav a.nav-cta.is-current { background: var(--oxblood); color: var(--paper); }
.nav-toggle { display: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  padding: 16px 28px;
  font: 600 12.5px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase;
  color: var(--paper); background: var(--navy);
  border: 1px solid var(--navy); border-radius: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--paper); }

.link-more {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 0;
  font: 600 12.5px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--brass);
}
.link-more::after {
  content: ""; width: 7px; height: 7px;
  border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg);
  transition: transform .2s ease;
}
.link-more:hover::after { transform: translateX(3px) rotate(45deg); }

.link-reset {
  padding: 4px 0;
  font: 600 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); background: none; border: 0; border-bottom: 1px solid var(--rule-dark);
  cursor: pointer;
}
.link-reset:hover { color: var(--oxblood); border-color: var(--oxblood); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.hero-copy .label { margin-bottom: 26px; }
.hero h1 {
  font-size: 56px; line-height: 1.1; letter-spacing: -.012em;
  margin-bottom: 30px;
}
.hero h1 em { display: block; font-style: italic; color: var(--oxblood); }
.lede { font-size: 19.5px; line-height: 1.65; color: var(--ink-2); max-width: 34em; margin-bottom: 38px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin: 0; }

.advisory {
  margin-top: 6px;
  padding: 40px 36px 34px;
  background: var(--navy);
  color: #d8dde5;
  outline: 1px solid rgba(205,182,132,.45);
  outline-offset: -11px;
  font-size: 15.5px; line-height: 1.65;
}
.advisory h2 { margin: 10px 0 18px; font-size: 25px; color: var(--paper); }
.advisory ul { margin: 0 0 20px; padding: 18px 0 0; list-style: none; border-top: 1px solid rgba(205,182,132,.3); }
.advisory li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font: italic 17.5px/1.45 var(--display); color: var(--paper);
}
.advisory li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 1px; background: var(--brass-light); }
.advisory-sign { margin: 0; padding-top: 16px; border-top: 1px solid rgba(205,182,132,.3); font-size: 14px; color: #a9b3c2; }

.tenets {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 80px 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--rule-dark);
}
.tenets li {
  display: flex; gap: 14px;
  padding: 24px 28px 28px 0;
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
}
.tenets li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.tenet-num { font: italic 18px/1.3 var(--display); color: var(--brass); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--rule-dark); scroll-margin-top: 90px; }
.section-tinted { background: var(--paper-tint); }
.section-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; }
.section-index { display: flex; flex-direction: column; gap: 12px; align-self: start; position: sticky; top: 128px; }
.numeral {
  font: 400 46px/1 var(--display); color: var(--brass);
  padding-bottom: 14px; border-bottom: 1px solid var(--rule-dark); width: 64px;
}
.section-body { max-width: 760px; }
.section-body > h2 { font-size: 38px; line-height: 1.18; letter-spacing: -.008em; margin-bottom: 24px; }
.intro { font-size: 20px; line-height: 1.6; color: var(--ink-2); }

/* Table */
.table-wrap { margin: 44px 0 40px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.data-table caption {
  caption-side: top; text-align: left; padding-bottom: 14px;
  font: 600 11.5px var(--ui); letter-spacing: .17em; text-transform: uppercase; color: var(--muted);
}
.data-table thead th {
  padding: 12px 18px 12px 0; text-align: left;
  font: 600 11px var(--ui); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2);
  border-top: 2px solid var(--navy); border-bottom: 1px solid var(--navy);
}
.data-table tbody th, .data-table td {
  padding: 16px 18px 16px 0; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.data-table tbody tr:last-child > * { border-bottom: 1px solid var(--navy); }
.data-table tbody th { font: 400 17px/1.4 var(--display); color: var(--navy); width: 30%; }
.data-table td:last-child { font-style: italic; color: var(--oxblood); white-space: nowrap; padding-right: 0; }

.closing {
  margin: 0; padding-left: 24px; border-left: 2px solid var(--brass);
  font: italic 22px/1.5 var(--display); color: var(--navy);
}

/* Tabs */
.tabs { margin-top: 44px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 0 34px; border-bottom: 1px solid var(--rule-dark); }
.tab-list [role="tab"] {
  position: relative; padding: 14px 0 15px; margin-bottom: -1px;
  font: 600 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tab-list [role="tab"]:hover { color: var(--navy); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--navy); border-bottom-color: var(--brass); }
.tab-panel { padding-top: 34px; }
.tab-panel:focus-visible { outline-offset: 8px; }
.tab-panel h3 { font-size: 27px; margin-bottom: 14px; }
.tab-panel > p { color: var(--ink-2); max-width: 40em; }
.panel-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 30px; }
.panel-cols .label { margin-bottom: 12px; color: var(--muted); }

.rule-list { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--rule-dark); }
.rule-list li { padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; line-height: 1.5; }

.platforms {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
  margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--rule-dark);
  font-size: 15px; color: var(--ink-2);
}
.platforms .label { color: var(--muted); }

/* Statement */
.statement { padding: 88px 0; background: var(--paper); border-top: 1px solid var(--rule-dark); }
.statement blockquote {
  max-width: 860px; margin: 0 auto; padding: 46px 0 40px; text-align: center;
  border-top: 3px double var(--brass-light); border-bottom: 3px double var(--brass-light);
}
.statement p { margin: 0 0 22px; font: italic 36px/1.3 var(--display); color: var(--navy); }
.statement footer { color: var(--brass); }

/* Commitments */
.commitments {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px;
  margin: 44px 0; padding: 0; list-style: none; counter-reset: commit;
}
.commitments li {
  counter-increment: commit;
  position: relative;
  padding: 24px 0 24px 52px;
  border-top: 1px solid var(--rule-dark);
}
.commitments li::before {
  content: counter(commit, upper-roman) ".";
  position: absolute; left: 0; top: 25px;
  font: italic 19px/1.3 var(--display); color: var(--brass);
}
.commitments h3 { font-size: 20px; line-height: 1.35; margin-bottom: 6px; }
.commitments p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

.asides { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.aside-note { padding: 26px 28px; background: var(--card); border: 1px solid var(--rule); border-top: 2px solid var(--oxblood); }
.aside-note .label { margin-bottom: 12px; }
.aside-note p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* Process */
.process { margin: 44px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule-dark); }
.process li {
  display: grid; grid-template-columns: 88px minmax(0, 1fr);
  padding: 28px 0; border-top: 1px solid var(--rule-dark);
}
.process-num { font: 400 34px/1 var(--display); color: var(--brass); font-variant-numeric: oldstyle-nums; }
.process h3 { font-size: 22px; margin-bottom: 8px; }
.process p { color: var(--ink-2); font-size: 16px; }
.deliverable { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0; font-size: 15px; color: var(--ink); }
.deliverable .label { color: var(--muted); font-size: 10.5px; }

/* Pre-field checklist (printable sheet) */
.sheet {
  position: relative;
  margin-top: 40px;
  padding: 44px 48px 34px;
  background: var(--card);
  border: 1px solid var(--rule-dark);
  box-shadow: 0 1px 0 var(--rule), 0 22px 40px -28px rgba(40,32,15,.35);
}
.sheet::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); pointer-events: none; }
.sheet-head { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 3px double var(--rule-dark); }
.sheet-seal { width: 54px; height: 54px; }
.sheet-head h2 { margin-top: 6px; font-size: 28px; line-height: 1.15; }
.sheet-ref { margin: 0 0 0 auto; align-self: flex-start; font: 600 11px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sheet-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin: 26px 0 10px; }
.sheet-fields label { display: block; font: 600 10.5px/1.3 var(--ui); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.sheet-fields input {
  width: 100%; padding: 6px 0 5px;
  font: 16px/1.4 var(--text); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-dark); border-radius: 0;
}
.sheet-fields input:focus { outline: none; border-bottom-color: var(--navy); box-shadow: 0 1px 0 var(--navy); }
.sheet-list { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: pf; }
.sheet-list li { counter-increment: pf; border-bottom: 1px solid var(--rule); }
.sheet-list li:last-child { border-bottom: 0; }
.sheet-list label { display: grid; grid-template-columns: 34px 18px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; cursor: pointer; }
.sheet-list label::before { content: counter(pf, decimal-leading-zero); font: italic 16px/1.55 var(--display); color: var(--brass); }
.sheet-item strong { display: block; font-weight: 400; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.sheet-item em { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sheet-list label:hover strong, .sheet-list input:checked + .sheet-item strong { color: var(--navy); }
.sheet-foot {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 32px;
  margin-top: 4px; padding-top: 18px; border-top: 3px double var(--rule-dark);
}
.sheet-foot p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 31em; }
.sheet-foot .sheet-count { font: italic 18px/1.4 var(--display); color: var(--navy); }
.sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 30px; }
input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  flex: none; width: 18px; height: 18px; margin: 3px 0 0;
  border: 1px solid var(--navy); background: var(--card);
  cursor: pointer;
}
input[type="checkbox"]:checked {
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23f8f5ee' stroke-width='1.6'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Engage ---------- */
.engage {
  padding: 104px 0;
  background: var(--navy);
  color: #c9d0db;
  scroll-margin-top: 90px;
}
.engage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: start; }
.section-index-light { position: static; margin-bottom: 30px; }
.section-index-light .numeral { color: var(--brass-light); border-color: rgba(205,182,132,.4); }
.section-index-light .label { color: var(--brass-light); }
.engage-copy h1 { font-size: 42px; line-height: 1.18; color: var(--paper); margin-bottom: 24px; }
.engage .intro { color: #e3e7ed; }
.terms { margin: 40px 0 0; border-top: 1px solid rgba(205,182,132,.35); }
.terms div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.terms dt { color: var(--brass-light); padding-top: 5px; }
.terms dd { margin: 0; font-size: 15.5px; line-height: 1.55; }
.sample-link { margin: 32px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(205,182,132,.35); }
.sample-link a { display: inline-block; font: 600 12.5px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-light); text-decoration: none; border-bottom: 1px solid rgba(205,182,132,.6); padding-bottom: 3px; }
.sample-link a:hover { color: #fff; border-color: #fff; }
.sample-link span { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: #b9c2cf; }

.form-card {
  padding: 44px 42px 40px;
  background: var(--paper);
  color: var(--ink);
  outline: 1px solid rgba(205,182,132,.6);
  outline-offset: 8px;
}
.form-card > .label { margin-bottom: 10px; }
.form-card .form-title { font-size: 26px; line-height: 1.25; margin-bottom: 10px; }
.form-note { font-size: 14.5px; color: var(--muted); margin-bottom: 28px; }
.req { color: var(--oxblood); }

#scoping-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-wide, .form-actions { grid-column: 1 / -1; }
.field > label {
  margin-bottom: 7px;
  font: 600 11px/1.2 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.field input[type="text"], .field input[type="email"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 46px;
  padding: 11px 13px;
  font: 16px/1.4 var(--text); color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-dark); border-radius: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2313233a' stroke-width='1.2'/%3E%3C/svg%3E") right 13px center / 11px no-repeat;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(148,118,58,.22);
}
.field.has-error input, .field.has-error select { border-color: #9b1c27; }
.field-error { margin-top: 6px; font: 600 12.5px/1.4 var(--ui); color: #9b1c27; }
.field.field-check > label {
  display: flex; gap: 12px; align-items: flex-start; margin: 0;
  font: 400 15px/1.5 var(--text); letter-spacing: 0; text-transform: none; color: var(--ink);
  cursor: pointer;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 8px; }

.error-summary { margin: 0 0 24px; padding: 18px 20px; border: 1px solid #9b1c27; border-left-width: 3px; background: #fbf1ef; }
.error-summary h3 { font: 600 12px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: #9b1c27; margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-left: 18px; font-size: 15px; }
.error-summary a { color: #9b1c27; }

.confirmation { padding: 26px 0 0; border-top: 1px solid var(--rule-dark); }
.confirmation h3 { font-size: 24px; margin-bottom: 12px; }
.confirmation .small { font-size: 13.5px; color: var(--muted); }

/* ---------- Practice notes ---------- */
details { border-top: 1px solid var(--rule-dark); }
details:last-of-type { border-bottom: 1px solid var(--rule-dark); }
summary {
  position: relative; padding: 22px 48px 22px 0;
  font: 400 21px/1.35 var(--display); color: var(--navy);
  list-style: none; cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary::before, summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 1px; background: var(--brass);
  transition: transform .2s ease;
}
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0); }
summary:hover { color: var(--oxblood); }
details p { padding: 0 0 26px; margin: 0; color: var(--ink-2); max-width: 40em; }

/* ---------- Inner pages ---------- */
.page-intro { border-top: 0; padding-top: 72px; }
.breadcrumb {
  margin: 0 0 22px;
  font: 400 13px/1.4 var(--ui); letter-spacing: .04em; color: var(--muted);
}
.breadcrumb a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule-dark); }
.breadcrumb a:hover { color: var(--oxblood); border-color: var(--oxblood); }
.breadcrumb span { margin: 0 8px; color: var(--rule-dark); }
.section-body > h1 { font-size: 46px; line-height: 1.14; letter-spacing: -.01em; margin-bottom: 26px; }
.page-next {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  margin: 56px 0 0; padding-top: 22px; border-top: 1px solid var(--rule-dark);
}
.page-next .label { color: var(--muted); }

/* Home: section label without numeral */
.section-index-plain { padding-top: 14px; border-top: 1px solid var(--rule-dark); width: 140px; }

/* Home: index of the practice */
.practice-index {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px;
  margin: 40px 0 0; padding: 0; list-style: none;
}
.practice-index li { padding: 28px 0 30px; border-top: 1px solid var(--rule-dark); }
.practice-index .pi-num { display: block; margin-bottom: 10px; font: italic 18px/1 var(--display); color: var(--brass); }
.practice-index h3 { font-size: 23px; margin-bottom: 10px; }
.practice-index h3 a { color: var(--navy); text-decoration: none; }
.practice-index h3 a:hover { color: var(--oxblood); }
.practice-index p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 18px; }

/* Closing call to action band */
.cta-band { padding: 64px 0; background: var(--navy); color: #c9d0db; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px 56px; }
.cta-band h2 { font-size: 30px; line-height: 1.25; color: var(--paper); margin: 10px 0 8px; }
.cta-band p { margin: 0; font-size: 16px; }
.cta-band .btn { flex: none; background: var(--paper); color: var(--navy); border-color: var(--paper); }
.cta-band .btn:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--navy-deep); }

.engage .breadcrumb { color: #8f9bb0; }
.engage .breadcrumb a { color: #d4dae3; border-color: rgba(205,182,132,.4); }
.engage .breadcrumb span { color: rgba(205,182,132,.5); }

/* Standard: defect guarantee */
.guarantee {
  margin: 0 0 44px; padding: 34px 38px 26px;
  background: var(--card);
  border: 1px solid var(--rule-dark); border-top: 2px solid var(--navy);
}
.guarantee h3 { margin: 12px 0 14px; font-size: 23px; line-height: 1.35; max-width: 30em; }
.guarantee > p:not(.label) { font-size: 15.5px; color: var(--ink-2); margin-bottom: 18px; }
.guarantee-steps { margin: 0; padding: 0; list-style: none; counter-reset: gs; border-top: 1px solid var(--rule-dark); }
.guarantee-steps li {
  counter-increment: gs;
  display: grid; grid-template-columns: 36px minmax(0, 1fr);
  padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-size: 15.5px; line-height: 1.55; color: var(--ink-2);
}
.guarantee-steps li:last-child { border-bottom: 0; }
.guarantee-steps li::before { content: counter(gs) "."; font: italic 16px/1.55 var(--display); color: var(--brass); }
.guarantee-steps strong { font-weight: 600; color: var(--navy); }

/* About: principal portrait and facts */
.principal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; margin: 44px 0 0; align-items: start; }
.portrait { margin: 0; }
.portrait-frame {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 4 / 5;
  background: var(--paper-tint);
  border: 1px solid var(--rule-dark);
  outline: 1px solid var(--rule); outline-offset: -9px;
  font: 600 10.5px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.portrait-frame .seal { width: 64px; height: 64px; color: var(--rule-dark); }
.portrait figcaption { margin-top: 12px; font: italic 15px/1.4 var(--display); color: var(--ink-2); }
.facts { margin: 0; border-top: 1px solid var(--rule-dark); }
.facts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { padding-top: 4px; color: var(--muted); }
.facts dd { margin: 0; font-size: 16px; line-height: 1.5; }

/* Who we serve: comparison table */
.subhead { margin: 72px 0 18px; font-size: 30px; line-height: 1.2; }
.compare-table tbody th { width: 24%; }
.compare-table td { width: 38%; }
.compare-table td:last-child { font-style: normal; color: var(--navy); white-space: normal; }
.compare-table thead th:last-child { color: var(--oxblood); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9ea9b9; font: 400 14px/1.6 var(--ui); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 0.8fr; gap: 40px; padding-bottom: 56px; }
.footer-brand p { max-width: 22em; margin-top: 20px; }
.seal-footer { width: 72px; height: 72px; color: var(--brass-light); }
.site-footer h2.label { color: var(--brass-light); margin-bottom: 16px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d4dae3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brass-light); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  padding-top: 22px; padding-bottom: 26px;
  border-top: 1px solid rgba(205,182,132,.22);
  font-size: 12.5px; letter-spacing: .03em;
}
.footer-base p { margin: 0; }
.footer-base ul { display: flex; gap: 22px; }
.footer-base li { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero h1 { font-size: 48px; }
  .hero-grid { gap: 48px; }
  .section-grid { grid-template-columns: 150px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 920px) {
  .wrap { padding: 0 32px; }
  .hero-grid, .engage-grid { grid-template-columns: 1fr; }
  .advisory { max-width: 560px; }
  .section-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-index { position: static; flex-direction: row; align-items: center; gap: 18px; }
  .numeral { width: auto; padding: 0 18px 0 0; border-bottom: 0; border-right: 1px solid var(--rule-dark); font-size: 36px; }
  .section-index-light .numeral { border-color: rgba(205,182,132,.4); }
  .section-index-plain { width: auto; }
  .section-body { max-width: none; }
  .tenets { grid-template-columns: 1fr; margin-top: 56px; }
  .tenets li, .tenets li + li { padding: 18px 0; border-left: 0; }
  .tenets li + li { border-top: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  /* collapse nav */
  .masthead-inner { flex-wrap: wrap; gap: 0; }
  .nav-toggle {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0;
    font: 600 12px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase;
    color: var(--navy); background: none; border: 0; cursor: pointer;
  }
  .nav-toggle-bars { position: relative; width: 18px; height: 1px; background: currentColor; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .primary-nav { margin-left: auto; }
  .primary-nav ul {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 48px 20px;
    background: var(--paper);
    border-bottom: 3px double var(--rule-dark);
    box-shadow: 0 12px 24px rgba(20,30,40,.08);
  }
  .primary-nav ul.is-open { display: flex; }
  .primary-nav li { border-bottom: 1px solid var(--rule); }
  .primary-nav li:last-child { border-bottom: 0; padding-top: 14px; }
  .primary-nav a { padding: 15px 0; font-size: 12.5px; border-bottom: 0; }
  .primary-nav a.is-current { color: var(--oxblood); }
  .primary-nav a.nav-cta { text-align: center; padding: 15px; }
}

@media (max-width: 920px) {
  .primary-nav ul { padding: 8px 32px 20px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .page { border: 0; box-shadow: none; }
  .wrap { padding: 0 20px; }
  .primary-nav ul { padding: 4px 20px 18px; }

  .topline p { display: none; }
  .topline ul { margin-left: auto; gap: 18px; }

  .masthead-inner { padding-top: 14px; padding-bottom: 14px; }
  .seal { width: 46px; height: 46px; }
  .brand { gap: 12px; }
  .brand-name { font-size: 20px; letter-spacing: .16em; margin-right: -.16em; }
  .brand-sub { font-size: 9px; letter-spacing: .3em; margin-top: 6px; margin-right: -.3em; }

  .hero { padding-top: 52px; }
  .hero-copy .label { margin-bottom: 18px; line-height: 1.7; }
  .hero h1 { font-size: 36px; margin-bottom: 22px; }
  .lede { font-size: 18px; margin-bottom: 30px; }
  .actions .btn { width: 100%; text-align: center; }
  .advisory { padding: 32px 26px 28px; }

  .section { padding: 64px 0; }
  .section-body > h2, .engage h2 { font-size: 29px; }
  .section-body > h1, .engage-copy h1 { font-size: 33px; }
  .page-intro { padding-top: 44px; }
  .practice-index { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 0; }
  .cta-inner { flex-direction: column; align-items: stretch; }
  .cta-band h2 { font-size: 25px; }
  .cta-band .btn { text-align: center; }
  .intro { font-size: 18.5px; }
  .numeral { font-size: 30px; }

  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tbody tr { padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .data-table tbody tr:first-child { border-top: 2px solid var(--navy); }
  .data-table tbody tr:last-child { border-bottom: 1px solid var(--navy); }
  .data-table tbody th, .data-table td,
  .data-table tbody tr:last-child > * { padding: 0; border: 0; white-space: normal; }
  .data-table caption { display: block; }
  .data-table tbody th { width: 100%; margin-bottom: 6px; font-size: 18px; }
  .data-table td:last-child { margin-top: 6px; font-size: 14.5px; }
  .data-table td:last-child::before { content: "Discovered: "; font-style: normal; color: var(--muted); }
  .compare-table tbody th, .compare-table td { width: 100%; }
  .compare-table td { margin-top: 10px; font-size: 15px; }
  .compare-table td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font: 600 10.5px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  }
  .compare-table td:last-child::before { color: var(--oxblood); }
  .subhead { margin-top: 52px; font-size: 25px; }
  .closing { font-size: 19px; }

  .tab-list { flex-direction: column; gap: 0; border-bottom: 0; border-top: 1px solid var(--rule-dark); }
  .tab-list [role="tab"] { text-align: left; padding: 15px 0 15px 16px; margin: 0; border-bottom: 1px solid var(--rule); border-left: 2px solid transparent; }
  .tab-list [role="tab"][aria-selected="true"] { border-bottom-color: var(--rule); border-left-color: var(--brass); }

  .panel-cols, .commitments, .asides, .sheet-fields, #scoping-form { grid-template-columns: 1fr; }
  .asides { gap: 20px; }
  .commitments { gap: 0; }
  .statement { padding: 56px 0; }
  .statement p { font-size: 25px; }
  .process li { grid-template-columns: 52px minmax(0, 1fr); }
  .process-num { font-size: 26px; }
  .guarantee { padding: 26px 22px 18px; }
  .guarantee h3 { font-size: 20px; }
  .principal { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 200px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .sheet { padding: 28px 22px 24px; }
  .sheet-head { flex-wrap: wrap; gap: 14px; }
  .sheet-ref { order: -1; width: 100%; margin: 0; }
  .sheet-seal { width: 44px; height: 44px; }
  .sheet-head h2 { font-size: 24px; }
  .sheet-fields { gap: 16px; }
  .sheet-list label { grid-template-columns: 26px 18px minmax(0, 1fr); gap: 10px; }
  .sheet-actions .btn { width: 100%; }

  .engage { padding: 64px 0; }
  .terms div { grid-template-columns: 1fr; gap: 4px; }
  .form-card { padding: 30px 22px; outline-offset: 5px; }
  .form-actions .btn { width: 100%; }

  .site-footer { padding-top: 48px; }
  .footer-grid { gap: 32px 24px; padding-bottom: 40px; }
  .footer-base ul { flex-wrap: wrap; gap: 8px 18px; padding: 0; }
}

@media print {
  .topline, .primary-nav, .form-card, .actions, .site-footer ul { display: none; }
  body, .page { background: #fff; box-shadow: none; border: 0; }
  .engage { background: #fff; color: var(--ink); }
  .engage h2, .engage .intro { color: var(--navy); }
  .masthead { position: static; }

  /* Checklist page prints as the sheet alone */
  @page { margin: 14mm; }
  body:has(.sheet) .masthead, body:has(.sheet) .site-footer, body:has(.sheet) .section-index,
  body:has(.sheet) .section-body > :not(#checklist-form), .sheet-actions { display: none; }
  body:has(.sheet) .section, body:has(.sheet) .wrap { padding: 0; border: 0; }
  body:has(.sheet) .section-grid { display: block; }
  .sheet { margin: 0; box-shadow: none; padding: 28px 32px 24px; }
  .sheet-list label { padding: 11px 0; }
  .sheet-list li, .sheet-foot { break-inside: avoid; }
  input[type="checkbox"], .seal { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
