/* ==========================================================================
   Ink Mortgage Group – inner pages, calculators, contact and blog.
   Uses the tokens defined in ink.css.
   ========================================================================== */
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.narrow, .container.narrow { max-width: 780px; }
.fineprint.left { text-align: left; max-width: none; }
.has-menu.is-current > .menu-toggle { color: var(--blue-bright); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-legal a { color: #9aa6c8; }
.footer-legal a:hover { color: #fff; }
[hidden] { display: none !important; }

/* ---------- page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #c9d3ee;
  background: radial-gradient(circle at 85% -10%, rgba(44,116,255,.35), transparent 45%), linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #22306a);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4.2rem);
}
.page-hero-grid { display: grid; gap: 3rem; align-items: center; }
.page-hero.has-image .page-hero-grid { grid-template-columns: 1.2fr .8fr; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 1rem; max-width: 820px; }
.page-hero-lead { font-size: 1.08rem; color: #c9d3ee; max-width: 700px; }
.page-hero-lead strong { color: #fff; font-weight: 600; }
.page-hero-lead a { color: #9fc0ff; }
.page-hero .hero-actions { margin-top: 1.6rem; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.08); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .85rem; margin-bottom: 1.2rem; }
.crumbs a { color: #9fb0d8; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #fff; }
.crumbs i { font-size: .65rem; color: #6c7aa3; }

/* ---------- prose (imported page text) ---------- */
.prose { color: var(--text); font-size: 1.02rem; line-height: 1.75; overflow-wrap: break-word; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.prose h4 { font-size: 1.05rem; margin: 1.3em 0 .4em; }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(0,94,184,.3); text-underline-offset: 3px; }
.prose a:hover { color: var(--blue-bright); text-decoration-color: currentColor; }
.prose strong { color: var(--heading); font-weight: 600; }
.prose ul, .prose ol, .bl-prose ul, .bl-prose ol { padding-left: 1.35em; margin: 0 0 1.1em; }
.prose ul, .bl-prose ul { list-style: disc; }
.prose ol, .bl-prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue-bright); }
.prose figure, .bl-prose figure { margin: 1.5em 0; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.2em 0; padding: 1rem 1.3rem; border-left: 4px solid var(--blue-bright); background: var(--bg-tint); border-radius: 0 12px 12px 0; }
.prose-sm { font-size: .93rem; line-height: 1.65; color: var(--muted); }
.prose-sm p { margin-bottom: .6em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 1.2em 0; background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.table-wrap th, .table-wrap td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: var(--bg-tint); color: var(--heading); font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }

.section-head-left { text-align: left; margin-left: 0; }
.section-body { display: grid; gap: 1.4rem; }
.section-body.narrow { max-width: 820px; }
.block-heading { font-size: 1.25rem; margin: .6rem 0 -.4rem; }
.block-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow); max-height: 460px; width: 100%; object-fit: cover; }

