/* Nathan McCullough, REALTOR® — advisory site
   Palette is switched with <html data-palette="editorial | corner-house"> (see site.config.json).
   Solid colors only: no gradients, shadows or transparency tricks. */

:root {
  --ivory: #F6F2EA;
  --paper: #FBF9F4;
  --ink: #26262A;
  --ink-soft: #55555B;
  --navy: #070A4C;
  --champagne: #C8B58F;
  --line: #DDD6C8;
  --white: #FFFFFF;

  --bg: var(--ivory);
  --bg-alt: var(--paper);
  --head: var(--navy);
  --body: var(--ink);
  --muted: var(--ink-soft);
  --accent: var(--champagne);
  --rule: var(--line);
  --field: var(--white);
  --on-navy: var(--white);
  --on-navy-muted: #D9D5CB;
  --on-navy-num: var(--champagne);
  --on-navy-rule: #2A2D6B;

  --serif: "EB Garamond", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", Lato, Arial, Helvetica, sans-serif;
  --caps: Raleway, Montserrat, "Open Sans", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .65, .2, 1);

  /* Corner House names, used by the home page */
  --teal: #708589;
  --cool: #E2E3E4;
  --dark: #6D6D6D;
}

/* Strict Corner House five-color palette */
:root[data-palette="corner-house"] {
  --bg: #FFFFFF;
  --bg-alt: #E2E3E4;
  --head: #070A4C;
  --body: #070A4C;
  --ink: #070A4C;
  --muted: #6D6D6D;
  --accent: #708589;
  --rule: #E2E3E4;
  --field: #FFFFFF;
  --on-navy-muted: #FFFFFF;
  --on-navy-num: #FFFFFF;
  --on-navy-rule: #708589;
}
:root[data-palette="corner-house"] .sec--alt { --body: #070A4C; --muted: #070A4C; --rule: #708589; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: calc(1.0625rem * var(--body-scale, 1));
  line-height: var(--body-lh, 1.7);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
[id] { scroll-margin-top: 104px; }

h1, h2, h3 { color: var(--head); text-wrap: balance; }
h1, h2 { font-family: var(--caps); font-weight: 900; letter-spacing: var(--head-track, -0.018em); }
h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.1vw, 3.4rem); line-height: 1.04; }
h2 { font-size: calc(clamp(1.75rem, 3.1vw, 2.6rem) * var(--h2-scale, 1)); line-height: 1.06; }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.2; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: clamp(72px, 10vw, 148px); }
.sec--tight { padding-block: clamp(56px, 7vw, 96px); }
.sec--alt { background: var(--bg-alt); }
.sec--navy {
  background: var(--navy);
  color: var(--on-navy-muted);
  --head: var(--on-navy);
  --body: var(--on-navy-muted);
  --muted: var(--on-navy-muted);
  --rule: var(--on-navy-rule);
}
.sec--rule { border-top: 1px solid var(--rule); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 12px 18px;
  font-family: var(--caps); font-size: .9rem; letter-spacing: .02em; text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--head); outline-offset: 3px; }
.sec--navy :focus-visible, .site-foot :focus-visible, .site-head :focus-visible, .hero :focus-visible, .towns :focus-visible { outline-color: var(--white); }

/* ---------- Small parts ---------- */
.label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--caps); font-weight: 400; font-size: .95rem; line-height: 1.4;
  letter-spacing: .02em; color: var(--muted);
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.label::before { content: ""; flex: none; width: 36px; height: 1px; background: var(--accent); }

.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.65; max-width: 38em; }
.measure { max-width: 36em; }
.stack > * + * { margin-top: 1.15em; }
.stack > .link { display: flex; width: fit-content; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: calc(54px * var(--btn-pad, 1)); padding: calc(15px * var(--btn-pad, 1)) calc(28px * var(--btn-pad, 1));
  border: 1px solid var(--navy); border-radius: var(--radius, 0); background: var(--navy); color: var(--white);
  font-family: var(--caps); font-weight: var(--btn-weight, 900); font-size: calc(.95rem * var(--btn-scale, 1)); line-height: 1.2;
  letter-spacing: .01em; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--bg); color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--navy); color: var(--white); }
