/* GNE Mortgages — brand: white, charcoal #2E2E2E (plus greys), orange #FF8B0B. Never navy or blue. */
:root {
  --white: #FFFFFF;
  --ink: #2E2E2E;
  --orange: #FF8B0B;
  --orange-hover: #E67800;
  --orange-soft: #FFF3E6;
  --grey: #F5F5F5;
  --sand: #F5F5F5; /* alias: revision uses pure white + #F5F5F5, not warm sand */
  --mist: #EFEFEF;
  --line: #E6E6E6;
  --muted: #6B6B6B;
  --ink-soft: #3F3F3F;
  --shadow: 0 12px 40px rgba(46, 46, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(46, 46, 46, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --header: 88px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", "Georgia", serif;
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.65, 0.25, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.05rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: 8px 16px; z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.ico { width: 24px; height: 24px; flex-shrink: 0; display: block; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header); gap: 20px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 11px; border: 0; background: none;
  font-weight: 500; font-size: 0.95rem; color: var(--ink);
  text-decoration: none; cursor: pointer; border-radius: 8px;
}
.nav a:hover, .nav-drop > button:hover { background: var(--grey); color: var(--ink); }
.nav-drop { position: relative; }
.nav-drop-menu {
  display: none; position: absolute; top: calc(100% - 2px); left: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  min-width: 260px; padding: 8px; z-index: 90;
}
/* Invisible hover bridge above the panel so the pointer never falls through a gap */
.nav-drop-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -16px;
  height: 16px;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu,
.nav-drop.open .nav-drop-menu { display: grid; }
.nav-drop-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  text-decoration: none; font-size: 0.92rem;
}
.nav-drop-menu a:hover { background: var(--orange-soft); color: var(--ink); }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--ink) !important;
  font-weight: 600; padding: 10px 16px !important;
  border-radius: 999px; text-decoration: none !important;
  white-space: nowrap;
}
.header-cta:hover { background: var(--orange-hover) !important; color: var(--white) !important; }
.header-phone {
  font-weight: 600; text-decoration: none; font-size: 0.95rem; white-space: nowrap;
}
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 42px; height: 42px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: var(--ink);
  font-weight: 600; font-size: 0.98rem;
  padding: 13px 22px; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer; line-height: 1;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.btn:hover { background: var(--orange-hover); color: var(--white); text-decoration: none; }
.btn-ghost {
  background: transparent;
  border: 1.5px solid currentColor;
  color: inherit;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: inherit; }
.btn-text {
  background: none; border: 0; padding: 13px 4px;
  color: inherit; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.btn-text:hover { color: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 18px; }

/* ── Hero with media ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: -8%;
  z-index: 0;
  will-change: transform;
  transform: scale(1.08);
  pointer-events: none;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Charcoal overlay — never blue */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(46, 46, 46, 0.84) 0%,
    rgba(46, 46, 46, 0.70) 48%,
    rgba(46, 46, 46, 0.50) 100%
  );
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-home {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  min-height: 560px;
}
.hero-copy { color: var(--white); }
.hero .eyebrow {
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 12px;
}
.hero h1 { color: var(--white); margin-bottom: 0.45em; }
.hero .lede {
  color: rgba(255,255,255,0.92);
  font-size: 1.08rem;
  max-width: 38rem;
  margin-bottom: 0;
}
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.7); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.hero .btn-text { color: var(--white); }
.hero .btn-text .ico { color: var(--orange); }
.hero .crumbs { color: rgba(255,255,255,0.8); font-size: 0.88rem; margin: 0 0 14px; }
.hero .crumbs a { color: rgba(255,255,255,0.88); }
.hero .crumbs a:hover { color: var(--orange); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
.pills li, .pill {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pill .ico { width: 16px; height: 16px; color: var(--orange); }
.benefit-pills { margin-top: 18px; }

/* Hero Genie */
.hero-mascot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: genie-enter 0.95s var(--ease) both;
}
.hero-mascot .bob {
  position: relative;
  animation: genie-bob 3.8s ease-in-out 1s infinite;
  transform-origin: 50% 100%;
}
.hero-mascot img {
  width: min(100%, 380px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.35));
  margin: 0 auto;
}
.sparkle {
  position: absolute;
  width: 9px; height: 9px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle 2.6s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255,139,11,0.7);
}
.sparkle.s1 { top: 12%; left: 8%; animation-delay: 0s; }
.sparkle.s2 { top: 22%; right: 10%; animation-delay: .6s; width: 6px; height: 6px; }
.sparkle.s3 { top: 48%; left: 2%; animation-delay: 1.1s; width: 7px; height: 7px; }
.sparkle.s4 { top: 8%; right: 28%; animation-delay: 1.7s; width: 5px; height: 5px; }
.sparkle.s5 { bottom: 28%; right: 6%; animation-delay: 0.4s; }

@keyframes genie-enter {
  from { opacity: 0; transform: translateY(48px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes genie-bob {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50%      { transform: translateY(-12px) rotate(1.6deg); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.3) translateY(0); }
  40%      { opacity: 1; transform: scale(1) translateY(-10px); }
  80%      { opacity: 0.15; transform: scale(0.5) translateY(-18px); }
}
@keyframes genie-wiggle {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-9deg); }
  30% { transform: rotate(8deg); }
  45% { transform: rotate(-6deg); }
  60% { transform: rotate(5deg); }
  75% { transform: rotate(-2deg); }
}

/* Product hero (HELOC and future product pages) */
.product-hero {
  min-height: calc(100vh - var(--header));
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 36px 0 48px;
}
.product-hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr min(420px, 42%);
  gap: 36px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── Trust bar ── */
.trust-bar {
  background: var(--ink);
  color: var(--white);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trust-item .ico-wrap {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255,139,11,0.15);
  color: var(--orange);
  display: grid; place-items: center;
}
.trust-item .ico { width: 22px; height: 22px; }
.trust-item strong { display: block; color: var(--white); font-size: 1.02rem; margin-bottom: 2px; }
.trust-item span { display: block; color: rgba(255,255,255,0.72); font-size: 0.88rem; line-height: 1.4; }

/* ── Sections ── */
.section { padding: 80px 0; background: var(--white); }
.section.alt, .section.sand { background: var(--grey); }
.section-head { max-width: 42rem; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; color: var(--muted); }
.kicker {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 10px;
}

/* ── Product cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s ease;
  min-height: 100%;
}
.section.alt .card { border-color: transparent; box-shadow: var(--shadow); }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
  color: var(--ink);
  text-decoration: none;
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid; place-items: center;
  margin-bottom: 10px;
}
.card-icon .ico { width: 28px; height: 28px; }
.card h3 { margin: 0 0 4px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 10px; flex: 1; line-height: 1.5; }
.card .more { color: var(--ink); font-weight: 600; font-size: 0.9rem; }
.card:hover .more { color: var(--orange); }

/* ── Process ── */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 0;
  border-top: 2px dashed rgba(255,139,11,0.45);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: left;
}
.step-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--orange);
  color: var(--ink);
  display: grid; place-items: center;
  margin-bottom: 16px;
  position: relative;
}
.step-icon .ico { width: 32px; height: 32px; color: var(--orange); }
.step-num {
  position: absolute;
  top: -6px; right: -6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: 0.35em; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid img, .genie-accent {
  width: 200px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 20px rgba(46,46,46,0.12));
  animation: genie-bob 4.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}

/* ── Offices + map ── */
.offices-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: start;
}
.canada-map { width: 100%; height: auto; }
.canada-map .land { fill: #EDEDED; stroke: #D0D0D0; stroke-width: 1; }
.canada-map .pin-dot { fill: var(--orange); stroke: var(--white); stroke-width: 2; }
.canada-map .pin-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 650;
  fill: var(--ink);
}
.canada-map .ns-open { fill: var(--ink); }
.office-teasers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.office {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 16px 14px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color .2s, transform .3s var(--ease);
}
.office:hover { border-color: var(--orange); color: var(--ink); text-decoration: none; transform: translateY(-2px); }
.office .region {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px;
}
.office .region .ico { width: 14px; height: 14px; }
.office h3 { margin: 0 0 4px; font-size: 1.08rem; }
.office address { font-style: normal; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

/* ── FAQ ── */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > button {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.05rem;
  cursor: pointer; position: relative;
  font-family: var(--display);
}
.faq-item > button::after {
  content: "+";
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--orange); font-weight: 500; font-size: 1.4rem; font-family: var(--font);
}
.faq-item.open > button::after { content: "–"; }
.faq-a { display: none; padding: 0 8px 18px 0; color: var(--muted); }
.faq-item.open .faq-a { display: block; }
.faq-a p { margin: 0; }

/* ── CTA band ── */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 48px 0;
}
.cta-band .wrap {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 28px;
  align-items: center;
}
.cta-band img.genie {
  width: 140px;
  height: auto;
  animation: genie-bob 3.8s ease-in-out infinite;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.3));
}
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band p { color: rgba(255,255,255,0.82); margin: 0; }
.cta-band .kicker { color: var(--orange); }
.cta-band .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.6); }

/* ── Footer ── */
.site-footer {
  background: var(--grey);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 14px; }
.site-footer h3 { font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.social a { font-weight: 600; font-size: 0.88rem; }
.affiliates { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.affiliates img { height: 40px; width: auto; }
.licences {
  font-size: 0.82rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px;
}
.copyright {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.8rem; color: var(--muted); margin-top: 10px;
}

/* ── Lead form ── */
.lead-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 26px 20px;
}
.lead-form h2 { font-size: 1.35rem; margin-bottom: 0.2em; color: var(--ink); }
.form-lede { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.form-progress { display: flex; gap: 8px; margin: 0 0 16px; }
.form-progress span {
  flex: 1; font-size: 0.78rem; font-weight: 650; color: var(--muted);
  padding-bottom: 6px; border-bottom: 2px solid var(--line);
}
.form-progress span.is-active { color: var(--ink); border-color: var(--orange); }
.lead-form label { display: block; font-weight: 600; font-size: 0.86rem; margin: 0 0 12px; }
.lead-form input, .lead-form select, .lead-form textarea {
  display: block; width: 100%; margin-top: 6px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; background: var(--white);
}
.lead-form input:focus, .lead-form select:focus {
  outline: 2px solid var(--orange); border-color: var(--orange);
}
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form .hint { display: block; font-weight: 400; font-size: 0.76rem; color: var(--muted); margin-top: 4px; }
.lead-form .hp, .hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
[data-step] { display: none; }
[data-step].is-active { display: block; }
.consent { display: flex !important; gap: 10px; font-weight: 400 !important; font-size: 0.84rem !important; align-items: flex-start; }
.consent input { width: auto !important; margin: 4px 0 0 !important; flex-shrink: 0; }
.form-nav { display: flex; gap: 10px; margin-top: 4px; }
.btn-back {
  background: transparent; border: 1.5px solid var(--line); color: var(--ink);
}
.btn-back:hover { background: var(--grey); color: var(--ink); }
.form-or, .velocity { font-size: 0.84rem; color: var(--muted); margin: 10px 0 0; }
.form-status { margin-top: 10px; font-size: 0.9rem; }
.form-status.error { color: var(--ink); font-weight: 600; border-left: 3px solid var(--orange); padding-left: 10px; }

/* ── Two-col prose ── */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.prose h2 { margin-top: 0.6em; }
.prose h3 { margin-top: 0.8em; margin-bottom: 0.3em; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: 0 0 0.4em; }
.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0 8px;
}
.benefit {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
}
.benefit .card-icon { width: 44px; height: 44px; margin: 0; }
.benefit h3 { margin: 0 0 2px; font-size: 1.02rem; }
.benefit p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.contact-card {
  background: var(--grey);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 20px;
}
.contact-card .phone { font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.contact-card .btn { margin-top: 8px; }

/* ── Scroll reveal (Burke-inspired timing; charcoal only) ── */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.82s var(--ease), transform 0.82s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal { opacity: 1; transform: none; }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > :nth-child(1) { --delay: 0s; }
.reveal-stagger > :nth-child(2) { --delay: 0.075s; }
.reveal-stagger > :nth-child(3) { --delay: 0.15s; }
.reveal-stagger > :nth-child(4) { --delay: 0.225s; }
.reveal-stagger > :nth-child(5) { --delay: 0.3s; }
.reveal-stagger > :nth-child(6) { --delay: 0.375s; }
.reveal-stagger > :nth-child(7) { --delay: 0.45s; }
.reveal-stagger > :nth-child(8) { --delay: 0.525s; }
.reveal-stagger > :nth-child(9) { --delay: 0.6s; }

/* ── GNE Genie launcher: bare figure, no circle, no border, no bubble bg ── */
.genie-launcher {
  position: fixed;
  right: 18px;
  bottom: 12px;
  z-index: 90;
  background: none !important;
  border: 0 !important;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: auto;
  height: auto;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.genie-launcher-img {
  height: 148px;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 10px 18px rgba(46, 46, 46, 0.32));
  animation: genie-bob 3.6s ease-in-out infinite;
  transform-origin: 50% 100%;
  pointer-events: none;
}
.genie-launcher:hover .genie-launcher-img {
  animation: none;
  transform: scale(1.07) rotate(4deg);
  filter: drop-shadow(0 14px 22px rgba(46, 46, 46, 0.4));
}
.genie-launcher.attention .genie-launcher-img {
  animation: genie-wiggle 0.85s ease-in-out;
  transform-origin: 50% 100%;
}
.genie-tip {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px 16px 4px 16px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
  animation: tip-in 0.5s var(--ease) 1.4s both;
}
@keyframes tip-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
body.genie-open .genie-launcher { visibility: hidden; pointer-events: none; }

/* Chat panel */
.genie-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(380px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 32px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.genie-panel.open { display: flex; }
.genie-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--grey);
}
.genie-head img, .genie-head .bust {
  width: 72px;
  height: auto;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  animation: genie-bob 4s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.genie-head strong { display: block; font-size: 1rem; }
.genie-head span { display: block; font-size: 0.78rem; color: var(--muted); }
.genie-head .close {
  margin-left: auto;
  background: none; border: 0; font-size: 1.5rem;
  cursor: pointer; line-height: 1; color: var(--ink);
  width: 36px; height: 36px;
}
.genie-msgs { flex: 1; overflow: auto; padding: 14px; background: var(--white); }
.genie-empty { text-align: center; padding: 16px 12px 8px; }
.genie-empty img.genie-full { width: 88px; height: auto; margin: 0 auto 8px; }
.genie-empty p { margin: 0 0 0.5em; font-size: 0.9rem; }
.genie-empty .btn { margin-top: 6px; }
.msg {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 14px;
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.msg.user { margin-left: auto; background: var(--orange-soft); }
.msg.bot {
  background: var(--grey);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.msg.bot .msg-genie {
  width: 36px;
  height: auto;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
}
.msg.bot .msg-body { flex: 1; }
.genie-composer {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--line); background: var(--white);
}
.genie-composer textarea {
  flex: 1; resize: none; border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 10px; min-height: 42px; max-height: 90px;
}
.genie-composer button {
  background: var(--orange); color: var(--ink); border: 0;
  border-radius: 12px; padding: 0 16px; font-weight: 700; cursor: pointer;
}
.genie-fallback { display: grid; gap: 8px; }
.genie-fallback .btn { justify-content: center; }
.lead-mini { display: grid; gap: 8px; }
.lead-mini h3 { font-size: 1rem; margin: 0; }
.lead-mini input, .lead-mini select {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-video { display: none !important; }
  .hero-mascot img, .genie-launcher-img, .cta-band img.genie, .about-grid img {
    filter: drop-shadow(0 10px 16px rgba(46,46,46,0.18));
  }
}

/* Hide autoplay video on small screens — poster only, saves data */
@media (max-width: 760px) {
  .hero-video { display: none; }
}

/* ── Responsive ── */
@media (max-width: 1060px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-hero .hero-grid { grid-template-columns: 1fr 380px; gap: 24px; }
}
@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    max-height: calc(100vh - var(--header));
    overflow: auto;
    z-index: 85;
  }
  .nav.open { display: flex; }
  .nav-drop-menu { position: static; box-shadow: none; border: 0; display: none; min-width: 0; padding: 0 0 0 8px; }
  .nav-drop-menu::before { display: none; }
  /* Touch: only .open / focus-within, never hover (hover can flash and close) */
  .nav-drop:hover .nav-drop-menu { display: none; }
  .nav-drop.open .nav-drop-menu,
  .nav-drop:focus-within .nav-drop-menu { display: grid; }
  .header-cta, .header-phone { align-self: flex-start; }
  .hero-home { grid-template-columns: 1fr; text-align: left; min-height: 0; gap: 12px; }
  .hero-mascot { order: -1; }
  .hero-mascot img { width: min(58%, 260px); }
  .hero { padding: 28px 0 48px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-grid img { width: 150px; }
  .cta-band .wrap { grid-template-columns: 1fr; text-align: center; }
  .cta-band img.genie { width: 120px; margin: 0 auto; }
  .cta-band .hero-actions { justify-content: center; }
  .offices-layout { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .product-hero { min-height: 0; padding: 28px 0 40px; }
  .product-hero .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .card-grid, .process, .trust-grid, .office-teasers, .benefits, .lead-form .row {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-mascot img { width: min(50%, 220px); }
  .genie-launcher { right: 8px; bottom: 6px; }
  .genie-launcher-img { height: 118px; }
  .genie-tip { font-size: 0.75rem; padding: 6px 10px; }
  .section { padding: 56px 0; }
  .pills { margin-top: 14px; }
}

/* Product-hero form: keep step 1 fully above the fold; avoid Genie overlap */
.product-hero .lead-form { padding: 20px 22px 16px; }
.product-hero .form-lede { margin-bottom: 10px; font-size: 0.88rem; }
.product-hero .lead-form label { margin-bottom: 10px; }
.product-hero .form-or, .product-hero .velocity { font-size: 0.78rem; margin: 8px 0 0; }
.product-hero .lead-form { margin-bottom: 8px; }
@media (min-width: 961px) {
  .product-hero .hero-grid { padding-bottom: 8px; }
  /* Leave a little room so the bare Genie launcher does not cover Velocity */
  .product-hero .lead-form { padding-bottom: 16px; }
}
@media (max-width: 960px) {
  .hero-mascot img { width: min(46%, 200px); margin-bottom: 4px; }
  .hero { padding: 20px 0 40px; }
  .hero-home { gap: 4px; }
}


/* ============================================================
   Revision 3 — full wordmark, MC member, puppet Genie, hero,
   hovers, Ken Burns, rotator, counters
   ============================================================ */

/* Brand lockup */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}
.brand-lockup .logo img,
.brand-lockup .logo picture,
.logo img {
  height: 54px;
  width: auto;
  display: block;
}
.brand-div {
  width: 1px;
  height: 42px;
  background: var(--line);
  flex-shrink: 0;
}
.mc-member {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-decoration: none;
  color: var(--muted);
  min-width: 0;
}
.mc-member:hover { color: var(--ink); text-decoration: none; }
.mc-label {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--muted);
}
.mc-member img {
  height: 26px !important;
  width: auto !important;
  max-width: 132px;
  display: block;
}
.footer-logo { height: 64px !important; width: auto !important; margin-bottom: 10px; }
.footer-mc { margin: 0 0 14px; }
.footer-mc img { height: 28px !important; max-width: 140px; }

/* Tighter nav to make room for the lockup */
.nav a, .nav-drop > button { padding: 7px 9px; font-size: 0.9rem; }

/* Button sheen */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.45) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform .55s ease;
  pointer-events: none;
}
.btn:hover::after { transform: translateX(130%); }
.btn-ghost::after { background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.28) 50%, transparent 65%); }