/* ---------- feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-card { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.section-tint .feature-card { border-color: transparent; box-shadow: var(--shadow-sm); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
a.feature-card:hover .link-arrow i { transform: translateX(4px); }
.feature-card h3 { font-size: 1.08rem; margin: 0 0 .4rem; }
.feature-body { display: flex; flex-direction: column; flex: 1; }
.feature-body .prose { flex: 1; }
.feature-body .link-arrow { margin-top: .8rem; }
.feature-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; color: #fff; background: linear-gradient(140deg, var(--blue-bright), var(--navy)); font-size: .95rem; }
.feature-grid.has-images .feature-card { padding: 0; overflow: hidden; gap: 0; }
.feature-grid.has-images .feature-body { padding: 1.2rem 1.3rem 1.4rem; }
.feature-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feature-card:hover .feature-media img { transform: scale(1.05); }
.explain { margin-top: 2.5rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: .7rem; max-width: 900px; }
.faq-group { font-size: 1.15rem; margin: 1.4rem 0 .2rem; color: var(--blue); }
.faq-group:first-child { margin-top: 0; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { border-color: #c7d7fb; box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--heading); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-tint); color: var(--blue-bright); transition: transform .2s; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item .prose { padding: 0 1.2rem 1.1rem; font-size: .97rem; }

/* ---------- article layout (loan programs, legal) ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.article-main { display: grid; gap: 1.2rem; min-width: 0; }
.article-main .prose { font-size: 1.05rem; }
.article-h2 { font-size: 1.55rem; margin: 1rem 0 0; }
.article-main > .article-h2:first-child { margin-top: 0; }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.1rem; }
.aside-cta { padding: 1.6rem 1.5rem; border-radius: var(--radius-lg); color: #c9d3ee; background: linear-gradient(150deg, var(--navy-soft), var(--navy-deep)); box-shadow: var(--shadow); }
.aside-eyebrow { margin: 0 0 .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9fc0ff; }
.aside-title { margin: 0 0 .6rem; font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: #fff; line-height: 1.3; }
.aside-cta > p:not([class]) { font-size: .92rem; margin-bottom: 1.1rem; }
.aside-phone { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: .8rem; color: #fff; font-weight: 600; font-size: .93rem; }
.aside-phone:hover { color: #9fc0ff; }
.aside-box { padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.aside-label { margin: 0 0 .7rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.aside-links { display: grid; margin-bottom: .9rem; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--heading); font-size: .93rem; }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links a i.bi-chevron-right { font-size: .7rem; color: var(--muted); transition: transform .2s; }
.aside-links a:hover { color: var(--blue-bright); }
.aside-links a:hover i.bi-chevron-right { transform: translateX(3px); color: var(--blue-bright); }
.aside-links span i { color: var(--blue-bright); margin-right: .3rem; }
.note-box { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 12px; background: var(--bg-tint); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); margin-top: 1rem; }
.note-box i { color: var(--blue); font-size: 1.1rem; }
.note-box p { margin: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 2rem; align-items: start; }
.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.contact-form-card h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.contact-form-card .muted { margin-bottom: 1.4rem; font-size: .93rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field > span em { color: var(--red); font-style: normal; }
.field textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; color: var(--heading); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(44,116,255,.15); }
.choice-row { border: 0; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.choice-row legend { font-size: .82rem; font-weight: 600; color: var(--heading); margin-bottom: .45rem; padding: 0; }
.choice { white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .92rem; color: var(--heading); }
.choice:has(input:checked) { border-color: var(--blue-bright); background: var(--blue-tint); }
.choice input { accent-color: var(--blue-bright); }
.inquiry-form .btn { margin-top: .4rem; }
.contact-info { display: grid; gap: .8rem; }
.contact-tile { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--text); }
a.contact-tile:hover { border-color: var(--blue-bright); color: var(--text); }
.contact-tile > i { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-tint); color: var(--blue-bright); font-size: 1.15rem; }
.contact-tile strong, .contact-apply strong { display: block; font-family: var(--font-head); color: var(--heading); font-size: .93rem; }
.contact-tile span { font-size: .9rem; color: var(--muted); }
.contact-apply { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--radius); background: linear-gradient(140deg, var(--blue-bright), var(--blue)); color: #fff; }
.contact-apply:hover { color: #fff; box-shadow: var(--shadow); }
.contact-apply > i:first-child { font-size: 1.4rem; }
.contact-apply > i:last-child { margin-left: auto; }
.contact-apply strong, .contact-apply span { color: #fff; font-size: .9rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--bg-tint); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- thank you ---------- */
.thankyou { text-align: center; padding: clamp(4rem, 9vw, 7rem) 0; }
.thankyou-icon { width: 84px; height: 84px; margin: 0 auto 1.4rem; display: grid; place-items: center; border-radius: 50%; background: #e8f7ee; color: #16a34a; font-size: 2.6rem; }
.thankyou h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.hero-actions.center { justify-content: center; }

/* ---------- calculators ---------- */
.calc-app { display: grid; gap: 1.4rem; }
.calc-tabs { display: inline-flex; gap: .3rem; padding: .3rem; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); justify-self: start; }
.calc-tabs button { border: 0; background: none; padding: .6rem 1.3rem; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--text); cursor: pointer; }
.calc-tabs button.is-active { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.calc-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.5rem; align-items: start; }
.calc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.calc-h { font-size: 1.05rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .5rem; }
.calc-h i { color: var(--blue-bright); }
.calc-panel .calc-fields + .calc-h { margin-top: .6rem; }
.calc-panel .calc-fields { grid-template-columns: repeat(2, 1fr); }
.field-hint { display: block; font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.calc-tip { margin: .4rem 0 0; padding: .8rem 1rem; border-radius: 10px; background: var(--blue-tint); color: var(--navy); font-size: .9rem; }
.calc-tip i { color: var(--blue-bright); margin-right: .3rem; }
.calc-summary { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 4px solid var(--blue-bright); }
.calc-label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.calc-total { font-family: var(--font-head); font-size: clamp(2.2rem, 1.6rem + 1.6vw, 2.8rem); color: var(--navy); line-height: 1.15; margin: .2rem 0 1rem; }
.calc-summary .calc-breakdown div:last-child { border-top: 0; padding-top: 0; margin-top: 0; }
.dot-mi, [data-bar="mi"] { background: var(--gold); }
.dot-hoa, [data-bar="hoa"] { background: #94a3b8; }
[data-bar="pi"] { background: var(--blue-bright); }
[data-bar="tax"] { background: var(--navy); }
[data-bar="ins"] { background: var(--red); }
.calc-facts { margin: 1.2rem 0 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; font-size: .88rem; }
.calc-facts div { display: flex; justify-content: space-between; gap: 1rem; }
.calc-facts dt { color: var(--muted); }
.calc-facts dd { margin: 0; font-weight: 600; color: var(--heading); text-align: right; font-variant-numeric: tabular-nums; }
.amort, .fee-editor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.amort summary, .fee-editor summary { cursor: pointer; padding: 1rem 1.2rem; font-family: var(--font-head); font-weight: 600; color: var(--heading); list-style: none; display: flex; align-items: center; gap: .5rem; }
.amort summary::-webkit-details-marker, .fee-editor summary::-webkit-details-marker { display: none; }
.amort summary i, .fee-editor summary i { color: var(--blue-bright); }
.amort .table-wrap { margin: 0 1.2rem 1.2rem; max-height: 440px; overflow-y: auto; }
.amort td:last-child, .amort th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
[data-calc="payment"] .amort td, [data-calc="payment"] .amort th { text-align: right; font-variant-numeric: tabular-nums; }
[data-calc="payment"] .amort td:first-child, [data-calc="payment"] .amort th:first-child { text-align: left; }
.amort tr.row-group td { text-align: left !important; background: var(--bg-tint); font-weight: 600; color: var(--heading); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.amort tr.row-total td { font-weight: 700; color: var(--navy); border-top: 2px solid var(--line); }
[data-calc="closing"] .amort td:nth-child(2) { color: var(--muted); }
.fee-editor { margin-top: 1.2rem; border-style: dashed; }
.fee-editor[open] { padding-bottom: .6rem; }
.fee-editor .calc-fields { padding: 0 1.2rem; }
.fee-group { margin: .4rem 1.2rem .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- resources ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.guide-card:hover .link-arrow i { transform: translateX(4px); }
.guide-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.guide-card > div { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.guide-card p { font-size: .92rem; color: var(--muted); flex: 1; }
.tools-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: center; }
.tool-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tool-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #c9d3ee; transition: background .2s, transform .2s; }
.tool-card:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-3px); }
.tool-card i { font-size: 1.6rem; color: #7fb0ff; margin-bottom: .4rem; }
.tool-card strong { color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.tool-card span { font-size: .88rem; }
.post-meta { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.post-meta .post-tag { margin: 0; }
.post-body h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- pagination ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pager-btn { min-width: 42px; height: 42px; padding: 0 .8rem; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--heading); font-weight: 600; font-size: .93rem; }
a.pager-btn:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.pager-btn.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager-btn.is-disabled { opacity: .4; }
.pager-gap { display: grid; place-items: center; padding: 0 .3rem; color: var(--muted); }

/* ---------- blog module, recoloured for Ink Mortgage ---------- */
body .bl { --bl-navy: #1c244b; --bl-blue: #2c74ff; --bl-btn: #005eb8; --bl-text: #324a6d; --bl-muted: #64748b; --bl-line: #e2e8f0; --bl-soft: #f3f5f8; }
.bl .bl-hero, .bl .bl-post-head { margin-top: 0; }
.bl .bl-aside { top: calc(var(--header-h) + 24px); }
.bl .bl-cta { background: linear-gradient(150deg, var(--navy-soft), var(--navy-deep)); }
.bl .bl-cta-eyebrow { color: #9fc0ff; }
.bl .bl-prose h2, .bl .bl-prose h3 { scroll-margin-top: calc(var(--header-h) + 30px); }
.bl .bl-prose figure img { border-radius: 14px; }
.bl .bl-search button { cursor: pointer; }
.bl-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.bl-cats a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--heading); font-size: .88rem; font-weight: 500; }
.bl-cats a span { font-size: .75rem; color: var(--muted); }
.bl-cats a:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.bl-cats a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.bl-cats a.is-active span { color: #c9d3ee; }
.bl .note-box { margin-top: 2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .feature-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
}
@media (max-width: 960px) {
  .page-hero.has-image .page-hero-grid, .article-layout, .contact-grid, .tools-row { grid-template-columns: 1fr; }
  .page-hero-media { display: none; }
  .article-aside { position: static; }
  .guide-grid, .feature-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .form-grid, .calc-panel .calc-fields, .guide-grid, .feature-grid.cols-3, .feature-grid.cols-4, .tool-cards { grid-template-columns: 1fr; }
  .calc-tabs { justify-self: stretch; }
  .calc-tabs button { flex: 1; padding: .6rem .5rem; }
}
[data-calc="closing"] .amort .table-wrap { max-height: none; }
.amort tr.row-total td:first-child { text-align: left; }

/* ---------- sections with a photo, lender logos ---------- */
.split-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin: 0; }
.split .section-body { gap: 1.1rem; }
.logo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.logo-tile { display: grid; place-items: center; height: 92px; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.logo-tile:hover { box-shadow: var(--shadow-sm); border-color: transparent; }
.logo-tile img { max-height: 52px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* ==========================================================================
   About page
   ========================================================================== */
.about-hero {
  position: relative; overflow: hidden; color: #c9d3ee;
  background: radial-gradient(circle at 90% 0%, rgba(44,116,255,.4), transparent 45%), radial-gradient(circle at 0% 100%, rgba(200,16,46,.18), transparent 40%), linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #22306a);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(6rem, 9vw, 7.5rem);
}
.about-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-hero h1 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: 1.1rem; }
.about-lead { font-size: 1.08rem; color: #c9d3ee; max-width: 620px; }
.about-hero .trust-row { margin-top: 1.6rem; }
.about-hero-media { position: relative; }
.about-hero-media > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); border: 6px solid rgba(255,255,255,.08); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; background: #fff;
  border-radius: 16px; box-shadow: 0 20px 40px -18px rgba(10,16,40,.55); color: var(--heading);
}
.float-card strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: .8rem; }
.float-card-top { top: 26px; left: -28px; }
.float-card-bottom { bottom: 28px; right: -22px; }
.float-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue-bright); font-size: 1.2rem; }
.float-icon-red { background: var(--red-soft); color: var(--red); }

.about-stats {
  position: relative; z-index: 2; margin-top: -4.2rem; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.about-stat { padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: .3rem; }
.about-stat + .about-stat { border-left: 1px solid var(--line); }
.about-stat strong { font-family: var(--font-head); font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); color: var(--navy); line-height: 1; display: flex; align-items: center; gap: .2rem; }
.about-stat strong i { font-size: .6em; color: var(--gold); }
.about-stat span { font-size: .88rem; color: var(--muted); line-height: 1.45; }

.about-meet-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.portrait-card { margin: 0; position: relative; }
.portrait-frame { position: relative; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--blue-tint), #fff 60%); box-shadow: var(--shadow-lg); }
.portrait-frame::before { content: ""; position: absolute; inset: auto -30% -40% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(44,116,255,.18), transparent 65%); }
.portrait-frame img { position: relative; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center top; }
.portrait-card figcaption {
  position: relative; margin: -2.6rem 1.4rem 0; padding: 1rem 1.2rem; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow); border-left: 4px solid var(--red); display: grid; gap: .15rem;
}
.portrait-card figcaption strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--heading); }
.portrait-card figcaption span { font-size: .86rem; color: var(--muted); }
.portrait-link { margin-top: .35rem; font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.portrait-link i { color: var(--gold); }
.about-meet-copy h2 { margin-bottom: 1rem; }
.about-meet-copy .prose { font-size: 1.06rem; }
.skill-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.skill-chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); font-size: .88rem; font-weight: 500; color: var(--heading); }
.skill-chips i { color: var(--blue-bright); }

