/* ==========================================================================
   WellSpent Group — site styles

   Static rebuild of the Claude Design export. Every colour, clamp() and
   spacing value below is transcribed verbatim from the original .dc.html
   pages (retained in legacy/). Where the original used inline style="" plus
   the runtime's style-hover="" attribute, that pair becomes a class and a
   real :hover rule here — the runtime generated the same declarations with
   !important only because it had to beat inline styles.

   No framework, no build step, no external runtime.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */

:root {
  /* palette */
  --ink:            #16222E;
  --paper:          #FAF7F0;
  --slate:          #4A5560;
  --clay:           #7A3B33;
  --white:          #FFFFFF;
  --label:          #6E7280;
  --placeholder:    #9A9DA5;
  --stone:          #EFEAE0;

  /* rules and washes over paper */
  --rule:           rgba(22, 34, 46, 0.16);
  --rule-soft:      rgba(22, 34, 46, 0.14);
  --rule-mid:       rgba(22, 34, 46, 0.18);
  --rule-nav:       rgba(22, 34, 46, 0.40);
  --rule-strong:    rgba(22, 34, 46, 0.45);
  --rule-input:     rgba(22, 34, 46, 0.32);
  --rule-round:     rgba(22, 34, 46, 0.35);

  /* washes over ink */
  --on-ink:         rgba(250, 247, 240, 0.74);
  --on-ink-strong:  rgba(250, 247, 240, 0.92);
  --on-ink-body:    rgba(250, 247, 240, 0.78);
  --on-ink-quiet:   rgba(250, 247, 240, 0.62);
  --on-ink-faint:   rgba(250, 247, 240, 0.52);
  --on-ink-rule:    rgba(250, 247, 240, 0.24);
  --on-ink-hair:    rgba(250, 247, 240, 0.16);
  --on-ink-edge:    rgba(250, 247, 240, 0.40);
  --on-ink-edge-2:  rgba(250, 247, 240, 0.50);

  /* type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --gutter: clamp(22px, 4vw, 64px);
  --maxw:   1440px;
  --navh:   62px;
}

/* ----------------------------------------------------------------- base -- */

/* NO global border-box reset — deliberately.

   The originals used the browser default (content-box) everywhere and opted
   into border-box in exactly three places: the strategy card, the strategy
   CTA span, and input/select/textarea. Those three are set explicitly below.

   A global reset here is not cosmetic: it made the sub-page hero 98px
   shorter (min-height stopped including padding) and narrowed .hero__panel
   from 620px+padding to 620px total, which rewrapped its copy. Leave this
   alone unless you are re-checking parity against legacy/. */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--clay); }

img { max-width: 100%; }

/* Anchor targets clear the sticky nav. The original did this with a JS
   scroll handler applying a -80px offset; this is the same result, free. */
[id] { scroll-margin-top: 80px; }

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(10px);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--navh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  align-items: center;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}

.nav__group { position: relative; }

.nav__top {
  display: inline-block;
  color: var(--ink);
  padding: 9px 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .18s;
}
.nav__top:hover { color: var(--clay); }