/* Link underline-animate (content links, not nav/buttons) */
.prose a, .faq-a a, .form-or a, .velocity a, .site-footer a:not(.mc-member), .contact-card a:not(.btn) {
  background-image: linear-gradient(var(--orange), var(--orange));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1.5px;
  transition: background-size .3s ease, color .2s ease;
  text-decoration: none;
}
.prose a:hover, .faq-a a:hover, .form-or a:hover, .velocity a:hover,
.site-footer a:not(.mc-member):hover, .contact-card a:not(.btn):hover {
  background-size: 100% 1.5px;
  color: var(--orange);
}

/* Stronger card / box hovers */
.card, .office, .step, .benefit, .trust-item, .contact-card, .need-chip, .ht-pill {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s ease, background .25s ease;
}
.card:hover, .office:hover, .benefit:hover, .contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.card:hover .card-icon, .benefit:hover .card-icon, .step:hover .step-icon, .trust-item:hover .ico-wrap {
  animation: icon-pop .5s var(--ease);
  color: var(--orange);
}
@keyframes icon-pop {
  0% { transform: scale(1) rotate(0); }
  40% { transform: scale(1.14) rotate(-8deg); }
  70% { transform: scale(0.96) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}
.step:hover { transform: translateY(-5px); }
.step:hover .step-icon { border-color: var(--orange); box-shadow: 0 8px 20px rgba(255,139,11,0.28); }

/* Ken Burns on hero media (inner, so parallax can still run on the outer) */
.hero-media-inner {
  position: absolute;
  inset: 0;
  animation: kenburns 28s ease-in-out alternate infinite;
  will-change: transform;
}
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.6%, -1%); }
}
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }

/* Stronger hero type */
.hero-strong { padding: 48px 0 64px; }
.hero-strong .hero-home { min-height: 620px; align-items: center; gap: 16px 24px; }
.hero-strong h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 0.4em;
}
.h1-lead { display: block; }
.rotator {
  display: inline-grid;
  color: var(--orange);
  min-height: 1.15em;
  font-size: 1.06em;
}
.rot-word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(36%);
  transition: opacity .48s var(--ease), transform .48s var(--ease);
  white-space: nowrap;
  pointer-events: none;
}
.rot-word.is-on {
  opacity: 1;
  transform: none;
}
.need-label {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 18px 0 8px;
}
.need-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.need-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  background: rgba(46,46,46,0.28);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}
.need-chip:hover {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
  transform: translateY(-3px);
  text-decoration: none;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}
.ht-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.ht-pill strong { color: var(--ink); }
.ht-mc { background: #fff; }
.ht-mc .mc-label, .ht-mc span { font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.ht-mc img { height: 20px; width: auto; display: block; }

/* Floating orange shapes in the hero (beyond sparkles) */
.hero-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 3; }

/* ===== GNE Genie puppet — rigged cut-out ===== */
.genie-stage {
  position: relative;
  width: min(100%, 440px);
  margin: 0 auto;
  aspect-ratio: 720 / 960;
  animation: none; /* entrance is on the puppet */
}
.genie-stage .genie-static { display: none; }
.genie-puppet {
  position: relative;
  width: 100%;
  aspect-ratio: 720 / 900;
  animation: puppet-spin-in 1.7s cubic-bezier(0.2, 0.65, 0.25, 1) both;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.38));
  z-index: 2;
}
.p-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.p-layer img { width: 100%; height: auto; display: block; max-width: none; }
.p-layer .joint { width: 100%; height: 100%; transform-origin: inherit; }
.p-tail { z-index: 1; transform-origin: 52.47% 68.15%; }
.p-body { z-index: 2; transform-origin: 54.32% 54.32%; }
.p-arm-r { z-index: 3; transform-origin: 72.84% 53.33%; }
.p-arm-l { z-index: 5; transform-origin: 43.21% 44.44%; }
.p-head { z-index: 6; transform-origin: 55.56% 36.54%; }
.p-tail .joint, .p-body .joint, .p-arm-r .joint, .p-arm-l .joint, .p-head .joint {
  transform-origin: inherit;
}

/* Entrance: whole figure spins in from a swirl */
@keyframes puppet-spin-in {
  0%   { opacity: 0; transform: scale(0.08) rotate(-520deg) translateY(60px); filter: blur(10px) drop-shadow(0 18px 28px rgba(0,0,0,0.38)); }
  50%  { opacity: 1; filter: blur(0) drop-shadow(0 18px 28px rgba(0,0,0,0.38)); transform: scale(1.08) rotate(16deg) translateY(-8px); }
  72%  { transform: scale(0.97) rotate(-5deg) translateY(3px); }
  100% { opacity: 1; transform: scale(1) rotate(0) translateY(0); filter: drop-shadow(0 18px 28px rgba(0,0,0,0.38)); }
}

/* Tail uncurls, then sways */
@keyframes tail-uncurl {
  0%   { transform: rotate(58deg) scaleY(0.28) scaleX(0.7); }
  60%  { transform: rotate(-8deg) scaleY(1.05) scaleX(1.02); }
  100% { transform: rotate(0) scaleY(1) scaleX(1); }
}
@keyframes tail-sway {
  0%, 100% { transform: rotate(-7deg); }
  50%      { transform: rotate(9deg); }
}
.p-tail { animation: tail-uncurl 1.35s var(--ease) 0.4s both; }
.p-tail .joint { animation: tail-sway 3.8s ease-in-out 1.85s infinite; }

/* Body breathes */
@keyframes breathe {
  0%, 100% { transform: scale(1, 1); }
  50%      { transform: scale(1.015, 1.03); }
}
.p-body .joint { animation: breathe 3.6s ease-in-out 1.7s infinite; }

/* Head: slight entrance nod, then bob. Blink overlay. */
@keyframes head-enter {
  0%   { transform: rotate(-12deg) translateY(8px); }
  100% { transform: rotate(0) translateY(0); }
}
@keyframes head-bob {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(2.4deg) translateY(-5px); }
}
.p-head { animation: head-enter 0.9s var(--ease) 0.9s both; }
.p-head .joint { animation: head-bob 4s ease-in-out 1.9s infinite; }
.p-blink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  animation: blink 4.8s ease-in-out 2.6s infinite;
  pointer-events: none;
}
@keyframes blink {
  0%, 92%, 100% { opacity: 0; }
  94%, 96%      { opacity: 1; }
}

/* Arm L (thumbs-up): wave on entrance, then lower off the thumbs-up, occasional wave */
@keyframes arm-wave-in {
  0%   { transform: rotate(-50deg) scale(0.85); }
  25%  { transform: rotate(16deg); }
  45%  { transform: rotate(-22deg); }
  65%  { transform: rotate(14deg); }
  85%  { transform: rotate(-10deg); }
  100% { transform: rotate(-22deg); } /* settled: not a held thumbs-up */
}
@keyframes arm-idle {
  0%, 70%, 100% { transform: rotate(-22deg); }
  76% { transform: rotate(12deg); }   /* a friendly wave / thumbs-up */
  82% { transform: rotate(-16deg); }
  88% { transform: rotate(10deg); }
  94% { transform: rotate(-22deg); }
}
.p-arm-l { animation: arm-wave-in 1.7s var(--ease) 1.15s both; }
.p-arm-l .joint { animation: arm-idle 8.5s ease-in-out 3s infinite; }

@keyframes arm-r-idle {
  0%, 100% { transform: rotate(0); }
  50%      { transform: rotate(-8deg); }
}
.p-arm-r .joint { animation: arm-r-idle 3.8s ease-in-out 1.8s infinite; }

/* Orange magic smoke puff on entrance */
.magic-smoke {
  position: absolute;
  inset: 10% 8% 8%;
  pointer-events: none;
  z-index: 4;
}
.magic-smoke i {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 90px;
  height: 90px;
  margin: -45px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,139,11,0.95) 0%, rgba(255,139,11,0.45) 40%, rgba(255,139,11,0) 70%);
  animation: puff 1.55s ease-out both;
  opacity: 0;
}
.magic-smoke i:nth-child(1) { animation-delay: 0s; --tx: -30px; --ty: -80px; --s: 2.2; }
.magic-smoke i:nth-child(2) { animation-delay: .06s; --tx: 70px; --ty: -40px; --s: 1.8; width: 70px; height: 70px; }
.magic-smoke i:nth-child(3) { animation-delay: .1s; --tx: -80px; --ty: 20px; --s: 2.4; }
.magic-smoke i:nth-child(4) { animation-delay: .14s; --tx: 50px; --ty: 70px; --s: 1.7; }
.magic-smoke i:nth-child(5) { animation-delay: .04s; --tx: 10px; --ty: -20px; --s: 2.8; width: 120px; height: 120px; }
.magic-smoke i:nth-child(6) { animation-delay: .18s; --tx: -60px; --ty: -50px; --s: 1.5; }
.magic-smoke i:nth-child(7) { animation-delay: .12s; --tx: 90px; --ty: 10px; --s: 2; }
.magic-smoke i:nth-child(8) { animation-delay: .2s; --tx: -20px; --ty: 90px; --s: 1.9; }
.magic-smoke i:nth-child(9) { animation-delay: .08s; --tx: 40px; --ty: -90px; --s: 1.6; }
.magic-smoke i:nth-child(10){ animation-delay: .16s; --tx: -90px; --ty: 60px; --s: 2.1; }
@keyframes puff {
  0%   { opacity: 0; transform: translate(0,0) scale(0.2); }
  25%  { opacity: 0.95; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(var(--s)); }
}

/* Speech bubble — pops in after the entrance */
.genie-speech {
  position: absolute;
  left: auto;
  right: 78%;
  top: 8%;
  z-index: 7;
  width: max-content;
  white-space: normal;
  background: #fff;
  color: var(--ink);
  border: 0;
  border-radius: 18px 18px 18px 5px;
  padding: 12px 16px;
  max-width: 230px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  font: inherit;
  line-height: 1.35;
  animation: bubble-pop 0.55s var(--ease) 3.05s both;
  pointer-events: auto;
}
.genie-speech strong { display: block; font-size: 0.95rem; margin-bottom: 2px; color: var(--ink); }
.genie-speech:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(46,46,46,0.18); }
.genie-speech:hover { color: var(--ink); }
@keyframes bubble-pop {
  0%   { opacity: 0; transform: scale(0.6) translateY(12px); }
  70%  { opacity: 1; transform: scale(1.06) translateY(0); }
  100% { opacity: 1; transform: scale(1); }
}

/* Reduced motion: static PNG, no spin, bubble visible, Ken Burns off */
@media (prefers-reduced-motion: reduce) {
  .genie-puppet, .magic-smoke, .hero-media-inner, .p-tail, .p-tail .joint,
  .p-body .joint, .p-head, .p-head .joint, .p-blink, .p-arm-l, .p-arm-l .joint,
  .p-arm-r .joint, .genie-speech, .rot-word {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .genie-stage .genie-static { display: block; }
  .genie-stage .genie-static img { width: min(100%, 360px); margin: 0 auto; }
  .genie-puppet, .magic-smoke { display: none; }
  .rotator { display: inline; }
  .rot-word { position: static; display: none; }
  .rot-word.is-on { display: inline; }
}

@media (max-width: 960px) {
  .brand-lockup { gap: 8px; }
  .brand-lockup .logo img, .logo img { height: 46px; }
  .mc-member img { height: 22px !important; max-width: 110px; }
  .brand-div { height: 34px; }
  .hero-strong .hero-home { min-height: 0; }
  .genie-stage { width: min(68%, 320px); margin: 0 auto 4px; }
  .genie-speech { max-width: 180px; padding: 10px 12px; font-size: 0.88rem; left: 0; }
  .h1-lead { font-size: 0.72em; }
}
@media (max-width: 760px) {
  .site-header .wrap { gap: 8px; }
  .mc-label { font-size: 0.55rem; }
  .hero-strong { padding: 20px 0 36px; }
  .genie-stage { width: min(62%, 280px); }
  .need-chip { font-size: 0.82rem; padding: 6px 11px; }
  .ht-pill { font-size: 0.76rem; }
}

/* Revision 3b — readable full wordmark, layer polish, mobile clearance */
:root { --header: 100px; }
.brand-lockup .logo img,
.brand-lockup .logo picture img,
.logo img {
  height: 68px;
  width: auto;
  display: block;
}
.footer-logo { height: 76px !important; width: auto !important; }
.p-layer img {
  filter: none !important;
  max-width: none !important;
  width: 100% !important;
  height: auto !important;
}
/* Stop the old mascot enter from compounding the puppet spin (already none on .genie-stage). */
.hero-mascot.genie-stage { animation: none; }
@media (max-width: 960px) {
  :root { --header: 90px; }
  .brand-lockup .logo img, .logo img { height: 58px; }
}
@media (max-width: 760px) {
  :root { --header: 82px; }
  .brand-lockup .logo img, .logo img { height: 52px; }
  .hero-strong { padding-bottom: 56px; }
  .hero-strong .need-chips,
  .hero-strong .hero-actions,
  .hero-strong .hero-trust {
    padding-right: 128px;
  }
}


/* ============================================================
   Revision 4 — keyed Genie video clips replace the CSS puppet
   ============================================================ */

/* Hide leftover puppet rules if any remain */
.genie-puppet, .magic-smoke, .p-layer, .p-blink { display: none !important; animation: none !important; }

.genie-stage {
  position: relative;
  width: min(100%, 500px);
  margin: 0 auto;
  aspect-ratio: 720 / 960;
  animation: none;
}
.genie-stage .genie-static {
  display: block; /* default / no-JS / reduced-motion / Safari-static */
  width: 100%;
  height: 100%;
}
.genie-stage .genie-static img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  max-width: none;
}
.genie-vids {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
}
.genie-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.38));
}
.genie-stage .genie-static img { filter: drop-shadow(0 18px 28px rgba(0,0,0,0.38)); }

/* WebM path (Chrome, Firefox, Edge) */
.genie-stage.is-webm .genie-vids,
.genie-stage.is-webp .genie-vids { display: block; }
.genie-stage.is-webm .genie-static,
.genie-stage.is-webp .genie-static { display: none; }
.genie-stage.is-webm #genie-entrance { opacity: 1; z-index: 2; }
.genie-stage.is-webm #genie-idle { opacity: 0; z-index: 1; }
.genie-stage.is-webm.is-idle #genie-entrance { opacity: 0; }
.genie-stage.is-webm.is-idle #genie-idle { opacity: 1; z-index: 2; }
/* Safari animated-WebP path */
.genie-stage.is-webp #genie-webp-ent { opacity: 1; z-index: 2; }
.genie-stage.is-webp #genie-webp-idle { opacity: 0; z-index: 1; }
.genie-stage.is-webp.is-idle #genie-webp-ent { opacity: 0; }
.genie-stage.is-webp.is-idle #genie-webp-idle { opacity: 1; z-index: 2; }
.genie-stage.is-webm .genie-webp,
.genie-stage.is-webp #genie-entrance,
.genie-stage.is-webp #genie-idle { display: none; }

/* Speech pops after the 4.04s entrance (was 3.05s for the puppet) */
.genie-speech { animation-delay: 4.15s; left: 2%; top: 8%; }

/* Launcher: small looping idle clip, Genie alone, no circle */
.genie-launcher {
  background: none;
  border: 0;
  padding: 0;
}
.genie-launcher-vid {
  display: none;
  height: 150px;
  width: auto;
  background: transparent;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.28));
}
.genie-launcher.has-vid .genie-launcher-vid { display: block; }
.genie-launcher.has-vid .genie-launcher-img { display: none; }
.genie-launcher.has-webp .genie-launcher-vid { display: none; }
.genie-launcher.has-webp .genie-launcher-img { display: none; }
.genie-launcher.has-webp .genie-launcher-webp { display: block; }
.genie-launcher-webp {
  display: none;
  height: 150px;
  width: auto;
  background: transparent;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.28));
}
.genie-launcher:hover .genie-launcher-vid,
.genie-launcher:hover .genie-launcher-webp,
.genie-launcher:hover .genie-launcher-img {
  transform: translateY(-4px) rotate(-2deg);
}

@media (prefers-reduced-motion: reduce) {
  .genie-vids, .genie-launcher-vid, .genie-launcher-webp { display: none !important; }
  .genie-stage .genie-static { display: block !important; }
  .genie-stage.is-webm .genie-static,
  .genie-stage.is-webp .genie-static { display: block !important; }
  .genie-speech { animation: none !important; opacity: 1 !important; transform: none !important; }
  .genie-launcher.has-vid .genie-launcher-img,
  .genie-launcher.has-webp .genie-launcher-img { display: block !important; }
}

@media (max-width: 960px) {
  .genie-stage { width: min(72%, 340px); margin: 0 auto 4px; }
  .genie-speech { max-width: 180px; padding: 10px 12px; font-size: 0.88rem; left: 0; top: 4%; }
}
@media (max-width: 760px) {
  .genie-stage { width: min(78%, 300px); }
  .genie-launcher-vid, .genie-launcher-webp, .genie-launcher-img { height: 118px; }
  .hero-strong { padding-bottom: 56px; }
  .hero-strong .lede,
  .hero-strong p,
  .need-label { padding-right: 128px; }
}
/* ============================================================
   Revision 5 — original-site structure, subtle Genie, logos
   ============================================================ */

/* Header lockup: match the user's screenshot.
   GNE wordmark 68px tall (~137px wide). MC ~97% of that width,
   vertically centred, 38px gap, no divider, no "A member of". */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 38px;
  flex-shrink: 0;
}
.brand-div,
.mc-label { display: none !important; }
.mc-member {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0;
}
.mc-member img,
.mc-member picture img {
  height: auto !important;
  width: 130px !important;
  max-width: 130px !important;
  display: block;
}
.footer-mc img,
.footer-mc picture img {
  width: 140px !important;
  max-width: 140px !important;
  height: auto !important;
}
@media (max-width: 960px) {
  .brand-lockup { gap: 24px; }
  .mc-member img, .mc-member picture img { width: 108px !important; max-width: 108px !important; }
}
@media (max-width: 760px) {
  .brand-lockup { gap: 16px; }
  .mc-member img, .mc-member picture img { width: 96px !important; max-width: 96px !important; }
}