.btn--ghost { background: transparent; border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Text link with a rule that grows on hover */
.link {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding-block: 8px;
  font-family: var(--caps); font-size: .9rem; letter-spacing: .02em;
  color: var(--head); text-decoration: none;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(.28); transform-origin: left;
  transition: transform .45s var(--ease);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }

.prose a, .inline-link {
  color: var(--head); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: text-decoration-thickness .2s;
}
.prose a:hover, .inline-link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  --head: var(--white); --muted: var(--white); --rule: var(--teal);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-head.is-scrolled { border-bottom-color: var(--teal); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: block; text-decoration: none; color: var(--head); line-height: 1.1; padding-block: 8px; }
.brand-name { display: block; font-family: var(--serif); font-size: calc(1.55rem * var(--brand-scale, 1)); letter-spacing: -0.005em; }
.brand-sub {
  display: block; margin-top: 5px;
  font-family: var(--caps); font-size: .9rem; letter-spacing: .02em; color: var(--muted);
  white-space: nowrap;
}
.site-nav ul { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 30px); }
.nav-link {
  position: relative; display: inline-block; padding-block: 10px;
  font-family: var(--caps); font-size: .9rem; letter-spacing: .02em;
  color: var(--head); text-decoration: none; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .btn { min-height: 46px; padding: 12px 20px; font-size: .9rem; white-space: nowrap; background: var(--white); border-color: var(--white); color: var(--navy); }
.site-nav .btn:hover { background: var(--navy); color: var(--white); }
.nav-toggle {
  display: none; align-items: center; gap: 12px;
  min-height: 46px; padding: 10px 0 10px 14px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--caps); font-size: .9rem; letter-spacing: .02em; color: var(--head);
}
.nav-toggle .bars { display: grid; gap: 6px; width: 26px; }
.nav-toggle .bars span { display: block; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] .bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1180px) {
  .head-row { flex-wrap: wrap; min-height: 72px; gap: 0 16px; }
  .brand-name { font-size: 1.35rem; }
  .brand { flex: 1 1 0; min-width: 0; }
  .js .nav-toggle { display: inline-flex; flex: 0 0 auto; }
  .site-nav { flex-basis: 100%; padding-bottom: 20px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--rule); }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 18px; }
  .nav-link { display: block; padding-block: 16px; font-size: .86rem; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .site-nav .btn { width: 100%; min-height: 52px; }
}
@media (max-width: 480px) {
  .brand-sub { font-size: .75rem; white-space: normal; }
  .nav-toggle { gap: 10px; padding-left: 8px; }
}