.nav__drop {
  position: absolute;
  top: 100%; left: 0;
  min-width: 170px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 24px rgba(22, 34, 46, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .16s, transform .16s, visibility .16s;
  z-index: 50;
}
.nav__group:hover .nav__drop,
.nav__group:focus-within .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* The About group's dropdown holds a single short item. */
.nav__drop--narrow { min-width: 130px; }

.nav__drop a {
  display: block;
  color: var(--ink);
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__drop a:hover { color: var(--clay); }
.nav__drop a[aria-current="page"] { color: var(--clay); }

.nav__cta {
  border: 1px solid var(--rule-nav);
  padding: 9px 20px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.nav__cta:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background .18s, color .18s, border-color .18s;
}

.btn--solid {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
}
.btn--solid:hover { background: transparent; color: var(--ink); }

.btn--ghost {
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Mono-set action button, used on the parameter tables and in forms. */
.btn-mono {
  display: inline-block;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.btn-mono:hover { background: transparent; color: var(--ink); }

.btn-mono--quiet {
  border: 1px solid var(--rule-strong);
  background: none;
  color: var(--ink);
  padding: 12px 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-mono--bare {
  border: none;
  background: none;
  cursor: pointer;
  padding: 12px 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
}
.btn-mono--bare:hover { color: var(--ink); }

/* ----------------------------------------------------------------- hero -- */

.hero { position: relative; }

.hero__frame {
  min-height: clamp(660px, 86vh, 880px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 80px);
}

/* Sub-pages use a shorter hero with the copy pinned to the top. */
.hero--page {
  position: relative;
  overflow: hidden;
  min-height: clamp(400px, 50vh, 500px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(72px, 8vw, 104px) var(--gutter) clamp(26px, 3vw, 38px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/home-hero-coast.webp');
  background-size: cover;
  background-position: center bottom;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(250,247,240,0.94), rgba(250,247,240,0.72) 42%, rgba(250,247,240,0) 78%),
    linear-gradient(rgba(250,247,240,0.8), rgba(250,247,240,0.4) 60%, rgba(250,247,240,0.12));
}

.hero__body {
  position: relative;
  padding: clamp(48px, 7vw, 104px) var(--gutter) 0;
}
.hero__body .shell { color: var(--ink); }

.hero__foot { padding-bottom: clamp(24px, 3vw, 34px); }

.hero__title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.6vw, 74px);
  font-weight: 300;
  line-height: 1.08;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}

.hero__lede {
  font-style: italic;
  font-size: clamp(15.5px, 1.5vw, 18.5px);
  line-height: 1.75;
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  max-width: 58ch;
  color: var(--slate);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 3vw, 38px);
}

/* Sub-page hero: title over a translucent ink panel. */
.hero__title--page {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.hero__panel {
  background: rgba(22, 34, 46, 0.68);
  backdrop-filter: blur(2px);
  color: var(--paper);
  max-width: 620px;
  padding: clamp(22px, 2.4vw, 32px) clamp(24px, 2.6vw, 36px);
  margin: clamp(22px, 2.6vw, 34px) 0 0;
}
.hero__panel p {
  font-style: italic;
  font-size: clamp(15px, 1.45vw, 17.5px);
  line-height: 1.75;
  margin: 0;
  color: var(--on-ink-strong);
  text-wrap: pretty;
}

/* -------------------------------------------------------------- sections -- */

.section { padding: clamp(48px, 5vw, 68px) var(--gutter); }
.section--about { padding: clamp(38px, 4.5vw, 60px) var(--gutter) clamp(30px, 3.6vw, 48px); }
.section--slate { background: var(--slate); }
.section--white { background: var(--white); }

.section__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 300;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}
/* Only the strategies heading carried a max-width in the original; the
   contact heading did not. Keep them apart. */
.section__title--constrained { max-width: 62ch; }
.section__title--onslate { color: var(--paper); }
.section__title--contact {
  margin: 0 0 clamp(28px, 3.4vw, 44px);
  color: var(--ink);
}

.about__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(28px, 4vw, 64px);
}
.about__cols p {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}

.callout {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(30px, 3.4vw, 46px) clamp(26px, 3vw, 44px);
  margin-top: clamp(38px, 4.5vw, 60px);
}
.callout h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.16;
  margin: 0;
  text-wrap: balance;
}
.callout p {
  font-size: clamp(14.5px, 1.35vw, 16.5px);
  line-height: 1.8;
  color: var(--on-ink);
  margin: 18px 0 0;
  max-width: 76ch;
  text-wrap: pretty;
}

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 3.4vw, 56px) clamp(32px, 4vw, 72px);
  margin-top: clamp(30px, 3.6vw, 48px);
}
.principles h3 {
  font-family: var(--sans);
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
}
.principles p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate);
  margin: 10px 0 0;
  text-wrap: pretty;
}

/* --------------------------------------------------------------- carousel -- */

.rail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}

.rail-nav { display: flex; gap: 10px; }
/* Matches the original: arrows occupy space but are hidden until the rail
   actually overflows. site.js toggles [data-overflow]. */
.rail-nav[data-overflow="false"] { visibility: hidden; }

.rail-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--on-ink-edge-2);
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.rail-btn:hover { background: var(--paper); color: var(--ink); }