/* ---- Classic hero: original GNE video, simple copy, tasteful Genie ---- */
.hero-classic {
  position: relative;
  min-height: min(70vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}
.hero-classic .hero-media {
  position: absolute;
  inset: 0;
}
.hero-classic .hero-media-inner {
  animation: none !important;
  transform: none !important;
  width: 100%;
  height: 100%;
}
.hero-classic .hero-video,
.hero-classic .hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-classic .hero-overlay {
  background:
    linear-gradient(90deg, rgba(46,46,46,0.62) 0%, rgba(46,46,46,0.32) 42%, rgba(46,46,46,0.18) 70%, rgba(46,46,46,0.28) 100%),
    linear-gradient(180deg, rgba(46,46,46,0.12) 0%, transparent 30%, rgba(46,46,46,0.45) 100%);
}
.hero-classic .wrap.hero-home {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 340px);
  gap: 16px 24px;
  align-items: end;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 36px;
}
.hero-classic .hero-copy {
  max-width: 36rem;
  color: #fff;
  padding-bottom: 12px;
}
.hero-classic .hero-copy h1 {
  color: #fff;
  font-size: clamp(2.05rem, 4.2vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.28);
}
.hero-classic .hero-copy .lede {
  color: rgba(255,255,255,0.92);
  font-size: 1.08rem;
  margin: 0 0 22px;
  max-width: 32rem;
}
.hero-classic .hero-actions { margin-top: 0; }
.hero-classic .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.hero-classic .btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Tasteful Genie — no sparkles, sits on the right of the video */
.hero-classic .genie-stage {
  width: min(100%, 340px);
  margin: 0 0 -8px auto;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.35));
}
.hero-classic .hero-sparkles { display: none !important; }
.hero-classic .genie-speech {
  animation-delay: 4.15s;
  left: -8%;
  top: 10%;
}

/* Genie clip state: entrance, nowave idle, occasional wave */
.genie-stage.is-webm.is-wave #genie-entrance,
.genie-stage.is-webm.is-wave #genie-idle { opacity: 0; pointer-events: none; }
.genie-stage.is-webm.is-wave #genie-wave { opacity: 1; }
.genie-stage.is-webp.is-wave #genie-webp-ent,
.genie-stage.is-webp.is-wave #genie-webp-idle { opacity: 0; }
.genie-stage.is-webp.is-wave #genie-webp-wave { opacity: 1; }
.genie-stage.is-webp:not(.is-idle):not(.is-wave) #genie-webp-ent { opacity: 1; }
.genie-stage.is-webp.is-idle:not(.is-wave) #genie-webp-idle { opacity: 1; }
#genie-wave { opacity: 0; }
#genie-webp-wave { opacity: 0; }

@media (max-width: 860px) {
  .hero-classic {
    min-height: 0;
    display: block;
    padding: 0;
  }
  .hero-classic .hero-media {
    position: relative;
    height: min(52vw, 320px);
    min-height: 220px;
  }
  .hero-classic .wrap.hero-home {
    grid-template-columns: 1fr;
    padding: 8px 0 28px;
    background: var(--ink);
  }
  .hero-classic .hero-copy { max-width: none; padding: 8px 0 0; }
  .hero-classic .hero-copy h1 { font-size: 1.85rem; }
  .hero-classic .genie-stage {
    width: min(58%, 260px);
    position: absolute;
    right: 4px;
    bottom: 0;
    margin: 0;
    z-index: 3;
  }
  .hero-classic .wrap.hero-home { position: relative; }
  .hero-classic .hero-copy { padding-right: 36%; }
  .hero-classic .genie-speech { left: -18%; top: 4%; font-size: 0.82rem; }
}
@media (max-width: 520px) {
  .hero-classic .hero-copy { padding-right: 0; }
  .hero-classic .genie-stage {
    position: relative;
    width: min(70%, 240px);
    margin: -40px auto 0;
    right: auto;
    display: block;
  }
  .hero-classic .wrap.hero-home { background: transparent; padding-top: 0; }
  .hero-classic .hero-copy {
    background: var(--ink);
    margin: 0 calc(var(--wrap-pad, 20px) * -1);
    padding: 16px var(--wrap-pad, 20px) 28px;
  }
}

/* ---- Our services (original 7-card grid) ---- */
.svc-section {
  background: #fff;
  padding: 56px 0 64px;
}
.svc-section .section-head { text-align: center; margin-bottom: 32px; }
.svc-row {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
}
.svc-row-4 { grid-template-columns: repeat(4, 1fr); }
.svc-row-3 { grid-template-columns: repeat(3, 1fr); max-width: 75%; margin-left: auto; margin-right: auto; margin-bottom: 0; }
.svc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1.5px solid var(--orange);
  border-radius: 14px;
  padding: 28px 20px 24px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .28s ease, box-shadow .28s ease, border-color .2s;
  min-height: 100%;
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(46,46,46,0.10);
  border-color: var(--orange);
  text-decoration: none;
  color: inherit;
}
.svc-card .svc-ico {
  width: 52px;
  height: 52px;
  color: var(--orange);
  margin-bottom: 10px;
}
.svc-card .svc-ico svg { width: 52px; height: 52px; }
.svc-card h3 {
  font-family: var(--sans, "Outfit", sans-serif);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--ink);
}
.svc-card ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex: 1;
  text-align: left;
  width: 100%;
  max-width: 16rem;
}
.svc-card li {
  position: relative;
  padding: 3px 0 3px 1.3em;
  font-size: 0.92rem;
  color: var(--ink);
}
.svc-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}
.svc-card .btn {
  margin-top: auto;
  padding: 8px 22px;
  font-size: 0.88rem;
}
@media (max-width: 980px) {
  .svc-row-4, .svc-row-3 { grid-template-columns: repeat(2, 1fr); max-width: none; }
}
@media (max-width: 560px) {
  .svc-row-4, .svc-row-3 { grid-template-columns: 1fr; }
}

/* ---- Join our team + photo slider ---- */
.join-team {
  background: #fff;
  padding: 24px 0 56px;
  border-top: 1px solid var(--line, #e8e8e8);
}
.join-team .join-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) 1.4fr;
  gap: 36px;
  align-items: center;
}
.join-team h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}
.join-team h2 em {
  font-style: normal;
  color: var(--orange);
}
.team-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f3f3;
  aspect-ratio: 16 / 10;
}
.team-track {
  display: flex;
  height: 100%;
  transition: transform .55s ease;
}
.team-track figure {
  min-width: 100%;
  margin: 0;
  height: 100%;
}
.team-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.team-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.16);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
}
.team-nav:hover { transform: translateY(-50%) scale(1.08); background: #fff; }
.team-nav.prev { left: 12px; }
.team-nav.next { right: 12px; }
.team-dots {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.team-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.65);
  cursor: pointer;
  padding: 0;
}
.team-dots button.is-on { background: var(--orange); }
@media (max-width: 800px) {
  .join-team .join-grid { grid-template-columns: 1fr; gap: 22px; }
  .join-team { text-align: center; }
}

/* ---- WE CLOSE DEALS banner ---- */
.deals-banner {
  background: var(--orange);
  color: #fff;
  overflow: hidden;
  padding: 14px 0;
  user-select: none;
}
.deals-banner .marquee {
  display: flex;
  width: max-content;
  animation: marquee-ltr 36s linear infinite;
}
.deals-banner:hover .marquee { animation-play-state: paused; }
.deals-banner .marquee span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  font-family: var(--sans, "Outfit", sans-serif);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  white-space: nowrap;
}
.deals-banner .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
@keyframes marquee-ltr {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .deals-banner .marquee,
  .lender-marquee .marquee { animation: none; }
}

/* ---- Lender partners marquee ---- */
.lenders-section {
  background: #fff;
  padding: 56px 0 48px;
  overflow: hidden;
}
.lenders-section .section-head { text-align: center; margin-bottom: 28px; }
.lender-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.lender-marquee .marquee {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0;
  animation: marquee-ltr 50s linear infinite;
}
.lender-marquee:hover .marquee { animation-play-state: paused; }
.lender-marquee figure {
  margin: 0;
  padding: 8px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 86px;
}
.lender-marquee img {
  max-height: 58px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: none;
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--orange);
  color: #fff;
  padding: 72px 0 80px;
  position: relative;
}
.testimonials .section-head { text-align: center; color: #fff; margin-bottom: 32px; }
.testimonials .section-head h2 { color: #fff; }
.testimonials .section-head p { color: rgba(255,255,255,0.92); max-width: 36rem; margin: 10px auto 0; }
.t-slider { position: relative; max-width: 720px; margin: 0 auto; }
.t-track { position: relative; min-height: 280px; }
.t-card {
  display: none;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 36px 44px 32px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(46,46,46,0.14);
  position: relative;
}
.t-card.is-on { display: block; animation: t-in .4s ease; }
@keyframes t-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.t-stars { color: var(--orange); letter-spacing: 3px; font-size: 1.25rem; margin-bottom: 16px; }
.t-card blockquote {
  font-family: var(--serif, "Fraunces", serif);
  font-size: 1.12rem;
  line-height: 1.55;
  margin: 0 0 16px;
  font-weight: 500;
}
.t-card cite {
  display: block;
  font-style: normal;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.t-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted, #666);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.t-google img { width: 22px; height: 22px; }
.t-google:hover { color: var(--ink); text-decoration: none; }
.t-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
  z-index: 2;
}
.t-nav.prev { left: -22px; }
.t-nav.next { right: -22px; }
.t-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.t-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.45); cursor: pointer; padding: 0;
}
.t-dots button.is-on { background: #fff; }
@media (max-width: 760px) {
  .t-card { padding: 28px 22px 24px; }
  .t-nav.prev { left: -4px; }
  .t-nav.next { right: -4px; }
}

/* ---- Classic footer (original structure, modernized) ---- */
.site-footer.footer-classic {
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--line, #e8e8e8);
  padding: 56px 0 28px;
}
.footer-classic .footer-classic-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 40px 32px;
  align-items: start;
}
.footer-classic .footer-logo { height: 72px !important; width: auto !important; margin: 0 0 6px; }
.footer-classic .footer-name {
  font-family: var(--sans, "Outfit", sans-serif);
  font-size: 1.25rem;
  font-weight: 650;
  margin: 0 0 16px;
}
.footer-classic .btn-quote {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: none;
  margin-bottom: 20px;
  transition: transform .2s, background .2s;
}
.footer-classic .btn-quote:hover { background: var(--orange); color: #fff; text-decoration: none; transform: translateY(-2px); }
.footer-classic .foot-contact { margin: 0 0 14px; font-size: 0.95rem; line-height: 1.7; }
.footer-classic .foot-contact a { color: var(--ink); }
.footer-classic .foot-office { margin: 0; font-size: 0.95rem; line-height: 1.6; font-style: normal; }
.footer-classic .foot-office strong { display: block; margin-bottom: 2px; }
.footer-classic .foot-links { list-style: none; margin: 48px 0 0; padding: 0; }
.footer-classic .foot-links li { margin: 0 0 12px; }
.footer-classic .foot-links a { color: var(--ink); font-weight: 500; }
.footer-classic .affiliates-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  justify-content: flex-end;
  margin-bottom: 28px;
}
.footer-classic .affiliates-row img {
  height: 52px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}
