/* Mortgage with Martez: site styles. No JavaScript, no web fonts, no build step. */
:root {
  /* Palette: navy, orange and silver */
  --ink: #141c2e;
  --ink-soft: #4a5468;
  --navy: #15274b;
  --navy-deep: #0e1b36;
  --steel: #234a8c;
  --steel-soft: #e6ecf5;
  --orange: #ea7201;
  --orange-hover: #f5841a;
  --orange-soft: #fde9d4;
  --orange-text: #b35400; /* orange dark enough for small text on light backgrounds */
  --silver: #a6abb1;
  --paper: #f7f8fa;
  --paper-alt: #edf0f4;
  --card: #ffffff;
  --line: #dbe0e7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 39, 75, .06), 0 8px 24px -12px rgba(21, 39, 75, .2);
  --shadow-lg: 0 2px 4px rgba(14, 27, 54, .08), 0 24px 48px -20px rgba(14, 27, 54, .5);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  font: 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

a { color: var(--steel); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--orange); color: var(--navy-deep); padding: .6rem 1rem;
  border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; margin-top: .75rem;
  background: var(--orange); color: var(--navy-deep);
  border: 2px solid var(--orange);
  padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 700; line-height: 1.3; text-decoration: none; text-align: center; letter-spacing: .01em;
  box-shadow: 0 10px 24px -12px rgba(234, 114, 1, .85);
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--navy-deep); transform: translateY(-1px); }
.btn-sm { margin-top: 0; padding: .45rem 1.05rem; font-size: .92rem; box-shadow: none; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy-deep); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .6); }
.btn-light:hover { background: var(--orange-soft); border-color: var(--orange-soft); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); box-shadow: none; }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-deep);
  color: #fff;
  border-bottom: 3px solid var(--orange);
}
.site-header .wrap {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: .75rem 1.5rem; padding-block: 1rem .6rem;
}
.brand {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column; line-height: 1.15;
  color: #fff; text-decoration: none;
  font: 600 1.35rem/1.15 var(--serif); letter-spacing: .01em;
}
.brand:hover { color: #fff; }
.powered {
  font: 500 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-top: .25rem;
}
.header-cta { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 1rem; }
.phone-link { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.phone-link:hover { color: var(--orange-soft); text-decoration: underline; }
.site-header nav {
  grid-column: 1 / -1; grid-row: 2;
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: .5rem;
}
.site-header nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem;
}
.site-header nav a {
  display: block; padding: .4rem .8rem; border-radius: 999px;
  color: rgba(255, 255, 255, .82); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.site-header nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-header nav a[aria-current="page"] { color: var(--navy-deep); background: var(--orange); font-weight: 600; }

/* ---------- Typography ---------- */
main > .wrap { padding-top: 2.5rem; }
main > .wrap:last-child { padding-bottom: 4.5rem; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin: .25rem 0 1rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin: 3rem 0 .75rem; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; max-width: 68ch; }

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }

.answer {
  font-size: 1.08rem;
  background: var(--card);
  border-left: 4px solid var(--orange);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  max-width: 72ch;
}

.meta { font-size: .88rem; color: var(--ink-soft); margin-top: 2.5rem; }

/* Cards */
.grid {
  display: grid; gap: 1.1rem; margin: 1.25rem 0 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; box-shadow: var(--shadow);
}
.grid .card { display: flex; flex-direction: column; border-top: 4px solid var(--steel); }
.grid .card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.more { margin-top: auto; padding-top: 1rem; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
address.card { max-width: 32rem; line-height: 1.8; }

/* ---------- Home page ---------- */
.home { --display: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif; }
.home section { position: relative; }
.h-label {
  margin: 0 0 .6rem; display: inline-flex; align-items: center; gap: .6rem;
  font: 700 .8rem/1 var(--display); font-stretch: condensed; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-text);
}
.h-steps .h-label { color: var(--orange); }
.h-label::before { content: ""; width: 2rem; height: 3px; background: var(--orange); }
.home h2 { margin-top: 0; }

/* Hero */
.h-hero {
  color: #fff; overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(6rem, 10vw, 8rem);
  background:
    linear-gradient(115deg, transparent 62%, rgba(234, 114, 1, .95) 62%, rgba(234, 114, 1, .95) 63.2%, transparent 63.2%, transparent 64.6%, rgba(166, 171, 177, .55) 64.6%, rgba(166, 171, 177, .55) 65.2%, transparent 65.2%),
    radial-gradient(800px 500px at 85% 20%, rgba(35, 74, 140, .55), transparent 65%),
    var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5rem), 0 100%);
}
.h-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 14px);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.h-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem 4rem; align-items: center;
}
.h-kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.25rem;
  font: 700 .85rem/1 var(--display); font-stretch: condensed; letter-spacing: .18em; text-transform: uppercase; color: var(--silver);
}
.h-kicker span {
  padding: .4rem .55rem; border: 1.5px solid var(--orange); border-radius: 6px;
  color: #fff; letter-spacing: .1em;
}
.h-kicker span:last-of-type { margin-right: .4rem; }
.h-hero h1 {
  color: #fff; max-width: 15ch; margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.02em;
}
.h-hero .lede { color: rgba(255, 255, 255, .84); max-width: 54ch; }
.h-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.h-actions .btn { margin-top: 0; }
.h-note { font-size: .95rem; color: rgba(255, 255, 255, .7); }
.h-note a { color: #fff; }

/* Qualify panel with tabs */
.h-qualify {
  background: var(--card); color: var(--ink);
  border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow-lg);
  position: relative;
}
.h-qualify::before {
  content: ""; position: absolute; left: 1.75rem; right: 1.75rem; top: -6px; height: 6px;
  border-radius: 6px 6px 0 0; background: linear-gradient(90deg, var(--orange) 0 70%, var(--silver) 70% 78%, transparent 78%);
}
.h-qualify h2 { font-size: 1.55rem; margin: 0 0 .2rem; }
.h-qualify > p { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: .95rem; }
.h-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.h-tab {
  position: relative; display: flex; flex-direction: column; gap: .2rem;
  padding: 1rem .95rem .95rem; min-height: 8.5rem;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper);
  color: var(--navy); text-decoration: none; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.h-tab::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.h-tab svg {
  width: 1.7rem; height: 1.7rem; margin-bottom: .45rem;
  fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.h-tab b { font: 700 1.02rem/1.2 var(--serif); }
.h-tab span { font-size: .82rem; line-height: 1.35; color: var(--ink-soft); }
.h-tab:hover { transform: translateY(-3px); border-color: var(--navy); background: #fff; box-shadow: var(--shadow); color: var(--navy); }
.h-tab:hover::after, .h-tab:focus-visible::after { transform: scaleX(1); }
.h-tab:active { transform: translateY(-1px); }
.h-start { display: block; margin-top: 1.1rem; }
.h-broker {
  display: flex; align-items: center; gap: .8rem;
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.h-broker img { width: 2.9rem; height: 2.9rem; object-fit: cover; object-position: 50% 20%; border-radius: 50%; border: 2px solid var(--orange); }
.h-broker p { margin: 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.35; }
.h-broker b { display: block; font: 700 .98rem/1.3 var(--serif); color: var(--navy); }

/* At-a-glance ribbon overlapping the hero */
.h-ribbon { margin-top: -4.25rem; z-index: 2; }
.h-ribbon ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  border-bottom: 4px solid var(--orange);
}
.h-ribbon li { padding: 1.5rem 1.4rem; }
.h-ribbon li + li { border-left: 1px solid var(--line); }
.h-ribbon b { display: block; font: 800 2.4rem/1 var(--display); font-stretch: condensed; color: var(--navy); letter-spacing: -.01em; }
.h-ribbon span { display: block; margin-top: .45rem; font-size: .88rem; color: var(--ink-soft); line-height: 1.4; }

/* Loan programs: sticky heading + asymmetric card grid */
.h-programs { padding-block: clamp(4rem, 8vw, 6rem); }
.h-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem 4rem; align-items: start; }
.h-split-head { position: sticky; top: 2rem; }
.h-split-head h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); }
.h-split-head p:not(.h-label) { color: var(--ink-soft); }
.h-split-head .btn { margin-top: .5rem; }
.h-program-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; counter-reset: prog; }
.h-program {
  counter-increment: prog; position: relative;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem 1.5rem 1.35rem; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.h-program::before {
  content: counter(prog, decimal-leading-zero);
  font: 800 .8rem/1 var(--display); font-stretch: condensed; letter-spacing: .16em; color: var(--orange-text); margin-bottom: .8rem;
}
.h-program:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.h-program h3 { font-size: 1.3rem; }
.h-program p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.h-feature {
  grid-column: 1 / -1; padding: 2rem; border: 0; color: #fff;
  background:
    linear-gradient(115deg, transparent 72%, rgba(234, 114, 1, .9) 72%, rgba(234, 114, 1, .9) 73.5%, transparent 73.5%),
    var(--navy);
}
.h-feature h3 { color: #fff; font-size: 1.75rem; }
.h-feature p { color: rgba(255, 255, 255, .84); font-size: 1.05rem; max-width: 44ch; }
.h-feature::before { color: var(--orange); }
.h-feature .more { color: #fff; }
.h-feature .more:hover { color: var(--orange-soft); }
.h-wide { grid-column: 1 / -1; }

/* Broker explainer band */
.h-explain { background: var(--paper-alt); border-block: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 5rem); }
.h-explain-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1.5rem 4rem; align-items: start; }
.h-explain h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.08; }
.h-explain .answer { font-size: 1.15rem; border-left-width: 5px; border-left-color: var(--orange); }