.rail-btn--ink {
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule-nav);
  color: var(--ink);
  font-size: 13px;
}
.rail-btn--ink:hover { background: var(--ink); color: var(--paper); }

.rail {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }

.strategy {
  flex: 1 0 290px;
  scroll-snap-align: start;
  box-sizing: border-box;
  border: 1px solid var(--rule-mid);
  margin: 0 -1px -1px 0;
  background: var(--white);
  padding: clamp(28px, 2.6vw, 38px) clamp(24px, 2.2vw, 34px) clamp(30px, 2.8vw, 40px);
  display: flex;
  flex-direction: column;
  min-height: 340px;
  transition: background .2s;
}
.strategy:hover { background: var(--paper); }

.strategy__eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
}
.strategy__title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  margin: 16px 0 0;
}
.strategy__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate);
  margin: 14px 0 0;
  text-wrap: pretty;
}
.strategy__foot { margin-top: auto; padding-top: 30px; }
.strategy__cta-wrap {
  display: flex;
  border-top: 1px solid var(--rule);
  padding-top: 26px;
}
.strategy__cta {
  display: inline-block;
  width: 168px;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
  border: 1px solid var(--rule-strong);
  padding: 11px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background .18s, color .18s, border-color .18s;
}
.strategy:hover .strategy__cta {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ----------------------------------------------------------------- forms -- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: clamp(44px, 5vw, 80px);
  align-items: stretch;
}

.inquiry {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: clamp(28px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
}

.inquiry__eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}

.inquiry__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 300;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

.inquiry__lede {
  font-size: clamp(14.5px, 1.35vw, 16px);
  line-height: 1.8;
  color: var(--slate);
  margin: 18px 0 clamp(30px, 3.4vw, 42px);
  max-width: 46ch;
  text-wrap: pretty;
}

.form {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.6vw, 32px);
  flex: 1;
}

.form__progress { display: flex; gap: 6px; }
.form__progress span {
  height: 3px;
  flex: 1;
  background: rgba(22, 34, 46, 0.2);
}
.form__progress span[data-on="true"] { background: var(--ink); }

.form__step {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.6vw, 32px);
  flex: 1;
}
.form__step--two { gap: clamp(16px, 1.8vw, 22px); }
.form__step[hidden] { display: none; }

.form__pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}

.form__label {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 2px;
}

input, select, textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-input);
  padding: 11px 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  outline: none;
  transition: border-color .18s;
}
input:focus, select:focus, textarea:focus { border-bottom-color: var(--clay); }
textarea { resize: vertical; min-height: 96px; }
::placeholder { color: var(--placeholder); }

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 26px;
  /* Source shipped this data URI with a mangled `sc-camel-view-box`
     attribute the runtime never de-mangled; corrected to viewBox here. */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%236E7280' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
select:focus {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%23A08A5E' stroke-width='1.3'/%3E%3C/svg%3E");
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: auto;
}
.form__actions--step-one { padding-top: 29px; }
.form__stepcount { font-size: 12.5px; color: var(--label); }

/* Result panels — success and failure both render here, never optimistically. */
.result[hidden] { display: none; }

.result--boxed {
  border: 1px solid rgba(22, 34, 46, 0.2);
  padding: clamp(32px, 4vw, 48px);
  background: var(--white);
}
.result--ruled {
  border-top: 1px solid var(--rule);
  margin-top: clamp(28px, 3vw, 38px);
  padding-top: clamp(26px, 2.8vw, 34px);
}

.result__eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
}
.result__title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 300;
  margin: 16px 0 0;
  line-height: 1.2;
}
.result--ruled .result__title { font-size: clamp(26px, 2.8vw, 34px); }
.result__body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--slate);
  margin: 16px 0 0;
}
.result__actions { display: flex; margin-top: 30px; }

/* Error variant: same panel, direct-contact links underlined so they read
   as actionable inside the body copy. */
.result--error .result__body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.result--error .result__body a:hover { color: var(--clay); }

/* The form itself is hidden while a result panel is showing. */
.form[hidden] { display: none; }

/* Honeypot: present in the DOM and the FormData, invisible and unreachable
   to people. Not display:none, which some harvesters skip. */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Inline field hint (email). Uses the existing error colour and the label's
   mono treatment; submit-time validation is unchanged. */
