/* =========================================================
   Krest Mortgage — Heritage Editorial
   Palette: ink / paper / brass / moss
   ========================================================= */

:root {
  /* Palette (Heritage Ink default — overridden by Tweaks) */
  --ink: #1a1410;
  --ink-2: #2a201a;
  --ink-soft: #4a3f37;
  --paper: #f5f0e6;
  --paper-2: #ebe3d4;
  --paper-3: #ddd2bd;
  --brass: #b08a3e;
  --brass-2: #d4b483;
  --brass-soft: #e7d4a8;
  --moss: #2f3d2b;
  --oxblood: #5a201f;
  --rule: rgba(176, 138, 62, 0.42);
  --rule-strong: rgba(176, 138, 62, 0.75);

  /* Typography */
  --serif: "Cormorant Garamond", "Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --measure: 68ch;
  --container: 1220px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

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

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- Type system ---------- */

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.018em;
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}

h2.section-title {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

h2.section-title em {
  font-style: italic;
  color: var(--brass);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
}

.body p { max-width: var(--measure); }

.roman {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  letter-spacing: 0.02em;
}

/* ---------- Ornament + rules ---------- */

.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--brass);
  margin: 0;
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-strong), transparent);
}

.rule .diamond {
  width: 6px;
  height: 6px;
  background: var(--brass);
  transform: rotate(45deg);
}

.rule-thin {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ---------- Containers ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(80px, 11vw, 160px) 0; }

/* ===================================================
   TOP LEDGER + NAV
   =================================================== */

.ledger {
  background: var(--ink);
  color: var(--paper-2);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ledger .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ledger .ledger-meta { color: var(--brass-2); font-weight: 600; }

.ledger a { text-decoration: none; color: inherit; }
.ledger a:hover { color: var(--brass-2); }

.ledger .dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--brass);
  border-radius: 50%;
  margin: 0 12px;
  vertical-align: middle;
}

nav.main {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

nav.main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.05));
}

.brand .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand .wordmark .name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.brand .wordmark .since {
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 4px;
  font-weight: 600;
}

nav.main ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
  align-items: center;
}

nav.main ul a {
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

nav.main ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

nav.main ul a:hover { color: var(--brass); }
nav.main ul a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 10px 18px !important;
  border-radius: 2px;
  letter-spacing: 0.18em !important;
  transition: background 0.2s ease;
}

.nav-cta:hover { background: var(--brass) !important; color: var(--ink) !important; }
.nav-cta::after { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}

/* ===================================================
   HERO
   =================================================== */

.hero {
  padding: clamp(70px, 10vw, 140px) 0 clamp(70px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy { position: relative; min-width: 0; }

.hero-copy .kicker { margin-bottom: 28px; }

.hero-copy h1 { margin-bottom: 28px; }

.hero-copy .lede { margin: 0 0 36px; max-width: 32ch; }

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-brass {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.btn-brass:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn .tel-num {
  font-size: 15px;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover .arrow { transform: translateX(4px); }

.hero-trust {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-trust span { color: var(--brass); margin: 0 10px; }

.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  min-height: 460px;
  min-width: 0;
}

.hero-art .photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.hero-art .frame {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245, 240, 230, 0.5);
  pointer-events: none;
}

.hero-art .stamp {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 130px;
  height: 130px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  text-align: center;
  z-index: 3;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.hero-art .stamp .est { font-size: 10px; letter-spacing: 0.3em; color: var(--brass); text-transform: uppercase; }
.hero-art .stamp .year { font-size: 38px; font-style: italic; line-height: 1; margin-top: 4px; }
.hero-art .stamp .sub { font-size: 9px; letter-spacing: 0.28em; color: var(--paper-2); text-transform: uppercase; margin-top: 6px; }

.hero-shield {
  position: absolute;
  left: -160px;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
  filter: grayscale(1) contrast(1.1);
}

/* ===================================================
   HERITAGE STRIP
   =================================================== */

.heritage {
  background: var(--ink);
  color: var(--paper-2);
  padding: clamp(70px, 9vw, 120px) 0;
  position: relative;
}

.heritage::before, .heritage::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.heritage::before { top: 0; }
.heritage::after  { bottom: 0; }

.heritage .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.heritage .mark-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.heritage .shield {
  width: 440px;
  filter: brightness(1.6) contrast(0.9);
  mix-blend-mode: screen;
}

.heritage .roman-est {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass-2);
  font-size: 18px;
  letter-spacing: 0.18em;
}

.heritage h2 {
  color: var(--paper);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
  margin-bottom: 24px;
}

.heritage h2 em { font-style: italic; color: var(--brass-2); }

.heritage .lede { color: var(--paper-2); font-style: normal; font-family: var(--sans); font-size: 17px; line-height: 1.7; max-width: 56ch; }

.heritage .ledger-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid rgba(176, 138, 62, 0.3);
}

.heritage .ledger-grid > div {
  padding: 24px 20px 0 0;
  border-right: 1px solid rgba(176, 138, 62, 0.18);
}

.heritage .ledger-grid > div:last-child { border-right: 0; }

.heritage .ledger-grid .num {
  font-family: var(--serif);
  font-size: 44px;
  font-style: italic;
  color: var(--brass-2);
  line-height: 1;
  margin-bottom: 8px;
}

.heritage .ledger-grid .lbl {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-3);
}

/* ===================================================
   LOAN SERVICES — editorial alternating
   =================================================== */

.section-head {
  text-align: center;
  margin-bottom: clamp(60px, 8vw, 110px);
}

.section-head .kicker { margin-bottom: 18px; }

.section-head h2 { margin-bottom: 16px; }

.section-head .lede { margin: 0 auto; max-width: 56ch; }

.loans .editorial {
  display: grid;
  gap: clamp(80px, 10vw, 140px);
}

.editorial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.editorial-row.reverse .photo-col { order: 2; }

.photo-col {
  position: relative;
  aspect-ratio: 5/4;
}

.photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}