/* Why Martez with portrait */
.h-why { padding-block: clamp(4rem, 8vw, 6rem); }
.h-why-grid { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 3rem 5rem; align-items: center; }
.h-portrait { margin: 0; position: relative; }
.h-portrait::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border-radius: 20px;
  background: repeating-linear-gradient(115deg, var(--orange) 0 2px, transparent 2px 12px);
  opacity: .5;
}
.h-portrait img {
  position: relative; display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow-lg);
}
.h-portrait figcaption {
  position: absolute; left: -1rem; bottom: 1.5rem;
  background: var(--navy); color: #fff; padding: .75rem 1.1rem; border-radius: 12px; box-shadow: var(--shadow-lg);
  font: 700 1.05rem/1.25 var(--serif); border-left: 4px solid var(--orange);
}
.h-portrait figcaption span { display: block; font: 500 .75rem/1.4 var(--sans); letter-spacing: .06em; color: var(--silver); }
.h-why h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); }
.h-values { list-style: none; margin: 1.5rem 0 1.5rem; padding: 0; display: grid; gap: 1.25rem; }
.h-values li { position: relative; padding-left: 3rem; color: var(--ink-soft); }
.h-values li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea7201' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 1rem no-repeat;
}
.h-values b { display: block; font: 700 1.15rem/1.3 var(--serif); color: var(--navy); margin-bottom: .15rem; }