.field--invalid input { border-bottom-color: var(--clay); }
.field__msg {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 6px;
}
.field__msg[hidden] { display: none; }

/* In-flight submit. */
button[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
}

/* --------------------------------------------------------------- footer -- */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 6vw, 72px) var(--gutter) clamp(32px, 4vw, 44px);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
  justify-content: space-between;
  align-items: center;
}

.footer .wordmark { color: var(--paper); }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 2.4vw, 32px);
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-ink);
}
.footer__links a { color: var(--on-ink); transition: color .18s; }
.footer__links a:hover { color: var(--clay); }

.footer__cta {
  border: 1px solid var(--on-ink-edge);
  padding: 9px 20px;
  transition: background .18s, color .18s, border-color .18s;
}
.footer__links a.footer__cta:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.footer__legal {
  border-top: 1px solid var(--on-ink-hair);
  margin-top: clamp(32px, 3.6vw, 44px);
  padding-top: 22px;
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--on-ink-faint);
}

/* ==========================================================================
   Sub-pages: residential / commercial / capital / team
   ========================================================================== */

/* A full-width centred statement line set in the display serif.
   Residential and Capital each carry one. */
.statement {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 300;
  line-height: 1.14;
  margin: 0 auto;
  text-align: center;
}
.section--statement { padding: clamp(28px, 3vw, 40px) var(--gutter) 0; }

/* Hairline separator sections. */
.section--rule { padding: 0 var(--gutter); }
.rule { max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--rule-mid); }

/* ------------------------------------------------------- brand carousel -- */

.section--brands { padding: clamp(20px, 2.4vw, 28px) var(--gutter) clamp(28px, 3vw, 40px); }

.brand-rail {
  display: flex;
  gap: clamp(24px, 2.4vw, 34px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.brand-rail::-webkit-scrollbar { display: none; }

.brand {
  flex: 0 0 clamp(220px, 26vw, 300px);
  scroll-snap-align: start;
}

.brand__frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.brand__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  /* Tiles without artwork fall back to the stone gradient the original used. */
  background-image: linear-gradient(160deg, #E4DFD4, #CDC6B8 55%, #B9B2A3);
  transition: transform 0.9s cubic-bezier(0.2, 0, 0.2, 1);
}
/* Scoped to the image itself, exactly as the original was. Note this never
   actually fires: .brand__overlay is absolutely positioned over the image
   with pointer-events auto, so it wins hit-testing and the image — its
   sibling, not its ancestor — is never :hover. Verified against the original,
   which behaves the same way (transform stays `none` on hover).
   Kept rather than deleted so the intent survives: if the pending partner
   decision removes the "Site Coming Soon" overlay, this starts working,
   which is what the original would also have done. */
.brand__img:hover { transform: scale(1.05); }

/* Overlay copy is a pending partner decision. Preserved exactly as-is. */
.brand__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 34, 46, 0);
  color: var(--paper);
  opacity: 0;
  transition: opacity .3s, background .3s;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand__frame:hover .brand__overlay {
  opacity: 1;
  background: rgba(22, 34, 46, 0.55);
}

.brand__name-wrap { margin-top: 20px; }
.brand__name {
  font-family: var(--serif);
  font-size: clamp(24px, 2.1vw, 29px);
  font-weight: 300;
  line-height: 1.1;
  white-space: nowrap;
}
.brand__blurb {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--slate);
  margin: 10px 0 0;
  text-wrap: pretty;
}

.brand-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(28px, 3vw, 38px);
}
.brand-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--rule-round);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 22px;
  transition: background .18s, color .18s;
}
.brand-btn:hover { background: var(--ink); color: var(--paper); }

/* --------------------------------------------------- lending parameters -- */

.section--params { padding: clamp(28px, 3vw, 40px) var(--gutter); }
.params-wrap { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.params-inner { max-width: 860px; margin: 0 auto; }

.params-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  margin: 0;
}