.footer-classic .affiliates-row img.tall { height: 68px; }
.footer-classic .foot-legal {
  text-align: right;
  font-size: 0.82rem;
  color: var(--muted, #666);
  line-height: 1.55;
}
.footer-classic .social { justify-content: flex-start; margin: 22px 0 0; }
.footer-classic .licences,
.footer-classic .copyright {
  color: var(--muted, #666);
  font-size: 0.78rem;
}
.footer-classic a:not(.btn-quote) { color: var(--ink); }
@media (max-width: 900px) {
  .footer-classic .footer-classic-grid { grid-template-columns: 1fr 1fr; }
  .footer-classic .foot-legal, .footer-classic .affiliates-row { justify-content: flex-start; text-align: left; }
}
@media (max-width: 600px) {
  .footer-classic .footer-classic-grid { grid-template-columns: 1fr; }
  .footer-classic .foot-links { margin-top: 0; }
}

/* Hide leftover rotator/chips if any slipped through */
.hero-classic .rotator,
.hero-classic .need-chips,
.hero-classic .need-label,
.hero-classic .hero-trust,
.hero-classic .eyebrow { display: none !important; }

/* Rev 5b — wave clip stacking, hide videos on WebP path */
.genie-stage.is-webm.is-wave #genie-wave { z-index: 3; }
.genie-stage.is-webp #genie-wave { display: none; }
.genie-stage.is-webp.is-wave #genie-webp-wave { z-index: 3; }

/* Rev 5c — larger trimmed lender logos, mobile hero clearance, footer badges */
.lender-marquee figure {
  height: 110px;
  padding: 10px 40px;
}
.lender-marquee img {
  max-height: 72px;
  max-width: 180px;
}

.footer-classic .affiliates-row img {
  height: 64px;
  max-width: 200px;
}
.footer-classic .affiliates-row img.tall { height: 72px; }
.footer-classic .foot-legal { margin-top: 8px; }

@media (max-width: 860px) {
  .hero-classic .hero-media {
    height: min(56vw, 300px);
    min-height: 200px;
  }
  .hero-classic .wrap.hero-home {
    background: #fff;
    padding: 20px 0 36px;
  }
  .hero-classic .hero-copy {
    color: var(--ink);
    padding-right: 0;
    max-width: none;
  }
  .hero-classic .hero-copy h1,
  .hero-classic .hero-copy .lede { color: var(--ink); text-shadow: none; }
  .hero-classic .btn-ghost {
    color: var(--ink);
    border-color: var(--ink);
  }
  .hero-classic .btn-ghost:hover { background: var(--ink); color: #fff; }
  .hero-classic .genie-stage {
    width: min(42%, 200px);
    right: 6px;
    bottom: auto;
    top: -170px;
    margin: 0;
    z-index: 4;
  }
  .hero-classic .genie-speech { left: -30%; top: 2%; }
}
@media (max-width: 520px) {
  .hero-classic .wrap.hero-home { background: #fff; padding: 16px 0 48px; }
  .hero-classic .hero-copy {
    background: transparent;
    margin: 0;
    padding: 8px 0 28px;
    padding-right: 8px;
    color: var(--ink);
  }
  .hero-classic .hero-copy h1,
  .hero-classic .hero-copy .lede { color: var(--ink); }
  .hero-classic .hero-actions { padding-right: 124px; }
  .hero-classic .genie-stage {
    position: absolute;
    width: 168px;
    right: 4px;
    top: -148px;
    margin: 0;
  }
  .hero-classic .genie-speech { font-size: 0.78rem; left: -40%; top: -4%; max-width: 150px; }
}

/* Keep the launcher off the hero copy on small screens */
@media (max-width: 760px) {
  .hero-classic .hero-copy .lede { padding-right: 0; }
}

/* Rev 5d — keep mobile Genie inside the hero video, off the headline */
@media (max-width: 860px) {
  .hero-classic .hero-media {
    height: 280px;
    min-height: 240px;
  }
  .hero-classic .genie-stage {
    width: 168px;
    top: -252px;
    right: 8px;
  }
  .hero-classic .genie-speech { left: -42%; top: 6%; max-width: 148px; }
  .hero-classic .hero-copy { padding-top: 8px; }
}
@media (max-width: 520px) {
  .hero-classic .hero-media {
    height: 250px;
    min-height: 250px;
  }
  .hero-classic .genie-stage {
    width: 142px;
    top: -228px;
    right: 6px;
  }
  .hero-classic .hero-copy { padding-top: 12px; }
  .hero-classic .genie-speech { left: -48%; top: 0; font-size: 0.76rem; max-width: 138px; }
}

/* ============================================================
   Revision 5e — hero gutters + no overlap of burned-in video text
   The original homepage lets the video slogan stand alone (no
   headline on top). We do the same: copy sits BELOW the video,
   inside the normal .wrap, aligned with the header logo.
   ============================================================ */
.hero-classic {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: #fff;
}
.hero-classic .hero-media {
  position: relative !important;
  inset: auto !important;
  height: min(58vh, 520px) !important;
  min-height: 360px !important;
  overflow: hidden;
}
.hero-classic .hero-media-inner {
  animation: none !important;
  transform: none !important;
  width: 100%;
  height: 100%;
}
.hero-classic .hero-video,
.hero-classic .hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* No charcoal wash over the slogan — only a faint right fade so Genie reads cleanly */
.hero-classic .hero-overlay {
  background:
    linear-gradient(90deg, transparent 0%, transparent 62%, rgba(20,16,14,0.22) 100%) !important;
  pointer-events: none;
}
/* Genie lives in the same wrap as the logo, bottom-right of the video, clear of centre text */
.hero-classic .wrap.hero-genie-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  top: auto;
  height: 100%;
  width: min(var(--max), calc(100% - 48px));
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 3;
  pointer-events: none;
  padding: 0 0 4px;
  box-sizing: border-box;
}
.hero-classic .wrap.hero-genie-wrap .genie-stage {
  pointer-events: auto;
  width: min(28%, 270px) !important;
  max-width: 270px;
  margin: 0 !important;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: 0 !important;
  left: auto !important;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.35));
}
.hero-classic .genie-speech {
  left: auto !important;
  right: 88% !important;
  top: 12% !important;
  max-width: 180px;
}

/* Copy + CTAs sit just below the video, in the normal page container */
.hero-classic .wrap.hero-home {
  position: relative !important;
  z-index: 2;
  display: block !important;
  grid-template-columns: none !important;
  width: min(var(--max), calc(100% - 48px)) !important;
  max-width: var(--max);
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 28px 0 8px !important;
  background: #fff !important;
  box-sizing: border-box;
}
.hero-classic .hero-copy {
  max-width: 42rem !important;
  color: var(--ink) !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
.hero-classic .hero-copy h1 {
  color: var(--ink) !important;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em;
  margin: 0 0 10px !important;
  text-shadow: none !important;
}
.hero-classic .hero-copy .lede {
  color: var(--ink-soft, #3F3F3F) !important;
  font-size: 1.02rem !important;
  margin: 0 0 18px !important;
  max-width: 38rem;
}
.hero-classic .hero-actions {
  margin: 0 !important;
  padding: 0 !important;
}
.hero-classic .btn-ghost {
  color: var(--ink) !important;
  border-color: var(--ink) !important;
}
.hero-classic .btn-ghost:hover {
  background: var(--ink) !important;
  color: #fff !important;
}

@media (max-width: 860px) {
  .hero-classic .hero-media {
    height: min(54vw, 340px) !important;
    min-height: 240px !important;
  }
  .hero-classic .wrap.hero-genie-wrap {
    width: min(var(--max), calc(100% - 40px));
  }
  .hero-classic .wrap.hero-genie-wrap .genie-stage {
    width: min(38%, 180px) !important;
  }
  .hero-classic .wrap.hero-home {
    width: min(var(--max), calc(100% - 40px)) !important;
    padding: 20px 0 12px !important;
    background: #fff !important;
  }
  .hero-classic .hero-copy {
    padding: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  .hero-classic .hero-copy h1 { font-size: 1.45rem !important; }
  .hero-classic .hero-actions { padding-right: 0 !important; }
  .hero-classic .genie-speech {
    right: 86% !important;
    top: 4% !important;
    font-size: 0.78rem !important;
    max-width: 140px !important;
  }
}
@media (max-width: 520px) {
  .hero-classic .hero-media {
    height: 230px !important;
    min-height: 230px !important;
  }
  .hero-classic .wrap.hero-genie-wrap .genie-stage {
    width: 132px !important;
  }
  .hero-classic .wrap.hero-home {
    width: min(var(--max), calc(100% - 40px)) !important;
    padding: 18px 0 20px !important;
  }
  .hero-classic .hero-copy {
    margin: 0 !important;
    padding: 0 0 8px !important;
    background: transparent !important;
  }
  .hero-classic .hero-actions { padding-right: 0 !important; flex-wrap: wrap; }
  .hero-classic .genie-speech {
    right: 80% !important;
    left: auto !important;
    top: 0 !important;
  }
}

/* Rev 5e2 — kill leftover Ken-Burns scale (it was shifting the slogan
   and the Genie), clean video edge, keep Genie clear of burned-in text. */
.hero-classic .hero-media,
.hero.has-media.hero-classic .hero-media,
.hero-classic .hero-media-inner {
  transform: none !important;
  animation: none !important;
  will-change: auto !important;
}
.hero-classic .hero-media {
  overflow: hidden !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}
/* Genie is pinned to the video's bottom-right, not scaled with a wrap */
.hero-classic .wrap.hero-genie-wrap {
  position: absolute !important;
  left: auto !important;
  right: 16px !important;
  bottom: 0 !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  inset: auto 16px 0 auto !important;
  display: block !important;
  pointer-events: none;
}
.hero-classic .wrap.hero-genie-wrap .genie-stage {
  width: 250px !important;
  max-width: 250px !important;
  margin: 0 !important;
  position: relative !important;
  inset: auto !important;
}
.hero-classic .genie-speech {
  left: auto !important;
  right: calc(100% - 12px) !important;
  top: 10% !important;
  max-width: 168px;
}
.hero-classic .wrap.hero-home {
  background: transparent !important;
}

@media (max-width: 860px) {
  /* Speech would sit on 'THAT OPEN / DOORS' at this width — hide it. */
  .hero-classic .genie-speech { display: none !important; }
  .hero-classic .wrap.hero-genie-wrap { right: 8px !important; inset: auto 8px 0 auto !important; }
  .hero-classic .wrap.hero-genie-wrap .genie-stage {
    width: 108px !important;
    max-width: 108px !important;
  }
}
@media (max-width: 520px) {
  .hero-classic .wrap.hero-genie-wrap .genie-stage {
    width: 96px !important;
    max-width: 96px !important;
  }
}

.hero-classic .hero-media {
  inset: 0 !important;
  pointer-events: auto; /* so the Genie/speech stay clickable */
}


/* ============================================================
   Revision 6 — premium hero card, restored service cards,
   redesigned join-team + reviews, accurate Canada map,
   original-site footer.
   ============================================================ */

/* ---- Hero: overlapping designed card, slogan stays clear ---- */
.hero-classic {
  display: block !important;
  min-height: 0 !important;
  padding: 0 0 28px !important;
  overflow: visible !important;
  background: #fff;
}
.hero-classic .hero-media,
.hero.has-media.hero-classic .hero-media,
.hero-classic .hero-media-inner {
  transform: none !important;
  animation: none !important;
  will-change: auto !important;
}
.hero-classic .hero-media {
  position: relative !important;
  inset: 0 !important;
  height: min(62vh, 560px) !important;
  min-height: 420px !important;
  overflow: hidden !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}
.hero-classic .hero-overlay {
  /* faint bottom fade only — never covers the burned-in slogan */
  background: linear-gradient(180deg, transparent 0 62%, rgba(46,46,46,0.18) 100%) !important;
  pointer-events: none;
}
.hero-classic .wrap.hero-genie-wrap {
  position: absolute !important;
  left: auto !important;
  right: 20px !important;
  bottom: 0 !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  inset: auto 20px 0 auto !important;
  display: block !important;
  pointer-events: none;
  z-index: 3;
}
.hero-classic .wrap.hero-genie-wrap .genie-stage {
  pointer-events: auto;
  width: 250px !important;
  max-width: 250px !important;
  margin: 0 !important;
  position: relative !important;
  inset: auto !important;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.35));
}
.hero-classic .genie-speech {
  left: auto !important;
  right: calc(100% - 10px) !important;
  top: 10% !important;
  max-width: 168px;
  display: block;
}

.hero-classic .wrap.hero-home {
  display: block !important;
  grid-template-columns: none !important;
  width: min(var(--max), calc(100% - 48px)) !important;
  max-width: var(--max);
  margin: -132px auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
  position: relative;
  z-index: 5;
}
.hero-classic .hero-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 34px 24px !important;
  max-width: 42rem;
  box-shadow: 0 22px 54px rgba(46,46,46,0.16);
  border-top: 3px solid var(--orange);
  color: var(--ink) !important;
  margin: 0 !important;
  background-color: #fff !important;
}
.hero-classic .hero-card h1 {
  color: var(--ink) !important;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em;
  margin: 0 0 10px !important;
  text-shadow: none !important;
}
.hero-classic .hero-card .lede {
  color: var(--ink-soft, #3F3F3F) !important;
  font-size: 1.04rem !important;
  margin: 0 0 18px !important;
  max-width: 38rem;
}
.hero-classic .hero-actions {
  margin: 0 0 4px !important;
  padding: 0 !important;
}
.hero-classic .btn-ghost {
  color: var(--ink) !important;
  border-color: var(--ink) !important;
}
.hero-classic .btn-ghost:hover {
  background: var(--ink) !important;
  color: #fff !important;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line, #E6E6E6);
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.hero-chips .ico {
  width: 16px;
  height: 16px;
  color: var(--orange);
}

@media (max-width: 860px) {
  .hero-classic .hero-media {
    height: min(56vw, 340px) !important;
    min-height: 240px !important;
  }
  .hero-classic .wrap.hero-genie-wrap {
    right: 8px !important;
    inset: auto 8px 0 auto !important;
  }
  .hero-classic .wrap.hero-genie-wrap .genie-stage {
    width: 120px !important;
    max-width: 120px !important;
  }
  .hero-classic .genie-speech { display: none !important; }
  .hero-classic .wrap.hero-home {
    width: min(var(--max), calc(100% - 40px)) !important;
    margin: -56px auto 0 !important;
    padding: 0 !important;
  }
  .hero-classic .hero-card {
    padding: 22px 20px 20px !important;
    max-width: none;
    border-radius: 16px;
  }
  .hero-classic .hero-card h1 { font-size: 1.45rem !important; }
  .hero-chips { gap: 8px 12px; padding-top: 14px; }
}
@media (max-width: 520px) {
  .hero-classic .hero-media {
    height: 230px !important;
    min-height: 230px !important;
  }
  .hero-classic .wrap.hero-genie-wrap .genie-stage {
    width: 100px !important;
    max-width: 100px !important;
  }
  .hero-classic .wrap.hero-home { margin-top: -40px !important; }
  .hero-classic .hero-actions { flex-wrap: wrap; }
  .hero-classic .hero-actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
}

/* ---- Restored illustrated service cards ---- */
.services-prev { background: #fff; padding: 72px 0 80px; }
.services-prev .section-head { max-width: 42rem; margin-bottom: 36px; }
.services-prev .card-grid { align-items: stretch; }
.services-prev .card {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s ease;
}
.services-prev .card:hover { transform: translateY(-6px); }

/* ---- Join our team ---- */
.join-team {
  background: #fff;
  padding: 28px 0 72px;
  border-top: 1px solid var(--line, #e8e8e8);
}
.join-team .join-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) 1.15fr;
  gap: 48px 52px;
  align-items: center;
}
.join-copy .kicker { margin-bottom: 8px; }
.join-team h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}
.join-team h2 em {
  font-style: normal;
  color: var(--orange);
}
.join-lede {
  font-size: 1.05rem;
  color: var(--ink-soft, #3F3F3F);
  margin: 0 0 24px;
  line-height: 1.6;
}
.join-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.join-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
}
.join-points li strong { font-weight: 650; }
.jp-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.jp-ico .ico { width: 22px; height: 22px; }
@media (max-width: 800px) {
  .join-team .join-grid { grid-template-columns: 1fr; gap: 28px; }
  .join-team { text-align: left; }
}

/* ---- Google reviews ---- */
.reviews {
  background: #FFF3E6;
  color: var(--ink);
  padding: 80px 0 88px;
  position: relative;
}
.reviews .section-head { text-align: center; color: var(--ink); margin-left: auto; margin-right: auto; }
.reviews .section-head h2 { color: var(--ink); }
.reviews .section-head p { color: var(--ink-soft, #3F3F3F); }
.rev-slider { position: relative; max-width: 760px; margin: 0 auto; }
.rev-slider .t-track { position: relative; min-height: 0; }
.rev-card,
.reviews .t-card {
  display: none;
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 36px 48px 32px;
  text-align: left;
  box-shadow: 0 18px 44px rgba(46,46,46,0.12);
  position: relative;
}
.rev-card.is-on,
.reviews .t-card.is-on { display: block; animation: t-in .4s ease; }
.rev-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.rev-g { width: 28px; height: 28px; display: block; }
.rev-stars { color: var(--orange); letter-spacing: 2px; font-size: 1.2rem; line-height: 1; }
.rev-card blockquote {
  font-family: var(--display, "Fraunces", serif);
  font-size: 1.18rem;
  line-height: 1.55;
  margin: 0 0 24px;
  font-weight: 500;
  position: relative;
}
.rev-card blockquote::before {
  content: "“";
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 4.2rem;
  line-height: 0.55;
  color: var(--orange);
  margin: 0 0 10px;
  font-weight: 600;
}
.rev-by {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rev-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-family: var(--font, "Outfit", sans-serif);
  flex-shrink: 0;
}
.rev-by cite {
  font-style: normal;
  font-weight: 650;
  font-size: 0.98rem;
  margin: 0;
  display: block;
}
.rev-by .t-google {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted, #666);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.rev-by .t-google:hover { color: var(--ink); }
.rev-slider .t-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(46,46,46,0.14);
  z-index: 2;
}
.rev-slider .t-nav.prev { left: -18px; }
.rev-slider .t-nav.next { right: -18px; }
.rev-slider .t-nav:hover { transform: translateY(-50%) scale(1.06); }
.rev-slider .t-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}
.rev-slider .t-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0;
  background: rgba(46,46,46,0.22); cursor: pointer; padding: 0;
}
.rev-slider .t-dots button.is-on { background: var(--orange); }
@media (max-width: 760px) {
  .rev-card, .reviews .t-card { padding: 26px 22px 22px; }
  .rev-slider .t-nav.prev { left: -4px; }
  .rev-slider .t-nav.next { right: -4px; }
  .rev-card blockquote { font-size: 1.05rem; }
}

/* ---- Accurate Canada map ---- */
.offices-sec .offices-layout,
.offices-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px 40px;
  align-items: center;
}
.map-stage {
  position: relative;
  width: 100%;
  padding: 8px 8px 36px;
}
.map-stage .canada-real {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 2;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  cursor: pointer;
}
.map-dot {
  width: 16px;
  height: 16px;
  background: var(--orange);
  border: 2.5px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(46,46,46,0.35);
  display: block;
}
.map-label {
  font-size: 0.72rem;
  font-weight: 700;
  background: #fff;
  color: var(--ink);
  padding: 1px 7px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  margin-bottom: 5px;
  order: -1;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.map-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(46,46,46,0.18);
  width: 230px;
  font-size: 0.8rem;
  z-index: 6;
  line-height: 1.45;
  text-align: left;
  font-weight: 400;
  white-space: normal;
}
.map-tip strong { display: block; font-size: 0.9rem; margin-bottom: 1px; }
.map-tip em { display: block; font-style: normal; color: var(--orange); font-weight: 650; font-size: 0.75rem; margin-bottom: 4px; }
.map-pin:hover .map-tip,
.map-pin:focus .map-tip,
.map-pin:focus-visible .map-tip { display: block; }
.map-pin:hover .map-dot,
.map-pin:focus .map-dot { transform: rotate(-45deg) scale(1.15); }
.map-pin.dir-right .map-label { align-self: flex-start; margin-left: 16px; }
.map-pin.dir-left .map-label { align-self: flex-end; margin-right: 16px; }
/* Vancouver sits near the left edge — keep its label inside the map */
.map-pin[data-city="Vancouver"] .map-tip { left: 0; transform: none; }
.map-pin[data-city="Mississauga"] .map-tip { left: auto; right: 0; transform: none; bottom: calc(100% + 8px); }
@media (max-width: 800px) {
  .offices-layout { grid-template-columns: 1fr; }
  .map-label { font-size: 0.66rem; }
}

/* ---- Original-site footer ---- */
.site-footer.footer-orig {
  background: #fff;
  color: #2E2E2E;
  border-top: 0;
  padding: 56px 0 64px;
  font-family: "Montserrat", "Outfit", sans-serif;
  font-weight: 400;
}
.footer-orig .wrap { width: min(1180px, calc(100% - 80px)); }
.fo-top {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(180px, 0.7fr) minmax(320px, 1.55fr);
  gap: 20px 28px;
  align-items: start;
}
.fo-mark { display: inline-block; }
.fo-mark img {
  width: 108px;
  height: auto;
  display: block;
}
.fo-wordmark {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1.72rem;
  letter-spacing: -0.02em;
  margin: 8px 0 22px;
  color: #2E2E2E;
  line-height: 1.15;
}
.fo-quote {
  display: inline-block;
  background: #1A1210;
  color: #fff !important;
  border-radius: 999px;
  padding: 11px 28px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none !important;
  margin: 0 0 32px;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.01em;
  transition: background .2s, transform .2s;
}
.fo-quote:hover { background: var(--orange); color: #fff !important; transform: translateY(-1px); }
.fo-contact p { margin: 0 0 7px; font-size: 0.95rem; line-height: 1.45; }
.fo-contact a { color: #2E2E2E; text-decoration: none; }
.fo-contact a:hover { color: var(--orange); }
.fo-email { text-decoration: underline !important; text-underline-offset: 3px; }
.fo-contact address {
  font-style: normal;
  margin: 20px 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #2E2E2E;
}
.fo-contact address strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}
.fo-links-col { padding-top: 148px; }
.fo-links {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.fo-links li { margin: 0 0 12px; }
.fo-links a {
  color: #2E2E2E;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.fo-links a:hover { color: var(--orange); }
.fo-social { display: flex; gap: 10px; align-items: center; }
.fo-social a {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #111;
  color: #fff !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}
.fo-social a:hover { background: var(--orange); color: #fff !important; }
.fo-social svg { width: 14px; height: 14px; display: block; }
.fo-affiliates {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 12px;
}
.fo-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  margin: 0 0 18px;
}
.fo-row img {
  width: auto;
  object-fit: contain;
  display: block;
}
.fo-row-1 img { height: 52px; max-width: 200px; }
.fo-row-1 img[alt="REMIC"] { height: 28px; max-width: 170px; }
.fo-row-1 img[alt="The Mortgage Centre"] { height: 62px; max-width: 150px; }
.fo-row-2 img { height: 54px; max-width: 280px; }
.fo-row-2 img[alt*="Mortgage Professionals"] { height: 58px; max-width: 300px; }
.fo-copy {
  text-align: right;
  font-size: 0.84rem;
  color: #2E2E2E;
  margin: 40px 0 10px;
  max-width: 280px;
  line-height: 1.55;
  font-weight: 400;
}
.fo-licences {
  text-align: right;
  font-size: 0.68rem;
  color: #2E2E2E;
  margin: 0;
  max-width: 540px;
  line-height: 1.55;
  font-weight: 400;
}
@media (max-width: 960px) {
  .footer-orig .wrap { width: min(var(--max), calc(100% - 40px)); }
  .fo-top { grid-template-columns: 1fr 1fr; }
  .fo-affiliates { grid-column: 1 / -1; align-items: flex-start; padding-top: 8px; }
  .fo-row, .fo-affiliates { justify-content: flex-start; align-items: flex-start; }
  .fo-row { flex-wrap: wrap; gap: 18px 24px; }
  .fo-copy, .fo-licences { text-align: left; max-width: none; }
  .fo-links-col { padding-top: 148px; }
}
@media (max-width: 640px) {
  .fo-top { grid-template-columns: 1fr; gap: 8px; }
  .fo-links-col { padding-top: 12px; }
  .fo-wordmark { font-size: 1.45rem; margin-bottom: 16px; }
  .fo-quote { margin-bottom: 22px; }
  .fo-affiliates { padding-top: 20px; }
  .fo-copy { margin-top: 16px; }
  .fo-licences { font-size: 0.7rem; }
}

/* Rev 6b — mobile map/services/reviews/footer fixes */
.services-prev,
.join-team,
.reviews,
#offices,
.offices-sec,
.lenders-section { scroll-margin-top: calc(var(--header) + 12px); }

/* Offices: later unscoped 2-col rule was beating the 960px 1-col rule */
@media (max-width: 800px) {
  .offices-sec .offices-layout,
  .offices-layout {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .map-stage { padding: 0 0 24px; max-width: 100%; }
  .map-label { font-size: 0.62rem; padding: 0 5px; }
}

/* Reviews: drop the extra decorative quote (blockquote already has marks) */
.rev-card blockquote::before { content: none; display: none; }

@media (max-width: 760px) {
  .rev-slider { padding: 0 36px; }
  .rev-slider .t-nav.prev { left: 0; }
  .rev-slider .t-nav.next { right: 0; }
  .rev-by { align-items: center; }
  .rev-by .t-google {
    margin-left: 0;
    flex-basis: 100%;
    padding-left: 60px;
    margin-top: -4px;
  }
}

/* Footer: clear the fixed Genie launcher; keep licences readable */
.site-footer.footer-orig { padding-bottom: 140px; }
.fo-licences {
  max-width: none;
  width: 100%;
  text-align: right;
}
@media (max-width: 640px) {
  .site-footer.footer-orig { padding-bottom: 160px; }
  .fo-licences, .fo-copy { text-align: left; }
}

/* Map tooltips must not be clipped */
.map-stage, .offices-layout, .offices-sec { overflow: visible; }
.map-pin.is-open .map-tip,
.map-pin:hover .map-tip,
.map-pin:focus .map-tip { display: block; }
.map-pin.is-open { z-index: 8; }

/* Keep mobile Genie inside the video, above the overlapping card */
@media (max-width: 520px) {
  .hero-classic .wrap.hero-genie-wrap {
    bottom: 8px !important;
    inset: auto 8px 8px auto !important;
  }
}

@media (max-width: 600px) {
  .map-label { display: none; }
}


/* ============================================================
   Rev 6c — equal padding above and below the GNE wordmark.
   Cause: .logo picture was locked at 54px while the img was
   68px, so the 68px mark overflowed out the bottom of a
   54px box that itself sat in the vertical centre.
   ============================================================ */
.site-header,
.site-header .wrap {
  height: var(--header) !important;
  box-sizing: border-box;
  align-items: center;
}
.site-header .wrap { display: flex; }
.brand-lockup,
.brand-lockup .logo,
.brand-lockup .logo picture {
  height: auto !important;
  display: flex !important;
  align-items: center;
  overflow: visible;
  line-height: 0; /* kill leftover line-height on the picture box */
}
.brand-lockup {
  gap: 38px;
}
.brand-lockup .logo img,
.brand-lockup .logo picture img,
.site-header .logo img {
  height: 68px !important;
  width: auto !important;
  max-height: none !important;
  display: block;
  margin: 0;
}
/* Mortgage Centre stays vertically centred on the GNE mark */
.site-header .mc-member,
.brand-lockup .mc-member {
  display: flex !important;
  align-items: center !important;
  align-self: center;
}
@media (max-width: 960px) {
  :root { --header: 90px; }
  .brand-lockup { gap: 24px; }
  .brand-lockup .logo img,
  .brand-lockup .logo picture img,
  .site-header .logo img { height: 58px !important; }
}
@media (max-width: 760px) {
  :root { --header: 84px; }
  .brand-lockup { gap: 16px; }
  .brand-lockup .logo img,
  .brand-lockup .logo picture img,
  .site-header .logo img { height: 52px !important; }
}

/* ============================================================
   Rev 6d — Why Choose GNE? social-proof banner
   ============================================================ */
.why-gne {
  background: var(--grey, #F5F5F5);
  padding: 64px 0 72px;
  border-top: 1px solid var(--line, #E6E6E6);
}
.why-gne .section-head {
  text-align: center;
  margin: 0 auto 40px;
  max-width: none;
}
.why-gne h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  letter-spacing: -0.03em;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 26px;
  text-align: center;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(46,46,46,0.05);
  transition: transform .32s var(--ease, cubic-bezier(0.2,0.65,0.25,1)),
              box-shadow .32s var(--ease, cubic-bezier(0.2,0.65,0.25,1)),
              border-color .2s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(46,46,46,0.10);
  border-color: var(--orange);
}
.why-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--orange-soft, #FFF3E6);
  color: var(--orange);
  display: grid;
  place-items: center;
}
.why-ico .ico { width: 28px; height: 28px; }
.why-stat {
  font-family: var(--display, "Fraunces", Georgia, serif);
  font-weight: 700;
  font-size: clamp(2.05rem, 3.2vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 12px;
}
.why-card > p:last-child {
  margin: 0;
  color: var(--ink-soft, #3F3F3F);
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .why-stat { font-size: 2.05rem; }
  .why-gne { padding: 52px 0 56px; }
}
@media (max-width: 480px) {
  .why-card { padding: 22px 16px 20px; }
  .why-stat { font-size: 1.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .why-card { transition: none; }
  .why-card:hover { transform: none; }
}

/* ============================================================
   Rev 7 — premium hero, tidy footer, accurate transparent map
   ============================================================ */

/* ---- Premium hero ---- */
.hero-premium {
  position: relative;
  isolation: isolate;
  background: #2E2E2E;
  min-height: calc(100vh - var(--header, 100px));
  min-height: calc(100svh - var(--header, 100px));
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: 0 !important;
  color: #fff;
}
.hero-premium .hp-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #2E2E2E;
}
.hero-premium .hero-poster,
.hero-premium .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  /* Warm grade: lift the wood, pull any cool/navy casts toward charcoal. Never a blue overlay. */
  filter: saturate(0.96) contrast(1.04) sepia(0.10) brightness(0.96);
}
.hero-premium .hero-video { z-index: 1; }
.hero-premium .hp-grade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(46,46,46,0.88) 0%,
      rgba(46,46,46,0.68) 28%,
      rgba(46,46,46,0.28) 52%,
      rgba(46,46,46,0.06) 72%,
      rgba(46,46,46,0.18) 100%),
    linear-gradient(180deg,
      rgba(46,46,46,0.28) 0%,
      rgba(46,46,46,0.00) 28%,
      rgba(46,46,46,0.00) 58%,
      rgba(46,46,46,0.42) 100%);
}
.hero-premium .hp-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  align-items: end;
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
  padding: 72px 0 56px;
  gap: 24px;
  min-height: calc(100vh - var(--header, 100px));
  min-height: calc(100svh - var(--header, 100px));
}
.hero-premium .hp-copy {
  max-width: 640px;
  padding: 0 0 24px;
  align-self: center;
}
.hero-premium .hp-kicker {
  margin: 0 0 16px;
  font-family: var(--font, Outfit, sans-serif);
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.hero-premium h1 {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--display, Fraunces, Georgia, serif);
  font-weight: 650;
  font-size: clamp(2.4rem, 5.2vw, 4.15rem);
  letter-spacing: -0.038em;
  line-height: 1.04;
  text-shadow: 0 2px 24px rgba(46,46,46,0.28);
}
.hero-premium .lede {
  margin: 0 0 32px;
  color: rgba(255,255,255,0.90);
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  line-height: 1.55;
  max-width: 38rem;
}
.hero-premium .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.hero-premium .hp-ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,0.72) !important;
  background: transparent !important;
}
.hero-premium .hp-ghost:hover {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-color: #fff !important;
}
.hero-premium .genie-stage {
  position: relative;
  width: min(380px, 36vw);
  aspect-ratio: 720 / 960;
  justify-self: end;
  align-self: end;
  margin: 0 0 -8px;
  z-index: 4;
  /* Clips keep their existing absolute stacking — do not restyle .genie-vids / .genie-clip. */
}
.hero-premium .genie-speech {
  position: absolute;
  left: -8%;
  top: 10%;
  max-width: 170px;
  background: #fff;
  color: var(--ink, #2E2E2E);
  border: 0;
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  font-size: 0.84rem;
  line-height: 1.35;
  box-shadow: 0 10px 28px rgba(46,46,46,0.18);
  cursor: pointer;
  text-align: left;
}
.hero-premium .genie-speech strong { display: block; font-weight: 700; margin-bottom: 1px; }
@media (prefers-reduced-motion: reduce) {
  .hero-premium .hero-video { display: none; }
  .hero-premium .hero-poster { filter: saturate(0.96) contrast(1.04) sepia(0.08); }
}
@media (max-width: 960px) {
  .hero-premium,
  .hero-premium .hp-inner {
    min-height: calc(100svh - var(--header, 84px));
  }
  .hero-premium .hp-inner {
    width: min(var(--max), calc(100% - 40px));
    grid-template-columns: 1fr;
    padding: 36px 0 0;
    align-items: stretch;
  }
  .hero-premium .hp-copy {
    align-self: end;
    padding: 0 0 8px;
    max-width: 28rem;
    z-index: 5;
  }
  .hero-premium h1 { font-size: clamp(2.05rem, 9vw, 2.7rem); }
  .hero-premium .lede { font-size: 1.02rem; margin-bottom: 22px; }
  .hero-premium .genie-stage {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(210px, 48vw);
    margin: 0;
    justify-self: auto;
  }
  .hero-premium .genie-speech { display: none; }
  .hero-premium .hp-grade {
    background:
      linear-gradient(180deg,
        rgba(46,46,46,0.25) 0%,
        rgba(46,46,46,0.10) 30%,
        rgba(46,46,46,0.45) 58%,
        rgba(46,46,46,0.82) 100%),
      linear-gradient(90deg,
        rgba(46,46,46,0.40) 0%,
        rgba(46,46,46,0.10) 55%,
        rgba(46,46,46,0.05) 100%);
  }
  .hero-premium .hero-actions { padding-right: 36%; }
}
@media (max-width: 520px) {
  .hero-premium .hp-inner { width: calc(100% - 40px); padding: 28px 0 28px; }
  .hero-premium .hp-copy { padding-bottom: 20px; }
  .hero-premium .hero-actions { padding-right: 0; flex-direction: column; align-items: stretch; }
  .hero-premium .hero-actions .btn { text-align: center; }
  .hero-premium .genie-stage { width: min(168px, 46vw); }
}

/* ---- Transparent map, pins live in the SVG ---- */
.offices-sec .map-stage,
.map-stage {
  position: relative;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 100%;
}
.offices-sec .map-stage svg,
.map-stage svg,
.map-stage .canada-real {
  width: 100%;
  height: auto;
  display: block;
  background: transparent !important;
  max-width: 100%;
}
.offices-sec { background: var(--grey, #F5F5F5); }
@media (max-width: 800px) {
  .offices-sec .offices-layout,
  .offices-layout { grid-template-columns: 1fr !important; }
}

/* ---- Tidy footer ---- */
.site-footer.footer-tidy {
  background: #fff;
  color: #2E2E2E;
  border-top: 1px solid var(--line, #E6E6E6);
  padding: 0;
  font-family: "Montserrat", "Outfit", sans-serif;
  font-weight: 400;
}
.footer-tidy .wrap { width: min(1180px, calc(100% - 80px)); }
.footer-tidy .ft-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 0.85fr 1.25fr;
  gap: 40px 36px;
  padding: 64px 0 48px;
  align-items: start;
}
.footer-tidy .fo-mark img {
  width: 108px;
  height: auto;
  display: block;
}
.footer-tidy .fo-wordmark {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 10px 0 22px;
  color: #2E2E2E;
  line-height: 1.15;
}
.footer-tidy .fo-quote {
  display: inline-block;
  background: #1A1210;
  color: #fff !important;
  border-radius: 999px;
  padding: 11px 28px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none !important;
  letter-spacing: 0.01em;
  transition: background .2s, transform .2s;
}
.footer-tidy .fo-quote:hover { background: var(--orange); color: #fff !important; transform: translateY(-1px); }
.footer-tidy h3 {
  font-family: "Outfit", "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 6px 0 16px;
}
.footer-tidy .ft-contact p { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.45; }
.footer-tidy .ft-contact a,
.footer-tidy .fo-links a { color: #2E2E2E; text-decoration: none; }
.footer-tidy .ft-contact a:hover,
.footer-tidy .fo-links a:hover { color: var(--orange); }
.footer-tidy .fo-email { text-decoration: underline !important; text-underline-offset: 3px; }
.footer-tidy .ft-note { color: #6a6a6a; font-size: 0.85em; }
.footer-tidy address {
  font-style: normal;
  margin: 18px 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.footer-tidy address strong { display: block; font-weight: 700; margin-bottom: 2px; }
.footer-tidy .fo-links { list-style: none; margin: 0 0 22px; padding: 0; }
.footer-tidy .fo-links li { margin: 0 0 10px; }
.footer-tidy .fo-links a { font-weight: 500; font-size: 0.95rem; }
.footer-tidy .fo-social { display: flex; gap: 10px; align-items: center; }
.footer-tidy .fo-social a {
  display: inline-flex;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #111;
  color: #fff !important;
  align-items: center; justify-content: center;
  text-decoration: none !important;
}
.footer-tidy .fo-social a:hover { background: var(--orange); }
.footer-tidy .fo-social svg { width: 14px; height: 14px; display: block; }
.footer-tidy .ft-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 28px;
}
.footer-tidy .ft-logos img {
  width: auto;
  height: 48px;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.footer-tidy .ft-logos img[alt="REMIC"] { height: 26px; }
.footer-tidy .ft-logos img[alt="The Mortgage Centre"] { height: 56px; max-width: 140px; }
.footer-tidy .ft-logos img[alt*="FSRA"] { height: 50px; max-width: 240px; }
.footer-tidy .ft-logos img[alt*="Mortgage Professionals"] { height: 54px; max-width: 260px; }
.footer-tidy .ft-bar {
  border-top: 1px solid var(--line, #E6E6E6);
  background: #FAFAFA;
  padding: 16px 0 140px; /* room for the Genie launcher */
}
.footer-tidy .ft-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 28px;
}
.footer-tidy .fo-copy,
.footer-tidy .fo-licences {
  margin: 0;
  color: #2E2E2E;
  line-height: 1.5;
  font-weight: 400;
}
.footer-tidy .fo-copy { font-size: 0.84rem; }
.footer-tidy .fo-licences { font-size: 0.72rem; }
@media (max-width: 1040px) {
  .footer-tidy .ft-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; padding: 52px 0 40px; }
  .footer-tidy .ft-affiliates { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .footer-tidy .wrap { width: min(var(--max), calc(100% - 40px)); }
}
@media (max-width: 640px) {
  .footer-tidy .ft-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 32px; }
  .footer-tidy .fo-wordmark { font-size: 1.4rem; margin-bottom: 16px; }
  .footer-tidy .ft-bar { padding: 16px 0 160px; }
  .footer-tidy .ft-bar .wrap { flex-direction: column; align-items: flex-start; }
  .footer-tidy .fo-licences { font-size: 0.7rem; }
}

/* Rev 7b — pin CSS isolation, mobile hero clearance, footer bar.
   Class is gne-pin (not map-pin) so leftover HTML-overlay rules never apply.
   Do not set CSS `transform` — it would override the SVG transform attribute
   that places each tip on the projected coordinate. */
.map-stage svg .gne-pin {
  cursor: pointer;
}

@media (max-width: 960px) {
  .hero-premium,
  .hero-premium .hp-inner {
    min-height: 0;
  }
  .hero-premium {
    min-height: calc(100svh - var(--header, 84px));
  }
  .hero-premium .hp-inner {
    min-height: calc(100svh - var(--header, 84px));
    padding: 28px 0 132px; /* clear the Genie launcher */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero-premium .hp-copy {
    position: relative;
    z-index: 5;
    padding: 0 0 8px;
    max-width: 28rem;
  }
  .hero-premium .hero-actions {
    padding-right: 0;
    position: relative;
    z-index: 6;
  }
  .hero-premium .genie-stage {
    position: absolute;
    right: -8px;
    bottom: 200px; /* sits above the CTAs + launcher */
    width: min(200px, 46vw);
    margin: 0;
    pointer-events: none; /* clicks go to CTAs; speech is already hidden */
  }
  .hero-premium .genie-stage .genie-speech { display: none !important; }
}
@media (max-width: 520px) {
  .hero-premium .hp-inner { padding: 20px 0 128px; width: calc(100% - 40px); }
  .hero-premium .hero-actions { flex-direction: column; align-items: stretch; padding-right: 0; }
  .hero-premium .hero-actions .btn { text-align: center; }
  .hero-premium .genie-stage { width: min(150px, 40vw); bottom: 210px; right: -6px; }
}

/* Footer: organised logo grid, bar clears the launcher, licences fully visible */
.footer-tidy .ft-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: start;
  gap: 18px 24px;
}
.footer-tidy .ft-logos img {
  width: auto;
  height: 46px;
  max-width: 100%;
}
.footer-tidy .ft-bar {
  padding: 18px 0 22px;
}
.footer-tidy .ft-bar .wrap {
  padding-right: 200px; /* Genie launcher lives at the bottom-right */
  align-items: flex-start;
}
.footer-tidy .fo-copy { max-width: 22rem; }
.footer-tidy .fo-licences { max-width: 40rem; flex: 1; }
@media (max-width: 800px) {
  .footer-tidy .ft-bar { padding: 16px 0 150px; }
  .footer-tidy .ft-bar .wrap { padding-right: 0; flex-direction: column; }
}

/* Rev 7c — mobile hero: Genie in the photo, CTAs clear of the launcher */
@media (max-width: 960px) {
  .hero-premium .hp-inner { padding: 24px 0 148px !important; }
  .hero-premium .hp-copy { max-width: 100%; padding-right: 0; }
  .hero-premium .lede { padding-right: 0; }
  .hero-premium .genie-stage {
    top: 8% !important;
    bottom: auto !important;
    right: 0 !important;
    width: min(180px, 42vw) !important;
    pointer-events: none;
  }
}
@media (max-width: 520px) {
  .hero-premium .hp-inner { padding: 16px 0 152px !important; }
  .hero-premium .genie-stage { width: min(132px, 36vw) !important; top: 6% !important; }
}
@media (max-width: 640px) {
  .footer-tidy .ft-logos { grid-template-columns: 1fr 1fr; }
  .footer-tidy .ft-logos img { height: 40px; max-width: 100%; }
  .footer-tidy .ft-logos img[alt="REMIC"] { height: 22px; }
  .footer-tidy .ft-logos img[alt*="FSRA"],
  .footer-tidy .ft-logos img[alt*="Mortgage Professionals"] { max-width: 100%; height: 42px; }
}

/* footer polish: keep every affiliation logo inside its cell; tidy bottom bar */
.footer-tidy .ft-logos { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px 24px !important; align-items: center; }
.footer-tidy .ft-logos img { max-width: 100% !important; width: auto; height: 44px !important; object-fit: contain; object-position: left center; justify-self: start; }
.footer-tidy .ft-logos img[alt="REMIC"] { height: 24px !important; }
.footer-tidy .ft-logos img[alt="The Mortgage Centre"] { height: 50px !important; }
.footer-tidy .ft-logos img[alt*="FSRA"] { height: 40px !important; }
.footer-tidy .ft-logos img[alt*="Mortgage Professionals"] { grid-column: 1 / -1; height: 44px !important; }
.footer-tidy .ft-affiliates { min-width: 0; }
.footer-tidy .ft-bar .wrap { justify-content: space-between !important; align-items: center !important; }
.footer-tidy .fo-copy, .footer-tidy .fo-licences { text-align: left !important; }
.footer-tidy .fo-copy { max-width: none !important; white-space: nowrap; }
.footer-tidy .fo-licences { text-align: right !important; max-width: 46rem !important; }
@media (max-width: 900px) { .footer-tidy .fo-copy { white-space: normal; } .footer-tidy .fo-licences { text-align: left !important; } }

/* Rev 8 — hide the hero Genie entirely on mobile. Desktop unchanged.
   The floating .genie-launcher (chat) is NOT affected. */
@media (max-width: 768px) {
  .hero-premium .genie-stage,
  .hero-premium #hero-genie,
  .hero-premium .hero-mascot,
  .hero-premium .genie-speech,
  .hero-premium .hero-genie-wrap,
  .hero-classic .genie-stage,
  .hero-classic #hero-genie,
  .hero-classic .hero-mascot,
  .hero-classic .genie-speech,
  .product-hero .genie-stage,
  .product-hero #hero-genie {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }
  .hero-premium .hp-inner {
    grid-template-columns: 1fr !important;
    padding: 28px 0 140px !important;
  }
  .hero-premium .hp-copy { max-width: 100% !important; padding-right: 0 !important; }
  .hero-premium .lede { padding-right: 0 !important; }
  .hero-premium .hero-actions { padding-right: 0 !important; }
}

/* ==========================================================================
   Rev 9 — inner pages, approved homepage language
   Palette: white, charcoal #2E2E2E, orange #FF8B0B only. Never navy or blue.
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: #2E2E2E;
  overflow: hidden;
}
.page-hero.page-hero-short { min-height: 380px; }
.page-hero .ph-media,
.page-hero .ph-media picture,
.page-hero .ph-media picture img,
.page-hero .ph-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-hero .ph-media img {
  filter: sepia(0.12) contrast(1.05) saturate(0.92);
}
.page-hero .ph-grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(46,46,46,0.90) 0%, rgba(46,46,46,0.62) 46%, rgba(46,46,46,0.38) 100%),
    linear-gradient(180deg, rgba(46,46,46,0.28) 0%, rgba(46,46,46,0.12) 45%, rgba(46,46,46,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.page-hero .ph-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0 72px;
  width: 100%;
}
.page-hero.no-form .ph-inner,
.page-hero-short .ph-inner {
  grid-template-columns: 1fr;
  max-width: 760px;
  padding: 88px 0 72px;
}
.page-hero .kicker { color: var(--orange); letter-spacing: 0.08em; }
.page-hero h1 {
  color: var(--white);
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.05rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  margin: 0.15em 0 0.4em;
  text-wrap: balance;
}
.page-hero .lede {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 38em;
  margin: 0;
}
.page-hero .ph-actions { margin-top: 22px; }
.lead-card {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 8px 4px 4px;
  box-shadow: 0 22px 56px rgba(46,46,46,0.32);
}
.lead-card .lead-form {
  margin: 0;
  box-shadow: none;
  background: transparent;
  padding: 20px 24px 16px;
}
.crumbs {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 16px 0 0;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; color: #C5BFB6; margin-left: 2px; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs [aria-current="page"] { color: var(--muted); }
.prose { max-width: 74ch; }
.prose h2, .prose h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--ink);
  margin: 1.4em 0 0.45em;
}
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.prose h3 { font-size: 1.25rem; }
.prose p, .prose li { line-height: 1.65; }
.prose a { color: var(--ink); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.prose a:hover { color: var(--orange); }
.benefit-grid,
.hub-grid,
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.benefit-card,
.hub-card,
.purpose-card {
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 16px;
  padding: 24px 24px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: inherit;
  text-decoration: none;
  display: block;
}
a.hub-card:hover,
.benefit-card:hover,
.purpose-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(46,46,46,0.10);
  border-color: #FF8B0B;
  text-decoration: none;
  color: inherit;
}
.benefit-card .ico-tile,
.hub-card .ico-tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #FFF1E0;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.benefit-card .ico-tile svg,
.hub-card .ico-tile svg {
  width: 26px;
  height: 26px;
  color: var(--orange);
  fill: currentColor;
}
.benefit-card h3,
.hub-card h3,
.purpose-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.hub-card p, .benefit-card p, .purpose-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}
.hub-card .explore {
  display: inline-block;
  margin-top: 14px;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.88rem;
}
.myth-list { display: grid; gap: 16px; max-width: 840px; margin: 0 auto; }
.myth {
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 14px;
  padding: 20px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.myth:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(46,46,46,0.08); }
.myth h3 { font-family: "Fraunces", serif; font-size: 1.15rem; margin: 0 0 8px; }
.myth h3 span { color: var(--orange); margin-right: 6px; }
.myth p { margin: 0; color: var(--ink); line-height: 1.6; }
.legal-prose { max-width: 76ch; }
.legal-prose h2 { font-family: "Fraunces", serif; font-size: 1.45rem; margin-top: 2em; }
.legal-prose h3 { font-size: 1.08rem; margin-top: 1.4em; }
.legal-prose p, .legal-prose li { line-height: 1.65; }
.thanks-page { text-align: center; padding: 80px 0 100px; }
.thanks-page .check {
  width: 72px; height: 72px; border-radius: 50%;
  background: #FFF1E0; color: var(--orange);
  display: grid; place-items: center; margin: 0 auto 22px;
  font-size: 2rem;
}
.thanks-page h1 { font-family: "Fraunces", serif; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.4em; }
.loc-map {
  background: transparent !important;
  margin: 0 auto 36px;
  max-width: 860px;
  text-align: center;
}
.loc-map img, .loc-map object, .loc-map svg {
  width: 100%;
  height: auto;
  background: transparent !important;
  display: block;
}
.office-full {
  scroll-margin-top: 120px;
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: inherit;
  text-decoration: none;
}
.office-full:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(46,46,46,0.1);
  border-color: var(--orange);
  text-decoration: none;
  color: inherit;
}
.office-full .region { color: var(--orange); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.office-full h2 { font-family: "Fraunces", serif; font-size: 1.35rem; margin: 6px 0 8px; }
.office-full address { font-style: normal; color: var(--muted); line-height: 1.5; }
.office-full .office-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.9rem; }
.office-full .office-links a { color: var(--ink); font-weight: 600; }
.office-full .office-links a:hover { color: var(--orange); }
.anchor, .purpose-card, #myths, #five-percent, #celoc-compare,
#purchase, #renewal, #refinance, #construction, #property-types, #industrial,
#multi-family {
  scroll-margin-top: 120px;
}
.ext-banner {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #2E2E2E;
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 12px 0 8px;
}
.ext-banner h2 { color: #fff; font-family: "Fraunces", serif; font-size: 1.45rem; margin: 0 0 8px; }
.ext-banner p { color: rgba(255,255,255,0.88); margin: 0 0 16px; }
.nav a[aria-current="page"],
.nav-drop-menu a[aria-current="page"] { color: var(--orange); }
.process-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.process-step {
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.process-step:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(46,46,46,0.08); }
.process-step .num {
  font-family: "Fraunces", serif;
  color: var(--orange);
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.process-step h3 { font-family: "Fraunces", serif; font-size: 1.15rem; margin: 0 0 6px; }
.process-step p { margin: 0; color: var(--muted); }
.ns-note { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 10px; }

@media (max-width: 960px) {
  .page-hero { min-height: 0; }
  .page-hero .ph-inner {
    grid-template-columns: 1fr !important;
    padding: 56px 0 48px;
    gap: 28px;
  }
  .page-hero .ph-grade {
    background:
      linear-gradient(180deg, rgba(46,46,46,0.55) 0%, rgba(46,46,46,0.72) 40%, rgba(46,46,46,0.88) 100%);
  }
  .benefit-grid, .hub-grid, .purpose-grid, .process-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .benefit-grid, .hub-grid, .purpose-grid, .process-row {
    grid-template-columns: 1fr;
  }
  .ext-banner { flex-direction: column; align-items: flex-start; padding: 22px; }
  .lead-card { margin: 0 -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .benefit-card, .hub-card, .purpose-card, .office-full, .myth, .process-step {
    transition: none;
  }
  .benefit-card:hover, .hub-card:hover, .purpose-card:hover, .office-full:hover, .myth:hover, .process-step:hover {
    transform: none;
  }
}

/* ==========================================================================
   Rev 10 — product landing pages: varied heroes + engaging body layouts
   Palette: white, charcoal #2E2E2E, orange #FF8B0B only.
   ========================================================================== */

/* Trust chips */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}
.trust-chips li {
  border: 1px solid #E8E4DE;
  background: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.hero-dark .trust-chips li {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}

/* ----- Hero: light split (photo + copy/form), like original purchase ----- */
.hero-split {
  background: #fff;
  padding: 28px 0 48px;
}
.hero-split .hs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 40px;
  align-items: start;
}
.hero-split.flip .hs-grid { grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr); }
.hero-split.flip .hs-photo { order: 2; }
.hero-split .hs-photo {
  border-radius: 20px;
  overflow: hidden;
  min-height: 520px;
  background: #F5F5F5;
  position: relative;
}
.hero-split .hs-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.hero-split .hs-side { padding-top: 8px; }
.hero-split h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.05rem, 4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0.12em 0 0.4em;
  text-wrap: balance;
}
.hero-split .lede { font-size: 1.05rem; line-height: 1.55; color: var(--ink); max-width: 38em; margin: 0; }
.hero-split .kicker { color: var(--orange); }
.hero-split .lead-card {
  margin-top: 8px;
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(46,46,46,0.08);
  padding: 4px 2px;
}
.hero-split .lead-card .lead-form { margin: 0; box-shadow: none; background: transparent; padding: 18px 22px 14px; }

/* ----- Hero: form-first white (refinance / reverse / construction) ----- */
.hero-plain {
  background: #F7F5F2;
  padding: 48px 0 56px;
}
.hero-plain .hp-grid {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 420px);
  gap: 48px;
  align-items: center;
}
.hero-plain h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0.12em 0 0.4em;
}
.hero-plain .subhead {
  color: var(--orange);
  font-weight: 600;
  font-size: 1.08rem;
  margin: 0 0 12px;
}
.hero-plain .lede { font-size: 1.05rem; line-height: 1.55; margin: 0; max-width: 36em; }
.hero-plain .hp-illust {
  max-width: 280px;
  margin: 22px 0 0;
  display: block;
}
.hero-plain .lead-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(46,46,46,0.12);
  padding: 4px;
}
.hero-plain .lead-card .lead-form { margin: 0; box-shadow: none; padding: 20px 24px 16px; }

/* ----- Hero: dark photo + bullets + form (second, HELOC) — more photo visible ----- */
.hero-dark {
  position: relative;
  min-height: 640px;
  color: #fff;
  background: #2E2E2E;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-dark .hd-media,
.hero-dark .hd-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-dark .hd-grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(46,46,46,0.82) 0%, rgba(46,46,46,0.48) 48%, rgba(46,46,46,0.28) 100%),
    linear-gradient(180deg, rgba(46,46,46,0.15) 0%, rgba(46,46,46,0.45) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-dark .hd-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
  padding: 56px 0 60px;
  width: 100%;
}
.hero-dark h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.05rem, 4vw, 3.15rem);
  line-height: 1.12;
  color: #fff;
  margin: 0.12em 0 0.4em;
  text-wrap: balance;
}
.hero-dark .kicker { color: var(--orange); }
.hero-dark .lede { color: rgba(255,255,255,0.92); font-size: 1.05rem; line-height: 1.55; margin: 0 0 16px; max-width: 34em; }
.hero-dark .hero-bullets {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.hero-dark .hero-bullets li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-weight: 600;
  font-size: 1rem;
}
.hero-dark .hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg) translateY(-6px);
}
.hero-dark .lead-card {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 22px 56px rgba(46,46,46,0.32);
  padding: 4px;
}
.hero-dark .lead-card .lead-form { margin: 0; box-shadow: none; background: transparent; padding: 18px 22px 14px; }