.about-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.about-value { position: relative; padding: 2rem 1.5rem 1.7rem; background: #fff; border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.about-value::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue-bright), var(--navy)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.about-value:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.about-value:hover::after { transform: scaleX(1); }
.about-value-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: linear-gradient(140deg, var(--blue-bright), var(--navy)); margin-bottom: 1.2rem; box-shadow: 0 12px 24px -12px rgba(44,116,255,.8); }
.about-value h3 { font-size: 1.12rem; margin-bottom: .5rem; }

.lead-prose { font-size: 1.06rem; color: var(--muted); margin-bottom: 1.4rem; }
.checklist-cards { grid-template-columns: 1fr 1fr; gap: .7rem; }
.checklist-cards li { padding: .85rem 1rem; background: var(--bg-tint); border-radius: 12px; font-size: .93rem; line-height: 1.45; }

/* ---------- lenders band ---------- */
.lenders { padding: clamp(3.5rem, 6vw, 5rem) 0; overflow: hidden; }
.lenders-head { text-align: center; max-width: 680px; margin: 0 auto 2.4rem; }
.lenders-head .eyebrow::before { display: none; }
.lenders-head p { color: var(--muted); margin: 0; }
.lenders-track {
  display: flex; width: max-content;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.lenders-row { display: flex; gap: 1.25rem; padding-right: 1.25rem; animation: lenders-scroll 38s linear infinite; }
.lenders-track:hover .lenders-row { animation-play-state: paused; }
.lender-card {
  flex: none; width: 230px; height: 120px; display: grid; place-items: center; padding: 1.2rem 1.6rem;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.lender-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c7d7fb; }
.lender-card img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
@keyframes lenders-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .lenders-track { width: auto; -webkit-mask-image: none; mask-image: none; justify-content: center; }
  .lenders-row { animation: none; flex-wrap: wrap; justify-content: center; padding: 0 20px; }
  .lenders-row[aria-hidden="true"] { display: none; }
}