.params {
  max-width: 720px;
  margin: clamp(24px, 2.8vw, 34px) auto 0;
}
.params__list { text-align: left; }
.params__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.params__k {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.params__v {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  text-align: right;
}
.params__cta { display: flex; justify-content: center; margin-top: clamp(24px, 2.8vw, 32px); }
.params__cta--commercial { margin-top: clamp(26px, 3vw, 38px); }

/* ------------------------------------------------------- contact blocks -- */

.section--contact { padding: clamp(40px, 4.6vw, 64px) var(--gutter); }
.contact-block { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.contact-block h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 300;
  margin: 0;
}
.contact-block__lede {
  font-size: clamp(15px, 1.4vw, 16.5px);
  line-height: 1.75;
  color: var(--slate);
  margin: clamp(12px, 1.4vw, 18px) auto 0;
  max-width: 54ch;
  text-wrap: pretty;
}

.people {
  display: flex;
  justify-content: center;
  gap: 320px;
  margin-top: clamp(32px, 4vw, 44px);
  flex-wrap: wrap;
}
.person { text-align: center; }
.person__name { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.person__phone { font-size: 14px; margin-top: 8px; }
.person__email { font-size: 14px; font-weight: 300; display: inline-block; }
/* Residential sets these in slate; Commercial sets them in ink. */
.people--slate .person__phone, .people--slate .person__email { color: var(--slate); }
.people--ink   .person__phone, .people--ink   .person__email { color: var(--ink); }

/* ------------------------------------------------------------ commercial -- */

.wide { max-width: 1180px; margin: 0 auto; }

.section--intro { padding: clamp(28px, 3vw, 40px) var(--gutter); }
.intro-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(26px, 3.4vw, 56px);
  margin-top: clamp(24px, 2.6vw, 34px);
}
.intro-cols p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate);
  margin: 0;
  text-wrap: pretty;
}

.section--finance { padding: clamp(20px, 2.4vw, 30px) var(--gutter) clamp(28px, 3vw, 40px); }
.panel-ink {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(38px, 4.2vw, 58px) clamp(26px, 3vw, 44px);
  /* Partner feedback R1: keep the panel inside the 1180px column. Under the
     default content-box sizing the padding was added outside max-width, so
     the box overshot the text column by 44px on each side once the viewport
     exceeded ~1400px. Border-box makes it behave like the Home callout —
     box edge on the column, copy inset — which is the site's pattern for
     ink panels; full-bleed is reserved for slate section backgrounds. */
  box-sizing: border-box;
}
.block-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.16;
  margin: 0;
}
.finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 0 clamp(30px, 4vw, 64px);
  margin-top: clamp(26px, 3vw, 38px);
}
.finance-item { border-top: 1px solid var(--on-ink-rule); padding: 14px 0; }
.finance-item h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--paper);
}
.finance-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--on-ink-body);
  margin: 6px 0 0;
  text-wrap: pretty;
}

.section--approach { padding: clamp(14px, 1.6vw, 20px) var(--gutter) clamp(28px, 3vw, 40px); }
.approach-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
}
.rail--approach {
  gap: clamp(26px, 3vw, 48px);
  margin-top: clamp(24px, 2.8vw, 36px);
}
.approach-item {
  flex: 1 0 260px;
  scroll-snap-align: start;
  border-top: 1px solid var(--rule-mid);
  padding-top: clamp(16px, 1.8vw, 22px);
}
.approach-item h3 {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 400;
  margin: 0;
  line-height: 1.25;
  color: var(--ink);
}
.approach-item p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate);
  margin: 12px 0 0;
  text-wrap: pretty;
}

.section--standards {
  background: var(--slate);
  color: var(--paper);
  padding: clamp(34px, 3.6vw, 50px) var(--gutter);
}
.standards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 0 clamp(30px, 4vw, 64px);
  margin-top: clamp(18px, 2vw, 26px);
}
.standard {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: baseline;
  border-top: 1px solid var(--on-ink-rule);
  padding: 12px 0;
}
.standard__k {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--paper);
  flex: 0 0 118px;
}
.standard__v {
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-ink-body);
  margin: 0;
  flex: 1 1 150px;
  text-wrap: pretty;
}

/* --------------------------------------------------------------- capital -- */