/* ---------- Intro statement ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.statement { font-family: var(--serif); color: var(--head); font-size: clamp(1.7rem, 3.3vw, 2.75rem); line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* ---------- Buy / sell paths ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; }
.path { padding-block: 8px; }
.path:first-child { padding-right: clamp(28px, 5vw, 80px); border-right: 1px solid var(--rule); }
.path:last-child { padding-left: clamp(28px, 5vw, 80px); }
.path > p { margin-top: 20px; max-width: 30em; }
.ticks { margin-top: 28px; border-top: 1px solid var(--rule); }
.ticks li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--rule); position: relative; font-size: 1rem; line-height: 1.6; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 29px; width: 18px; height: 1px; background: var(--head); }
.path .link { margin-top: 30px; }
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .path:first-child { padding-right: 0; border-right: 0; padding-bottom: 56px; border-bottom: 1px solid var(--rule); }
  .path:last-child { padding-left: 0; padding-top: 56px; }
}

/* ---------- Section heads ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head p { max-width: 32em; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Figures ---------- */
.frame { overflow: hidden; border-radius: var(--radius, 0); background: var(--bg-alt); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.cap { margin-top: 12px; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.cap a { color: inherit; text-underline-offset: 3px; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-5x4 { aspect-ratio: 5 / 4; }
.ratio-3x2 { aspect-ratio: 3 / 2; }

/* ---------- Expertise ---------- */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 10px clamp(20px, 4vw, 64px); padding-block: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--rule); align-items: baseline; }
.row p { max-width: 38em; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 112px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split .btn-row, .split .link { margin-top: 32px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

/* ---------- Resource groups ---------- */
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.group { padding: clamp(24px, 3vw, 40px) clamp(16px, 2.4vw, 32px) 8px 0; }
.group + .group { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--rule); }
.group h3 { margin-bottom: 18px; }
.group li + li { margin-top: 12px; }
.group a { color: var(--body); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; font-size: 1rem; line-height: 1.5; transition: text-decoration-color .25s, color .25s; }
.group a:hover { color: var(--head); text-decoration-color: var(--head); }
.ext { font-size: .85em; }
@media (max-width: 1000px) {
  .groups { grid-template-columns: 1fr 1fr; }
  .group:nth-child(3) { padding-left: 0; border-left: 0; }
  .group:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .groups { grid-template-columns: 1fr; }
  .group, .group + .group { padding-left: 0; padding-right: 0; border-left: 0; }
  .group + .group { border-top: 1px solid var(--rule); }
  .group { padding-bottom: 28px; }
}

/* ---------- Consultation ---------- */
.consult { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact-list { border-top: 1px solid var(--rule); }
.contact-list > div { padding-block: 18px; border-bottom: 1px solid var(--rule); }
.contact-list dt { font-family: var(--caps); font-size: .9rem; letter-spacing: .02em; color: var(--muted); margin-bottom: 4px; }
.contact-list dd { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; color: var(--head); }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact-list dd.small { font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--body); }
@media (max-width: 860px) { .consult { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-top: clamp(28px, 4vw, 44px); }
.field { display: block; min-width: 0; }
.field--full, .form > .form-note, .form > .consent, .form > .form-actions, .form > .form-status, .form > fieldset { grid-column: 1 / -1; }
.field label, .field .legend, fieldset legend {
  display: block; margin-bottom: 8px; padding: 0;
  font-family: var(--caps); font-size: .9rem; letter-spacing: .02em; color: var(--head);
}
.opt { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 52px; padding: 13px 14px;
  border: 1px solid var(--muted); border-radius: var(--radius, 0); background: var(--field); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.4;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s;
}
.field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23070A4C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--navy); border-left-width: 5px; }
.field-error { margin-top: 7px; font-size: .9rem; line-height: 1.45; font-weight: 600; color: var(--navy); }
.field-error::before { content: "Fix: "; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.5; cursor: pointer; }
.check input {
  flex: none; width: 22px; height: 22px; margin: 1px 0 0; padding: 0;
  -webkit-appearance: none; appearance: none;
  border: 1px solid var(--muted); border-radius: 0; background: var(--field); cursor: pointer;
  display: grid; place-content: center;
}
.check input::after { content: ""; width: 12px; height: 12px; background: var(--navy); transform: scale(0); transition: transform .15s var(--ease); }
.check input:checked::after { transform: scale(1); }
.check input:checked { border-color: var(--navy); }
.consent { font-size: .9rem; line-height: 1.55; color: var(--muted); }
.consent .check { font-size: .9rem; }
.form-note { padding: 16px 18px; border: 1px solid var(--muted); border-left: 5px solid var(--navy); background: var(--field); color: var(--ink); font-size: .95rem; line-height: 1.55; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-fine { font-size: .85rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status { padding: 18px 20px; border: 1px solid var(--navy); border-left-width: 5px; background: var(--field); color: var(--ink); font-size: 1rem; line-height: 1.55; }
.form-status strong { color: var(--navy); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

/* ---------- Inner page header ---------- */
.page-head { padding-top: clamp(40px, 6vw, 88px); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.page-head h1 { max-width: 14em; }
.page-head .lede { margin-top: 24px; }
.page-head .btn-row { margin-top: 34px; align-items: center; gap: 14px 28px; }
.page-head--plain { padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.page-head--plain .lede { max-width: 40em; }
@media (min-width: 861px) {
  .page-head-media { margin-right: calc(-1 * var(--gutter)); }
}
@media (max-width: 860px) { .page-head-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; border-top: 1px solid var(--rule); }
.step { counter-increment: step; display: grid; grid-template-columns: 96px minmax(0, 4fr) minmax(0, 7fr); gap: 12px clamp(20px, 4vw, 64px); padding-block: clamp(26px, 3.4vw, 44px); border-bottom: 1px solid var(--rule); align-items: baseline; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; color: var(--muted); }
.step p { max-width: 38em; }
@media (max-width: 860px) {
  .step { grid-template-columns: 56px 1fr; }
  .step p { grid-column: 2; }
}

/* ---------- Three notes ---------- */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.note { padding: clamp(24px, 3vw, 40px) clamp(18px, 2.6vw, 36px) 0 0; }
.note + .note { padding-left: clamp(18px, 2.6vw, 36px); border-left: 1px solid var(--rule); }
.note h3 { margin-bottom: 14px; }
.note .link { margin-top: 18px; }
@media (max-width: 860px) {
  .notes { grid-template-columns: 1fr; }
  .note, .note + .note { padding: 28px 0; border-left: 0; }
  .note + .note { border-top: 1px solid var(--rule); }
}

/* ---------- Communities page ---------- */
.counties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.county { padding: clamp(24px, 3vw, 40px) clamp(18px, 2.6vw, 36px) 0 0; }
.county + .county { padding-left: clamp(18px, 2.6vw, 36px); border-left: 1px solid var(--rule); }
.county h3 { margin-bottom: 12px; }
@media (max-width: 860px) {
  .counties { grid-template-columns: 1fr; }
  .county, .county + .county { padding: 26px 0; border-left: 0; }
  .county + .county { border-top: 1px solid var(--rule); }
}
.jump { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 30px; }
.place { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.place--flip > figure { order: 2; }
.place-kind { margin-top: 10px; font-family: var(--caps); font-size: .9rem; letter-spacing: .02em; color: var(--muted); }
.place .lede { margin-top: 22px; }
.facts { margin-top: 28px; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 132px 1fr; gap: 6px 20px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--caps); font-size: .9rem; letter-spacing: .02em; color: var(--head); padding-top: 5px; }
.facts dd { font-size: 1rem; line-height: 1.6; }
.aside { margin-top: 24px; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); font-size: .98rem; line-height: 1.6; }
.aside strong { color: var(--head); font-weight: 600; }
@media (max-width: 860px) {
  .place { grid-template-columns: 1fr; }
  .place--flip > figure { order: 0; }
  .facts > div { grid-template-columns: 1fr; }
}

/* ---------- Articles (resources) ---------- */
.topic { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); }
.topic-head { position: sticky; top: 116px; align-self: start; }
.entries { border-top: 1px solid var(--rule); }
.entry { padding-block: clamp(24px, 3vw, 38px); border-bottom: 1px solid var(--rule); }
.entry h3 { margin-bottom: 12px; }
.entry p { max-width: 40em; }
.entry .link { margin-top: 14px; }
@media (max-width: 860px) { .topic { grid-template-columns: 1fr; } .topic-head { position: static; } }

/* ---------- Area comparisons ---------- */
.cmp-h { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: clamp(40px, 5vw, 64px); }
.cmp { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 1rem; line-height: 1.6; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 18px 28px 18px 0; border-bottom: 1px solid var(--rule); }
.cmp thead th { font-family: var(--caps); font-weight: 900; font-size: 1.1rem; color: var(--head); border-bottom: 2px solid var(--head); padding-bottom: 12px; }
.cmp tbody th { width: 24%; font-family: var(--caps); font-weight: 400; font-size: .9rem; letter-spacing: .02em; color: var(--head); padding-top: 22px; }
.cmp td { width: 38%; }
.cmp .num { display: block; font-family: var(--caps); font-weight: 900; font-size: 1.25rem; color: var(--head); margin-bottom: 2px; }
.cmp--list { max-width: 46em; }
.cmp--list tbody th { width: 52%; }
.cmp--list td { width: 24%; }
.cmp-src { max-width: 62em; margin-top: 22px; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.label a { color: inherit; }
.entry h3 a { color: inherit; text-decoration: none; }
.entry h3 a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp, .cmp tbody, .cmp tr, .cmp tbody th, .cmp td { display: block; width: auto; }
  .cmp tr { padding-block: 18px; border-bottom: 1px solid var(--rule); }
  .cmp tbody th, .cmp td { border: 0; padding: 0; }
  .cmp td { margin-top: 12px; }
  .cmp td::before { content: attr(data-label); display: block; font-family: var(--caps); font-weight: 900; font-size: .85rem; color: var(--head); }
}

/* ---------- Plain documents (privacy, credits) ---------- */
.doc { max-width: 46em; }
.doc h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 2em; margin-bottom: .5em; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 1em; }
.doc ul { list-style: disc; padding-left: 1.3em; }
.doc li + li { margin-top: .4em; }
.credits { border-top: 1px solid var(--rule); margin-top: 32px; }
.credit { display: grid; grid-template-columns: 148px 1fr; gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--rule); align-items: start; }
.credit img { width: 148px; height: 104px; object-fit: cover; }
.credit h3 { font-size: 1.3rem; margin-bottom: 4px; }
.credit p { font-size: .95rem; line-height: 1.55; }
@media (max-width: 560px) { .credit { grid-template-columns: 92px 1fr; } .credit img { width: 92px; height: 72px; } }

/* ---------- Closing call ---------- */
.closing { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.closing .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .closing { grid-template-columns: 1fr; } .closing .btn-row { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--on-navy-rule); background: var(--navy); color: var(--on-navy-muted); padding-block: clamp(56px, 7vw, 96px) 36px; font-size: .95rem; line-height: 1.65; }
.site-foot a { color: var(--on-navy); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr); gap: 40px clamp(24px, 4vw, 64px); }
.foot-name { font-family: var(--serif); font-size: 1.9rem; line-height: 1.15; color: var(--on-navy); }
.foot-team { margin-top: 6px; }
.foot-h { font-family: var(--caps); font-weight: 400; font-size: .9rem; letter-spacing: .02em; color: var(--on-navy); margin-bottom: 14px; }
.foot-list li + li { margin-top: 7px; }
.logo-panel { display: inline-block; margin-top: 26px; padding: 10px; background: var(--white); }
.logo-panel img { width: 128px; height: 128px; }
.foot-legal { margin-top: clamp(40px, 6vw, 72px); padding-top: 26px; border-top: 1px solid var(--on-navy-rule); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px 48px; font-size: .86rem; line-height: 1.6; }
.foot-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; color: var(--on-navy); }
.foot-marks img { height: 44px; width: auto; }
.mark-slot { display: inline-block; padding: 10px 14px; border: 1px dashed var(--on-navy); font-family: var(--caps); font-size: .75rem; letter-spacing: .08em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; align-content: start; }
.foot-fine { grid-column: 1 / -1; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-legal { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}

/* ---------- Motion (only with JS and when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .frame img { transition: transform 1.2s var(--ease); }
  a:hover .frame img { transform: scale(1.03); }

  /* Page-header images unveil once on load. Nothing else animates in as the page scrolls. */
  .js .page-head .reveal-img { animation: unveil 1.1s var(--ease) both; }
  .js .page-head .reveal-img img { animation: hero-settle 1.8s var(--ease) both; }
}
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-head, .nav-toggle, .bgs, .strip, form, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Portrait ---------- */
.ratio-portrait { aspect-ratio: 900 / 1332; }
.portrait-fig { max-width: 440px; }