/* Body: alternating photo/text */
.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-media.flip .sm-photo { order: 2; }
.split-media .sm-photo {
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
  background: #F5F5F5;
}
.split-media .sm-photo img,
.split-media .sm-photo .ill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 340px;
}
.split-media .sm-photo .ill {
  object-fit: contain;
  background: #fff;
  padding: 24px;
  min-height: 320px;
}
.split-media h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}
.split-media .checks { list-style: none; margin: 16px 0 0; padding: 0; }
.split-media .checks li {
  padding: 6px 0 6px 28px;
  position: relative;
}
.split-media .checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.85em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg) translateY(-5px);
}

/* Numbered reason cards */
.num-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.num-card {
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 16px;
  padding: 28px 24px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.num-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(46,46,46,0.1);
  border-color: var(--orange);
}
.num-card .n {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--orange);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.num-card h3 { font-family: "Fraunces", serif; font-size: 1.2rem; margin: 0 0 8px; }
.num-card p { margin: 0; color: var(--muted); line-height: 1.55; }

/* Orange info band */
.orange-band {
  background: var(--orange);
  color: #fff;
  padding: 56px 0;
}
.orange-band h2 { color: #fff; font-family: "Fraunces", serif; margin: 0 0 22px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.orange-band .ob-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.orange-band .ob-item {
  background: rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 20px 18px;
}
.orange-band .ob-item h3 { color: #fff; font-size: 1.08rem; margin: 0 0 6px; font-family: "Fraunces", serif; }
.orange-band .ob-item p { margin: 0; color: rgba(255,255,255,0.95); font-size: 0.92rem; line-height: 1.45; }

/* Charcoal "we finance" checklist */
.finance-panel {
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 16px;
  padding: 28px 32px;
}
.finance-panel h3 { font-family: "Fraunces", serif; margin: 0 0 16px; }
.finance-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}
.finance-panel li { padding: 5px 0 5px 26px; position: relative; }
.finance-panel li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.8em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg) translateY(-5px);
}

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E8E4DE;
  font-size: 0.95rem;
}
.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #E8E4DE;
}
.compare thead th {
  background: #2E2E2E;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}
.compare thead th:first-child { width: 22%; }
.compare tbody th { font-weight: 600; color: var(--ink); background: #F7F5F2; width: 22%; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare a { color: var(--orange); font-weight: 600; }

/* Path pills (multi-family) */
.path-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.path-pills a {
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.path-pills a:hover { background: #e67d0a; color: #fff; transform: translateY(-2px); text-decoration: none; }
.path-pills a.ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #E8E4DE;
}
.path-pills a.ghost:hover { border-color: var(--orange); color: var(--ink); background: #fff; }

/* Genie illustrated callout */
.genie-callout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  background: #2E2E2E;
  color: #fff;
  border-radius: 20px;
  padding: 12px 36px 12px 8px;
  margin: 8px 0;
}
.genie-callout img {
  width: 160px;
  height: auto;
  display: block;
  justify-self: center;
}
.genie-callout h2 { color: #fff; font-family: "Fraunces", serif; font-size: 1.55rem; margin: 0 0 8px; }
.genie-callout p { color: rgba(255,255,255,0.88); margin: 0 0 16px; }
.genie-callout .kicker { color: var(--orange); }

/* Five-percent figures */
.figure-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 22px 0 8px;
}
.figure {
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.figure:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(46,46,46,0.08); }
.figure .fig {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--orange);
  display: block;
  margin-bottom: 6px;
}
.figure p { margin: 0; color: var(--ink); font-size: 0.92rem; line-height: 1.45; }

/* Compact reviews */
.reviews-mini .rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.reviews-mini .rev-card { margin: 0; }

/* Draw / process timeline vertical-friendly */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.timeline li {
  list-style: none;
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 16px;
  padding: 22px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.timeline li:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(46,46,46,0.08); }
.timeline { margin: 0; padding: 0; }
.timeline h3 { font-family: "Fraunces", serif; font-size: 1.1rem; margin: 0 0 6px; }
.timeline p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.timeline .n { font-family: "Fraunces", serif; color: var(--orange); font-weight: 700; font-size: 1.5rem; display: block; margin-bottom: 6px; }

@media (max-width: 960px) {
  .hero-split .hs-grid,
  .hero-split.flip .hs-grid,
  .hero-plain .hp-grid,
  .hero-dark .hd-grid,
  .split-media,
  .split-media.flip,
  .num-grid,
  .figure-row,
  .reviews-mini .rev-grid,
  .timeline,
  .orange-band .ob-grid {
    grid-template-columns: 1fr;
  }
  .hero-split.flip .hs-photo { order: 0; }
  .split-media.flip .sm-photo { order: 0; }
  .hero-split .hs-photo { min-height: 240px; max-height: 280px; }
  .hero-split .hs-photo img { position: absolute; }
  .hero-dark { min-height: 0; }
  .hero-dark .hd-grid { padding: 48px 0 44px; }
  .hero-dark .hd-grade {
    background: linear-gradient(180deg, rgba(46,46,46,0.45) 0%, rgba(46,46,46,0.78) 55%, rgba(46,46,46,0.9) 100%);
  }
  .genie-callout { grid-template-columns: 100px 1fr; padding: 16px 20px; }
  .genie-callout img { width: 100px; }
  .finance-panel ul { grid-template-columns: 1fr; }
  .compare { display: block; overflow-x: auto; }
}
@media (max-width: 640px) {
  .hero-plain { padding: 32px 0 40px; }
  .hero-split { padding: 16px 0 36px; }
  .orange-band .ob-grid, .num-grid { grid-template-columns: 1fr; }
  .genie-callout { grid-template-columns: 1fr; text-align: center; padding: 20px; }
  .genie-callout img { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .num-card, .figure, .timeline li, .path-pills a, .split-media { transition: none; }
  .num-card:hover, .figure:hover, .timeline li:hover, .path-pills a:hover { transform: none; }
}

/* Commercial hero service chips + sticky jump links (t70u) */
.svc-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  margin: 20px 0 6px;
  padding: 0;
  max-width: 520px;
}
.svc-chips li {
  background: #2E2E2E;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 18px 14px;
  border-radius: 12px;
  text-align: center;
  line-height: 1.25;
}
.svc-chips li span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF8B0B;
  margin-bottom: 4px;
}
.hero-plain .for-all,
.hero-split .for-all {
  font-weight: 600;
  color: var(--orange);
  margin: 10px 0 0;
  font-size: 1.02rem;
}
.jump-bar {
  position: sticky;
  top: var(--header, 100px);
  z-index: 40;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid #E8E4DE;
  border-top: 1px solid #E8E4DE;
  padding: 10px 0;
}
.jump-bar .jump-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.jump-bar .jump-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.jump-bar a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #FFF1E0;
  color: #2E2E2E;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.jump-bar a:hover {
  background: #FF8B0B;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.type-block { scroll-margin-top: calc(var(--header, 100px) + 64px); }
@media (max-width: 760px) {
  .jump-bar { top: var(--header, 84px); }
  .type-block { scroll-margin-top: calc(var(--header, 84px) + 96px); }
  .svc-chips { grid-template-columns: 1fr 1fr; max-width: none; }
}

/* Who-it's-for cards (private mortgages) */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.who-card {
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 16px;
  padding: 28px 24px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.who-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(46,46,46,0.1);
  border-color: var(--orange);
}
.who-card h3 { font-family: "Fraunces", serif; font-size: 1.25rem; margin: 0 0 10px; }
.who-card p { margin: 0; color: var(--muted); line-height: 1.55; }

/* Compare works as a table or a wrapping div */
div.compare { overflow-x: auto; border-radius: 16px; border: 1px solid #E8E4DE; background: #fff; }
div.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border: 0;
  border-radius: 0;
}
div.compare th, div.compare td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #E8E4DE;
}
div.compare thead th {
  background: #2E2E2E;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}
div.compare tbody th { font-weight: 600; color: var(--ink); background: #F7F5F2; }
div.compare tr:last-child td, div.compare tr:last-child th { border-bottom: 0; }

/* Light-hero check list (private) */
.hero-split .checks { list-style: none; margin: 14px 0 18px; padding: 0; }
.hero-split .checks li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-weight: 600;
}
.hero-split .checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.85em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg) translateY(-5px);
}

