/* =====================================================================
   OFFER — the exit offer's window. Like the studio pill it stays night,
   so it reads as The Marketing Agency's layer. The quote itself lives on
   themarketingagency.ca/wealth/.
   ===================================================================== */
html.has-modal, html.has-modal body { overflow: hidden; }
.qm { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); }
.qm[hidden] { display: none; }
.qm__scrim { position: absolute; inset: 0; background: rgba(3, 5, 4, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s; }
.qm.is-on .qm__scrim { opacity: 1; }
.qm__box {
  position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: #0a0e0b; color: #ebe5d6; border: 1px solid rgba(201, 163, 90, .3);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9);
  transform: translateY(24px) scale(.98); opacity: 0; transition: transform .6s var(--ease), opacity .4s;
  --fg: #ebe5d6; --bg: #0a0e0b; --muted: rgba(235, 229, 214, .7); --faint: rgba(235, 229, 214, .52); --line: rgba(235, 229, 214, .12); --line-2: rgba(235, 229, 214, .22); --card: rgba(235, 229, 214, .035); --card-2: rgba(235, 229, 214, .07); --accent: #c9a35a; --down: #e08a6e;
  color-scheme: dark;
}
.qm.is-on .qm__box { transform: none; opacity: 1; }
.qm__x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: rgba(235, 229, 214, .7); z-index: 2; }
.qm__x:hover { background: rgba(235, 229, 214, .08); color: #ebe5d6; }
@media (max-width: 560px) { .qm { padding: 0; align-items: end; } .qm__box { border-radius: 24px 24px 0 0; max-height: 92vh; max-height: 92dvh; padding: 26px 20px calc(22px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- shared headings ---------- */
.qw { display: grid; gap: 16px; }
.qw__k { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.qw__t { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -.03em; padding-right: 30px; }
.qw__t em { color: var(--accent); }
.qw__s { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.qw__s b { color: var(--fg); font-weight: 500; }
.qw__go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
@media (max-width: 480px) { .qw__go .btn { width: 100%; justify-content: center; } }

/* ---------- the exit offer ---------- */
.qm--exit .qm__box { width: min(560px, 100%); }
.xo { display: grid; gap: 16px; }
.xo__note { font-size: 13px; color: var(--faint); }

/* the concept playing inside the hero on themarketingagency.ca/wealth/: no scrollbar */
html.is-embed { scrollbar-width: none; }
html.is-embed::-webkit-scrollbar { display: none; }