/* ---------- Loan program ---------- */
.finance { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.finance h2 { max-width: 14em; }
.finance-copy > p:not(.label) { margin-top: 20px; max-width: 34em; }
.finance-copy .link { margin-top: 30px; }
.finance-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.finance-rate { font-family: var(--serif); color: var(--head); font-size: clamp(3.6rem, 8vw, 6.5rem); line-height: .9; letter-spacing: -0.02em; }
.finance-figures .finance-rate { font-size: clamp(2.6rem, 5vw, 4rem); }
.finance-term { margin-top: 14px; font-family: var(--caps); font-size: .9rem; letter-spacing: .02em; color: var(--muted); }
.finance-fine { margin-top: 20px; font-size: .86rem; line-height: 1.6; color: var(--muted); }
.finance-notes { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--rule); }
.finance-notes .finance-fine { max-width: 78em; }
.preview-flag { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--muted); border-left: 5px solid var(--navy); background: var(--field); color: var(--ink); font-size: .92rem; line-height: 1.55; }
@media (max-width: 860px) { .finance { grid-template-columns: 1fr; } }
@media (min-width: 861px) { .finance-copy { position: sticky; top: 120px; } }

/* ==========================================================================
   Home page: five towns in pictures
   A full-width photograph cross-fades through the towns; the town names are its index.
   Text always sits on a solid panel. No gradients and nothing laid over the photographs.
   ========================================================================== */