/* Commercial type subsections */
.type-block h2 { font-family: "Fraunces", serif; }

@media (max-width: 900px) {
  .who-grid { grid-template-columns: 1fr; }
}

/* Commercial hero: aerial + copy + form, jump-bar under (and between copy and form on mobile) */
.hero-commercial { padding-bottom: 0; }
.hero-commercial .comm-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  grid-template-areas:
    "photo copy"
    "photo form";
  gap: 20px 40px;
  align-items: start;
  padding-bottom: 28px;
}
.hero-commercial .comm-photo { grid-area: photo; }
.hero-commercial .comm-copy { grid-area: copy; }
.hero-commercial .hp-form { grid-area: form; }
.hero-commercial .comm-photo {
  border-radius: 20px;
  overflow: hidden;
  min-height: 520px;
  background: #F5F5F5;
  position: relative;
  align-self: stretch;
}
.hero-commercial .comm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.jump-bar {
  background: #fff;
  box-shadow: 0 1px 0 #E8E4DE, 0 8px 18px rgba(46,46,46,0.04);
}

@media (max-width: 900px) {
  .hero-commercial { display: flex; flex-direction: column; padding-bottom: 0; }
  .hero-commercial .comm-top { display: contents; }
  .hero-commercial .comm-photo,
  .hero-commercial .comm-copy,
  .hero-commercial .hp-form {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
  }
  .hero-commercial .comm-photo {
    order: 1;
    min-height: 220px;
    max-height: 260px;
    margin-top: 12px;
  }
  .hero-commercial .comm-copy { order: 2; }
  .hero-commercial + .jump-bar,
  .hero-commercial .jump-bar { order: 3; }
  .hero-commercial .hp-form { order: 4; margin: 16px auto 28px; }
  /* When jump-bar is a sibling after the section, wrap them */
}
/* Wrapper-free mobile order: jump-bar is a sibling following the section.
   Place both in a flex container via this adjacent-sibling parent... 
   We add a wrap class on a parent if needed. Fallback below uses
   a dedicated parent .comm-head if present. */