.section--pillars { padding: clamp(20px, 2.4vw, 28px) var(--gutter) clamp(28px, 3vw, 40px); }
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 0 clamp(30px, 4vw, 64px);
}
.pillar { padding: clamp(22px, 2.4vw, 30px) 0 0; }
.pillar h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}
.pillar__body {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--slate);
  margin: 14px 0 0;
  text-wrap: pretty;
}
.pillar__close {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin: 16px 0 0;
  text-wrap: pretty;
}

.section--forms {
  background: var(--slate);
  color: var(--paper);
  padding: clamp(40px, 4.6vw, 64px) var(--gutter);
}
.split {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 3.4vw, 64px);
  align-items: start;
}
.split--stretch { align-items: stretch; }

.split-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  line-height: 1.22;
  margin: 0;
  max-width: 26ch;
  text-wrap: balance;
}
.split-lede {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(250, 247, 240, 0.84);
  margin: clamp(18px, 2vw, 26px) 0 0;
  max-width: 52ch;
  text-wrap: pretty;
}

.cap-form {
  display: grid;
  grid-template-columns: minmax(96px, 132px) 1fr;
  gap: clamp(14px, 1.6vw, 22px);
  align-items: start;
  border-top: 1px solid var(--on-ink-rule);
  padding: 15px 0;
}
.cap-form__label {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.45;
  color: var(--on-ink-quiet);
}
.cap-form__v { font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }

.section--partnership { padding: clamp(28px, 3vw, 40px) var(--gutter); }
.partnership-copy { display: flex; flex-direction: column; justify-content: center; }
.partnership-copy h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  margin: 0;
  max-width: 22ch;
}
.partnership-copy p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--slate);
  margin: clamp(16px, 1.8vw, 22px) 0 0;
  max-width: 54ch;
  text-wrap: pretty;
}
.partnership-panel {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(30px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.partnership-panel p {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 300;
  line-height: 1.4;
  margin: 0;
  text-wrap: pretty;
}
.partnership-panel__cta { display: flex; margin-top: clamp(24px, 2.8vw, 34px); }
.btn-onink {
  display: inline-block;
  border: 1px solid var(--on-ink-edge-2);
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  transition: background .18s, color .18s, border-color .18s;
}
.btn-onink:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* ------------------------------------------------------------------ team -- */

.section--team { padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(56px, 7vw, 92px); }
.team-wrap { max-width: 1100px; margin: 0 auto; text-align: center; }
.team-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 300;
  line-height: 1.14;
  margin: 0 0 clamp(32px, 4vw, 48px);
  text-align: center;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  max-width: 940px;
  margin: 0 auto;
  gap: clamp(28px, 3vw, 44px);
}
.team-photo {
  width: 76%;
  max-width: 200px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0 auto 18px;
  background-color: var(--stone);
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  transition: filter .25s;
}
.team-photo:hover { filter: grayscale(0); }
.team-name { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.team-phone { font-size: 14px; color: var(--ink); margin-top: 10px; }
.team-email { font-size: 14px; font-weight: 300; color: var(--ink); display: inline-block; }

/* ==========================================================================
   Mobile — Phase 3

   Breakpoint is 860px. The desktop nav bar physically fits down to about
   560px (measured: 480px of content plus gutters), but its dropdowns are
   hover-only and therefore unusable on touch at any width. 860px puts the
   tap nav in front of every phone and portrait tablet.
   ========================================================================== */

/* ------------------------------------------------------- nav: toggle bar -- */

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;            /* optical alignment with the gutter */
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.nav__bars,
.nav__bars::before,
.nav__bars::after {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__bars { position: relative; }
.nav__bars::before,
.nav__bars::after { content: ''; position: absolute; left: 0; }
.nav__bars::before { top: -7px; }
.nav__bars::after  { top: 7px; }

/* Open state: bars become an X. */
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------- nav: tap panel -- */

.nav__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  box-shadow: 0 16px 28px rgba(22, 34, 46, 0.12);
  max-height: calc(100vh - var(--navh));
  overflow-y: auto;
  z-index: 45;
}
.nav__panel[hidden] { display: none; }

.nav__panel a {
  display: block;
  padding: 16px var(--gutter);    /* >=44px tall touch target */
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.nav__panel a:last-child { border-bottom: 0; }
.nav__panel a:active { background: rgba(22, 34, 46, 0.05); }
.nav__panel a[aria-current="page"] { color: var(--clay); }

/* Second-level entries sit under their parent. */
.nav__panel a[data-sub] {
  padding-left: calc(var(--gutter) + 20px);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--slate);
}
.nav__panel a[data-sub][aria-current="page"] { color: var(--clay); }

/* ---------------------------------------------------------- < 860px -- */

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__panel[data-open="true"] { display: block; }

  /* The hardcoded 320px gap between the two contact people leaves a 320px
     vertical hole once the row wraps. */
  .people { gap: 48px 40px; }
}

/* ---------------------------------------------------------- <= 560px -- */

@media (max-width: 560px) {
  /* Give the two rail headings room; the arrows drop below the title. */
  .rail-head, .approach-head { align-items: flex-start; }

  .people { gap: 40px; }
}

/* --------------------------------------------------- touch, any width -- */

/* On a pointer that cannot hover, the desktop dropdown never opens. site.js
   turns the parent link into a first-tap toggle; this keeps the open state
   visible once it does. */
@media (hover: none) {
  .nav__group[data-open="true"] .nav__drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Partner feedback R1 — mobile
   ========================================================================== */

@media (max-width: 860px) {
  /* 2a — centre the sub-page hero title on Residential, Commercial, Capital. */
  .hero__title--center { text-align: center; }

  /* 2b — breathing room around the hero copy panel: more gap under the
     title, a little inset from the edges, air inside and below. */
  .hero__panel {
    margin: 36px 8px 12px;
    padding: 28px;
  }

  /* 2c — lending parameters: every row is label over value, both left.
     Replaces the old ≤560px partial rule so short values no longer sit
     right-aligned on the label line. */
  .params__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .params__v { text-align: left; }
}

/* 2d — inquiry selector. A mobile-only control: on desktop the two forms sit
   side by side and the selector stays display:none. Hidden (attribute) when
   JS is absent, so both forms simply stack as before. */
@media (max-width: 860px) {
  .form-switch:not([hidden]) { display: flex; }
  .inquiry[data-switched-off] { display: none; }
}

/* Segmented control, in the mono/ink button language. */
.form-switch {
  display: none;
  margin: 0 0 clamp(24px, 3vw, 32px);
  border: 1px solid var(--rule-strong);
}
.form-switch button {
  flex: 1 1 0;
  padding: 14px 12px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.form-switch button + button { border-left: 1px solid var(--rule-strong); }
.form-switch button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* ==========================================================================
   Legal pages (privacy / disclaimer), footer notice, form consent line
   -------------------------------------------------------------------------
   New for launch; no original to transcribe from. Type sizes reuse the
   sub-page pillar scale (h2 / body) so the pages read as siblings of the
   strategy pages.
   ========================================================================== */

.section--legal { padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 112px); }
.legal { max-width: 720px; margin: 0 auto; }
.legal__title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.legal__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
  margin: 16px 0 0;
}
.legal__lead { margin-top: clamp(28px, 3.4vw, 40px) !important; }
.legal h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 400;
  line-height: 1.25;
  margin: clamp(32px, 3.6vw, 44px) 0 0;
  color: var(--ink);
}
.legal p {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--slate);
  margin: 14px 0 0;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.legal a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .18s;
}
.legal a:hover { color: var(--ink); }

/* Footer legal notice: same 11px / 0.1em treatment as the copyright line. */
.footer__legal p { margin: 0; }
.footer__notice { color: var(--on-ink-quiet); margin-bottom: 10px; line-height: 1.9; }
.footer__notice-links { white-space: nowrap; margin-left: 10px; }
.footer__notice a {
  color: var(--on-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .18s;
}
.footer__notice a:hover { color: var(--clay); }
.footer__sep { margin: 0 10px; }

/* Point-of-collection line under each submit button; wraps to its own row
   inside .form__actions and takes the step-count helper's size and colour. */
.form__consent {
  flex-basis: 100%;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--label);
  text-wrap: pretty;
}
.form__consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .18s;
}
.form__consent a:hover { color: var(--ink); }
