:root {
  --brand: #5065a8;
  --brand-deep: #3a4d8a;
  --ink: #0f1830;
  --ink-soft: #17234a;
  --paper: #faf8f4;
  --stone: #efebe2;
  --line: #ddd8cb;
  --text: #28314d;
  --muted: #5c6580;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.brand img { height: 62px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text); padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover { color: var(--brand-deep); border-bottom-color: var(--brand); }
.nav-links a[aria-current="page"] { color: var(--brand-deep); border-bottom-color: var(--brand); }
.nav-links a.btn { color: #fff; padding: 13px 22px; border: 1px solid var(--brand-deep); }
.nav-links a.btn:hover { color: #fff; border-color: var(--ink); }

.menu-btn {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--ink);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .25s, opacity .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 14px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  padding: 18px 30px; border-radius: 2px; border: 1px solid var(--brand-deep);
  background: var(--brand-deep); color: #fff; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--brand-deep); }
.btn--ghost:hover { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--sm { padding: 13px 22px; font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 16px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(52px, 8.2vw, 104px); }
h2 { font-size: clamp(36px, 4.6vw, 56px); }
h3 { font-size: 28px; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1.2em; }
.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.65; color: var(--text); max-width: 40em; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(44px, 7vw, 92px) 0 clamp(116px, 15vw, 200px); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 11em; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--brand); font-weight: 500; white-space: nowrap; }
.hero .lede { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mark {
  position: absolute; right: max(24px, calc((100vw - var(--max)) / 2 + 24px)); top: 50%;
  width: clamp(240px, 30vw, 400px); transform: translateY(-50%); opacity: 0.10; pointer-events: none;
}

/* ---------- Criteria strip ---------- */
.strip { background: var(--ink); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 28px 28px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item:last-child { padding-right: 0; }
.strip-item .k { font-family: var(--serif); font-size: 30px; line-height: 1.15; font-weight: 700; margin-bottom: 10px; display: block; }
.strip-item .v { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.72); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6.5vw, 88px) 0; }
.section--stone { background: var(--stone); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.split h2 { position: sticky; top: 120px; }

.prose p { font-size: 19px; line-height: 1.75; }
.prose p:first-child { font-size: 22px; color: var(--ink); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(32px, 4.5vw, 52px); border-top: 1px solid var(--ink); }
.pillar { padding: 26px 30px 4px 0; }
.pillar + .pillar { padding-left: 30px; border-left: 1px solid var(--line); }
.pillar .n { font: 600 12px/1 var(--sans); letter-spacing: 0.18em; color: var(--brand); display: block; margin-bottom: 18px; }
.pillar h3 { margin-bottom: 14px; }
.pillar p { color: var(--muted); font-size: 16.5px; }

.section-head { max-width: 38em; margin-bottom: clamp(26px, 3.5vw, 40px); }

.criteria { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.criteria li {
  display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; color: var(--ink); font-weight: 600;
}
.criteria li span { font-family: var(--sans); font-size: 13px; letter-spacing: 0.18em; color: var(--brand); font-weight: 600; }
.criteria li small { display: block; font-family: var(--sans); font-size: 16px; color: var(--muted); margin-top: 6px; font-weight: 400; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta { background: var(--ink); color: #fff; padding: clamp(48px, 6vw, 80px) 0; position: relative; overflow: hidden; }
.cta .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; max-width: 14em; }
.cta p { color: rgba(255, 255, 255, 0.75); margin: 18px 0 0; max-width: 32em; }
.cta-mark { position: absolute; right: -40px; bottom: -70px; width: 360px; opacity: 0.06; filter: brightness(0) invert(1); pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 15px; }
.foot { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; align-items: flex-start; }
.foot img { height: 44px; width: auto; margin-bottom: 16px; }
.foot-col h4 { font: 600 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand); margin: 0 0 16px; }
.foot-col a { display: block; text-decoration: none; color: var(--text); margin-bottom: 8px; }
.foot-col a:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 4px; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Contact page ---------- */
.page-hero { padding: clamp(40px, 5.5vw, 72px) 0 clamp(22px, 3vw, 36px); }
.page-hero h1 { font-size: clamp(44px, 6vw, 76px); margin-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(36px, 7vw, 104px); align-items: start; padding-bottom: clamp(44px, 6vw, 80px); }
.form { display: grid; gap: 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 9px; }
.field label i { font-style: normal; font-weight: 400; color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-size: 13px; }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.5 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 15px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(80, 101, 168, 0.18); }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }

.aside { border-top: 1px solid var(--ink); padding-top: 28px; }
.aside h3 { font-size: 26px; margin-bottom: 18px; }
.aside dl { margin: 0; }
.aside dt { font: 600 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); margin: 24px 0 8px; }
.aside dd { margin: 0; font-size: 18px; }
.aside a { text-decoration: none; border-bottom: 1px solid var(--brand); }
.aside a:hover { color: var(--brand-deep); }
.aside .quiet { color: var(--muted); font-size: 15.5px; margin-top: 28px; }

.thanks { text-align: left; padding: clamp(56px, 8vw, 104px) 0; }
.thanks h1 { font-size: clamp(46px, 6.6vw, 84px); margin-bottom: 26px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip-item { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 32px; padding-bottom: 32px; }
  .strip-item:nth-child(-n+2) { border-top: 0; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split h2 { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 30px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 18px 0; font-size: 16px; border-bottom: 0; }
  .nav-links li:last-child { border-bottom: 0; padding-top: 18px; }
  .nav-links .btn { width: 100%; }
  .brand img { height: 50px; }
  .hero-mark { opacity: 0.06; right: -70px; width: 260px; }
  .row { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item, .strip-item:nth-child(3) { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .strip-item:first-child { border-top: 0; }
  .criteria li { grid-template-columns: 1fr; gap: 4px; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn, .form .btn { width: 100%; }
}

/* ---------- Storefront skyline ---------- */
.sky { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(88px, 14vw, 180px); display: block; z-index: 0; pointer-events: none; }
.sky .b { fill: var(--brand); fill-opacity: 0.13; }
.sky .c { fill: var(--brand); fill-opacity: 0.24; }
.sky .a { fill: var(--brand); fill-opacity: 0.38; }
.sky .w { fill: var(--paper); }
.sky .g { fill: var(--brand); fill-opacity: 0.5; }

/* ---------- Text links ---------- */
.textlink { color: var(--brand-deep); text-decoration: none; border-bottom: 1px solid var(--brand); font-weight: 500; }
.textlink:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-family: var(--serif); font-size: clamp(23px, 2.4vw, 29px); line-height: 1.25; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 20px; max-width: 36em; color: var(--text); font-size: 18px; }
.faq summary:hover { color: var(--brand-deep); }

/* ---------- Advisors band ---------- */
.broker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); padding: clamp(30px, 4vw, 44px) 0; }
.broker-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.broker h3 { margin-bottom: 10px; }
.broker p { margin: 0; max-width: 38em; color: var(--muted); }

/* ---------- Select ---------- */
.field select {
  width: 100%; font: 400 17px/1.5 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: 15px 44px 15px 16px; appearance: none; -webkit-appearance: none; cursor: pointer;
  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='%235065a8' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(80, 101, 168, 0.18); }
@media (min-width: 761px) { .field:has(> select) { max-width: calc(50% - 11px); } }
@media (max-width: 760px) { .broker-in .btn { width: 100%; } }

/* ---------- Process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 24px 24px 4px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps .n { font: 600 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); display: block; margin-bottom: 16px; }
.steps h3 { font-size: 25px; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 16.5px; }

/* ---------- Buttons: actions rows ---------- */
.cta-actions, .broker-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Document (privacy) ---------- */
.doc { max-width: 40em; }
.doc h2 { font-size: 28px; margin: 30px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p { font-size: 18px; }

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { padding: 30px 28px 24px 0; border-bottom: 1px solid var(--line); }
  .steps li + li { padding-left: 0; border-left: 0; }
  .steps li:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
  .steps li:nth-child(n+3) { border-bottom: 0; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:nth-child(even), .steps li + li { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
  .cta-actions .btn, .broker-actions .btn { width: 100%; }
}

.section-head .lede { margin: 20px 0 0; }

@media (max-width: 760px) { .nav { height: 76px; } }

.prose .links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.aside dd + dd { margin-top: 8px; }