:root {
  --hero-h: clamp(560px, calc(var(--hero-vh, 100) * 1svh - 86px), calc(880px * var(--hero-max, 1)));
  --lead-w: 700px;
  --me-w: 190px;
  --hold: 6500ms;   /* time each photograph stays */
  --fade: 1.6s;     /* cross-fade between photographs */
}
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); --head: var(--white); }
.bgs { position: absolute; inset: 0; z-index: -1; background: var(--navy); }
.bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity var(--fade) linear; }
.bg.was-on { opacity: 1; z-index: 1; transition: none; }
.bg.is-on { opacity: 1; z-index: 2; animation: settle var(--hold) cubic-bezier(.2, .6, .3, 1) both; }
@keyframes settle { from { transform: scale(var(--zoom, 1.06)); } }

.hero-in { display: grid; grid-template-columns: minmax(0, var(--lead-w)) 1fr auto; grid-template-rows: 1fr auto; column-gap: 24px; min-height: var(--hero-h); padding-top: 24px; }
.pictured { grid-area: 1 / 1; align-self: start; justify-self: start; background: var(--navy); padding: 9px 13px; font-size: .78rem; line-height: 1.3; animation: rise .9s var(--ease) .6s backwards; }
.me { grid-area: 1 / 3; align-self: start; display: block; width: calc(var(--me-w) * var(--me-scale, 1)); padding: 6px 6px 0; border-radius: var(--radius, 0); overflow: hidden; background: var(--white); color: var(--navy); text-decoration: none; animation: unveil 1.1s var(--ease) .35s backwards; }
.me img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }
.me-cap { display: block; padding: 12px 8px 14px; }
.me-cap b { display: block; font: 400 1.14rem/1.15 var(--serif); }
.me-cap i { display: block; margin-top: 6px; font: 400 .86rem/1.4 var(--caps); letter-spacing: .02em; font-style: normal; color: var(--dark); }