.comm-head { display: contents; }
@media (max-width: 900px) {
  main:has(> .hero-commercial) {
    display: flex;
    flex-direction: column;
  }
  main:has(> .hero-commercial) > .hero-commercial { order: 1; display: flex; flex-direction: column; }
  main:has(> .hero-commercial) > .jump-bar { order: 2; }
  /* form is inside hero, so to put jump between copy and form we need display:contents on hero
     AND jump as sibling. That's why form order is inside hero. Jump as sibling cannot
     interleave with display:contents children across parent boundaries except if
     BOTH hero and main use contents... Let's make hero display:contents on mobile
     so photo, copy, form, and then we... jump is after hero so after form still.

     Solution: move jump-bar into the section in HTML, as last child, then
     display:contents on comm-top + flex on hero with orders.
  */
}

@media (max-width: 900px) {
  .hero-commercial {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  .hero-commercial .comm-top { display: contents; }
  .hero-commercial .comm-photo { order: 1; }
  .hero-commercial .comm-copy { order: 2; }
  .hero-commercial .jump-bar { order: 3; }
  .hero-commercial .hp-form { order: 4; margin-bottom: 28px; }
}

/* ---- Commercial hero cleanup (jump-bar is a sibling of the hero, so sticky works) ---- */
.hero-commercial { padding-bottom: 12px; }
.hero-commercial .comm-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.95fr);
  grid-template-areas: "photo copy";
  gap: 36px 44px;
  align-items: center;
  padding-bottom: 12px;
}
.hero-commercial .comm-photo {
  grid-area: photo;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  align-self: stretch;
  min-height: 0;
  aspect-ratio: 4 / 3;
  max-height: 560px;
  background: #F5F5F5;
}
.hero-commercial .comm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 58%; /* warehouse, tower and retail all visible */
  display: block;
  position: absolute;
  inset: 0;
}
.hero-commercial .comm-copy { grid-area: copy; }
.hero-commercial .svc-chips { margin-bottom: 8px; }

/* Neutralize earlier mobile order experiments */
main:has(> .hero-commercial) { display: block; }
main:has(> .hero-commercial) > .hero-commercial { order: unset; display: block; }
.hero-commercial .comm-top { display: grid; } /* re-assert, not contents */
@media (max-width: 900px) {
  .hero-commercial { display: block; padding-bottom: 8px; }
  .hero-commercial .comm-top {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "copy";
    gap: 18px;
    padding-bottom: 8px;
  }
  .hero-commercial .comm-photo,
  .hero-commercial .comm-copy,
  .hero-commercial .hp-form {
    width: auto;
    margin-inline: 0;
    order: unset;
  }
  .hero-commercial .comm-photo {
    min-height: 200px;
    max-height: 240px;
    aspect-ratio: 16 / 10;
    margin-top: 8px;
  }
}

.comm-form-band {
  background: #F7F5F2;
  padding: 28px 0 48px;
  border-bottom: 1px solid #E8E4DE;
}
.comm-form-band .hp-form {
  max-width: 560px;
  margin: 0 auto;
}
.comm-form-band .lead-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(46,46,46,0.12);
  padding: 4px;
}

/* Jump-bar: opaque, sticky for the whole page (it is a child of main) */
.jump-bar {
  position: sticky;
  top: var(--header, 100px);
  z-index: 40;
  background: #fff;
  box-shadow: 0 1px 0 #E8E4DE, 0 8px 18px rgba(46,46,46,0.04);
}

/* Tighten commercial hero so the jump-bar sits in a 1280×800 fold */
@media (min-width: 901px) {
  .hero-commercial { padding: 24px 0 8px; }
  .hero-commercial .comm-photo { max-height: 500px; aspect-ratio: 16 / 11; }
  .hero-commercial .lede { font-size: 1rem; margin-bottom: 6px; }
  .hero-commercial .svc-chips { margin: 14px 0 4px; }
  .hero-commercial .svc-chips li { padding: 12px 14px 11px; }
  .hero-commercial .trust-chips { margin: 12px 0 0; }
}

/* Fix commercial hero photo overflowing into the headline (grid min-width: auto) */
.hero-commercial .comm-top { min-width: 0; }
.hero-commercial .comm-photo,
.hero-commercial .comm-copy {
  min-width: 0;
  max-width: 100%;
}
.hero-commercial .comm-photo {
  overflow: hidden;
  z-index: 0;
}
.hero-commercial .comm-copy { z-index: 1; }

/* ==========================================================================
   Rev 11 — product hero + quiz (t71u), hero option B, spacing
   Palette: white, charcoal #2E2E2E, orange #FF8B0B only.
   ========================================================================== */

/* Product hero: photo + explanation/USPs, equal heights, NO form in this row */
.hero-product {
  background: #fff;
  padding: 32px 0 8px;
}
.hero-product .hp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
}
.hero-product.flip .hp-photo { order: 2; }
.hero-product .hp-photo {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 340px;
  min-width: 0;
  background: #F5F5F5;
}
.hero-product .hp-photo picture,
.hero-product .hp-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-product .hp-photo img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
}
.hero-product .hp-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 12px 0;
}
.hero-product .kicker { color: var(--orange); margin: 0 0 6px; }
.hero-product h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2rem, 3.8vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
.hero-product .lede {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 38em;
}
.usp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.usp-list li {
  position: relative;
  padding: 4px 0 4px 28px;
  font-weight: 600;
  font-size: 0.95rem;
}
.usp-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.85em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg) translateY(-5px);
}
.hero-product .svc-chips { margin-top: 18px; margin-bottom: 4px; }
.hero-product .trust-chips { margin: 16px 0 0; }

/* Quiz band — full width, card centered, directly under the hero (or jump-bar) */
.quiz-band {
  background: #F7F5F2;
  padding: 28px 0 56px;
  border-top: 1px solid #E8E4DE;
}
.quiz-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(46,46,46,0.08);
  border: 1px solid #E8E4DE;
  padding: 28px 36px 32px;
}
.quiz-card h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.quiz-card .form-lede { margin: 0 0 20px; color: var(--muted); }
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
}
.quiz-progress-track {
  flex: 1;
  height: 6px;
  background: #E8E4DE;
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-track [data-quiz-bar] {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--orange);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.quiz-progress [data-quiz-label] {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.quiz-step { display: none; }
.quiz-step.is-active { display: block; }
.quiz-choices {
  display: grid;
  gap: 10px;
  margin: 16px 0 8px;
}
.quiz-choices.cols-2 { grid-template-columns: 1fr 1fr; }
.quiz-choice {
  text-align: left;
  padding: 15px 18px;
  border: 1.5px solid #E8E4DE;
  border-radius: 14px;
  background: #fff;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.quiz-choice:hover, .quiz-choice:focus-visible {
  border-color: var(--orange);
  background: #FFF8F0;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46,46,46,0.08);
}
.quiz-choice.is-selected {
  border-color: var(--orange);
  background: #FFF1E0;
  box-shadow: 0 0 0 2px rgba(255,139,11,0.25);
}
.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 12px;
}
.quiz-nav .btn-back,
.quiz-card [data-back] {
  background: none;
  border: 0;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 8px 0;
}
.quiz-card [data-back]:hover { color: var(--ink); }
.quiz-card .lead-form { margin: 0; box-shadow: none; background: transparent; padding: 0; border: 0; }
.quiz-card .form-or, .quiz-card .velocity { font-size: 0.88rem; }

@media (max-width: 900px) {
  .hero-product { padding: 16px 0 8px; }
  .hero-product .hp-row,
  .hero-product.flip .hp-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-product.flip .hp-photo { order: 0; }
  .hero-product .hp-photo {
    min-height: 220px;
    max-height: 260px;
    aspect-ratio: 16 / 10;
  }
  .quiz-card { padding: 22px 18px 24px; }
  .quiz-choices.cols-2 { grid-template-columns: 1fr; }
  .quiz-band { padding: 20px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-choice { transition: none; }
  .quiz-choice:hover { transform: none; }
  .quiz-progress-track [data-quiz-bar] { transition: none; }
}

/* ---- Homepage hero option B (preview only, /hero-b) ---- */
.herob-banner {
  background: #2E2E2E;
  color: #fff;
  font-size: 0.88rem;
  padding: 8px 0;
  text-align: center;
}
.herob-banner a { color: #FF8B0B; font-weight: 600; }
.herob-banner a:hover { color: #fff; }
.hero-b {
  position: relative;
  min-height: calc(100vh - var(--header, 100px));
  min-height: calc(100dvh - var(--header, 100px));
  display: flex;
  align-items: center;
  color: #fff;
  background: #2E2E2E;
  overflow: hidden;
}
.hero-b .herob-media,
.hero-b .herob-media img,
.hero-b .herob-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-b .herob-media video { z-index: 0; }
.hero-b .herob-media img { z-index: 0; }
.hero-b .herob-grade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(46,46,46,0.28) 0%, rgba(46,46,46,0.55) 45%, rgba(46,46,46,0.82) 100%),
    linear-gradient(90deg, rgba(46,46,46,0.5) 0%, rgba(46,46,46,0.15) 50%, rgba(46,46,46,0.45) 100%);
}
.hero-b .herob-inner {
  position: relative;
  z-index: 2;
  padding-top: 56px;
  padding-bottom: 64px;
}
.hero-b .kicker { color: var(--orange); }
.hero-b h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0.1em 0 0.35em;
  text-wrap: balance;
  max-width: 16em;
}
.hero-b .lede {
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 38em;
  margin: 0 0 32px;
}
.goal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 36px;
}
.goal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px 18px 18px;
  color: #fff;
  text-decoration: none;
  min-height: 148px;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
a.goal-card:hover, .goal-card:hover, .goal-card:focus-visible {
  background: rgba(255,255,255,0.2);
  border-color: var(--orange);
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(46,46,46,0.28);
  color: #fff;
  text-decoration: none;
  outline: none;
}
.goal-card h2 {
  font-family: "Fraunces", serif;
  font-size: 1.28rem;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}
.goal-card p { margin: 0; font-size: 0.86rem; color: rgba(255,255,255,0.82); line-height: 1.4; }
.goal-card .goal-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  color: var(--orange);
}
.goal-card .goal-icon svg { width: 36px; height: 36px; display: block; }
.goal-card.is-open,
.goal-expand.is-open {
  background: rgba(255,255,255,0.22);
  border-color: var(--orange);
}
.goal-sub {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
}
.goal-expand.is-open .goal-sub { display: flex; }
.goal-sub a {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(46,46,46,0.35);
  text-decoration: none;
}
.goal-sub a:hover { background: var(--orange); color: #fff; }

.herob-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
}
.herob-stats li {
  border-top: 2px solid var(--orange);
  padding-top: 12px;
}
.herob-stats .num {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
  line-height: 1;
  display: block;
}
.herob-stats small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
}
.hero-b .hero-mascot {
  position: absolute;
  right: 2%;
  bottom: 0;
  z-index: 3;
  width: min(280px, 22vw);
  pointer-events: none;
}
@media (max-width: 1100px) {
  .goal-grid { grid-template-columns: repeat(3, 1fr); }
  .goal-grid .goal-expand { grid-column: span 1; }
  .hero-b .hero-mascot { width: 200px; }
}
@media (max-width: 760px) {
  .hero-b { min-height: 0; }
  .hero-b .herob-inner { padding-top: 36px; padding-bottom: 44px; }
  .goal-grid { grid-template-columns: 1fr 1fr; }
  .goal-card { min-height: 120px; padding: 16px 14px; }
  .herob-stats { grid-template-columns: 1fr 1fr; }
  .hero-b .hero-mascot,
  .hero-b #hero-genie { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .goal-card { transition: none; }
  .goal-card:hover { transform: none; }
}

/* Spacing rhythm tidy (sitewide) */
.crumbs { padding-top: 18px; padding-bottom: 8px; }
.section { padding: 72px 0; }
@media (max-width: 760px) {
  .section { padding: 52px 0; }
}

/* Commercial product hero: keep the aerial's warehouse, tower and retail visible */
.hero-product:has(.svc-chips) .hp-row {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
}
.hero-product:has(.svc-chips) .hp-photo img {
  object-position: 46% 62%;
}

/* ========================================================================
   Rev 12 — t72u: hero B on homepage, product cinematic heroes, USP tiles,
   full-width quiz, heading balance, reviews slider, compact offices,
   illustrations. Keep .hero-b .herob-inner padding-top/bottom ONLY.
   ======================================================================== */

/* Headings: avoid single-word orphans */
h1, h2, h3 {
  text-wrap: balance;
  text-wrap: pretty;
}

/* Full-width questionnaire: card spans the site container, 3–4 options/row */
.quiz-band {
  width: 100%;
  background: #F7F5F2;
  padding: 36px 0 64px;
  border-top: 1px solid #E8E4DE;
  border-bottom: 1px solid #E8E4DE;
}
.quiz-band .wrap { width: min(var(--max), calc(100% - 40px)); }
.quiz-card {
  max-width: none;
  width: 100%;
  margin: 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(46,46,46,0.08);
  border: 1px solid #E8E4DE;
  padding: 32px 40px 36px;
}
.quiz-choices,
.quiz-choices.cols-2 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.quiz-choices.cols-2:has(> :nth-child(3):last-child),
.quiz-choices:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.quiz-choices.cols-2:has(> :nth-child(5)),
.quiz-choices:has(> :nth-child(5)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.quiz-choices.cols-2:has(> :nth-child(4):last-child),
.quiz-choices:has(> :nth-child(4):last-child),
.quiz-choices.cols-2:has(> :nth-child(8):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .quiz-card { padding: 24px 20px 28px; }
  .quiz-choices,
  .quiz-choices.cols-2,
  .quiz-choices.cols-2:has(> :nth-child(3):last-child),
  .quiz-choices.cols-2:has(> :nth-child(4):last-child),
  .quiz-choices.cols-2:has(> :nth-child(5)),
  .quiz-choices:has(> :nth-child(3):last-child),
  .quiz-choices:has(> :nth-child(4):last-child),
  .quiz-choices:has(> :nth-child(5)) {
    grid-template-columns: 1fr 1fr;
  }
  .quiz-band { padding: 24px 0 48px; }
}
@media (max-width: 520px) {
  .quiz-choices,
  .quiz-choices.cols-2,
  .quiz-choices.cols-2:has(> :nth-child(3):last-child),
  .quiz-choices.cols-2:has(> :nth-child(4):last-child),
  .quiz-choices.cols-2:has(> :nth-child(5)),
  .quiz-choices:has(> :nth-child(3):last-child),
  .quiz-choices:has(> :nth-child(4):last-child),
  .quiz-choices:has(> :nth-child(5)) {
    grid-template-columns: 1fr;
  }
}

/* USP tiles — individual glass cards, staggered entrance */
.usp-tiles {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 920px;
}
.usp-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 14px 16px 14px;
  border-top: 2px solid var(--orange);
  color: #fff;
  animation: uspIn 0.7s ease both;
  animation-delay: calc(var(--d, 0) * 0.14s + 0.15s);
}
.usp-tile .usp-ico {
  width: 28px;
  height: 28px;
  color: var(--orange);
  margin-bottom: 4px;
  display: block;
}
.usp-tile .usp-ico svg { width: 28px; height: 28px; display: block; }
.usp-tile .usp-fig {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.usp-tile .usp-lab {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}
@keyframes uspIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .usp-tiles { grid-template-columns: 1fr 1fr; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .usp-tile { animation: none; }
}

/* Product cinematic hero (option B style) */
.hero-b.hero-pb {
  min-height: 0;
}
.hero-b.hero-pb .herob-inner {
  padding-top: 48px;
  padding-bottom: 56px;
}
.hero-pb .herob-media img.kenburns {
  animation: kenburns 28s ease-in-out infinite alternate;
  transform-origin: center center;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.14); }
}
.hero-pb .lede { margin-bottom: 24px; }
.hero-pb .hero-forall {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.hero-pb .hero-forall em {
  font-style: normal;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-pb .svc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.hero-pb .svc-chips li {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 650;
  font-size: 0.92rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.hero-pb .svc-chips li span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}
.hero-pb .for-all { display: none; }

/* Hero Q1 — glass option cards */
.hero-q {
  margin-top: 8px;
  max-width: 960px;
}
.hero-q-label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin: 0 0 8px;
}
.hero-q h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 22em;
}
.hero-q-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.hero-q-choices:has(> :nth-child(3):last-child),
.hero-q-choices:has(> :nth-child(5)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-q-choices:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
}
.hero-q-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 64px;
  padding: 14px 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.hero-q-choice:hover,
.hero-q-choice:focus-visible {
  background: rgba(255,255,255,0.22);
  border-color: var(--orange);
  transform: translateY(-3px);
  outline: none;
  box-shadow: 0 12px 24px rgba(46,46,46,0.25);
}
.hero-q-choice.is-selected {
  background: rgba(255,139,11,0.28);
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255,139,11,0.35);
}
@media (max-width: 900px) {
  .hero-q-choices,
  .hero-q-choices:has(> :nth-child(3):last-child),
  .hero-q-choices:has(> :nth-child(5)) {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .hero-b.hero-pb .herob-inner { padding-top: 32px; padding-bottom: 40px; }
  .hero-q-choice { min-height: 56px; padding: 12px 10px; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pb .herob-media img.kenburns { animation: none; transform: none; }
  .hero-q-choice { transition: none; }
  .hero-q-choice:hover { transform: none; }
}

/* Product intro right under the hero (or jump-bar / quiz) */
.product-intro {
  padding: 56px 0 24px;
}
.product-intro .intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.5fr);
  gap: 36px;
  align-items: center;
}
.product-intro .illo {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  display: block;
}
@media (max-width: 760px) {
  .product-intro { padding: 40px 0 8px; }
  .product-intro .intro-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-intro .illo { max-width: 180px; }
}