.photo-col .frame,
.rates-frame .chart-wrap .frame,
.consult .frame {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245, 240, 230, 0.5);
  pointer-events: none;
  z-index: 2;
}

.rates-frame .chart-wrap { position: relative; }
.rates-frame .chart-wrap .frame { border-color: rgba(176, 138, 62, 0.45); }
.consult .container { position: relative; }
.consult .frame { inset: 32px; border-color: rgba(245, 240, 230, 0.28); z-index: 1; }

.photo-col .corner-mark {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  border: 1px solid var(--brass);
  z-index: 2;
  letter-spacing: 0.04em;
}

.copy-col .roman-large {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.copy-col h3 {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin-bottom: 22px;
}

.copy-col h3 em { font-style: italic; color: var(--brass); }

.copy-col .lede { margin: 0 0 26px; font-style: normal; color: var(--ink); font-size: 17px; font-family: var(--sans); line-height: 1.7; max-width: 50ch; }

.copy-col .lede.italic { font-style: italic; font-family: var(--serif); font-size: 19px; color: var(--ink-soft); margin-bottom: 22px; }

.feature-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-2);
}

.feature-list li:last-child { border-bottom: 1px solid var(--rule); }

.feature-list .lead-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 18px;
  min-width: 28px;
  flex-shrink: 0;
  white-space: nowrap;
}

.feature-list .lead-num::before { content: "—"; margin-right: 4px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--brass);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover { color: var(--brass); }

/* ===================================================
   RATES SECTION
   =================================================== */

.rates {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.rates .container { max-width: 1100px; }

.rates-frame {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(20px, 3vw, 36px);
  position: relative;
}

.rates-frame::before,
.rates-frame::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--brass);
}
.rates-frame::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.rates-frame::after  { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }

.rates-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.rates-header .ttl {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
}

.rates-header .src {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.rates-frame .chart-wrap {
  position: relative;
  width: 100%;
  background: var(--paper);
}

/* ---------- Rate snapshot cards ---------- */

.rate-snapshot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.rate-card {
  padding: 28px 24px 26px;
  border-right: 1px solid var(--rule);
  position: relative;
  text-align: left;
}

.rate-card:last-child { border-right: 0; }

.rate-card .rc-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 14px;
}