.lead { grid-area: 1 / 1; align-self: end; margin-top: 64px; padding: clamp(26px, 3vw, 44px) clamp(24px, 3vw, 44px) clamp(24px, 2.6vw, 38px); background: var(--lead-bg, var(--navy)); color: var(--lead-fg, var(--white)); --head: var(--lead-fg, var(--white)); animation: rise 1s var(--ease) .15s backwards; }
.lead h1 { font-size: calc(clamp(2.1rem, 3.7vw, 3.35rem) * var(--h1-scale, 1)); line-height: 1.02; letter-spacing: -.02em; text-wrap: wrap; }
.lead h1 span { display: block; }
.lead p { margin-top: 18px; max-width: 34em; font-size: 1.05rem; line-height: 1.6; }
.lead .btn-row { margin-top: 22px; gap: 12px; }
.lead .btn--light { background: var(--lead-fg, var(--white)); border-color: var(--lead-fg, var(--white)); color: var(--lead-bg, var(--navy)); }
.lead .btn--light:hover { background: var(--lead-bg, var(--navy)); color: var(--lead-fg, var(--white)); }
.lead .btn--ghost { border-color: var(--lead-fg, var(--white)); color: var(--lead-fg, var(--white)); }
.lead .btn--ghost:hover { background: var(--lead-fg, var(--white)); color: var(--lead-bg, var(--navy)); }
.lead :focus-visible { outline-color: var(--lead-fg, var(--white)); }

.strip { grid-area: 2 / 1 / 3 / -1; display: flex; background: var(--navy); border-top: 1px solid var(--teal); animation: rise .9s var(--ease) .45s backwards; }
.town { position: relative; flex: 1 1 0; min-width: 0; padding: 18px 20px 20px; border-left: 1px solid var(--teal); text-decoration: none; transition: background-color .4s var(--ease), color .4s var(--ease); }
.town:first-child { border-left: 0; }
.town b { display: block; font: 400 calc(clamp(1.15rem, 1.7vw, 1.55rem) * var(--town-scale, 1))/1.1 var(--serif); white-space: nowrap; }
.town i { display: block; margin-top: 7px; font: 400 .9rem/1 var(--caps); letter-spacing: .02em; font-style: normal; white-space: nowrap; }
.town:hover, .town:focus-visible, .town.is-on { background: var(--white); color: var(--navy); }
.town::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 3px; background: var(--teal); }
.strip.is-playing .town.is-on::before { animation: fill var(--hold) linear both; }
@keyframes fill { to { width: 100%; } }
.pp { flex: 0 0 auto; width: 88px; border: 0; border-left: 1px solid var(--teal); background: var(--navy); color: var(--white); font: 400 .9rem/1 var(--caps); letter-spacing: .02em; cursor: pointer; transition: background-color .3s, color .3s; }
.pp:hover, .pp:focus-visible { background: var(--white); color: var(--navy); }