@media (max-width: 1100px) {
  .about-values { grid-template-columns: repeat(2, 1fr); }
  .float-card-top { left: 12px; }
  .float-card-bottom { right: 12px; }
}
@media (max-width: 960px) {
  .about-hero-grid, .about-meet-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stat:nth-child(3) { border-left: 0; }
  .about-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .portrait-card { max-width: 440px; }
}
@media (max-width: 600px) {
  .about-values, .checklist-cards { grid-template-columns: 1fr; }
  .lender-card { width: 180px; height: 100px; }
  .float-card { padding: .65rem .85rem; }
}

/* ---------- payment estimate PDF ---------- */
.btn-pdf { margin-top: .6rem; }
.btn-pdf i { color: var(--red); font-size: 1.05rem; }
.pdf-dialog { width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(10,16,40,.55); color: var(--text); }
.pdf-dialog::backdrop { background: rgba(18,25,55,.55); backdrop-filter: blur(4px); }
.pdf-dialog[open] { animation: pdf-pop .35s cubic-bezier(.22,1,.36,1); }
.pdf-dialog-body { position: relative; padding: 2rem 1.8rem 1.6rem; border-top: 4px solid var(--red); }
.pdf-dialog h2 { font-size: 1.4rem; margin: .9rem 0 .3rem; }
.pdf-dialog .muted { font-size: .93rem; margin-bottom: 1.3rem; }
.pdf-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--red-soft); color: var(--red); }
.pdf-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--bg-tint); color: var(--heading); cursor: pointer; }
.pdf-close:hover { background: var(--line); }
.field .optional { font-style: normal; font-weight: 400; color: var(--muted); }
.pdf-status { margin: .9rem 0 0; padding: .7rem .9rem; border-radius: 10px; font-size: .9rem; }
.pdf-status.is-ok { background: #e8f7ee; color: #166534; }
.pdf-status.is-warn { background: #fff7e0; color: #8a5a00; }
.pdf-status.is-error { background: var(--red-soft); color: var(--red); }
[data-pdf-submit][disabled] { opacity: .7; cursor: progress; }
@keyframes pdf-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
