/* ==========================================================================
   The Mortgage Fam — styles.css
   Warm, modern fintech. Mobile-first.
   ========================================================================== */

:root {
  /* Palette */
  --cream: #fbf7f1;
  --sand: #f4ebdf;
  --beige: #e9dccb;
  --linen: #fffdf9;
  --gold-600: #a67c26;     /* accents, large text */
  --gold-700: #80601a;     /* small text and icons, AA on cream */
  --gold-800: #6b4e12;     /* links */
  --gold: #cba550;
  --gold-100: #f4ead2;
  --black: #111010;
  --ink: #211f1c;
  --ink-soft: #45413a;
  --muted: #69635a;
  --line: #e6dccb;
  --error: #a3262a;
  --error-100: #fae4e2;

  /* Type */
  /* Each page loads Gelasio with text=f, so it supplies only the lowercase "f";
     every other letter falls through to Fraunces. */
  --font-display: "Gelasio", "Fraunces", Georgia, "Times New Roman", serif;
  --font-display-italic: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(17, 16, 16, .06), 0 2px 8px rgba(17, 16, 16, .05);
  --shadow: 0 2px 6px rgba(17, 16, 16, .05), 0 12px 32px rgba(17, 16, 16, .09);
  --shadow-lg: 0 24px 60px rgba(17, 16, 16, .16);

  --container: 1180px;
  --gutter: 16px;
  --header-h: 68px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* wins over display:flex/grid, e.g. the PMI row */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-800); text-underline-offset: 3px; }
a:hover { color: var(--gold-700); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-600); outline-offset: 3px; border-radius: 6px; }
.section--dark :focus-visible, .calc__results :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.cta-band :focus-visible { outline-color: var(--black); }
.btn:focus-visible { border-radius: 999px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--black);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.25rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.075rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
em.accent { font-family: var(--font-display-italic); font-style: italic; color: var(--gold-600); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--black); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--sand { background: var(--sand); }
.section--linen { background: var(--linen); }
.section--dark { background: var(--black); color: #ece6da; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: var(--gold); }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 1023px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background-color .2s, box-shadow .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--black); color: #fff; box-shadow: 0 6px 18px rgba(17, 16, 16, .22); }
.btn--primary:hover { background: var(--gold); color: var(--black); box-shadow: 0 10px 26px rgba(166, 124, 38, .30); }
.btn--ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn--ghost:hover { background: var(--black); color: #fff; }
.btn--light { background: var(--gold); color: var(--black); }
.btn--light:hover { background: #fff; color: var(--black); }
.site-footer .btn--primary { background: var(--gold); color: var(--black); box-shadow: none; }
.site-footer .btn--primary:hover { background: #fff; color: var(--black); text-decoration: none; }
.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 241, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(17,16,16,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--black); }
.brand:hover { color: var(--black); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.brand__sub { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--linen); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: var(--black); border-radius: 2px;
  transition: transform .25s, opacity .2s; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--cream); border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 24px;
  box-shadow: var(--shadow);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.site-nav a:not(.btn) {
  display: block; padding: 14px 4px; font-weight: 500; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--gold-700); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex !important; align-items: center; gap: 28px;
    background: none; border: 0; padding: 0; box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 4px; margin: 0; }
  .site-nav a:not(.btn) {
    padding: 8px 14px; border: 0; border-radius: 999px; font-size: .96rem; position: relative;
  }
  .site-nav a:not(.btn):hover { background: var(--sand); color: var(--black); }
  .site-nav a[aria-current="page"] { background: var(--gold-100); color: var(--gold-800); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(203,165,80,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(17,16,16,.05), transparent 60%),
    var(--cream);
}
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 64px; } }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 560px; margin-bottom: 32px; }

.hero__visual { position: relative; max-width: 540px; margin-inline: auto; width: 100%; }
.hero__art {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 5.2; background: var(--beige);
}
.hero__art svg { width: 100%; height: 100%; }
.float-card {
  position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-size: .9rem;
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--black); font-size: 1rem; }
.float-card span { color: var(--muted); font-size: .8rem; }
.float-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card__icon svg { width: 22px; height: 22px; }
.float-card--a { left: -8px; bottom: 14%; }
.float-card--b { right: -8px; top: 8%; animation-delay: -3s; }
@media (min-width: 1100px) { .float-card--a { left: -40px; } .float-card--b { right: -28px; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px);
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(203,165,80,.18), transparent 60%),
    linear-gradient(180deg, var(--sand), var(--cream));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 820px; }