/* What you get */
.get { background: var(--white); color: var(--navy); padding-block: calc(clamp(56px, 8vw, 112px) * var(--sec-pad, 1)); }
.get .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(clamp(20px, 3vw, 40px) * var(--get-gap, 1)); }
.offer { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius, 0); background: var(--cool); }
.offer figure { position: relative; overflow: hidden; }
.offer figure img { width: 100%; aspect-ratio: var(--offer-ratio, 16 / 9); object-fit: cover; transition: transform 1.4s var(--ease); }
.offer:hover figure img { transform: scale(var(--hover-zoom, 1.04)); }
.offer figcaption, .who-town figcaption { position: absolute; left: 0; bottom: 0; background: var(--navy); color: var(--white); padding: 9px 13px; font-size: .78rem; line-height: 1.3; }
.offer-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 40px); }
.offer h2 { font-size: calc(clamp(1.7rem, 2.8vw, 2.4rem) * var(--h2-scale, 1) * var(--offer-h, 1)); line-height: 1.05; }
.offer ul { margin-top: 20px; }
.offer li { padding: 13px 0; border-top: 1px solid var(--navy); line-height: 1.6; }
.offer li:last-child { border-bottom: 1px solid var(--navy); }
.offer-more { margin-top: 18px; font-size: .95rem; line-height: 1.6; }
.offer-more a { text-underline-offset: 4px; }
.offer .btn { align-self: flex-start; margin-top: auto; }
.offer-body > :nth-last-child(2) { margin-bottom: 26px; }
.offer .btn:hover, .who .btn:hover { background: var(--white); }

/* Who you work with */
.who { background: var(--who-bg, var(--cool)); color: var(--navy); padding-block: calc(clamp(48px, 7vw, 96px) * var(--sec-pad, 1)); }
.who .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.who-me { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius, 0); }
.who h2, .towns h2 { font-size: calc(clamp(1.8rem, 3.6vw, 3rem) * var(--h2-scale, 1)); line-height: 1; }
.who p { margin-top: 14px; max-width: calc(34em * var(--who-measure, 1)); line-height: 1.6; }
.who-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.who-town { position: relative; overflow: hidden; border-radius: var(--radius, 0); }
.who-town img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 50%; transition: transform 1.4s var(--ease); }
.who-town:hover img { transform: scale(var(--hover-zoom, 1.04)); }
.tel { font: 600 1rem/1 var(--sans); text-underline-offset: 4px; }

/* The five towns */
.towns { background: var(--towns-bg, var(--navy)); color: var(--towns-fg, var(--white)); --head: var(--towns-fg, var(--white)); padding-block: calc(clamp(56px, 8vw, 112px) * var(--sec-pad, 1)); }
.towns :focus-visible { outline-color: var(--towns-fg, var(--white)); }
.towns-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--teal); }
.towns-head a { font: 400 .95rem/1 var(--caps); letter-spacing: .02em; white-space: nowrap; text-underline-offset: 6px; }
.tcards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: calc(clamp(28px, 4vw, 52px) * var(--tcard-gap, 1)) calc(clamp(16px, 2vw, 28px) * var(--tcard-gap, 1)); margin-top: clamp(24px, 3vw, 40px); }
.tcard { grid-column: span 2; display: block; text-decoration: none; }
.tcard:nth-child(-n+2) { grid-column: span 3; }
.tcard .ph { display: block; overflow: hidden; border-radius: var(--radius, 0); }
.tcard img { width: 100%; aspect-ratio: var(--tcard-ratio, 4 / 3); object-fit: cover; transition: transform 1.4s var(--ease); }
.tcard:nth-child(-n+2) img { aspect-ratio: var(--tcard-ratio, 3 / 2); }
.tcard:hover img, .tcard:focus-visible img { transform: scale(var(--hover-zoom, 1.04)); }
.tcard b { display: block; margin-top: 16px; font: 400 calc(clamp(1.5rem, 2.4vw, 2.1rem) * var(--tcard-name, 1))/1.1 var(--serif); }
.tcard i { display: block; margin-top: 8px; font: 400 .9rem/1 var(--caps); letter-spacing: .02em; font-style: normal; }
.tcard .d { display: block; margin-top: 10px; font-size: .95rem; line-height: 1.6; max-width: 32em; }
.towns-credit { margin-top: 28px; font-size: .8rem; line-height: 1.6; }