/* Help cards (purchase "How GNE helps…") */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.help-card {
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 16px;
  padding: 24px 22px 22px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.help-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(46,46,46,0.08); }
.help-card .n {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--orange);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.help-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.help-card p { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 900px) {
  .help-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .help-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .help-card { transition: none; }
  .help-card:hover { transform: none; }
}

/* 6-step process timeline with animated connectors */
.process-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  position: relative;
  counter-reset: step;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: #E8E4DE;
  z-index: 0;
}
.process-track li {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  text-align: center;
}
.process-track .dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 0 0 6px #fff;
}
.process-track h3 {
  font-size: 1.02rem;
  margin: 0 0 6px;
  font-family: "Fraunces", serif;
  letter-spacing: -0.02em;
}
.process-track p { margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--ink); }
@media (max-width: 1100px) {
  .process-track { grid-template-columns: repeat(3, 1fr); gap: 28px 12px; }
  .process-track::before { display: none; }
}
@media (max-width: 600px) {
  .process-track { grid-template-columns: 1fr; gap: 0; }
  .process-track li {
    text-align: left;
    padding: 0 0 28px 64px;
  }
  .process-track li::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: #E8E4DE;
  }
  .process-track li:last-child::before { display: none; }
  .process-track .dot { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Reviews: only hide cards that live inside a slider.
   (Unscoped .rev-card { display:none } hid every product-page review.) */
.rev-card { display: block; }
.rev-slider .rev-card,
.rev-slider .t-card { display: none; }
.rev-slider .rev-card.is-on,
.rev-slider .t-card.is-on { display: block; }
.reviews-mini .rev-slider { max-width: 800px; }
.reviews-mini .rev-card blockquote {
  /* full published text — never clamp */
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  max-height: none;
}

/* Compact offices on inner pages */
.offices-compact { padding: 64px 0 72px; }
.offices-compact .offices-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px 40px;
  align-items: center;
}
.offices-compact .map-stage {
  background: transparent;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
}
.offices-compact .map-stage svg {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}
.offices-compact .office-teasers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.offices-compact .office {
  padding: 12px 14px;
}
.offices-compact .office h3 { font-size: 1rem; }
.offices-compact .office address { font-size: 0.84rem; }
@media (max-width: 900px) {
  .offices-compact .offices-layout { grid-template-columns: 1fr; }
  .offices-compact .map-stage { max-width: 420px; }
}

/* Decorative illustrations in sections */
.illo-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 8px;
}
.illo-slot img,
.illo-slot svg,
.illo-slot object {
  width: min(220px, 50vw);
  height: auto;
  display: block;
}
.split-with-illo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 28px;
  align-items: center;
}
@media (max-width: 700px) {
  .split-with-illo { grid-template-columns: 1fr; }
  .split-with-illo .illo-slot { order: -1; }
}

/* Jump-bar stays sticky under cinematic hero */
.jump-bar {
  position: sticky;
  top: var(--header, 100px);
  z-index: 40;
}

/* Goal-card refinements already in hero-b; ensure homepage has no preview banner */
.herob-banner { display: none; }

/* t72u polish: mobile hero clear of launcher, tighter commercial fold, scroll-margin */
.offices-sec,
.why-gne,
#reviews,
#quiz,
#how-gne-helps,
#buying-process {
  scroll-margin-top: calc(var(--header, 100px) + 12px);
}
.hero-pb:has(.svc-chips) .lede { margin-bottom: 16px; }
.hero-pb:has(.svc-chips) .usp-tiles { margin-bottom: 18px; }
.hero-pb:has(.svc-chips) .herob-inner {
  padding-top: 36px;
  padding-bottom: 40px;
}
.hero-pb:has(.svc-chips) h1 {
  font-size: clamp(2.05rem, 4.2vw, 3.15rem);
}
@media (max-width: 760px) {
  .hero-q h2,
  .hero-q-label {
    max-width: calc(100% - 84px);
  }
  .hero-pb .lede {
    font-size: 1rem;
    margin-bottom: 16px;
    max-width: 28em;
  }
  .usp-tiles { margin-bottom: 16px; gap: 10px; }
  .usp-tile { padding: 12px 12px 12px; }
  .hero-b.hero-pb .herob-inner { padding-top: 28px; padding-bottom: 32px; }
  .goal-card p { padding-right: 0; }
  /* Keep Commercial / last row of goal cards clear of the floating Genie */
  .goal-grid { margin-bottom: 12px; padding-bottom: 8px; }
}

/* Portal entries — compact cluster so Client Login + Agent Portal stay on one line at 1280px */
.nav-portals {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.nav-portal {
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 5px 9px;
  border: 1px solid var(--line, #E6E6E6);
  border-radius: 999px;
  white-space: nowrap;
  margin-left: 0;
}
.nav-portal:hover,
.nav-portal[aria-current="page"] {
  color: var(--ink);
  border-color: var(--orange);
  text-decoration: none;
}
@media (min-width: 961px) {
  .nav { flex-wrap: nowrap; }
  .nav > a,
  .nav-drop > button {
    white-space: nowrap;
  }
}
@media (min-width: 961px) and (max-width: 1600px) {
  .nav { gap: 0; }
  .nav a, .nav-drop > button { padding: 7px 7px; font-size: 0.86rem; }
  .nav-portals { margin-left: 4px; gap: 5px; }
  .nav-portal { font-size: 0.64rem; padding: 5px 8px; }
}
@media (max-width: 960px) {
  .nav-portals {
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
  }
}


/* Careers + product mobile hero: keep Q1 cards clear of the Genie launcher */
#training,
#mentorship,
#technology,
#marketing,
#support,
#lenders,
#join-our-team,
#presentation,
#faq {
  scroll-margin-top: calc(var(--header, 100px) + 12px);
}
@media (max-width: 760px) {
  .hero-b h1 {
    font-size: 1.8rem;
    line-height: 1.14;
  }
  .hero-b h1 .h-keep { white-space: nowrap; }
  .hero-q h2 {
    max-width: calc(100% - 150px);
  }
  .hero-q h2 .h-keep { white-space: nowrap; }

  .hero-q-choices {
    margin-right: 112px;
  }
  .hero-b.hero-pb .herob-inner {
    padding-bottom: 24px;
  }
  .hero-pb .lede {
    margin-bottom: 14px;
  }
  .usp-tiles { margin-bottom: 12px; }
}


/* Lender-access bank illustration (and other split-media SVGs) */
.sm-photo.sm-illo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F7F5F2;
  min-height: 340px;
  padding: 28px;
}
.sm-photo.sm-illo img {
  width: min(100%, 380px);
  height: auto;
  object-fit: contain;
  box-shadow: none;
  border-radius: 0;
}
@media (max-width: 760px) {
  .sm-photo.sm-illo { min-height: 240px; padding: 20px; }
}

/* ============================================================
   Rev t80 — mascot services, branding, larger launcher,
   licence copy, product-page mascots, /hero-lamp sample
   ============================================================ */

/* Licensed Canada wide — text credential, not a count-up 6 */
.herob-stats .num.num-text {
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  letter-spacing: -0.03em;
  font-weight: 650;
  padding-top: 0.22em;
  line-height: 1.15;
}
.usp-fig-wide {
  font-size: clamp(1.15rem, 2vw, 1.55rem) !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* Larger header logo on wide screens only (nav is tight at 1280) */
@media (min-width: 1500px) {
  .brand-lockup .logo img,
  .brand-lockup .logo picture img,
  .site-header .logo img {
    height: 76px !important;
  }
}

/* Branded eyebrow: GNE Mortgages + Genie */
.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 139, 11, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 5px 22px 5px 5px;
  margin: 0 0 16px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1;
  width: fit-content;
}
.brand-eyebrow img {
  width: 52px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}
.page-hero .brand-eyebrow { color: #fff; }

/* Homepage Our services — mascot as the card hero.
   Overflow stays visible so the hover lift does not crop the head.
   No orange/peach glow behind the mascots. */
#our-services .card-grid,
#our-services .card {
  overflow: visible;
}
#our-services .card {
  padding-top: 36px;
}
#our-services .card-mascot-fig {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 200px;
  margin: 0 0 14px;
  background: none;
  border-radius: 0;
  overflow: visible;
}
#our-services .card-mascot-fig img {
  height: 210px;
  width: auto;
  max-width: 108%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 16px rgba(46, 46, 46, 0.16));
  transition: transform 0.4s ease;
  transform-origin: 50% 100%;
}
#our-services .card:hover .card-mascot-fig img,
#our-services .card:focus-visible .card-mascot-fig img {
  transform: translateY(-8px) scale(1.05);
}
#our-services .card:has(.card-mascot-fig) .card-icon { display: none; }
@media (max-width: 760px) {
  #our-services .card { padding-top: 28px; }
  #our-services .card-mascot-fig { height: 160px; }
  #our-services .card-mascot-fig img { height: 168px; }
}

/* Product-page mascot in the cinematic hero (desktop).
   Only switch to the 2-col grid when a mascot is actually in the hero. */
.hero-pb .herob-inner:has(.pb-mascot) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 28%);
  column-gap: 16px;
  align-items: end;
}
.hero-pb .herob-inner:has(.pb-mascot) > :not(.pb-mascot) {
  grid-column: 1;
}
.hero-pb .pb-mascot {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: end;
  justify-self: center;
  width: 100%;
  max-width: 340px;
  margin: 0 0 8px;
  pointer-events: none;
  z-index: 3;
  animation: mascot-enter 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both,
             mascot-float 4.8s ease-in-out 1s infinite;
}
.hero-pb .pb-mascot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.38));
}
@media (max-width: 960px) {
  .hero-pb .herob-inner:has(.pb-mascot) {
    display: block;
  }
  .hero-pb .pb-mascot { display: none; }
}

@keyframes mascot-enter {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Quiz band: Genie framing (visible on mobile, where the hero mascot hides) */
.quiz-band-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.quiz-genie-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.quiz-genie-frame img {
  width: 160px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 16px rgba(46, 46, 46, 0.16));
  animation: mascot-float 4.8s ease-in-out infinite;
}
.quiz-genie-label {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--orange, #FF8B0B);
}
@media (max-width: 800px) {
  .quiz-band-layout {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 12px;
  }
  .quiz-genie-frame {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    padding: 4px 0 6px;
  }
  .quiz-genie-frame img { width: 96px; }
}

/* Footer Genie moment */
.ft-brand .fo-genie {
  width: 76px;
  height: auto;
  display: block;
  margin: 0 0 10px;
  filter: drop-shadow(0 4px 8px rgba(46, 46, 46, 0.16));
}

/* Larger chat launcher — ~1.57× desktop, noticeably bigger on mobile */
.genie-launcher-img,
.genie-launcher-vid,
.genie-launcher-webp {
  height: 232px;
}
@media (max-width: 760px) {
  .genie-launcher-img,
  .genie-launcher-vid,
  .genie-launcher-webp {
    height: 140px; /* larger than the old 118px */
  }
  .genie-launcher { right: 4px; bottom: 2px; }
  .genie-tip { display: none; } /* the tip was covering “Tap equity” */
  .hero-pb .herob-inner { padding-bottom: 36px; }
  .quiz-band { padding-bottom: 80px; }
  /* Gutter so goal cards and Q1 choices aren’t under the launcher */
  .hero-b .goal-grid { padding-right: 96px; padding-bottom: 8px; }
  .hero-pb .hero-q { padding-right: 96px; }
  .hero-lamp .goal-grid { padding-right: 96px; }
  .hero-lamp .lamp-copy { padding-right: 96px; }
}

/* ===== /hero-lamp sample (does not replace the live homepage) ===== */
.hero-lamp .herob-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  grid-template-areas:
    "copy  stage"
    "goals stage"
    "stats stage";
  column-gap: 12px;
  row-gap: 22px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 48px;
}
.hero-lamp .lamp-copy { grid-area: copy; }
.hero-lamp .lamp-copy .lede { margin-bottom: 0; max-width: 32em; }
.hero-lamp .lamp-copy h1 { max-width: 12em; }
.hero-lamp .goal-grid {
  grid-area: goals;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.hero-lamp .herob-stats {
  grid-area: stats;
  max-width: none;
}
.hero-lamp .lamp-stage {
  grid-area: stage;
  position: relative;
  height: min(72vh, 680px);
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  isolation: isolate;
}
.hero-lamp .lamp-vessel {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(78%, 380px);
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.4));
}
.hero-lamp .lamp-smoke {
  position: absolute;
  inset: 0 8% 18% 8%;
  width: 84%;
  height: 82%;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}
.hero-lamp .smoke-wisp {
  fill: none;
  stroke: rgba(255, 185, 80, 0.55);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 8 18;
  opacity: 0;
}
.hero-lamp .lamp-stage.is-in .smoke-wisp {
  animation: smoke-drift 3.6s ease-in-out infinite;
}
.hero-lamp .smoke-wisp.s2 {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 6;
  animation-delay: 0.5s;
  animation-duration: 4.2s;
}
.hero-lamp .smoke-wisp.s3 {
  stroke: rgba(255, 139, 11, 0.4);
  stroke-width: 5;
  animation-delay: 1s;
  animation-duration: 3.2s;
}
.hero-lamp .lamp-glow {
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: 54%;
  height: 42%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 80%, rgba(255, 139, 11, 0.45) 0%, rgba(255, 139, 11, 0) 70%);
  z-index: 0;
  pointer-events: none;
  animation: lamp-glow 3s ease-in-out infinite;
}
.hero-lamp .lamp-genie {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: min(92%, 460px);
  transform: translateX(-50%);
  z-index: 5;
  transform-origin: 50% 100%;
  opacity: 0;
}
.hero-lamp .lamp-stage.is-in .lamp-genie {
  animation: genie-emerge 1.85s cubic-bezier(0.2, 0.85, 0.25, 1) 0.35s both,
             lamp-float 4.8s ease-in-out 2.3s infinite;
}
.hero-lamp .lamp-genie img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.42));
}
.hero-lamp .sample-flag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 139, 11, 0.2);
  border: 1px solid rgba(255, 139, 11, 0.7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@keyframes genie-emerge {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(42%) scale(0.18);
    filter: blur(10px);
  }
  50% {
    opacity: 1;
    filter: blur(0);
  }
  72% {
    transform: translateX(-50%) translateY(-4%) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes smoke-drift {
  0% {
    opacity: 0;
    stroke-dashoffset: 40;
    transform: translateY(24px) scale(0.85);
  }
  25% { opacity: 0.85; }
  100% {
    opacity: 0;
    stroke-dashoffset: -80;
    transform: translateY(-90px) scale(1.2);
  }
}
@keyframes lamp-float {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-10px) scale(1); }
}
@keyframes lamp-glow {
  0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}

@media (max-width: 960px) {
  .hero-lamp .herob-inner {
    display: flex;
    flex-direction: column;
    padding-top: 24px;
    padding-bottom: 36px;
    gap: 16px;
  }
  .hero-lamp .lamp-stage {
    order: -1;
    width: 100%;
    height: 300px;
    min-height: 260px;
  }
  .hero-lamp .lamp-vessel { width: min(58%, 240px); }
  .hero-lamp .lamp-genie { width: min(70%, 280px); bottom: 20%; }
  .hero-lamp .goal-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-lamp .goal-card { min-height: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  #our-services .card-mascot-fig img,
  .quiz-genie-frame img,
  .hero-pb .pb-mascot,
  .hero-lamp .lamp-stage.is-in .lamp-genie,
  .hero-lamp .lamp-stage.is-in .smoke-wisp,
  .hero-lamp .lamp-glow {
    animation: none !important;
    transform: none;
    opacity: 1;
  }
  .hero-lamp .lamp-stage.is-in .lamp-genie {
    transform: translateX(-50%);
    opacity: 1;
    filter: none;
  }
  .hero-lamp .smoke-wisp { opacity: 0.35; }
}


/* ============================================================
   Rev t88 — homepage hero: no brand-eyebrow pill; original Genie
   fully visible in the right-hand zone (head to tail, no crop),
   vertically centred, ~80% of hero height. Hidden on mobile.
   Services: hover lift kept, head uncropped, no peach glow.
   ============================================================ */
.hero-b .herob-inner.herob-home {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr);
  column-gap: 8px;
  align-items: center;
  align-self: stretch;
  padding-top: 16px;
  padding-bottom: 24px;
  box-sizing: border-box;
}
.herob-home-copy {
  grid-column: 1;
  min-width: 0;
}
.hero-b .herob-inner.herob-home .goal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}
.hero-b .herob-inner.herob-home .goal-card {
  min-height: 126px;
  padding: 16px 14px 14px;
}
.hero-b .herob-inner.herob-home .herob-stats {
  max-width: none;
}
.home-hero-mascot {
  /* height: 0 + min-height: 100% so the 900px asset cannot stretch the hero */
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: 0;
  min-height: 100%;
  margin: 0;
  pointer-events: none;
  z-index: 3;
  position: relative;
  overflow: visible;
}
.home-hero-mascot picture {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.home-hero-mascot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 82%;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.42));
}
@media (max-width: 1280px) {
  .hero-b .herob-inner.herob-home {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.9fr);
  }
  .home-hero-mascot img { max-height: 80%; }
}
@media (max-width: 1100px) {
  .hero-b .herob-inner.herob-home {
    grid-template-columns: minmax(0, 1.2fr) minmax(200px, 0.75fr);
    padding-top: 12px;
    padding-bottom: 20px;
  }
  .home-hero-mascot img { max-height: 78%; }
}
/* Fit kicker through stats on shorter laptop viewports (e.g. 800px tall) */
@media (max-height: 850px) and (min-width: 961px) {
  .hero-b .herob-inner.herob-home {
    padding-top: 6px;
    padding-bottom: 10px;
  }
  .hero-b .herob-inner.herob-home .lede {
    margin-bottom: 16px;
    font-size: 1rem;
  }
  .hero-b .herob-inner.herob-home .goal-grid {
    margin-bottom: 12px;
    gap: 10px;
  }
  .hero-b .herob-inner.herob-home .goal-card {
    min-height: 108px;
    padding: 12px 12px 10px;
  }
  .hero-b .herob-inner.herob-home .herob-stats li { padding-top: 8px; }
  .hero-b .herob-inner.herob-home h1 {
    font-size: clamp(2.05rem, 4.2vw, 3.2rem);
    margin-bottom: 0.25em;
  }
}
@media (max-width: 960px) {
  .hero-b .herob-inner.herob-home {
    display: block;
    align-self: auto;
    padding-top: 28px;
    padding-bottom: 36px;
  }
  .hero-b .herob-inner.herob-home .goal-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-hero-mascot { display: none !important; }
}
