/* =========================================================
   BRAND PALETTE (loaded last) — layout inspired by the "Finix" reference; brand colour Navy #0C293E
   Navy #0C293E (primary) · Deep navy #081E2E · Sky accent #8EC5E8 (on dark) · Heading #1F2A2E
   Body grey #606060 · Light grey #F9FAFB · Mist #F3F6F9 · Navy tint #E7EEF3
   Fonts: Rubik (headings) · Roboto (body)
   ========================================================= */
:root {
  --brand: #0C293E;
  --brand-dark: #16405F;
  --brand-tint: #E7EEF3;
  --black: #081E2E;
  --heading: #1F2A2E;
  --grey-text: #606060;
  --light: #F7F9FB;
  --lavender: #F3F6F9;

  --bg: #ffffff;
  --bg-soft: var(--light);
  --tint: var(--lavender);
  --ink: var(--heading);
  --body: var(--grey-text);
  --muted: #8A8F96;
  --line: #EEEEEE;
  --line-strong: #DCDCDE;
  --emerald: var(--brand);
  --teal: var(--brand);
  --cyan: var(--brand);
  --violet: var(--black);
  --gold: var(--brand);
  --grad: linear-gradient(120deg, var(--brand), var(--brand-dark));
  --grad-warm: linear-gradient(120deg, var(--brand), var(--brand-dark));
  --navy-950: #0A0A0A; --navy-900: var(--black); --navy-800: #1C1C1C; --navy-700: #2A2A2A;
  --font-head: "Rubik", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px -14px rgba(17, 17, 17, .16);
  --shadow-lg: 0 24px 50px -22px rgba(17, 17, 17, .25);
}