@media (max-width: 1180px) {
  :root { --hero-h: clamp(560px, calc(var(--hero-vh, 100) * 1svh - 74px), calc(880px * var(--hero-max, 1))); }
  .town { padding-inline: 14px; }
  .pp { width: 70px; }
}
@media (max-width: 860px) {
  .hero { overflow: visible; }
  .bgs { position: relative; z-index: 0; height: 76vw; max-height: 480px; overflow: hidden; }
  .hero-in { display: block; min-height: 0; padding-top: 0; }
  .pictured { position: absolute; z-index: 3; top: 12px; left: var(--gutter); max-width: calc(100% - var(--gutter) * 2 - 108px); padding: 9px 12px; }
  .me { position: absolute; z-index: 3; top: 12px; right: var(--gutter); width: 92px; padding: 4px; }
  .me-cap { display: none; }
  .lead { margin: 0; padding: 28px 0 40px; background: none; --lead-bg: var(--navy); --lead-fg: var(--white); }
  .strip { position: absolute; z-index: 3; right: var(--gutter); top: calc(min(76vw, 480px) - 56px); border: 0; background: none; }
  .town { display: none; }
  .pp { width: auto; height: 44px; padding: 0 16px; border: 0; }
  .get .wrap { grid-template-columns: 1fr; }
  .tcard, .tcard:nth-child(-n+2) { grid-column: 1 / -1; }
  .tcard img, .tcard:nth-child(-n+2) img { aspect-ratio: var(--tcard-ratio, 16 / 10); }
  .towns-head { flex-direction: column; align-items: start; }
  .who .wrap { grid-template-columns: 1fr; }
  .who-me { max-width: 260px; }
  .who-town img { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Design variants
   Optional looks, switched by adding a data- attribute to <html> in lib/shared.mjs.
   None is switched on. All use brand colours only.
   ========================================================================== */
[data-h1="garamond"] h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
[data-h2="garamond"] h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
[data-labels="off"] .label { display: none; }
[data-sticky="off"] .site-head { position: static; }
[data-head="white"] .site-head { background: var(--white); --head: var(--navy); --muted: var(--dark); --rule: var(--cool); }
[data-head="white"] .site-head.is-scrolled { border-bottom-color: var(--cool); }
[data-head="white"] .site-head :focus-visible { outline-color: var(--navy); }
[data-head="white"] .site-nav .btn { background: var(--navy); border-color: var(--navy); color: var(--white); }
[data-head="white"] .site-nav .btn:hover { background: var(--white); color: var(--navy); }

[data-me="off"] .me, [data-me-cap="off"] .me-cap, [data-pictured="off"] .pictured, [data-counties="off"] .town i { display: none; }
[data-me-cap="off"] .me { padding-bottom: 6px; }
[data-strip="white"] .strip, [data-strip="white"] .pp { background: var(--white); color: var(--navy); }
[data-strip="white"] .town:hover, [data-strip="white"] .town:focus-visible, [data-strip="white"] .town.is-on,
[data-strip="white"] .pp:hover, [data-strip="white"] .pp:focus-visible { background: var(--navy); color: var(--white); }
[data-enter="off"] .lead, [data-enter="off"] .pictured, [data-enter="off"] .me, [data-enter="off"] .strip,
[data-enter="off"] .page-head .reveal-img, [data-enter="off"] .page-head .reveal-img img { animation: none; }

[data-offer="outlined"] .offer { background: var(--white); border: 1px solid var(--navy); }
[data-offer="outlined"] .offer .btn:hover { background: var(--cool); }
[data-offer-img="off"] .offer figure { display: none; }

[data-who="no-portrait"] .who-me, [data-who="no-photo"] .who-town, [data-who="text"] .who-me, [data-who="text"] .who-town { display: none; }
[data-tcard-d="off"] .tcard .d, [data-tcard-county="off"] .tcard i { display: none; }
[data-tcards="even"] .tcard:nth-child(-n+2) { grid-column: span 2; }

[data-s-get="off"] .get, [data-s-who="off"] .who, [data-s-towns="off"] .towns,
[data-s-expertise="off"] #expertise, [data-s-financing="off"] #financing, [data-s-resources="off"] #resources { display: none; }

@media (min-width: 861px) {
  [data-lead="right"] .hero-in { grid-template-columns: auto 1fr minmax(0, var(--lead-w)); }
  [data-lead="right"] .lead { grid-area: 1 / 3; }
  [data-lead="right"] .me { grid-area: 1 / 1; }
  [data-lead="right"] .pictured { grid-area: 1 / 3; justify-self: end; }
  [data-who="no-portrait"] .who .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
  [data-who="no-photo"] .who .wrap { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
  [data-who="text"] .who .wrap { grid-template-columns: minmax(0, 1fr); }
  [data-tcards="row"] .tcards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  [data-tcards="row"] .tcard, [data-tcards="row"] .tcard:nth-child(-n+2) { grid-column: span 1; }
}