.page-hero .lead { max-width: 640px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

/* ---------- Value strip ---------- */
.values { margin-top: -48px; position: relative; z-index: 2; }
.values__card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: grid; gap: 0; border: 1px solid var(--line);
}
@media (min-width: 820px) { .values__card { grid-template-columns: repeat(3, 1fr); } }
.value { padding: 28px clamp(22px, 3vw, 36px); display: flex; gap: 16px; align-items: flex-start; }
.value + .value { border-top: 1px solid var(--line); }
@media (min-width: 820px) { .value + .value { border-top: 0; border-left: 1px solid var(--line); } }
.value h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; margin-bottom: 4px; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }

.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: var(--gold-100); color: var(--gold-700);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--gold { background: var(--gold); color: var(--black); }
.icon-badge--black { background: var(--black); color: var(--gold); }
.icon-badge--stone { background: var(--beige); color: var(--black); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6c08d; }

.program-card { display: flex; flex-direction: column; gap: 14px; height: 100%; text-decoration: none; color: inherit; }
.program-card h3 { margin: 6px 0 0; }
.program-card p { color: var(--muted); margin: 0; flex: 1; }
.program-card .tag-list { margin-top: 4px; }
.program-card .link-arrow { margin-top: 8px; color: var(--gold-800); }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--sand); color: var(--ink-soft); font-size: .78rem; font-weight: 600;
}

/* ---------- Team ---------- */
.team-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.team-photos .headshot:nth-child(2) { margin-top: 48px; }
.headshot {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  aspect-ratio: 4 / 5; background: var(--beige);
  box-shadow: var(--shadow);
}
.headshot svg, .headshot img { width: 100%; height: 100%; object-fit: cover; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.headshot__label {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(255,255,255,.94); border-radius: 12px; padding: 10px 12px;
  font-size: .82rem; line-height: 1.35;
}
.headshot__label strong { display: block; color: var(--black); font-size: .95rem; }
.headshot__label span { color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2380601a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.nmls-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px; background: var(--gold-100);
  color: #6b4e12; font-weight: 600; font-size: .82rem; letter-spacing: .02em;
}

/* ---------- Process ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); display: block; margin-bottom: 12px; line-height: 1;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: .95rem; color: #cfc9be; }

/* ---------- Calculator ---------- */
.calc {
  display: grid; gap: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr .9fr; } }
.calc__form { padding: clamp(22px, 4vw, 40px); display: grid; gap: 22px; }
.calc__results {
  padding: clamp(22px, 4vw, 40px);
  background: linear-gradient(170deg, var(--black), #2b2720);
  color: #ece6da; display: flex; flex-direction: column; gap: 24px;
}
.calc__row { display: grid; gap: 22px; }
@media (min-width: 560px) { .calc__row--2 { grid-template-columns: 1fr 1fr; } .calc__row--3 { grid-template-columns: repeat(3, 1fr); } }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field label, .field .label { font-weight: 600; font-size: .92rem; color: var(--black); }
.field__hint { font-size: .8rem; color: var(--muted); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap__affix {
  position: absolute; color: var(--muted); font-weight: 500; pointer-events: none; font-size: .95rem;
}
.input-wrap__affix--pre { left: 14px; }
.input-wrap__affix--post { right: 14px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--linen);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  font-size: 1rem; -moz-appearance: textfield;
}
.input::-webkit-outer-spin-button, .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input--pre { padding-left: 30px; }
.input--post { padding-right: 34px; }
.input:hover, .select:hover, .textarea:hover { border-color: #d3c19a; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold-600); background: #fff;
  box-shadow: 0 0 0 4px rgba(166, 124, 38, .18);
}
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--linen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345413a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.textarea { min-height: 140px; resize: vertical; }

.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px;
  background: linear-gradient(to right, var(--gold-600) var(--fill, 50%), var(--beige) var(--fill, 50%));
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--gold-700); box-shadow: var(--shadow-sm);
}
.range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--gold-700);
}
.range:focus-visible { outline-offset: 6px; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--sand); padding: 5px; border-radius: 14px; border: 0; margin: 0; }
.segmented legend { padding: 0; margin-bottom: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  text-align: center; padding: 9px 6px; border-radius: 10px; cursor: pointer;
  font-weight: 600; font-size: .92rem; color: var(--ink-soft); transition: background-color .2s, color .2s, box-shadow .2s;
}
.segmented input:checked + label { background: #fff; color: var(--gold-800); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset > legend { font-weight: 600; font-size: .92rem; color: var(--black); padding: 0; margin-bottom: 8px; }

.calc__extras { border-top: 1px dashed var(--line); padding-top: 22px; }
.calc__extras summary {
  cursor: pointer; font-weight: 600; color: var(--gold-800); list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.calc__extras summary::-webkit-details-marker { display: none; }
.calc__extras summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-100); font-weight: 700; }
.calc__extras[open] summary::before { content: "–"; }
.calc__extras .calc__row { margin-top: 18px; }

