/* ============================================================
   / (homepage) — option B homepage (t91 + t92). Scoped to body.v2.
   Transparent full-width 3-part header over the hero (solid white
   once scrolled past the hero), fixed phone pills top-right,
   large Our-services buttons with descriptions in the hero.
   ============================================================ */
body.v2 { --header: 112px; }

/* ---- Header: transparent, fixed, full width, 3 parts ---- */
body.v2 .site-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  height: var(--header) !important;
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none;
  transition: background-color .2s ease, box-shadow .2s ease;
  z-index: 90;
}
body.v2 .site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px 0;
  background: linear-gradient(180deg, rgba(46,46,46,0.72) 0%, rgba(46,46,46,0.38) 60%, rgba(46,46,46,0) 100%);
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: -1;
}
body.v2 .site-header .wrap {
  width: 100% !important;
  max-width: none !important;
  padding: 0 32px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
body.v2 .brand-lockup { grid-column: 1; justify-self: start; gap: 22px; }
body.v2 .brand-lockup .logo img,
body.v2 .brand-lockup .logo picture img,
body.v2 .site-header .logo img { height: 92px !important; }
body.v2 .hb-logo-dark { display: none !important; }
body.v2 .mc-member {
  background: #fff;
  border-radius: 10px;
  padding: 7px 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
body.v2 .mc-member img,
body.v2 .mc-member picture img { width: 112px !important; max-width: 112px !important; height: auto !important; }

@media (min-width: 961px) {
  body.v2 .nav { display: contents !important; }
  body.v2 .hb-links {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 2px;
  }
  body.v2 .hb-links > a,
  body.v2 .hb-links .nav-drop > button {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 9px 12px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.45);
    white-space: nowrap;
  }
  body.v2 .hb-links > a:hover,
  body.v2 .hb-links .nav-drop > button:hover,
  body.v2 .hb-links .nav-drop:hover > button {
    background: rgba(255,255,255,0.16);
    color: #fff;
  }
  body.v2 .hb-portals {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    flex-direction: row;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  body.v2 .hb-portals .nav-portal {
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.8);
    background: rgba(46,46,46,0.25);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 9px 16px;
    text-shadow: none;
  }
  body.v2 .hb-portals .nav-portal:hover {
    border-color: #FF8B0B;
    background: #FF8B0B;
    color: #2E2E2E;
  }
  /* Dropdown keeps the white panel and charcoal links */
  body.v2 .nav-drop-menu a { color: #2E2E2E; text-shadow: none; }
}

/* Scrolled past the hero: solid white bar, charcoal text, regular logo */
body.v2.hb-scrolled .site-header,
body.v2.hb-menu-open .site-header {
  background: #fff !important;
  border-bottom-color: #E6E6E6 !important;
  box-shadow: 0 6px 24px rgba(46,46,46,0.08);
}
body.v2.hb-scrolled .site-header::before,
body.v2.hb-menu-open .site-header::before { opacity: 0; }
body.v2.hb-scrolled .hb-logo-light,
body.v2.hb-menu-open .hb-logo-light { display: none !important; }
body.v2.hb-scrolled .hb-logo-dark,
body.v2.hb-menu-open .hb-logo-dark { display: flex !important; }
body.v2.hb-scrolled .mc-member,
body.v2.hb-menu-open .mc-member { box-shadow: none; padding: 7px 0; }
@media (min-width: 961px) {
  body.v2.hb-scrolled .hb-links > a,
  body.v2.hb-scrolled .hb-links .nav-drop > button { color: #2E2E2E; text-shadow: none; }
  body.v2.hb-scrolled .hb-links > a:hover,
  body.v2.hb-scrolled .hb-links .nav-drop > button:hover,
  body.v2.hb-scrolled .hb-links .nav-drop:hover > button { background: #F5F5F5; color: #2E2E2E; }
  body.v2.hb-scrolled .hb-portals .nav-portal { color: #2E2E2E; border-color: #2E2E2E; background: transparent; }
  body.v2.hb-scrolled .hb-portals .nav-portal:hover { background: #FF8B0B; border-color: #FF8B0B; }
}

/* Hero sits under the fixed header */
body.v2 .hero-b {
  min-height: 100vh !important;
  min-height: 100dvh !important;
}
body.v2 .hero-b .herob-inner.herob-home {
  padding-top: calc(var(--header) + 22px) !important;
  padding-bottom: 28px !important;
}
body.v2 .hero-b .herob-grade {
  background:
    linear-gradient(180deg, rgba(46,46,46,0.45) 0%, rgba(46,46,46,0.55) 45%, rgba(46,46,46,0.82) 100%),
    linear-gradient(90deg, rgba(46,46,46,0.6) 0%, rgba(46,46,46,0.25) 55%, rgba(46,46,46,0.45) 100%);
}

/* ---- Fixed phone pills (desktop): just below the header's right side ---- */
body.v2 .hb-callbar {
  position: fixed;
  top: calc(var(--header) + 10px);
  right: 32px;
  z-index: 88;
  display: flex;
  gap: 8px;
}
body.v2 .hb-phone {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  background: #FF8B0B;
  color: #2E2E2E;
  border-radius: 999px;
  padding: 6px 13px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.1;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
body.v2 .hb-phone:hover,
body.v2 .hb-phone:focus-visible {
  background: #2E2E2E;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
body.v2 .hb-phone-lbl {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.v2 .hb-phone-num { font-size: 0.86rem; font-weight: 700; }
body.v2 .hb-call-mob { display: none; }

/* ---- Hero layout: wider services column, smaller Genie ---- */
body.v2 .hero-b .herob-inner.herob-home {
  width: min(1360px, calc(100% - 64px));
  max-width: none;
  grid-template-columns: minmax(0, 2.15fr) minmax(220px, 0.85fr) !important;
  column-gap: 20px;
}
body.v2 .home-hero-mascot img { max-height: 70% !important; }

/* ---- Services buttons (≈1.5× the t91 block) ---- */
body.v2 .hb-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}
body.v2 .hb-svc {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 12px 16px 12px 10px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
body.v2 .hb-svc:hover,
body.v2 .hb-svc:focus-visible {
  background: rgba(255,255,255,0.22);
  border-color: #FF8B0B;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(46,46,46,0.32);
  color: #fff;
  text-decoration: none;
  outline: none;
}
body.v2 .hb-svc-fig {
  flex: 0 0 auto;
  width: 34px;
  height: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
body.v2 .hb-svc-fig img {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
  transition: transform .3s ease;
  transform-origin: 50% 100%;
}
body.v2 .hb-svc:hover .hb-svc-fig img { transform: translateY(-3px) scale(1.06); }
body.v2 .hb-svc-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.v2 .hb-svc-name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
body.v2 .hb-svc-desc {
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.86);
}
body.v2 .hb-svc-arrow { color: #FF8B0B; font-weight: 700; font-size: 1.1rem; align-self: center; }

/* Shorter laptop screens */
@media (max-height: 850px) and (min-width: 961px) {
  body.v2 { --header: 100px; }
  body.v2 .brand-lockup .logo img,
  body.v2 .brand-lockup .logo picture img,
  body.v2 .site-header .logo img { height: 82px !important; }
  body.v2 .hero-b .herob-inner.herob-home { padding-top: calc(var(--header) + 14px) !important; }
  body.v2 .hb-svc { min-height: 92px; padding: 10px 14px 10px 8px; }
  body.v2 .hb-svc-grid { gap: 10px; margin-bottom: 18px; }
}

@media (min-width: 961px) and (max-width: 1360px) {
  body.v2 .site-header .wrap { padding: 0 20px; gap: 14px; }
  body.v2 .brand-lockup { gap: 14px; }
  body.v2 .brand-lockup .logo img,
  body.v2 .brand-lockup .logo picture img,
  body.v2 .site-header .logo img { height: 80px !important; }
  body.v2 .mc-member { padding: 5px 9px; }
  body.v2 .mc-member img,
  body.v2 .mc-member picture img { width: 92px !important; max-width: 92px !important; }
  body.v2 .hb-links > a,
  body.v2 .hb-links .nav-drop > button { font-size: 0.9rem; padding: 8px 8px; }
  body.v2 .hb-portals { gap: 6px; }
  body.v2 .hb-portals .nav-portal { font-size: 0.7rem; padding: 8px 11px; }
  body.v2 .hb-callbar { right: 20px; }
  body.v2 .hero-b .herob-inner.herob-home {
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, 2.3fr) minmax(200px, 0.8fr) !important;
  }
  body.v2 .hb-svc-name { font-size: 1.1rem; }
  body.v2 .hb-svc-desc { font-size: 0.8rem; }
}

/* ---- Mobile ---- */
@media (max-width: 960px) {
  body.v2 { --header: 88px; }
  body.v2 .site-header .wrap { display: flex !important; justify-content: space-between; padding: 0 16px; }
  body.v2 .brand-lockup { gap: 12px; }
  body.v2 .brand-lockup .logo img,
  body.v2 .brand-lockup .logo picture img,
  body.v2 .site-header .logo img { height: 62px !important; }
  body.v2 .mc-member { padding: 5px 8px; }
  body.v2 .mc-member img,
  body.v2 .mc-member picture img { width: 86px !important; max-width: 86px !important; }
  body.v2 .menu-toggle { border-color: rgba(255,255,255,0.7); background: rgba(46,46,46,0.25); }
  body.v2 .menu-toggle span { background: #fff; }
  body.v2.hb-scrolled .menu-toggle,
  body.v2.hb-menu-open .menu-toggle { border-color: #E6E6E6; background: #fff; }
  body.v2.hb-scrolled .menu-toggle span,
  body.v2.hb-menu-open .menu-toggle span { background: #2E2E2E; }
  body.v2 .hb-links { display: flex; flex-direction: column; align-items: stretch; }
  body.v2 .hb-portals {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid #E6E6E6;
  }
  body.v2 .hb-callbar { display: none; }
  body.v2 .hb-call-mob {
    display: block;
    position: fixed;
    top: calc(var(--header) + 8px);
    right: 16px;
    z-index: 88;
  }
  body.v2 .hb-call-mob summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FF8B0B;
    color: #2E2E2E;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    margin-left: auto;
    width: fit-content;
  }
  body.v2 .hb-call-mob summary::-webkit-details-marker { display: none; }
  body.v2 .hb-call-mob { text-align: right; }
  body.v2 .hb-call-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    align-items: flex-end;
  }
  body.v2.hb-menu-open .hb-call-mob { display: none; }
  body.v2 .hero-b .herob-inner.herob-home {
    width: calc(100% - 40px);
    padding-top: calc(var(--header) + 62px) !important;
  }
  body.v2 .hb-svc-grid { grid-template-columns: 1fr 1fr; padding-right: 0; }
  body.v2 .hb-svc { min-height: 0; flex-direction: column; align-items: flex-start; padding: 12px; gap: 6px; }
  body.v2 .hb-svc-fig { width: 34px; height: 46px; justify-content: flex-start; }
  body.v2 .hb-svc-fig img { height: 46px; }
  body.v2 .hb-svc-name { font-size: 1.02rem; }
  body.v2 .hb-svc-desc { font-size: 0.78rem; }
  body.v2 .hb-svc-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.v2 .hb-svc, body.v2 .hb-svc-fig img, body.v2 .site-header { transition: none; }
  body.v2 .hb-svc:hover, body.v2 .hb-svc:hover .hb-svc-fig img { transform: none; }
}

/* ============================================================
   t93 — bigger service buttons, Genie further right, chat
   launcher hidden over the hero, all-white Mortgage Centre logo
   over the hero (full colour once scrolled).
   ============================================================ */

/* Mortgage Centre: no tile, white silhouette over the hero */
body.v2 .mc-member {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0;
}
body.v2:not(.hb-scrolled):not(.hb-menu-open) .mc-member img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,0.35));
}
body.v2 .mc-member img,
body.v2 .mc-member picture img { width: 128px !important; max-width: 128px !important; }

/* Chat launcher: hidden while the hero is on screen, slides in after */
body.v2 .genie-launcher {
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear 0s;
}
html.js body.v2:not(.hb-scrolled) .genie-launcher {
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

/* Hero: wider services column, Genie pushed to the right edge */
body.v2 .hero-b .herob-inner.herob-home {
  width: calc(100% - 64px) !important;
  max-width: 1480px;
  grid-template-columns: minmax(0, 2.7fr) minmax(220px, 0.75fr) !important;
  column-gap: 24px;
}
body.v2 .home-hero-mascot picture { justify-content: flex-end; align-items: flex-end; padding-bottom: 4%; }
body.v2 .home-hero-mascot img { max-height: 72% !important; }
body.v2 .hero-b h1 { margin-bottom: 0.2em; }
body.v2 .hero-b .lede { margin-bottom: 20px; max-width: 46em; }

/* Bigger buttons, mascots and names */
body.v2 .hb-svc-grid { gap: 14px; margin-bottom: 22px; }
body.v2 .hb-svc {
  min-height: 128px;
  padding: 12px 18px 12px 12px;
  gap: 16px;
  align-items: center;
}
body.v2 .hb-svc-fig { width: 66px; height: 100px; }
body.v2 .hb-svc-fig img { height: 100px; }
body.v2 .hb-svc-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.08;
}
body.v2 .hb-svc-desc { font-size: 0.86rem; }

@media (max-height: 850px) and (min-width: 961px) {
  body.v2 .hb-svc { min-height: 112px; padding: 10px 16px 10px 10px; }
  body.v2 .hb-svc-fig { width: 58px; height: 88px; }
  body.v2 .hb-svc-fig img { height: 88px; }
  body.v2 .hb-svc-name { font-size: 1.36rem; }
  body.v2 .hb-svc-grid { gap: 12px; margin-bottom: 16px; }
  body.v2 .hero-b .lede { margin-bottom: 14px; font-size: 1rem; }
}
@media (min-width: 961px) and (max-width: 1360px) {
  body.v2 .hero-b .herob-inner.herob-home {
    width: calc(100% - 40px) !important;
    grid-template-columns: minmax(0, 2.9fr) minmax(190px, 0.72fr) !important;
    column-gap: 16px;
  }
  body.v2 .mc-member img,
  body.v2 .mc-member picture img { width: 104px !important; max-width: 104px !important; }
  body.v2 .hb-svc { gap: 12px; padding-right: 14px; }
  body.v2 .hb-svc-name { font-size: 1.3rem; }
  body.v2 .hb-svc-desc { font-size: 0.8rem; }
}

/* Mobile: same rule (launcher after the hero), larger mascots in the 2-col buttons */
@media (max-width: 960px) {
  body.v2 .hero-b .herob-inner.herob-home { width: calc(100% - 40px) !important; }
  body.v2 .hb-svc { min-height: 0; padding: 12px; gap: 6px; }
  body.v2 .hb-svc-fig { width: 52px; height: 72px; }
  body.v2 .hb-svc-fig img { height: 72px; }
  body.v2 .hb-svc-name { font-size: 1.12rem; }
  body.v2 .hb-svc-desc { font-size: 0.78rem; }
  body.v2 .mc-member img,
  body.v2 .mc-member picture img { width: 92px !important; max-width: 92px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html.js body.v2:not(.hb-scrolled) .genie-launcher { transform: none; }
}

/* ============================================================
   t94 — hero content fills the left ~70% (aligned with the logo),
   Genie centred in an oval zone at ~73–92% width, ~31–93% height.
   More space around headline/subheading. Desktop only.
   ============================================================ */
@media (min-width: 961px) {
  body.v2 .hero-b { align-items: stretch; }
  body.v2 .hero-b .herob-inner.herob-home {
    position: relative;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding: calc(var(--header) + 72px) 0 36px 32px !important;
  }
  body.v2 .herob-home-copy {
    width: calc(70% - 32px);
    max-width: none;
  }
  body.v2 .hero-b .kicker { margin: 0 0 14px; }
  body.v2 .hero-b h1 {
    font-size: clamp(2.6rem, 3.6vw, 4.2rem);
    margin: 0 0 18px;
    max-width: none;
  }
  body.v2 .hero-b .lede {
    font-size: clamp(1.05rem, 1.15vw, 1.25rem);
    margin: 0 0 40px;
    max-width: 52em;
  }
  body.v2 .hb-svc-grid { gap: 16px; margin: 0 0 32px; }
  body.v2 .hb-svc {
    min-height: clamp(128px, 15.5vh, 176px);
    padding: 14px 22px 14px 14px;
    gap: 18px;
    border-radius: 18px;
  }
  body.v2 .hb-svc-fig { width: clamp(70px, 6.6vw, 104px); height: clamp(104px, 12vh, 140px); }
  body.v2 .hb-svc-fig img { height: clamp(104px, 12vh, 140px); }
  body.v2 .hb-svc-name { font-size: clamp(1.45rem, 1.65vw, 2rem); }
  body.v2 .hb-svc-desc { font-size: clamp(0.86rem, 0.85vw, 1rem); }
  body.v2 .hb-svc-arrow { font-size: 1.3rem; }

  /* Genie: absolutely placed in the oval zone */
  body.v2 .home-hero-mascot {
    position: absolute !important;
    left: 73%;
    width: 19%;
    top: 31%;
    bottom: 6%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
  }
  body.v2 .home-hero-mascot picture {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  body.v2 .home-hero-mascot img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto;
    height: auto;
  }
}
/* 1280-wide laptops: slightly tighter */
@media (min-width: 961px) and (max-width: 1360px) {
  body.v2 .hero-b .herob-inner.herob-home { padding-left: 20px !important; }
  body.v2 .herob-home-copy { width: calc(71% - 20px); }
  body.v2 .hb-svc { padding: 12px 14px 12px 10px; gap: 12px; }
  body.v2 .hb-svc-name { font-size: 1.32rem; }
  body.v2 .hb-svc-desc { font-size: 0.8rem; }
  body.v2 .home-hero-mascot { left: 74%; width: 22%; }
}
@media (min-width: 961px) and (max-height: 850px) {
  body.v2 .hero-b .herob-inner.herob-home { padding-top: calc(var(--header) + 56px) !important; }
  body.v2 .hero-b .lede { margin-bottom: 32px; }
}
/* t94b — buttons sized so the grid ends at the bottom of the first screen;
   Genie zone measured against the viewport. */
@media (min-width: 961px) {
  body.v2 { --hb-row: max(124px, calc((100vh - 480px) / 3)); }
  body.v2 .hb-svc { min-height: var(--hb-row); height: var(--hb-row); }
  body.v2 .hb-svc-fig { height: calc(var(--hb-row) - 30px); width: auto; min-width: 64px; max-width: 110px; }
  body.v2 .hb-svc-fig img { height: calc(var(--hb-row) - 30px); max-height: 140px; }
  body.v2 .home-hero-mascot { top: 31vh; bottom: auto; height: 61vh !important; }
}
@media (min-width: 961px) and (max-height: 850px) {
  body.v2 { --hb-row: max(116px, calc((100vh - 404px) / 3)); }
}
/* t94c — buttons fill to the bottom of the first screen; stats sit
   just below the fold instead of being cut in half. Less wrapping. */
@media (min-width: 961px) {
  body.v2 { --hb-pad: calc(var(--header) + 72px); }
  body.v2 .hero-b .herob-inner.herob-home { padding-top: var(--hb-pad) !important; padding-bottom: 40px !important; }
  body.v2 .herob-home-copy {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--hb-pad) + 96px);
  }
  body.v2 .herob-home-copy .hb-svc-grid { margin-bottom: 0; }
  body.v2 .herob-home-copy .herob-stats { margin-top: auto; padding-top: 28px; }
  body.v2 .hb-svc-arrow { display: none; }
  body.v2 .hb-svc { padding: 12px 18px 12px 12px; gap: 14px; }
  body.v2 .hb-svc-fig { min-width: 0; width: calc((var(--hb-row) - 30px) * 0.6); }
  body.v2 .hb-svc-name { font-size: clamp(1.3rem, 1.45vw, 1.95rem); }
  body.v2 .hb-svc-desc { font-size: clamp(0.82rem, 0.8vw, 1rem); }
}
@media (min-width: 961px) and (max-height: 850px) {
  body.v2 { --hb-pad: calc(var(--header) + 56px); }
}
@media (min-width: 961px) and (max-width: 1360px) {
  body.v2 .hb-svc-name { font-size: 1.24rem; }
  body.v2 .hb-svc-desc { font-size: 0.78rem; }
}

/* ============================================================
   t95 — equal side gutters, hero fits one screen with the stats
   visible, buttons fill the remaining height, Renew/Refi choice.
   ============================================================ */
body.v2 { --hb-g: clamp(40px, 4.4vw, 84px); }
@media (min-width: 961px) {
  body.v2 .site-header .wrap { padding: 0 var(--hb-g) !important; }
  body.v2 .hb-callbar { right: var(--hb-g) !important; }
  body.v2 { --hb-pad: calc(var(--header) + 44px); }
  body.v2 .hero-b .herob-inner.herob-home {
    height: 100vh; height: 100dvh;
    min-height: 640px;
    padding: var(--hb-pad) var(--hb-g) 32px var(--hb-g) !important;
  }
  body.v2 .herob-home-copy {
    width: calc(100% - 22% - 3%);
    height: 100%;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
  }
  body.v2 .hero-b .kicker { margin: 0 0 10px; }
  body.v2 .hero-b h1 { font-size: clamp(2.4rem, 3.3vw, 3.9rem); margin: 0 0 14px; }
  body.v2 .hero-b .lede { margin: 0 0 28px; }
  body.v2 .herob-home-copy .hb-svc-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
  }
  body.v2 .herob-home-copy .herob-stats { margin-top: 0; padding-top: 24px; flex: 0 0 auto; }
  body.v2 .hb-svc {
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 18px 10px 12px;
    align-items: center;
  }
  body.v2 .hb-svc-fig {
    align-self: stretch;
    height: auto !important;
    width: clamp(64px, 5.6vw, 100px) !important;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body.v2 .hb-svc-fig picture { display: flex; height: 100%; max-height: 132px; align-items: center; justify-content: center; }
  body.v2 .hb-svc-fig img { height: 100% !important; max-height: 132px !important; width: auto; max-width: 100%; object-fit: contain; }
  /* Genie: right gutter matches the left gutter */
  body.v2 .home-hero-mascot {
    left: auto !important;
    right: var(--hb-g);
    width: 21% !important;
    top: 30vh !important;
    height: 60vh !important;
  }
  body.v2 .home-hero-mascot picture { justify-content: flex-end !important; }
}
@media (min-width: 961px) and (max-height: 850px) {
  body.v2 { --hb-pad: calc(var(--header) + 36px); }
  body.v2 .hero-b .herob-inner.herob-home { padding-bottom: 26px !important; }
  body.v2 .hero-b h1 { font-size: clamp(2.2rem, 3.1vw, 3.2rem); margin-bottom: 10px; }
  body.v2 .hero-b .lede { margin-bottom: 22px; font-size: 1rem; }
  body.v2 .herob-home-copy .hb-svc-grid { gap: 12px; }
  body.v2 .herob-home-copy .herob-stats { padding-top: 18px; }
  body.v2 .herob-stats .num { font-size: 2rem; }
  body.v2 .herob-stats .num.num-text { font-size: 1.45rem; }
}
@media (min-width: 961px) and (max-width: 1360px) {
  body.v2 .herob-home-copy { width: calc(100% - 23% - 2.5%); }
  body.v2 .home-hero-mascot { width: 22% !important; }
}

/* Renew/Refi combined button */
body.v2 .hb-svc-rr { position: relative; padding: 0 !important; display: block; }
body.v2 .hb-rr-toggle {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: inherit;
  width: 100%;
  height: 100%;
  padding: 10px 18px 10px 12px;
  gap: 14px;
  cursor: pointer;
  border-radius: inherit;
  color: #fff;
}
body.v2 .hb-rr-toggle:focus-visible { outline: 2px solid #FF8B0B; outline-offset: 2px; }
body.v2 .hb-svc-rr .hb-svc-arrow { display: inline !important; transition: transform .2s ease; }
body.v2 .hb-svc-rr.is-open .hb-svc-arrow { transform: rotate(180deg); }
body.v2 .hb-svc-rr.is-open { border-color: #FF8B0B; background: rgba(46,46,46,0.55); transform: none; z-index: 5; }
body.v2 .hb-rr-choice {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(46,46,46,0.94);
  border-radius: inherit;
  border: 1px solid #FF8B0B;
}
body.v2 .hb-rr-choice[hidden] { display: none; }
body.v2 .hb-rr-q { margin: 0; color: #fff; font-weight: 600; font-size: 0.95rem; }
body.v2 .hb-rr-opts { display: flex; gap: 10px; }
body.v2 .hb-rr-opt {
  flex: 1 1 0;
  text-align: center;
  background: #FF8B0B;
  color: #2E2E2E;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
}
body.v2 .hb-rr-opt:hover, body.v2 .hb-rr-opt:focus-visible { background: #fff; color: #2E2E2E; text-decoration: none; outline: none; }
@media (max-width: 960px) {
  body.v2 .hb-rr-toggle { flex-direction: column; align-items: flex-start; padding: 12px; gap: 6px; }
  body.v2 .hb-svc-rr .hb-svc-arrow { display: none !important; }
  body.v2 .hb-rr-choice { padding: 10px; }
  body.v2 .hb-rr-opts { flex-direction: column; gap: 8px; }
  body.v2 .hb-rr-opt { padding: 9px 10px; font-size: 0.98rem; }
}

/* ============================================================
   t96 — v2 chrome sitewide + product heroes in the homepage layout.
   body.v2 = new chrome; body.v2-solid = page without a dark hero
   (header solid from the start, launcher visible).
   ============================================================ */
body.v2.v2-solid .site-header { position: sticky !important; }
body.v2.v2-solid .site-header::before { display: none; }

/* Photo page heroes (About, Locations, policies, Mortgage Types) sit under the fixed header */
body.v2 .page-hero { padding-top: var(--header); box-sizing: border-box; }
body.v2 .page-hero:not(.page-hero-short) { min-height: calc(620px + var(--header)); }
body.v2 .page-hero.page-hero-short { min-height: calc(380px + var(--header)); }

/* Footer: Mortgages column added (every product page reachable from every page) */
@media (min-width: 1041px) {
  body.v2 .footer-tidy .ft-grid { grid-template-columns: 1fr 0.95fr 0.8fr 0.95fr 1.15fr; gap: 40px 28px; }
}
@media (max-width: 1040px) and (min-width: 641px) {
  body.v2 .footer-tidy .ft-products .fo-links { columns: 2; column-gap: 24px; }
}
.footer-tidy .ft-products .fo-links li { break-inside: avoid; }

/* ---- Product heroes: same layout as the homepage hero ---- */
body.v2 .hb-q-choice {
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
body.v2 .hb-q-choice.is-selected,
body.v2 .hb-q-choice[aria-pressed="true"] {
  border-color: #FF8B0B;
  background: rgba(255,139,11,0.22);
}
body.v2 .hb-q-choice:focus-visible { outline: 2px solid #FF8B0B; outline-offset: 2px; }
body.v2 .hb-q-head {
  margin: 0 0 14px;
  color: #fff;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}
body.v2 .hb-q-step {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF8B0B;
}
body.v2 .hb-q-title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 1.55vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
body.v2 .hb-q-grid.hb-q-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.v2 .hb-q-grid.hb-q-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.v2 .herob-prod .hero-forall { margin: -12px 0 18px; }

@media (min-width: 961px) {
  body.v2 .herob-prod .herob-home-copy { width: calc(66vw - var(--hb-g)) !important; }
  body.v2 .herob-prod .hb-q {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  body.v2 .herob-prod .hb-q-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: none !important;
    grid-auto-rows: minmax(60px, 1fr);
    gap: 14px;
    margin: 0;
  }
  body.v2 .herob-prod .herob-stats { margin-top: auto; }
  body.v2 .herob-prod .hb-svc { padding: 12px 22px; }
  body.v2 .herob-prod .hb-svc-name { font-size: clamp(1.25rem, 1.45vw, 1.75rem); }
  /* Mascot centred in the right-hand oval, fully visible */
  body.v2 .herob-prod .home-hero-mascot {
    left: 68% !important;
    right: auto !important;
    width: 22% !important;
    top: calc(var(--header) + 56px) !important;
    bottom: 14% !important;
    height: auto !important;
  }
  body.v2 .herob-prod .home-hero-mascot picture {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  body.v2 .herob-prod .home-hero-mascot img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
  }
}
@media (min-width: 961px) and (max-height: 850px) {
  body.v2 .herob-prod .hb-q-head { margin-bottom: 10px; }
  body.v2 .herob-prod .hb-q-grid { gap: 12px; }
  body.v2 .herob-prod .hero-forall { margin: -16px 0 12px; }
}
@media (max-width: 960px) {
  body.v2 .herob-prod .hb-q-grid { grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
  body.v2 .herob-prod .hb-svc { min-height: 64px; justify-content: center; }
  body.v2 .herob-prod .hb-svc-name { font-size: 1.05rem; }
}
body.v2 .hero-b h1 { text-wrap: balance; }
body.v2 .hero-b .lede, body.v2 .hb-q-title { text-wrap: pretty; }
/* Photo page heroes: same equal side gutters as the header */
body.v2 .page-hero .ph-inner {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding-left: var(--hb-g);
  padding-right: var(--hb-g);
}
body.v2 .page-hero.no-form .ph-inner,
body.v2 .page-hero-short .ph-inner { max-width: calc(760px + 2 * var(--hb-g)); }
@media (max-width: 960px) {
  body.v2 .page-hero .ph-inner { padding-left: 20px; padding-right: 20px; }
}
/* Hero answer → quiz: land with the solid header showing */
body.v2 #quiz { scroll-margin-top: var(--header); }


/* t98 — product heroes back to the pre-t96 content (compact USP row, then
   question 1 with its answers) inside the v2 layout. The chat launcher is
   hidden over the hero now, so the answers no longer need to clear it. */
body.v2 .hero-pb .hero-q { padding-right: 0; }
body.v2 .hero-pb .hero-q-choices { margin-right: 0; }
body.v2 .hero-pb .hero-q h2 { max-width: none; }

/* t99 — product heroes size to their content: the gap from the menu bar
   to the kicker equals the gap from the answer buttons to the hero bottom. */
@media (min-width: 961px) {
  body.v2 .hero-b.hero-pb { min-height: 0 !important; }
  body.v2 .hero-b .herob-inner.herob-prod {
    height: auto !important;
    min-height: 0 !important;
    padding: var(--hb-pad) var(--hb-g) calc(var(--hb-pad) - var(--header)) var(--hb-g) !important;
  }
  body.v2 .herob-prod .herob-home-copy { height: auto !important; }
  body.v2 .herob-prod .hero-q { margin-bottom: 0; }
  body.v2 .herob-prod .home-hero-mascot {
    top: calc(var(--header) + 52px) !important;
    bottom: 28px !important;
  }
}

/* ===== t104: About + Locations (homepage-hero style) and 3D office map ===== */
body.v2 .about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
body.v2 .hero-b .about-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.7); }
body.v2 .hero-about .herob-media img { object-position: 50% 40%; }
body.v2 .accent { color: var(--orange); }

.about-commit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.about-commit-copy h2 { margin-top: 0; }
.about-commit-copy p { color: var(--ink-soft); line-height: 1.7; font-size: 1.05rem; }
.about-team { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border-bottom: 4px solid var(--orange); }
.about-team img { display: block; width: 100%; height: auto; }

.about-book-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.about-book-copy h2 { margin-top: 0; }
.about-book-copy p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; margin: 0 0 8px; }
.about-book .lead-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 26px; border-top: 3px solid var(--orange); }

.about-office-grid { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr); gap: 24px; align-items: stretch; }
.about-office-card { background: #2E2E2E; color: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.about-office-card h2 { color: #fff; margin: 0; font-size: 1.6rem; }
.about-office-card address { font-style: normal; line-height: 1.6; color: rgba(255,255,255,0.86); }
.about-office-links { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.about-office-links a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,139,11,0.6); }
.about-office-links a:hover { color: var(--orange); }
.about-office-card .btn { align-self: flex-start; margin-top: auto; }
.about-map { border-radius: 20px; overflow: hidden; min-height: 340px; border: 1px solid var(--line); background: #F5F5F5; }
.about-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(1) contrast(1.05); }

/* Locations hero cards */
body.v2 .loc-cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.v2 .loc-card {
  display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); border-top: 2px solid var(--orange);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 14px; padding: 13px 15px; color: #fff; text-decoration: none;
  transition: background .2s, transform .2s, border-color .2s;
  animation: uspIn 0.7s ease both; animation-delay: calc(var(--d, 0) * 0.09s + 0.15s);
}
body.v2 .loc-card:hover, body.v2 .loc-card:focus-visible, body.v2 .loc-card.is-on { background: rgba(255,255,255,0.2); transform: translateY(-2px); border-color: rgba(255,139,11,0.7); }
body.v2 .loc-region { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); display: flex; align-items: center; gap: 4px; }
body.v2 .loc-region .ico { width: 13px; height: 13px; flex: none; }
body.v2 .loc-city { font-family: "Fraunces", serif; font-size: 1.22rem; font-weight: 600; line-height: 1.15; }
body.v2 .loc-addr { font-size: 0.82rem; line-height: 1.4; color: rgba(255,255,255,0.86); }
@media (max-width: 1100px) { body.v2 .loc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  body.v2 .loc-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.v2 .loc-card { padding: 11px 12px; }
  body.v2 .loc-city { font-size: 1.08rem; }
  body.v2 .loc-addr { font-size: 0.76rem; }
  .about-commit-grid, .about-book-grid, .about-office-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { body.v2 .loc-card { animation: none; transition: none; } }

/* 3D office map */
.office-map-sec { background: linear-gradient(180deg, #fff 0%, #F5F5F5 100%); }
.om-hint { color: var(--muted); }
.om { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: stretch; margin-top: 18px; }
.om-stage { position: relative; height: clamp(420px, 56vw, 640px); border-radius: 24px; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #FFFFFF 0%, #F3F1EE 70%, #ECE8E3 100%); border: 1px solid var(--line); touch-action: pan-y; user-select: none; }
.om-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.om-canvas:active { cursor: grabbing; }
.om-labels { position: absolute; inset: 0; pointer-events: none; }
.om-label { position: absolute; left: 0; top: 0; pointer-events: auto; font: inherit; font-size: 0.78rem; font-weight: 650; white-space: nowrap; color: #2E2E2E; background: #fff; border: 1px solid rgba(46,46,46,0.12); border-radius: 999px; padding: 4px 10px; box-shadow: 0 6px 18px rgba(46,46,46,0.14); cursor: pointer; transition: opacity .3s, background .2s, color .2s; will-change: transform; }
.om-label:hover, .om-label.is-hover, .om-label:focus-visible { background: #2E2E2E; color: #fff; outline: none; }
.om-label.is-on { background: var(--orange); color: #fff; border-color: var(--orange); }
.om-panel { background: #2E2E2E; color: #fff; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 8px; min-height: 100%; box-sizing: border-box; }
.om-panel h3 { font-family: "Fraunces", serif; font-size: 1.9rem; margin: 0; color: #fff; }
.om-region { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.om-panel address { font-style: normal; line-height: 1.6; color: rgba(255,255,255,0.86); }
.om-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.om-links .btn { font-size: 0.9rem; padding: 10px 16px; }
.om-panel .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.om-mail { margin: 0; font-size: 0.9rem; }
.om-mail a { color: #fff; }
.om-list { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; flex-wrap: wrap; gap: 6px; }
.om-list button { font: inherit; font-size: 0.8rem; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.om-list button:hover { border-color: var(--orange); }
.om-list button.is-on { background: var(--orange); border-color: var(--orange); }
.om-stage.is-flat { display: flex; align-items: center; justify-content: center; padding: 20px; }
.om-svg { width: 100%; height: 100%; }
.om-svg .land path { fill: #2E2E2E; stroke: #fff; stroke-width: 0.15; }
.om-fpin circle { fill: rgba(255,139,11,0.35); cursor: pointer; }
.om-fpin .dot { fill: #FF8B0B; }
.om-fpin.is-on circle:first-child { fill: rgba(255,139,11,0.6); }
@media (max-width: 900px) {
  .om { grid-template-columns: 1fr; }
  .om-stage { height: clamp(300px, 80vw, 460px); }
}
/* compact map: only the selected / hovered pin keeps its label (others stay tappable via pins + city list) */
.om.is-compact .om-label:not(.is-on):not(.is-hover) { visibility: hidden; }
.om.is-compact .om-label { font-size: 0.74rem; padding: 3px 9px; }

/* t112: reverse mortgage landing sections (copy from live gnemortgages.com/reverse-mortgage) */
.rm-grid .rm-card h3 { font-size: 1.12rem; margin: 0 0 4px; }
.rm-grid .rm-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.95rem; }
.rm-grid .rm-card { border-top: 3px solid var(--orange); }
.rm-adv .rm-grid { grid-template-columns: repeat(2, 1fr); }
.rm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rm-stats > div { background: #2E2E2E; color: #fff; border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.rm-stats strong { font-family: "Fraunces", serif; font-size: 2.4rem; color: var(--orange); line-height: 1; }
.rm-stats span { font-size: 0.95rem; line-height: 1.5; color: rgba(255,255,255,0.88); }
.rm-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.rm-cta .rm-ghost { color: #2E2E2E; border-color: rgba(46,46,46,0.4); }
@media (max-width: 900px) { .rm-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .rm-adv .rm-grid { grid-template-columns: 1fr; } }