body { background: #fff; color: var(--body); }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.01em; color: var(--heading); }
h1 { font-weight: 600; }
h2 { font-weight: 600; }
::selection { background: var(--brand); color: #fff; }

/* Accents */
.grad-text, .rotator span { background: none; color: var(--brand); -webkit-text-fill-color: var(--brand); }
.eyebrow { color: var(--brand); letter-spacing: .04em; text-transform: none; font-size: .95rem; font-weight: 500; }
.eyebrow::before { display: none; }
.card::before { background: var(--brand); }
.marquee-track span::after { color: var(--brand); }

/* Buttons — squared like the reference */
.btn { border-radius: 4px; font-weight: 500; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--black); box-shadow: none; }
.btn-dark { background: var(--black); }
.btn-dark:hover { background: var(--brand); }
.btn-ghost { background: #fff; border: 1px solid var(--line-strong); color: var(--heading); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* Top bar hidden (phone lives in the header, as in the reference) */
.topbar { display: none; }
.site-header, .site-header.scrolled, .site-header.solid { background: #fff; border-bottom: 1px solid var(--line); }
.logo { color: var(--heading); }
.logo small { color: var(--brand); }
.nav-links a.nav-link { color: var(--heading); font-weight: 500; }
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { color: var(--brand); background: transparent; }
.nav-phone { color: var(--heading); font-weight: 500; }
.nav-phone svg { color: var(--brand); width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--brand-tint); }
.nav-phone small { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; line-height: 1; }
.dropdown a:hover { background: var(--brand-tint); color: var(--brand); }
.dropdown .dd-ico { background: var(--brand-tint); color: var(--brand); }

/* Generic hero overrides (inner pages) */
.page-hero { background-color: #fff; }
.hero .blob, .page-hero .blob { display: none; }

/* Sections & cards */
.section-soft { background: var(--light); }
.card { background: #fff; border-color: var(--line); border-radius: var(--radius); }
.icon-box { background: var(--brand-tint); color: var(--brand); border-radius: 50%; }
.card:hover .icon-box, .card:hover .card-photo + .icon-box { background: var(--brand); color: #fff; }
.card-link { color: var(--brand); }
.check-list li svg { background: var(--brand); }
.tag { background: var(--brand-tint); color: var(--brand-dark); }
.vp-item .vp-ico { background: var(--brand); }
.vp-item .tick { color: var(--brand) !important; }
.stat .num, .stat .num span { background: none; color: var(--heading); -webkit-text-fill-color: var(--heading); }
.stat .num span + span { color: var(--brand); -webkit-text-fill-color: var(--brand); }
.step-num { border-color: var(--line-strong); }
.step:hover .step-num { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps::before { background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 16px); opacity: .35; }

/* CTA banners — red */
.cta-band { background: linear-gradient(120deg, rgba(12, 41, 62, .96), rgba(22, 64, 95, .94)), url(../img/suburb-aerial.jpg) center / cover; color: #fff; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -30px rgba(12, 41, 62, .6); }
.cta-band .eyebrow { color: #fff !important; }
.cta-band b, .cta-band .grad-text { color: #fff !important; -webkit-text-fill-color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: var(--black); color: #fff; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-band .btn-ghost:hover { background: #fff; color: var(--brand); }

/* FAQ */
.faq details { border-radius: var(--radius); }
.faq summary::after { background: var(--brand-tint); color: var(--brand); }
.faq details[open] summary::after { background: var(--brand); color: #fff; }

/* Calculators */
.calc-tab { border-radius: 4px; }
.calc-tab.active, .calc-tab:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-select span { border-radius: 4px; }
.chip-select input:checked + span { background: var(--black); border-color: var(--black); color: #fff; }
.calc-form, .calc-output, .form-card { border-radius: var(--radius-lg); }
.calc-output { background: var(--black); color: #C9C9C9; border-color: var(--black); }
.calc-output h3 { color: #fff; }
.calc-output .out-big, .calc-output .grad-text { color: #fff; -webkit-text-fill-color: #fff; }
.out-rows div { border-bottom-color: rgba(255, 255, 255, .12); }
.out-rows b { color: #fff; }
.out-disclaimer { color: #9A9A9A; }
#repayOut [data-o=freq], #refiOut small { color: #C9C9C9 !important; -webkit-text-fill-color: #C9C9C9 !important; }
.bar-chart { background: rgba(255, 255, 255, .12); }
.bar-chart .b1 { background: var(--brand); }
.bar-chart .b2 { background: #8A8F96; }
.legend i[style*="emerald"] { background: var(--brand) !important; }
.legend i[style*="violet"] { background: #8A8F96 !important; }
input[type=range]::-webkit-slider-thumb { border-color: var(--brand); box-shadow: 0 0 0 6px rgba(12, 41, 62, .18); }
input[type=range]::-moz-range-thumb { border-color: var(--brand); }

/* Forms & side cards */
.field input, .field select, .field textarea { background: #fff; border-radius: 4px; border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(12, 41, 62, .12); }
.consent input, .sub-consent input { accent-color: var(--brand); }
.consent a, .legal a { color: var(--brand); }
.form-step-title span, .form-success .ok { background: var(--brand); }
.info-card, .reward-card { background: var(--lavender); border-color: var(--line); }
.info-item .ii-ico { background: #fff; color: var(--brand); }
.gift { background: var(--grad); box-shadow: 0 18px 36px -14px rgba(12, 41, 62, .6); }
.reward-card .grad-text, .founder-card .role { color: var(--brand); -webkit-text-fill-color: var(--brand); }
.notice { background: var(--brand-tint); border-color: #C9D8E4; color: #0C293E; }

/* Footer — near black */
.site-footer { background: var(--black); color: #BDBDBD; border-top: 0; }
.site-footer h4, .site-footer .logo { color: #fff; }
.site-footer .logo small { color: var(--brand); }
.site-footer a:hover { color: var(--brand); }
.site-footer .socials a { background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .1); }
.site-footer .socials a:hover { background: var(--brand); }
.subscribe-form { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); border-radius: 6px; }
.subscribe-form input[type=email] { color: #fff; }
.subscribe-form .btn { border-radius: 4px; }
.sub-msg { color: #fff; }
.footer-legal { border-top-color: rgba(255, 255, 255, .1); color: #8E8E8E; }
.footer-legal strong { color: #E6E6E6 !important; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .1); }

/* Floating buttons */
.fab .pulse { background: var(--brand); box-shadow: 0 14px 30px -12px rgba(12, 41, 62, .8); }
.fab .pulse::after { border-color: var(--brand); }
.fab .to-top { background: var(--black); color: #fff; border-color: var(--black); }

@media (max-width: 960px) { .nav-links { background: #fff; } }

/* =========================================================
   SCROLL EFFECTS & PARALLAX (driven by assets/js/effects.js)
   ========================================================= */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); z-index: 200; pointer-events: none; }

/* Reveal variants: only apply the "from" state until .in is added */
.reveal { transition-property: opacity, transform, clip-path; transition-duration: .9s, .9s, 1.2s; transition-timing-function: ease, cubic-bezier(.16, .84, .3, 1), cubic-bezier(.7, 0, .2, 1); }
.reveal.reveal-left:not(.in) { transform: translate3d(-70px, 0, 0); }
.reveal.reveal-right:not(.in) { transform: translate3d(70px, 0, 0); }
.reveal.reveal-up:not(.in) { transform: translate3d(0, 40px, 0); }
.reveal.reveal-zoom:not(.in) { transform: scale(.88); }
.reveal.reveal-wipe:not(.in) { clip-path: inset(0 100% 0 0 round 16px); opacity: 1; transform: none; }
.reveal.reveal-wipe.in { clip-path: inset(0 0 0 0 round 16px); }
.reveal.reveal-wipe-circle:not(.in) { clip-path: circle(0% at 50% 50%); opacity: 1; }
.reveal.reveal-wipe-circle.in { clip-path: circle(75% at 50% 50%); }

/* Parallax targets move via the --py custom property */
[data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1)); will-change: transform; }

/* Hero photo with clipped parallax image */
.h-hero-photo .ph { position: absolute; inset: 0; overflow: hidden; border-radius: 0 0 0 220px; }
.h-hero-photo .ph img { border-radius: 0; height: 118%; margin-top: -9%; --ps: 1.02; }
.h-hero-photo .h-hero-badge { z-index: 2; animation: bob 6s ease-in-out infinite; }

/* Services page photos get room to move */
.sb-visual > img { inset: -10% 0 auto 0; height: 120%; }
.service-block:hover .sb-visual > img { transform: translate3d(0, var(--py, 0px), 0) scale(1.05); }

/* Full-bleed parallax band */
.h-parallax { position: relative; overflow: hidden; color: #fff; padding: clamp(90px, 12vw, 150px) 0; text-align: center; isolation: isolate; }
.h-parallax > img { position: absolute; left: 0; top: -25%; width: 100%; height: 150%; object-fit: cover; z-index: -2; }
.h-parallax::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 22, 34, .8), rgba(6, 22, 34, .68)); z-index: -1; }
.h-parallax .eyebrow { color: #fff; opacity: .9; }
.h-parallax h2 { color: #fff; max-width: 820px; margin: 0 auto 40px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.h-parallax h2 span { display: block; color: #BFD9EC; font-weight: 500; font-size: .7em; margin-top: 10px; }
.h-parallax-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 980px; margin: 0 auto 40px; }
.h-parallax-stats div { padding: 24px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.h-parallax-stats b { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.1; }
.h-parallax-stats small { color: #D8D8D8; font-size: .88rem; }

/* Header compacts on scroll */
.site-header .container.nav { transition: height .3s ease; }
.site-header.scrolled .container.nav { height: 68px; }

/* Card tilt (set by effects.js) */
.wcard.in:hover, .h-step.in:hover { transform: var(--tilt, translateY(-4px)); transition: transform .15s ease-out, box-shadow .3s; }
.h-step { transition: box-shadow .3s, transform .3s; }
.h-step:hover { box-shadow: var(--shadow-lg); }

@media (max-width: 960px) {
  .h-hero-photo .ph { border-radius: 0 0 0 120px; }
  .h-parallax-stats { grid-template-columns: repeat(2, 1fr); }
  .site-header.scrolled .container.nav { height: 64px; }
}
@media (max-width: 640px) {
  .reveal.reveal-left:not(.in), .reveal.reveal-right:not(.in) { transform: translate3d(0, 40px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { transform: none !important; }
  .reveal-wipe, .reveal-wipe-circle { clip-path: none !important; }
}

/* =========================================================
   HOME HERO v2 — full-width photographic background
   ========================================================= */
.hx-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: clamp(560px, calc(100vh - 84px), 860px); display: flex; align-items: center; }
.hx-bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; animation: hxZoom 22s ease-in-out infinite alternate; }
.hx-bg img { position: absolute; left: 0; top: -26%; width: 100%; height: 130%; object-fit: cover; object-position: 60% 62%; }
@media (max-width: 960px) { .hx-bg img { top: -10%; object-position: 58% 80%; } }
@keyframes hxZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hx-hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 22, 34, .92) 0%, rgba(6, 22, 34, .78) 32%, rgba(6, 22, 34, .35) 62%, rgba(6, 22, 34, .1) 100%),
    linear-gradient(0deg, rgba(6, 22, 34, .55) 0%, transparent 35%); }
.hx-hero::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand); z-index: -1; }
.hx-glow { position: absolute; z-index: -1; width: 520px; height: 520px; left: -160px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(12, 41, 62, .45), transparent 65%); filter: blur(10px); animation: hxGlow 9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes hxGlow { to { transform: translate(80px, -60px) scale(1.15); opacity: .7; } }
.hx-hero .container { position: relative; width: min(var(--max), 100% - 40px); padding: 90px 0 120px; }
.hx-content { max-width: 680px; }
.hx-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); font-size: .9rem; color: #F2F2F2; margin-bottom: 26px; }
.hx-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(12, 41, 62, .7); animation: hxPing 2s infinite; }
@keyframes hxPing { 70% { box-shadow: 0 0 0 10px rgba(12, 41, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(12, 41, 62, 0); } }
.hx-hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.08; margin-bottom: 22px; font-weight: 700; text-shadow: 0 6px 30px rgba(0, 0, 0, .3); }
.hx-hero h1 .rotator span { color: #8EC5E8; -webkit-text-fill-color: #8EC5E8; position: relative; }
.hx-hero h1 .rotator span::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; background: var(--brand); border-radius: 4px; transform-origin: left; animation: hxUnderline .8s .2s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes hxUnderline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hx-hero .lead { font-size: 1.15rem; color: #E4E4E4; max-width: 560px; margin-bottom: 34px; }
.hx-hero .hero-actions { margin-bottom: 34px; }
.hx-btn-outline { background: rgba(255, 255, 255, .06); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.hx-btn-outline:hover { background: #fff; color: var(--heading); border-color: #fff; transform: translateY(-2px); }
.hx-hero .btn-primary:hover { background: #fff; color: var(--brand); }
.hx-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: .95rem; color: #EDEDED; }
.hx-trust li { display: flex; align-items: center; gap: 8px; }
.hx-trust svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--brand); color: #fff; }
.hx-follow { color: #fff; bottom: 40px; }
.hx-follow::after { background: #fff; }
.hx-follow a { color: #fff; }
.hx-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 28px; height: 44px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 16px; }
.hx-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hxWheel 1.8s ease-in-out infinite; }
@keyframes hxWheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Loan-type strip — solid red band under the hero */
body .h-strip { background: var(--brand); border: 0; position: relative; z-index: 2; box-shadow: 0 18px 40px -24px rgba(12, 41, 62, .8); }
body .h-strip .container { width: min(var(--max), 100% - 40px); }
body .h-strip a { color: #fff; font-weight: 500; position: relative; padding: 26px 10px; transition: background .25s, color .25s; }
body .h-strip a + a::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: rgba(255, 255, 255, .3); }
body .h-strip a svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: background .25s, color .25s, transform .25s; }
body .h-strip a:hover { color: #fff; background: rgba(0, 0, 0, .12); }
body .h-strip a:hover svg { background: #fff; color: var(--brand); transform: rotate(-8deg) scale(1.06); }

@media (max-width: 960px) {
  .hx-hero::before { background: linear-gradient(180deg, rgba(6, 22, 34, .8), rgba(6, 22, 34, .72)); }
  .hx-hero .container { padding: 70px 0 100px; }
  .hx-follow { display: none; }
}
@media (max-width: 640px) {
  .hx-hero { min-height: 0; }
  .hx-hero .container { width: calc(100% - 32px); padding: 56px 0 90px; }
  .hx-hero .lead { font-size: 1.02rem; }
  .hx-trust { flex-direction: column; gap: 8px; }
  body .h-strip .container { width: 100%; }
  body .h-strip a + a::before { display: none; }
  body .h-strip a { border-bottom: 1px solid rgba(255, 255, 255, .18); padding: 16px 6px; }
  body .h-strip a svg { width: 34px; height: 34px; padding: 7px; }
}
@media (prefers-reduced-motion: reduce) { .hx-bg, .hx-glow { animation: none; } }

/* Full-width header: logo hugs the left edge, actions hug the right */
.site-header .container.nav { width: calc(100% - 64px); max-width: 1720px; height: 84px; }
.site-header nav { flex: 1; display: flex; justify-content: center; }
.nav-links { gap: 6px; }
.nav-links a.nav-link { padding: 10px 16px; font-size: 1rem; }
.nav-cta { gap: 22px; }
.nav-cta .btn { padding: 14px 24px; }
.nav-phone span { line-height: 1.25; }
@media (max-width: 1180px) and (min-width: 961px) { .nav-links a.nav-link { padding: 10px 10px; font-size: .94rem; } .nav-cta { gap: 14px; } }
@media (max-width: 960px) { .site-header .container.nav { width: calc(100% - 32px); height: 72px; } .site-header nav { flex: 0; } }

/* =========================================================
   HOME PAGE LAYOUT (reference-style structure)
   ========================================================= */
/* 1. Split hero */
.h-hero { position: relative; background: #fff; overflow: hidden; }
.h-hero .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 640px; gap: 40px; }
.h-hero-text { padding: 80px 0 110px; position: relative; z-index: 2; }
.h-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.12; margin-bottom: 22px; }
.h-hero p.lead { font-size: 1.1rem; max-width: 520px; margin-bottom: 32px; }
.h-hero .hero-actions { margin-bottom: 0; }
.h-hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 48%; }
.h-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; border-radius: 0 0 0 220px; }
.h-hero-photo::before { content: ""; position: absolute; left: -60px; top: 10%; width: 140px; height: 140px; border-radius: 50%; border: 18px solid var(--brand-tint); z-index: -1; }
.h-hero-badge { position: absolute; left: -40px; bottom: 70px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 16px 20px; display: flex; gap: 14px; align-items: center; }
.h-hero-badge .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.h-hero-badge .ico svg { width: 22px; height: 22px; }
.h-hero-badge b { display: block; color: var(--heading); font-family: var(--font-head); font-weight: 600; }
.h-hero-badge small { color: var(--muted); }
.h-follow { position: absolute; left: 0; bottom: 34px; display: flex; align-items: center; gap: 14px; font-size: .88rem; color: var(--heading); }
.h-follow::after { content: ""; order: 1; width: 30px; height: 1px; background: var(--heading); }
.h-follow a { order: 2; color: var(--heading); }
.h-follow a:hover { color: var(--brand); }
.h-follow svg { width: 16px; height: 16px; }

/* 2. Loan type strip */
.h-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.h-strip .container { display: grid; grid-template-columns: repeat(5, 1fr); }
.h-strip a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px 10px; font-family: var(--font-head); font-weight: 500; color: #9A9EA4; font-size: 1.05rem; transition: color .25s; }
.h-strip a:hover { color: var(--brand); }
.h-strip svg { width: 26px; height: 26px; }

/* 3. About */
.h-about { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.h-about-img { position: relative; max-width: 480px; margin: 0 auto; }
.h-about-img .circle { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 10px solid #fff; box-shadow: 0 0 0 2px var(--brand-tint), var(--shadow-lg); }
.h-about-img .circle img { width: 100%; height: 100%; object-fit: cover; }
.h-about-img .dots { position: absolute; top: -10px; left: -10px; width: 120px; height: 120px; border-radius: 50%; background: repeating-linear-gradient(45deg, var(--brand) 0 3px, transparent 3px 9px); opacity: .6; z-index: -1; }
.h-about-img .years { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 130px; height: 130px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; text-align: center; border: 6px solid var(--brand); }
.h-about-img .years b { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--brand); line-height: 1.1; }
.h-about-img .years small { font-size: .78rem; color: var(--heading); }
.h-about .check-list { grid-template-columns: 1fr 1fr; gap: 10px 20px; }

/* 4. Why choose us */
.h-why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.h-why-img { position: relative; margin-top: 30px; }
.h-why-img img { width: 100%; border-radius: 200px 200px 200px 20px; aspect-ratio: 4 / 3.3; object-fit: cover; }
.h-why-img::after { content: ""; position: absolute; right: -24px; top: -24px; width: 70%; height: 80%; border-radius: 50%; background: var(--brand-tint); z-index: -1; }
.h-why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.h-why-cards .wcard:nth-child(even) { transform: translateY(40px); }
.wcard { background: #fff; border-radius: 10px; box-shadow: var(--shadow); text-align: center; padding: 0 22px 28px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.wcard:hover { box-shadow: var(--shadow-lg); }
.wcard .top { height: 104px; margin: 0 -22px 46px; background: var(--brand-tint); border-radius: 0 0 50% 50% / 0 0 100% 100%; position: relative; }
.wcard .top span { position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%); width: 76px; height: 76px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--brand); }
.wcard .top svg { width: 32px; height: 32px; }
.wcard h3 { font-size: 1.2rem; }
.wcard p { font-size: .94rem; margin: 0; }

/* 5. Steps + "How much do you need?" */
.h-deserve { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: start; }
.h-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.h-step { background: #fff; border-radius: 10px; padding: 26px; box-shadow: var(--shadow); position: relative; }
.h-step .n { position: absolute; right: 20px; top: 14px; font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--brand-tint); line-height: 1; }
.h-step .ico { width: 54px; height: 54px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.h-step .ico svg { width: 26px; height: 26px; }
.h-step h4 { font-size: 1.1rem; margin-bottom: 6px; }
.h-step p { font-size: .93rem; margin: 0; }
.h-need { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.h-need-head { background: var(--brand); color: #fff; padding: 22px 28px; }
.h-need-head h3 { color: #fff; margin: 0; font-size: 1.35rem; }
.h-need-head p { margin: 4px 0 0; opacity: .9; font-size: .92rem; }
.h-need-body { padding: 26px 28px 30px; }
.h-need .calc-row label { color: var(--body); }
.h-need .calc-row label b { color: var(--heading); }
.h-need input[type=range] { background: #EEE; }
.h-need .calc-result { background: var(--lavender); border: 0; border-radius: 10px; }
.h-need .calc-result .big { color: var(--heading); }

/* 6. Call band */
.h-callband { background: var(--brand); color: #fff; }
.h-callband .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 0; flex-wrap: wrap; }
.h-callband h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 0; font-weight: 500; }
.h-callband h3 b { font-weight: 700; }
.h-callband a.phone { display: flex; align-items: center; gap: 16px; color: #fff; font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
.h-callband a.phone span { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; }
.h-callband a.phone svg { width: 28px; height: 28px; }

/* 7. Values */
.h-values { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.h-values-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 26px; margin-top: 26px; }
.h-value { display: flex; gap: 16px; }
.h-value .ico { width: 54px; height: 54px; flex: none; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.h-value .ico svg { width: 26px; height: 26px; }
.h-value h4 { font-size: 1.08rem; margin-bottom: 4px; }
.h-value p { font-size: .93rem; margin: 0; }
.h-values-img { position: relative; }
.h-values-img img { width: 100%; border-radius: 16px; aspect-ratio: 5 / 4; object-fit: cover; }
.h-values-img::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--brand); border-radius: 16px; z-index: -1; }

@media (max-width: 960px) {
  .h-hero .container, .h-about, .h-why, .h-deserve, .h-values { grid-template-columns: 1fr; }
  .h-hero .container { min-height: 0; }
  .h-hero-text { padding: 50px 0 20px; }
  .h-hero-photo { position: relative; width: auto; height: 380px; margin: 0 -20px; }
  .h-hero-photo img { border-radius: 0 0 0 120px; }
  .h-hero-photo::before { display: none; }
  .h-hero-badge { left: 16px; bottom: 20px; }
  .h-follow { display: none; }
  .h-strip .container { grid-template-columns: repeat(3, 1fr); }
  .h-why-cards .wcard:nth-child(even) { transform: none; }
  .h-values-img { order: -1; }
}
@media (max-width: 640px) {
  .h-strip .container { grid-template-columns: repeat(2, 1fr); }
  .h-strip a { padding: 18px 6px; font-size: .95rem; }
  .h-about .check-list, .h-steps, .h-why-cards, .h-values-list { grid-template-columns: 1fr; }
  .h-hero-photo { margin: 0 -16px; height: 300px; }
  .h-callband .container { padding: 34px 0; }
}

/* =========================================================
   NAVY #0C293E — CONTRAST LAYER (keep last in file)
   · white text on navy fills (buttons, bands) — excellent contrast
   · --brand-mid: highlighted words, labels and links on white
   · --accent: buttons and highlights on DARK surfaces
     (hero photo, footer, calculator results, parallax band)
   ========================================================= */
:root { --brand-mid: #1F6FA8; --accent: #8EC5E8; --accent-hover: #B5DAF1; }

/* Highlights on light backgrounds */
.grad-text, .eyebrow, .card-link, .consent a, .legal a, .logo small,
.nav-links a.nav-link:hover, .nav-links a.nav-link.active, .dropdown a:hover,
.stat .num span + span, .reward-card .grad-text, .founder-card .role, .crumbs a:hover { color: var(--brand-mid); -webkit-text-fill-color: var(--brand-mid); }
.btn-primary:hover { background: #16405F; color: #fff; }
.check-list li svg, .h-value .ico, .form-step-title span, .form-success .ok { background: var(--brand); color: #fff; }

/* Home hero (dark photo) */
.hx-hero::after { background: var(--accent); }
.hx-glow { background: radial-gradient(circle, rgba(142, 197, 232, .28), transparent 65%); }
.hx-pill .dot { background: var(--accent); box-shadow: 0 0 0 0 rgba(142, 197, 232, .7); }
@keyframes hxPing { 70% { box-shadow: 0 0 0 10px rgba(142, 197, 232, 0); } 100% { box-shadow: 0 0 0 0 rgba(142, 197, 232, 0); } }
.hx-hero h1 .rotator span { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.hx-hero h1 .rotator span::after { background: var(--accent); }
.hx-hero .btn-primary { background: var(--accent); color: var(--brand); }
.hx-hero .btn-primary:hover { background: #fff; color: var(--brand); }
.hx-trust svg { background: var(--accent); color: var(--brand); }

/* Parallax band + CTA banners (dark) */
.h-parallax .btn-primary, .calc-output .btn-primary { background: var(--accent); color: var(--brand); }
.h-parallax .btn-primary:hover, .calc-output .btn-primary:hover { background: #fff; color: var(--brand); }
.h-parallax .eyebrow, .cta-band .eyebrow { color: var(--accent) !important; -webkit-text-fill-color: var(--accent); }
.cta-band b, .cta-band .grad-text { color: var(--accent) !important; -webkit-text-fill-color: var(--accent); }

/* Calculator results panel (dark) */
.calc-output .out-big, .calc-output .grad-text { color: #fff; -webkit-text-fill-color: #fff; }
.bar-chart .b1 { background: var(--accent); }
.legend i[style*="emerald"] { background: var(--accent) !important; }

/* Footer (deep navy) */
.site-footer .logo small, .site-footer a:hover { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.site-footer .socials a:hover { background: var(--accent); color: var(--brand); }
.subscribe-form .btn, .subscribe-form .btn-primary { background: var(--accent); color: var(--brand); }
.subscribe-form .btn:hover { background: var(--accent-hover); color: var(--brand); }

/* Loan strip & call band: navy with white text */
body .h-strip a:hover { background: rgba(255, 255, 255, .08); }
.h-callband a.phone span { background: var(--accent); color: var(--brand); }

/* Floating call button: keep visible against navy sections */
.fab .pulse { background: var(--brand-mid); box-shadow: 0 14px 30px -12px rgba(31, 111, 168, .8); }
.fab .pulse::after { border-color: var(--brand-mid); }

/* =========================================================
   HOME HERO — split: navy colour field (left) + photo (right)
   Section stays full width; the photo occupies the right ~56%.
   ========================================================= */
.hx-hero { background:
    radial-gradient(1200px 600px at -10% 110%, rgba(31, 111, 168, .35), transparent 60%),
    radial-gradient(700px 500px at 30% -20%, rgba(142, 197, 232, .14), transparent 60%),
    linear-gradient(135deg, #0C293E 0%, #0A2234 55%, #081E2E 100%); }
/* subtle dot texture on the colour field */
.hx-hero .hx-dots { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; z-index: -2; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(142, 197, 232, .22) 1.2px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 85%); mask-image: linear-gradient(90deg, #000 0%, transparent 85%); }

/* photo panel on the right with an angled leading edge */
.hx-bg { inset: 0 0 0 48%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); animation: none; }
.hx-bg img { animation: none; }
.hx-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 41, 62, .55) 0%, rgba(12, 41, 62, 0) 35%), linear-gradient(0deg, rgba(8, 30, 46, .45), transparent 35%); }
/* accent line that follows the angled edge */
.hx-edge { position: absolute; top: 0; bottom: 0; left: 48%; width: 52%; z-index: -2; pointer-events: none;
  clip-path: polygon(calc(14% - 6px) 0, 14% 0, 0 100%, -6px 100%); background: var(--accent); opacity: .9; }

/* the old full-bleed dark overlay is no longer needed */
.hx-hero::before { background: none; }
.hx-hero::after { display: none; }
.hx-content { max-width: 560px; }
.hx-hero .container { padding: 100px 0 130px; }

/* Tablet & mobile: colour field on top, photo as a band underneath */
@media (max-width: 960px) {
  .hx-hero { flex-direction: column; align-items: stretch; }
  .hx-hero .container { padding: 60px 0 40px; }
  .hx-dots { width: 100%; }
  .hx-bg { order: 2; position: relative; inset: auto; left: auto; height: 340px; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); margin-top: 10px; z-index: 0; }
  .hx-bg img { top: -5%; height: 110%; object-position: 58% 80%; transform: none !important; }
  .hx-bg::after { background: linear-gradient(180deg, rgba(12, 41, 62, .35), transparent 40%); }
  .hx-edge { display: none; }
  .hx-scroll { display: none; }
}
@media (max-width: 640px) {
  .hx-bg { height: 260px; }
}

/* =========================================================
   SMOOTHNESS FIXES
   ========================================================= */
/* 1. Rotating headline word: every word occupies the same grid cell,
      so the headline never re-wraps when the word changes */
.rotator.rotator-stack { display: inline-grid; vertical-align: bottom; }
.rotator.rotator-stack > span { grid-area: 1 / 1; white-space: nowrap; animation: none !important; filter: none;
  opacity: 0; transform: translate3d(0, .35em, 0); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
.rotator.rotator-stack > span.on { opacity: 1; transform: none; }
.hx-hero h1 .rotator.rotator-stack > span::after { animation: none; transform: scaleX(0); transition: transform .7s .15s cubic-bezier(.7, 0, .2, 1); }
.hx-hero h1 .rotator.rotator-stack > span.on::after { transform: scaleX(1); }

/* 2. Header keeps a constant height (shrinking a sticky header shifts the whole page) */
.site-header.scrolled .container.nav { height: 84px; }
@media (max-width: 960px) { .site-header.scrolled .container.nav { height: 72px; } }

/* 3. Parallax layers must follow the scroll exactly — no easing/transition lag */
[data-parallax], .sb-visual > img, .service-block:hover .sb-visual > img { transition: none !important; }
.service-block:hover .sb-visual > img { transform: translate3d(0, var(--py, 0px), 0); }
.h-hero-text { will-change: transform, opacity; }

/* Hero photo framing */
.hx-bg img { top: -8%; height: 116%; object-position: 50% 45%; }
@media (max-width: 960px) { .hx-bg img { top: -5%; object-position: 50% 30%; } }

/* =========================================================
   CTA BANNER (below hero): photo · gold angled divider · navy panel
   ========================================================= */
:root { --gold-line: #C9A86A; --cs-teal: #23806F; --cs-teal-hover: #1B6A5C; }
.cs-wrap { padding: clamp(50px, 6vw, 80px) 0 0; background: #fff; }
.cta-strip { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; min-height: 240px; display: flex; align-items: center;
  background: var(--brand); box-shadow: 0 30px 60px -32px rgba(12, 41, 62, .55); }
.cs-photo { position: absolute; inset: 0 auto 0 0; width: 50%; overflow: hidden; z-index: 0; }
.cs-photo img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 40% 55%; transition: none; }
.cs-gold { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #E4CB93, var(--gold-line) 55%, #A9884B);
  clip-path: polygon(44.2% 0, 46% 0, 40% 100%, 38.2% 100%); }
.cs-navy { position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(600px 300px at 90% 0%, rgba(142, 197, 232, .12), transparent 60%), linear-gradient(135deg, #0C293E, #0A2234);
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 40% 100%); }
.cs-body { position: relative; z-index: 3; margin-left: 47%; padding: 40px 48px 40px 0; color: #D7E0E8; }
.cs-body h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.25rem); margin-bottom: 10px; font-weight: 700; letter-spacing: -.01em; }
.cs-body p { font-size: 1.06rem; margin: 0 0 24px; max-width: 560px; }
.cs-btn { background: var(--cs-teal); color: #fff; border-radius: 8px; padding: 15px 26px; font-weight: 600; box-shadow: 0 14px 30px -14px rgba(35, 128, 111, .9), inset 0 1px 0 rgba(255, 255, 255, .15); }
.cs-btn:hover { background: var(--cs-teal-hover); color: #fff; transform: translateY(-2px); }
.cs-btn svg { transition: transform .25s; }
.cs-btn:hover svg { transform: translateX(4px); }
.cta-strip:hover .cs-photo img { --ps: 1.04; }

@media (max-width: 860px) {
  .cta-strip { flex-direction: column; align-items: stretch; min-height: 0; }
  .cs-photo { position: relative; inset: auto; width: 100%; height: 200px; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  .cs-photo img { top: -10%; height: 120%; transform: none !important; }
  .cs-gold { inset: auto 0 auto 0; top: 168px; height: 36px; clip-path: polygon(0 88%, 100% 0, 100% 18%, 0 100%); }
  .cs-navy { display: none; }
  .cs-body { margin: 0; padding: 26px 24px 30px; }
}

/* =========================================================
   HOME HERO — light background + photo inside an organic shape
   (overrides the earlier dark/split hero styles)
   ========================================================= */
:root { --hero-bg: #F3F5F7; --shape-w: min(44vw, 600px); --shape-right: max(24px, calc((100vw - 1200px) / 2)); }
.hx-hero { color: var(--heading);
  background:
    radial-gradient(900px 520px at 85% 50%, rgba(142, 197, 232, .28), transparent 65%),
    radial-gradient(700px 500px at 0% 100%, rgba(12, 41, 62, .05), transparent 60%),
    linear-gradient(180deg, #F7F9FA 0%, var(--hero-bg) 100%); }
.hx-hero::before, .hx-hero::after { display: none; }
.hx-glow { display: none; }

/* soft navy dot texture on the left */
.hx-hero .hx-dots { width: 45%; opacity: .7; background-image: radial-gradient(rgba(12, 41, 62, .12) 1.2px, transparent 1.3px); }

/* text colours for a light background */
.hx-hero h1 { color: var(--brand); text-shadow: none; }
.hx-hero h1 .rotator.rotator-stack > span { color: var(--brand-mid); -webkit-text-fill-color: var(--brand-mid); }
.hx-hero h1 .rotator.rotator-stack > span::after { background: var(--accent); height: .14em; }
.hx-hero .lead { color: var(--body); }
.hx-pill { background: #fff; border-color: #DDE5EC; color: var(--brand); backdrop-filter: none; box-shadow: 0 8px 20px -14px rgba(12, 41, 62, .4); }
.hx-pill .dot { background: var(--brand-mid); }
.hx-hero .btn-primary { background: var(--brand); color: #fff; }
.hx-hero .btn-primary:hover { background: var(--brand-mid); color: #fff; }
.hx-btn-outline { background: #fff; color: var(--brand); border-color: #C9D5DF; backdrop-filter: none; }
.hx-btn-outline:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.hx-trust { color: var(--heading); }
.hx-trust svg { background: var(--brand); color: #fff; }
.hx-follow, .hx-follow a { color: var(--brand); }
.hx-follow::after { background: var(--brand); }
.hx-scroll { border-color: rgba(12, 41, 62, .45); }
.hx-scroll span { background: var(--brand); }

/* photo inside an organic blob shape on the right */
.hx-bg { inset: auto; top: 50%; right: var(--shape-right); left: auto; bottom: auto; width: var(--shape-w); aspect-ratio: 1 / 1.02;
  transform: translateY(-50%); clip-path: none; overflow: hidden; z-index: 1;
  border-radius: 58% 42% 46% 54% / 52% 48% 52% 48%; border: 10px solid #fff;
  box-shadow: 0 40px 80px -40px rgba(12, 41, 62, .55); animation: hxBlob 16s ease-in-out infinite alternate; }
.hx-bg::after { display: none; }
.hx-bg img { top: -8%; height: 116%; object-position: 50% 40%; }
@keyframes hxBlob {
  0%   { border-radius: 58% 42% 46% 54% / 52% 48% 52% 48%; }
  50%  { border-radius: 44% 56% 58% 42% / 46% 56% 44% 54%; }
  100% { border-radius: 52% 48% 40% 60% / 58% 42% 58% 42%; }
}
/* decorative outline shape + accent disc behind the photo */
.hx-edge { display: block; inset: auto; top: 50%; right: calc(var(--shape-right) - 26px); left: auto; bottom: auto;
  width: calc(var(--shape-w) + 10px); aspect-ratio: 1 / 1.02; transform: translateY(calc(-50% + 22px)); clip-path: none; opacity: 1; z-index: 0;
  background: none; border: 2px dashed rgba(12, 41, 62, .28); border-radius: 46% 54% 52% 48% / 56% 44% 56% 44%; animation: hxBlob 20s ease-in-out infinite alternate-reverse; }
.hx-edge::before { content: ""; position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; left: -10%; bottom: 4%;
  background: linear-gradient(135deg, var(--accent), #5EA9D6); opacity: .9; z-index: -1; }
.hx-edge::after { content: ""; position: absolute; width: 16%; aspect-ratio: 1; border-radius: 50%; right: 2%; top: -2%;
  background: var(--brand); opacity: .9; }

/* content sits left, clear of the shape */
.hx-hero .container { padding: 90px 0 120px; }
.hx-content { max-width: min(560px, calc(100vw - var(--shape-w) - var(--shape-right) - 120px)); }

@media (max-width: 960px) {
  .hx-hero .container { padding: 50px 0 10px; }
  .hx-content { max-width: none; }
  .hx-dots { width: 100%; }
  .hx-bg { order: 2; position: relative; top: auto; right: auto; transform: none; width: min(86%, 440px); height: auto; margin: 26px auto 60px;
    aspect-ratio: 1 / 1; clip-path: none; border-width: 8px; }
  .hx-bg img { top: -5%; height: 110%; transform: none !important; }
  .hx-edge { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hx-bg, .hx-edge { animation: none; } }

/* Hero: tighter vertical rhythm (less empty space at the top) */
.hx-hero { min-height: 0; }
.hx-hero .container { padding: 48px 0 72px; }
.hx-hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); line-height: 1.12; margin-bottom: 18px; }
.hx-pill { margin-bottom: 18px; }
.hx-hero .lead { margin-bottom: 26px; }
.hx-hero .hero-actions { margin-bottom: 26px; }
@media (min-width: 961px) { .hx-hero { min-height: calc(var(--shape-w) * 1.02 + 96px); } }
@media (max-width: 960px) { .hx-hero .container { padding: 36px 0 8px; } }

/* remove legacy padding inherited from the first hero design */
.hx-hero .h-hero-text { padding: 0; }

/* =========================================================
   LEAD POPUP — "Free Home Loan Strategy Session"
   ========================================================= */
html.lp-lock, html.lp-lock body { overflow: hidden; }
.lp-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
  background: rgba(8, 30, 46, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.lp-overlay[hidden] { display: none; }
.lp-overlay.lp-open { opacity: 1; }
.lp-dialog { position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 22px; background: #fff;
  box-shadow: 0 40px 100px -30px rgba(8, 30, 46, .7); transform: translateY(24px) scale(.97); transition: transform .4s cubic-bezier(.2, .8, .2, 1); outline: none; }
.lp-open .lp-dialog { transform: none; }
.lp-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: var(--brand); display: grid; place-items: center; transition: background .2s, transform .2s; }
.lp-close:hover { background: var(--brand); color: #fff; transform: rotate(90deg); }
.lp-close svg { width: 20px; height: 20px; }

/* top area with a soft diagonal panel */
.lp-top { position: relative; isolation: isolate; padding: 34px 40px 22px; text-align: center; }
.lp-top::before { content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1;
  background: linear-gradient(160deg, #EEF3F7 0%, #F5F8FA 60%, #fff 100%); clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%); }
.lp-progress { position: relative; height: 30px; border-radius: 999px; background: var(--brand); overflow: hidden; margin: 6px 40px 18px; }
.lp-bar { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--cs-teal, #23806F), #3BA58F); transition: width 1.1s .35s cubic-bezier(.2, .8, .2, 1); }
.lp-open .lp-bar { width: 50%; }
.lp-progress em { position: relative; font-style: normal; font-size: .82rem; font-weight: 600; color: #fff; line-height: 30px; letter-spacing: .02em; }
.lp-kicker { font-size: .98rem; color: var(--brand); margin: 0 0 14px; font-weight: 500; }
.lp-kicker b { color: #A8864B; }
.lp-top h2 { font-size: clamp(1.5rem, 3.6vw, 2.05rem); color: var(--brand); margin: 0 0 8px; line-height: 1.2; }
.lp-free { position: relative; display: inline-block; color: var(--brand-mid); }
.lp-free svg { position: absolute; left: -2%; bottom: -8px; width: 104%; height: 12px; overflow: visible; }
.lp-free path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 130; stroke-dashoffset: 130; transition: stroke-dashoffset .9s .6s ease; }
.lp-open .lp-free path { stroke-dashoffset: 0; }
.lp-sub { margin: 10px auto 0; max-width: 440px; font-size: .95rem; color: var(--body); }

/* form */
.lp-form { padding: 8px 40px 30px; }
.lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }
.lp-form .field label { font-size: .86rem; margin-bottom: 6px; }
.lp-form .field input { padding: 13px 14px; border-radius: 10px; background: #F7F9FB; }
.lp-consent { font-size: .8rem; margin: 4px 0 18px; }
.lp-submit { width: 100%; padding: 17px 24px; border-radius: 999px; font-size: 1.05rem; font-weight: 600; color: #fff;
  background: linear-gradient(90deg, var(--brand), #16405F); box-shadow: 0 16px 34px -16px rgba(12, 41, 62, .8); }
.lp-submit:hover { background: linear-gradient(90deg, #16405F, var(--brand-mid)); color: #fff; transform: translateY(-2px); }
.lp-submit svg { transition: transform .25s; }
.lp-submit:hover svg { transform: translateX(4px); }
.lp-privacy { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: .84rem; color: var(--muted); }
.lp-privacy svg { width: 16px; height: 16px; color: var(--brand-mid); }
.lp-success { padding: 20px 40px 40px; }
.lp-success .ok { background: var(--brand); color: #fff; }

@media (max-width: 560px) {
  .lp-overlay { padding: 12px; align-items: end; }
  .lp-dialog { border-radius: 20px; max-height: calc(100vh - 24px); }
  .lp-top { padding: 30px 20px 14px; }
  .lp-progress { margin: 4px 30px 14px; }
  .lp-form { padding: 6px 20px 24px; }
  .lp-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .lp-overlay, .lp-dialog, .lp-bar, .lp-free path { transition: none; } }
.lp-form, .lp-success { position: relative; z-index: 1; }
/* progress bar without a label: slimmer */
.lp-progress { height: 10px; margin: 8px 70px 20px; }
/* progress bar removed: give the top a little breathing room */
.lp-top { padding-top: 40px; }

/* =========================================================
   SECTION BACKGROUND VECTORS (injected by assets/js/decor.js)
   ========================================================= */
.has-deco { isolation: isolate; overflow: hidden; }
.sec-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.deco { position: absolute; display: block; line-height: 0; }
.deco svg { width: 100%; height: auto; display: block; }
.deco-blob svg, .deco-rings svg { animation: decoSpin 60s linear infinite; }
.deco-blob:nth-child(2) svg { animation-direction: reverse; }
@keyframes decoSpin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .deco { max-width: 55vw; }
  .deco-house, .deco-key, .deco-wave { display: none; }
}
@media (prefers-reduced-motion: reduce) { .deco svg { animation: none; } }

/* Contact lines with leading icons (footer, privacy, legal) */
.contact-lines { list-style: none; padding: 0 !important; margin: 0 0 1em; display: grid; gap: 12px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; margin: 0 !important; }
.contact-lines .cl-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--accent); border: 1px solid rgba(255, 255, 255, .12); }
.contact-lines .cl-ico svg { width: 16px; height: 16px; }
.contact-lines a { font-weight: 500; }
.contact-lines-light .cl-ico { background: var(--brand-tint); color: var(--brand); border-color: transparent; }
.legal .contact-lines a { color: var(--brand-mid); text-decoration: none; }
.legal .contact-lines a:hover { text-decoration: underline; }

/* =========================================================
   QUICK MESSAGE TRIGGERS
   ========================================================= */
/* Floating button (above the call button) */
.fab-msg { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border: 0; cursor: pointer;
  border-radius: 999px; background: #fff; color: var(--brand); font: 600 .95rem var(--font-head);
  box-shadow: 0 14px 34px -14px rgba(12, 41, 62, .55), 0 0 0 1px rgba(12, 41, 62, .08); transition: transform .25s, box-shadow .25s, background .25s, color .25s; }
.fab-msg svg { width: 22px; height: 22px; color: var(--brand-mid); transition: color .25s; }
.fab-msg::after { content: ""; position: absolute; top: 9px; left: 32px; width: 9px; height: 9px; border-radius: 50%; background: #2EBD85; box-shadow: 0 0 0 2px #fff; }
.fab-msg:hover { background: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(12, 41, 62, .7); }
.fab-msg:hover svg { color: var(--accent); }
@media (max-width: 760px) {
  .fab-msg { width: 52px; padding: 0; justify-content: center; }
  .fab-msg span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fab-msg::after { left: 30px; top: 11px; }
}

/* Call band: phone + quick message side by side */
.h-callband .cb-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cb-msg { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 13px 22px; }
.cb-msg:hover { background: #fff; color: var(--brand); border-color: #fff; transform: translateY(-2px); }
.cb-msg svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .h-callband .cb-actions { gap: 16px; } .cb-msg { width: 100%; } }

/* =========================================================
   FOOTER — curved wave top
   The SVG sits just above the footer, over the bottom padding of
   the last section, so whatever colour that section has shows above the curve.
   ========================================================= */
.site-footer { overflow: visible; position: relative; margin-top: 0; }
/* give the last section extra bottom room so the wave sits over its own background colour */
main > section:last-of-type { padding-bottom: calc(clamp(70px, 9vw, 120px) + clamp(50px, 8vw, 120px)) !important; }
.footer-wave { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(50px, 8vw, 120px); display: block; pointer-events: none; }
.footer-wave .fw-back { fill: #DCE4EB; opacity: .85; }
.footer-wave .fw-front { fill: var(--black); }

/* =========================================================
   CONTACT PAGE — Melbourne skyline in the lower third of the section,
   anchored to the bottom and fading to transparent towards the top
   ========================================================= */
.contact-bg { position: relative; isolation: isolate; overflow: hidden; padding-bottom: clamp(160px, 18vw, 260px); }
.bg-aus { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .85) 35%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .85) 35%, transparent 100%); }
.bg-aus img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; display: block; }
@media (max-width: 960px) { .bg-aus img { object-position: 58% 75%; } }
.bg-aus::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 41, 62, .25), transparent 60%); }
.contact-map { padding-top: clamp(40px, 5vw, 70px); }
.contact-map .map-wrap { margin-top: 0; }
@media (max-width: 960px) { .bg-aus { height: 22%; } .contact-bg { padding-bottom: 150px; } }

/* Background vectors: blend softly — fade out near every section edge and soften blob edges,
   so no shape is ever cut off with a hard line at a section boundary */
.sec-deco {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); }
.deco-blob { filter: blur(18px); }
.deco-rings { filter: blur(.3px); }

/* House line drawing standing on the bottom edge of each section */
.deco-house-base { position: absolute; bottom: 0; z-index: -1; pointer-events: none; line-height: 0;
  width: clamp(150px, 20vw, 300px); opacity: .08; }
.deco-house-base svg { width: 100%; height: auto; display: block; }
.deco-house-base.is-right { right: clamp(16px, 4vw, 70px); }
.deco-house-base.is-left { left: clamp(16px, 4vw, 70px); }
.section-soft .deco-house-base { opacity: .1; }
/* last section: lift the house above the footer wave so it is not hidden */
main > section:last-of-type .deco-house-base { bottom: clamp(50px, 8vw, 120px); }
@media (max-width: 760px) { .deco-house-base { width: 130px; opacity: .07; } }

/* Loan-type strip under the hero — light colour combination */
body .h-strip { background: linear-gradient(90deg, #EAF3FA 0%, #F5F9FC 50%, #EEF4F8 100%);
  border-top: 1px solid #DCE7EF; border-bottom: 1px solid #DCE7EF; box-shadow: 0 14px 30px -26px rgba(12, 41, 62, .35); }
body .h-strip a, body .h-strip a:hover { color: var(--brand); -webkit-text-fill-color: var(--brand); font-weight: 600; }
body .h-strip a svg { background: #fff; color: var(--brand-mid); box-shadow: 0 6px 14px -8px rgba(12, 41, 62, .35); }
body .h-strip a + a::before { background: #CFDDE8; }
body .h-strip a:hover { background: rgba(255, 255, 255, .75); }
body .h-strip a:hover svg { background: var(--brand); color: #fff; }
@media (max-width: 640px) { body .h-strip a { border-bottom-color: #DCE7EF; } }