.rate-card .rc-value {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.rate-card .rc-value .rc-pct {
  font-size: 0.5em;
  font-style: normal;
  color: var(--brass);
  font-family: var(--sans);
  font-weight: 400;
}

.rate-card .rc-value.is-trend.is-down { color: var(--ink); }
.rate-card .rc-value.is-trend .rc-arrow {
  font-size: 0.6em;
  margin-right: 6px;
  color: var(--brass);
}

.rate-card .rc-meta {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.rate-card .rc-meta .rc-prev { color: var(--ink-soft); }

.rate-card.is-loading .rc-value,
.rate-card.is-error .rc-value {
  color: var(--paper-3);
}

@media (max-width: 720px) {
  .rate-snapshot { grid-template-columns: 1fr; }
  .rate-card { border-right: 0; border-bottom: 1px solid var(--rule); }
  .rate-card:last-child { border-bottom: 0; }
}

.rates-frame .chart-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.rates-foot {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.rates-foot a { color: var(--brass); text-decoration: none; border-bottom: 1px solid var(--brass); }

.rate-disclaimer {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 28px;
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--serif);
  font-size: 17px;
}

/* ===================================================
   SPECIALTY LENDING — non-traditional programs
   =================================================== */

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.specialty-card {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.specialty-card:nth-child(3n) { border-right: 0; }
.specialty-card:nth-last-child(-n+3) { border-bottom: 0; }

.specialty-card .eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.specialty-card h3 {
  font-size: 22px;
  line-height: 1.18;
  margin-bottom: 10px;
}

.specialty-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 980px) {
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .specialty-card:nth-child(3n) { border-right: 1px solid var(--rule); }
  .specialty-card:nth-child(2n) { border-right: 0; }
  .specialty-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .specialty-card:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 720px) {
  .specialty-grid { grid-template-columns: 1fr; }
  .specialty-card { border-right: 0 !important; border-bottom: 1px solid var(--rule) !important; }
  .specialty-card:last-child { border-bottom: 0 !important; }
}

/* ===================================================
   PROCESS
   =================================================== */

.process .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.step {
  padding: 48px 36px;
  border-right: 1px solid var(--rule);
  position: relative;
}

.step:last-child { border-right: 0; }

.step .step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 72px;
  color: var(--brass);
  line-height: 0.9;
  margin-bottom: 24px;
}

.step h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.step p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* ===================================================
   TESTIMONIALS
   =================================================== */

.testimonials .reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.review {
  padding: 48px 40px;
  border-right: 1px solid var(--rule);
  position: relative;
}

.review:last-child { border-right: 0; }

.review .stars {
  color: var(--brass);
  font-size: 16px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.review .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 20px;
}

.review .author {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

/* ===================================================
   FAQ
   =================================================== */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 6px 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 34px 22px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 20px;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--brass);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "+";
  transform: rotate(45deg);
}

.faq-item summary:hover { color: var(--brass); }

.faq-item p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 26px;
  max-width: 62ch;
}

/* ===================================================
   CONSULTATION CTA
   =================================================== */

.consult {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 0;
  overflow: hidden;
}

.consult .bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/bath-marble.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: grayscale(0.4);
}

.consult .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 20, 16, 0.85), rgba(26, 20, 16, 0.95));
}

.consult .container {
  position: relative;
  z-index: 2;
  padding: clamp(100px, 14vw, 180px) var(--gutter);
  text-align: center;
}

.consult .kicker { color: var(--brass-2); }
.consult .kicker::before { background: var(--brass-2); }

.consult h2 {
  color: var(--paper);
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 24px auto 28px;
  max-width: 18ch;
}

.consult h2 em { font-style: italic; color: var(--brass-2); }

.consult .lede {
  color: var(--paper-2);
  max-width: 60ch;
  margin: 0 auto 44px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.55;
}

.consult .actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.consult .actions .btn-brass:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.consult .actions .btn-ghost {
  color: var(--paper);
  border-color: var(--paper-2);
}

.consult .actions .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ===================================================
   TEAM — PRINCIPALS
   =================================================== */

.team .principals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}

.principal {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(36px, 5vw, 60px);
  position: relative;
}

.principal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176, 138, 62, 0.18);
  pointer-events: none;
}

.principal .role {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 14px;
}

.principal h3 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.06;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}