.result__label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.result__big { font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 3.6rem); color: #fff; line-height: 1; margin: 8px 0 6px; font-weight: 600; letter-spacing: -.02em; }
.result__big small { font-size: 1rem; font-family: var(--font-body); color: #bdb7ac; font-weight: 500; letter-spacing: 0; }
.result__sub { color: #bdb7ac; font-size: .92rem; margin: 0; }

.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut {
  --a: 0; --b: 0; --c: 0; --d: 0;
  width: 116px; height: 116px; flex: none; border-radius: 50%;
  background: conic-gradient(
    var(--gold) 0 calc(var(--a) * 1%),
    #f6edd9 0 calc((var(--a) + var(--b)) * 1%),
    #a39c90 0 calc((var(--a) + var(--b) + var(--c)) * 1%),
    #bf6b4a 0 calc((var(--a) + var(--b) + var(--c) + var(--d)) * 1%),
    #6f695f 0 100%);
  position: relative; transition: background .3s;
}
.donut::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: #1c1a17; }
.breakdown { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; font-size: .92rem; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.breakdown li span:first-child { display: inline-flex; align-items: center; gap: 8px; color: #d6d0c5; }
.breakdown li span:last-child { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }

.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.stat-list div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px; }
.stat-list dt { font-size: .78rem; color: #bdb7ac; }
.stat-list dd { margin: 4px 0 0; color: #fff; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.calc__note { font-size: .78rem; color: #a8a297; margin: 0; }
.calc__cta { margin-top: auto; display: grid; gap: 10px; }
.calc__warn { font-size: .85rem; color: #ffb9b0; margin: 0; min-height: 1em; }

/* ---------- Loan programs page ---------- */
.program-nav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(251,247,241,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.program-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.program-nav ul::-webkit-scrollbar { display: none; }
.program-nav a {
  display: inline-block; padding: 8px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-weight: 600; font-size: .92rem; color: var(--ink-soft); border: 1px solid var(--line); background: #fff;
}
.program-nav a:hover, .program-nav a.is-active { background: var(--black); color: #fff; border-color: var(--black); }

.program { scroll-margin-top: calc(var(--header-h) + 72px); }
.program__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.program__head h2 { margin: 0; }
.program__grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .program__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; } }
.quals { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 0; box-shadow: var(--shadow-sm); }
.quals h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 16px 24px 4px; margin: 0; font-weight: 700; }
.quals dl { margin: 0; }
.quals dl div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 24px; border-top: 1px solid var(--line); }
.quals dl div:first-child { border-top: 0; }
@media (min-width: 480px) { .quals dl div { grid-template-columns: 140px 1fr; gap: 16px; } }
.quals dt { font-weight: 600; color: var(--black); font-size: .92rem; }
.quals dd { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.ideal { background: var(--sand); border-radius: var(--radius); padding: 20px 22px; margin: 20px 0 24px; }
.ideal h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.ideal ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.ideal li + li { margin-top: 4px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: .95rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--black); color: #fff; font-weight: 600; font-size: .88rem; letter-spacing: .02em; }
.compare tbody th { font-weight: 600; color: var(--black); background: var(--linen); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.table-scroll { overflow-x: auto; border-radius: var(--radius-lg); -webkit-overflow-scrolling: touch; }
.table-scroll .compare { min-width: 680px; }

/* ---------- About ---------- */
.story p { font-size: 1.06rem; }
.story .dropcap::first-letter {
  font-family: var(--font-display); float: left; font-size: 3.6rem; line-height: .9; padding: 6px 10px 0 0; color: var(--gold-600);
}
.profile { display: grid; gap: 24px; }
@media (min-width: 720px) { .profile { grid-template-columns: 260px 1fr; align-items: start; gap: 36px; } }
.profile .headshot { max-width: 320px; }
.profile__role { color: var(--muted); margin-bottom: 12px; }
.profile__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--beige); }
.timeline li { position: relative; padding: 0 0 28px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--gold-600);
}
.timeline__year { font-weight: 700; color: var(--gold-700); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.timeline h3 { font-size: 1.15rem; margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--muted); }

/* One card per row. Each photo sets its own --ratio so it keeps close to its
   natural shape; sides alternate from 640px up. */
.life-grid { gap: 24px; }
.interest { text-align: left; }
.interest--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.interest__body { padding: clamp(24px, 5vw, 64px); }
.interest--photo img { width: 100%; height: auto; object-fit: cover; order: -1; aspect-ratio: var(--ratio, 1); }
@media (min-width: 640px) {
  .interest--photo { flex-direction: row; align-items: stretch; --photo-h: clamp(300px, 38vw, 440px); min-height: var(--photo-h); }
  .interest__body { flex: 1; min-width: 0; align-self: center; }
  .interest--photo img { order: 0; flex: none; width: calc(var(--photo-h) * var(--ratio, 1)); max-width: 58%; aspect-ratio: auto; height: auto; min-height: var(--photo-h); contain: size; }
  .interest--photo:nth-child(even) img { order: -1; }
}
.interest h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 18px 0 8px; }
.interest p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 46ch; }

.editor-note {
  border: 1.5px dashed var(--gold); background: var(--gold-100); color: #6b4e12;
  border-radius: 12px; padding: 10px 14px; font-size: .85rem; margin-top: 24px;
}

/* ---------- Quote ---------- */
.quote { text-align: center; max-width: 820px; margin-inline: auto; }
.quote blockquote { margin: 0; font-family: var(--font-display-italic); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; color: var(--black); font-style: italic; }
.quote figcaption { margin-top: 18px; color: var(--muted); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--black);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-700); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; } }
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.req { color: var(--error); }
.form__status { padding: 14px 16px; border-radius: 12px; font-size: .95rem; display: none; }
.form__status.is-success { display: block; background: #f4ead2; color: #211f1c; }
.form__status.is-error { display: block; background: var(--error-100); color: var(--error); }
.field-error { color: var(--error); font-size: .82rem; min-height: 0; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--error); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold-700); flex: none; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list strong { display: block; color: var(--black); }
.info-list a { color: var(--ink-soft); text-decoration: none; }
.info-list a:hover { color: var(--gold-800); text-decoration: underline; }

.map {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10; background: var(--beige); position: relative;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.18) saturate(.9); }
@media (min-width: 960px) { .map { aspect-ratio: 21 / 8; } }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255,255,255,.38), transparent 60%),
    linear-gradient(135deg, #d8b768, #c19842);
  color: var(--ink); display: grid; gap: 28px; align-items: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--black); margin-bottom: 10px; }
.cta-band .btn--light { background: var(--black); color: #fff; }
.cta-band .btn--light:hover { background: #fff; color: var(--black); }
.cta-band .btn--outline-light { color: var(--black); border-color: var(--black); }
.cta-band .btn--outline-light:hover { background: var(--black); color: #fff; }
.cta-band p { margin: 0; max-width: 560px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #bdb7ac; padding-top: clamp(56px, 7vw, 80px); font-size: .93rem; }
.site-footer a { color: #ece6da; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand__sub { color: #a8a297; }
.footer-title { font-family: var(--font-body); color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 28px; display: grid; gap: 18px; font-size: .82rem; color: #a8a297; }
.footer-legal p { margin: 0; }
.eho { display: flex; align-items: center; gap: 14px; }
.eho svg { width: 44px; height: 44px; flex: none; color: #ece6da; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