/* How it works timeline */
.h-steps {
  color: #fff; padding-block: clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(700px 400px at 10% 0%, rgba(35, 74, 140, .6), transparent 65%),
    var(--navy-deep);
}
.h-steps-head { max-width: 40rem; margin-bottom: 3rem; }
.h-steps h2 { color: #fff; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); }
.h-steps-head p:not(.h-label) { color: rgba(255, 255, 255, .78); }
ol.h-timeline {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
}
ol.h-timeline::before {
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 1.5rem; height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(166, 171, 177, .5));
}
.h-timeline li { position: relative; }
.h-timeline .num {
  position: relative; display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.25rem;
  border-radius: 50%; background: var(--orange); color: var(--navy-deep);
  font: 800 1.3rem/1 var(--display); font-stretch: condensed;
  box-shadow: 0 0 0 6px var(--navy-deep);
}
.h-timeline h3 { color: #fff; font-size: 1.2rem; }
.h-timeline p { margin: 0; color: rgba(255, 255, 255, .74); font-size: .97rem; }
.h-steps-more { margin: 2.5rem 0 0; }
.h-steps .more { color: var(--orange); padding-top: 0; }
.h-steps .more:hover { color: #fff; }

/* Common questions */
.h-faq { padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; }
.h-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 4rem; align-items: start; }
.h-faq h2 { font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.4rem); }
.h-faq-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.h-faq-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%;
  padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  color: var(--navy); font: 600 1.02rem/1.35 var(--serif); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.h-faq-links a::after { content: "\2192"; color: var(--orange); font-family: var(--sans); font-weight: 700; transition: transform .2s ease; }