.principal .nmls {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.principal .bio {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 32px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.contact-list .lbl {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

.contact-list a,
.contact-list .val {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.contact-list a:hover { color: var(--brass); border-color: var(--brass); }

/* ===================================================
   FOOTER
   =================================================== */

footer.foot {
  background: var(--ink);
  color: var(--paper-2);
  padding: clamp(70px, 9vw, 100px) 0 28px;
  border-top: 4px solid var(--brass);
}

footer.foot .foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

footer.foot .col h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
  font-weight: 700;
}

footer.foot .col p,
footer.foot .col a {
  font-size: 14px;
  color: var(--paper-2);
  margin: 6px 0;
  text-decoration: none;
  line-height: 1.6;
  display: block;
}

footer.foot .col a:hover { color: var(--brass-2); }

footer.foot .col .lending-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.foot .col .lending-list li {
  border-bottom: 1px solid rgba(176, 138, 62, 0.15);
  padding: 6px 0;
}

footer.foot .col .lending-list li:last-child { border-bottom: 0; }

footer.foot .foot-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

footer.foot .foot-brand img {
  width: 56px;
  height: 56px;
  filter: brightness(1.4) contrast(0.85);
  mix-blend-mode: screen;
}

footer.foot .foot-brand .nm {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--paper);
  line-height: 1;
}

footer.foot .foot-brand .sm {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 6px;
}

footer.foot .col p.motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--paper);
  max-width: 24ch;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

footer.foot .legal {
  border-top: 1px solid rgba(176, 138, 62, 0.22);
  margin-top: 56px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-3);
}

footer.foot .legal .ehl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

footer.foot .legal .ehl svg {
  width: 18px; height: 18px;
}

/* ===================================================
   MODAL — CONSULTATION FORM
   =================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open { display: flex; opacity: 1; }

.modal {
  background: var(--paper);
  max-width: 560px;
  width: 100%;
  border: 1px solid var(--brass);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(14px);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal { transform: translateY(0); }

.modal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176, 138, 62, 0.22);
  pointer-events: none;
}

.modal .close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
  z-index: 2;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal .close:hover { color: var(--brass); }

.modal h3 {
  font-size: 32px;
  line-height: 1.06;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.modal h3 em { font-style: italic; color: var(--brass); }

.modal .modal-lede {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 28px;
  font-size: 17px;
}

.modal form { display: grid; gap: 14px; }

.modal label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 6px;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  border-color: var(--brass);
}

.modal textarea { min-height: 80px; resize: vertical; }

.modal .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal .err {
  display: block;
  color: #a83a3a;
  font-size: 12px;
  margin-top: 4px;
  min-height: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: var(--serif);
  font-style: italic;
}

.modal .submit-btn {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
  padding: 18px;
}

.modal .modal-foot {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
}

.modal .success {
  text-align: center;
  padding: 28px 0;
}

.modal .success .seal {
  width: 60px; height: 60px;
  border: 1px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 28px;
}

/* ===================================================
   REVEAL ANIMATIONS
   =================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.show { opacity: 1; transform: none; }

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 4/3; min-height: 0; }
  .hero-shield { left: -200px; width: 460px; }
  .heritage .container { grid-template-columns: 1fr; }
  .editorial-row { grid-template-columns: 1fr; }
  .editorial-row.reverse .photo-col { order: 0; }
  .process .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--rule); }
  .step:last-child { border-bottom: 0; }
  .testimonials .reviews { grid-template-columns: 1fr; }
  .review { border-right: 0; border-bottom: 1px solid var(--rule); }
  .review:last-child { border-bottom: 0; }
  .team .principals { grid-template-columns: 1fr; }
  footer.foot .foot-grid { grid-template-columns: 1fr 1fr; }

  /* Nav collapses here too (not just at 720px) — the 7th nav item (Specialty)
     no longer fits a horizontal bar at tablet/small-laptop widths, and this
     is already the breakpoint where every other section goes single-column. */
  nav.main ul { display: none; }
  nav.main ul.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    padding: 24px var(--gutter);
    gap: 22px;
    z-index: 90;
  }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 720px) {
  .ledger .container { justify-content: center; text-align: center; }
  .ledger .ledger-meta { display: none; }
  .modal .row-2 { grid-template-columns: 1fr; }
  footer.foot .foot-grid { grid-template-columns: 1fr; }
  .heritage .ledger-grid { grid-template-columns: 1fr; }
  .heritage .ledger-grid > div { border-right: 0; border-bottom: 1px solid rgba(176, 138, 62, 0.18); padding: 20px 0; }
}