.h-faq-links a:hover { border-color: var(--orange); color: var(--navy); }
.h-faq-links a:hover::after { transform: translateX(4px); }
.h-faq .meta { grid-column: 1 / -1; margin-top: 1rem; }

/* Closing call to action */
.h-cta {
  margin-top: 2.5rem; text-align: center; color: #fff;
  padding-block: clamp(4rem, 8vw, 5.5rem);
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 14px),
    linear-gradient(115deg, var(--orange) 0 11%, var(--navy) 11% 100%);
  clip-path: polygon(0 2.5rem, 100% 0, 100% 100%, 0 100%);
}
.h-cta h2 { color: #fff; margin: 0 0 .5rem; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); }
.h-cta p { margin: 0 auto 1.5rem; color: rgba(255, 255, 255, .84); }
.h-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.h-cta .btn { margin-top: 0; }

/* Entrance motion */
@keyframes h-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.h-hero-copy > * { animation: h-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.h-hero-copy > :nth-child(2) { animation-delay: .08s; }
.h-hero-copy > :nth-child(3) { animation-delay: .16s; }
.h-hero-copy > :nth-child(4) { animation-delay: .24s; }
.h-hero-copy > :nth-child(5) { animation-delay: .32s; }
.h-qualify { animation: h-rise .8s .2s cubic-bezier(.2, .7, .2, 1) both; }
.h-tab { animation: h-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.h-tab:nth-child(1) { animation-delay: .35s; }
.h-tab:nth-child(2) { animation-delay: .42s; }
.h-tab:nth-child(3) { animation-delay: .49s; }
.h-tab:nth-child(4) { animation-delay: .56s; }
@supports (animation-timeline: view()) {
  .h-program, .h-timeline li, .h-values li, .h-faq-links li {
    animation: h-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
  }
}

@media (max-width: 960px) {
  .h-hero-grid { grid-template-columns: 1fr; }
  .h-qualify { max-width: 36rem; }
  .h-split, .h-explain-grid, .h-faq-grid { grid-template-columns: 1fr; }
  .h-split-head { position: static; }
  .h-why-grid { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 2.5rem 3rem; }
  ol.h-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  ol.h-timeline::before { display: none; }
}
@media (max-width: 720px) {
  .h-ribbon ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-ribbon li + li { border-left: 0; }
  .h-ribbon li:nth-child(even) { border-left: 1px solid var(--line); }
  .h-ribbon li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .h-why-grid { grid-template-columns: 1fr; }
  .h-portrait { max-width: 20rem; }
}
@media (max-width: 640px) {
  .h-hero { background: radial-gradient(500px 400px at 90% 10%, rgba(35, 74, 140, .55), transparent 65%), var(--navy); }
  .h-actions .btn { flex: 1 1 12rem; }
  .h-qualify { padding: 1.35rem; }
  .h-tab { min-height: 0; }
  .h-program-list, .h-faq-links { grid-template-columns: 1fr; }
  .h-feature { padding: 1.5rem; }
  .h-cta { background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 14px), var(--navy); }
  ol.h-timeline { grid-template-columns: 1fr; }
  .h-portrait figcaption { left: .75rem; }
}
@media (max-width: 400px) {
  .h-tabs { grid-template-columns: 1fr; }
}

/* ---------- Inner pages ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--paper-alt), var(--paper));
  border-bottom: 1px solid var(--line);
  padding-block: 2.5rem 2.75rem;
}
.page-hero .btn { margin-right: .5rem; }

/* About page bio with headshot */
.bio { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1.5rem 2.75rem; align-items: start; margin-top: 2.5rem; }
.bio h2 { margin-top: 0; }
.headshot {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 4px solid #fff; outline: 1px solid var(--line);
  box-shadow: var(--shadow-lg); border-bottom: 6px solid var(--orange);
}

/* Key facts */
dl {
  display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr;
  margin: 1.25rem 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
dt, dd { margin: 0; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
dt { font-weight: 600; color: var(--navy); background: #f1f4f8; }
dt:first-of-type, dt:first-of-type + dd { border-top: 0; }

/* Table */
table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.25rem 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); font-size: .98rem;
}
caption { caption-side: bottom; text-align: left; padding: .75rem .25rem 0; margin: 0; }
th, td { text-align: left; vertical-align: top; padding: .9rem 1.1rem; border-top: 1px solid var(--line); }
thead th {
  border-top: 0; background: var(--navy); color: #fff;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
tbody th { font-family: var(--serif); color: var(--navy); font-size: 1.05rem; }
tbody tr:nth-child(even) { background: #f6f8fb; }

/* Numbered steps (How It Works page) */
main > .wrap > ol {
  list-style: none; padding: 0; margin: 2rem 0; counter-reset: step;
  display: grid; gap: 1rem;
}
main > .wrap > ol > li {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.25rem 4.75rem; box-shadow: var(--shadow);
}
main > .wrap > ol > li::before {
  content: counter(step);
  position: absolute; left: 1.25rem; top: 1.2rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--orange-soft);
  font: 700 1.1rem/1 var(--serif);
}
main > .wrap > ol > li h2 { margin: .2rem 0 .35rem; font-size: 1.25rem; }
main > .wrap > ol > li p { margin: 0; color: var(--ink-soft); }

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .88rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--silver); }

/* Question anchors */
h2[id] { scroll-margin-top: 1.5rem; }
h2[id]:target { color: var(--steel); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep); color: rgba(255, 255, 255, .78);
  padding-block: 3.25rem 3rem; font-size: .93rem;
}
.site-footer a { color: var(--orange-soft); }
.site-footer a:hover { color: #fff; }
.site-footer strong { color: #fff; }
.site-footer p { max-width: none; }
.fgrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 2rem 2.5rem; }
.site-footer h3 {
  margin: 0 0 .85rem; color: #fff;
  font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; overflow-wrap: anywhere; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footlogo { margin-bottom: 1.1rem; }
.edge-mark {
  display: inline-flex; flex-direction: column; line-height: 1.2;
  padding: .6rem .9rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px;
}
.edge-name { font: 700 1rem/1.2 var(--serif); color: #fff; letter-spacing: .02em; }
.edge-nmls { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.legal {
  display: flex; align-items: flex-start; gap: 1.25rem;
  margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14);
}
.eho {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: .35rem;
  margin: 0; width: 6.5rem; text-align: center;
  font-size: .66rem; font-weight: 700; line-height: 1.25; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.eho img { display: block; }
.disclosure { margin: 0 0 .6rem; font-size: .82rem; color: rgba(255, 255, 255, .68); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header .wrap { grid-template-columns: 1fr; }
  .header-cta { grid-column: 1; grid-row: 2; justify-content: space-between; }
  .site-header nav { grid-row: 3; }
  .site-header nav ul { gap: .15rem; }
  .site-header nav a { padding: .4rem .6rem; font-size: .9rem; }
  dl { grid-template-columns: 1fr; }
  dd { border-top: 0; padding-top: 0; }
  dt { background: transparent; padding-bottom: .25rem; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  main > .wrap > ol > li { padding-left: 1.4rem; padding-top: 4rem; }
  main > .wrap > ol > li::before { top: 1.1rem; left: 1.4rem; }
  .page-hero .btn { display: block; margin-right: 0; }
  .fgrid { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .headshot { max-width: 16rem; }
  .legal { flex-direction: column; }
  .eho { flex-direction: row; width: auto; text-align: left; }
}

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

@media print {
  .site-header nav, .header-cta, .skip, .btn, .h-qualify, .h-cta { display: none; }
  .h-hero, .h-steps, .site-header, .site-footer { background: none; color: #000; clip-path: none; }
  .h-hero h1, .h-hero .lede, .h-note, .h-steps h2, .h-steps p, .h-timeline h3, .site-footer, .site-footer strong, .site-footer h3 { color: #000; }
}
