/* Mascot cast: the yellow tour guide shows up around the page.
   Images live in /img/mascot/ (right-click/drag protected in site.css).
   Every mascot is decoration layered on existing sections; none of them
   moves layout, so hiding one on small screens never shifts content. */

.mascot { position: absolute; z-index: 4; pointer-events: none; }
.mascot img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }

/* Comic speech bubble. Tail side via .bubble--tail-right / -left / -down. */
.bubble {
  position: absolute; z-index: 5; width: max-content; max-width: 230px;
  padding: .7rem .95rem; border-radius: 18px;
  background: #fff; color: #0a0b0f; font: 600 .86rem/1.35 var(--sans); letter-spacing: -.005em;
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.6), 0 0 0 3px var(--lime);
  pointer-events: auto;
}
.bubble::after { content: ""; position: absolute; width: 16px; height: 16px; background: #fff; box-shadow: 3px 3px 0 0 var(--lime); }
.bubble--tail-right::after { right: -7px; top: 50%; margin-top: -8px; transform: rotate(-45deg); }
.bubble--tail-left::after { left: -7px; top: 50%; margin-top: -8px; transform: rotate(135deg); }
.bubble--tail-down::after { bottom: -7px; left: 32px; transform: rotate(45deg); }
.bubble a { color: inherit; text-decoration: underline; text-decoration-color: var(--lime-dk); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.bubble strong { font-weight: 800; }

/* Inline "mascot + speech bubble" row that sits in normal flow. */
.m-row { display: flex; align-items: center; gap: 16px; margin-top: 1.8rem; }
.m-row .mascot { position: relative; flex: none; width: 110px; z-index: auto; }
.m-row .bubble { position: relative; max-width: 260px; margin-left: 4px; }
@media (max-width: 640px) { .m-row .mascot { width: 88px; } .m-row .bubble { font-size: .8rem; } }

@keyframes m-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes m-pop { 0% { transform: scale(.4) translateY(20px); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes m-wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-6deg); } 80% { transform: rotate(5deg); } 90% { transform: rotate(-3deg); } }
@keyframes m-fly { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(-8px, -16px) rotate(2deg); } }

/* ---- 1. Hero: guide stands on the scanner window's top edge -------------- */
.window { position: relative; }
@media (min-width: 992px) { .hero .window { margin-top: 140px; } }
.m-hero { right: 56px; bottom: calc(100% - 34px); width: 170px; animation: m-bob 4.5s ease-in-out infinite; }
.m-hero-bubble { right: 236px; bottom: calc(100% + 62px); }
.m-hero-bubble { animation: m-pop .6s 1.2s cubic-bezier(.3,1.5,.5,1) both; }

/* ---- 2. Industries: guide points at the rail arrows ----------------------- */
.rail-nav { position: relative; align-items: center; }
.m-point { position: static; width: 150px; margin-right: .4rem; }
.m-point img { filter: drop-shadow(0 12px 18px rgba(0,0,0,.4)); }

/* ---- 3. Why-us: a different guide rises out of each card on hover -------- */
.why-card { isolation: isolate; }
.why-card .mascot { right: 14px; bottom: -24px; width: 132px; z-index: -1;
  transition: transform .5s cubic-bezier(.3,1.5,.5,1); transform: translateY(56px); }
.why-card.wide .mascot { width: 150px; }
.why-card.lime .mascot { width: 210px; right: -6px; bottom: -20px; transform: translateY(40px); }
.why-card:hover .mascot { transform: translateY(0); opacity: 1; }
.why-card h3, .why-card p { position: relative; }
.why-card p { max-width: calc(100% - 110px); }
.why-card.wide p { max-width: min(34rem, calc(100% - 150px)); }
.why-card.lime p { max-width: calc(100% - 150px); }

/* ---- 4. Reviews: guide peeks over the top edge of the featured review ---
   The box above the card clips the image, so the card's top edge reads
   as the ledge he is peeking over. */
.review.featured { position: relative; }
.m-review { right: 22px; bottom: 100%; width: 118px; height: 96px; overflow: hidden; }
.m-review img { transform: translateY(44px); filter: none; transition: transform .45s cubic-bezier(.3,1.5,.5,1); }
.review-grid:hover .m-review img { transform: translateY(0); }
@media (min-width: 992px) { .review-grid:has(.m-review) { padding-top: 48px; } }

/* ---- 5. FAQ: support guide with a call bubble ---------------------------- */
.faq .head { position: relative; }
.m-faq-wrap { position: relative; margin-top: 2.2rem; height: 230px; }
.m-faq { left: 0; bottom: 0; width: 180px; }
.m-faq-bubble { left: 176px; top: 18px; animation: m-wave 5s ease-in-out infinite; transform-origin: 0 50%; }

/* ---- 6. CTA: waving guide on the left, drone pilot on the right --------- */
.m-cta-wave { left: 3%; bottom: -16px; width: 190px; z-index: -1; transform-origin: 50% 100%; animation: m-wave 6s ease-in-out infinite; }
.m-cta-drone { right: 3%; bottom: -10px; width: 230px; z-index: -1; }
.m-cta-drone img { animation: m-fly 5s ease-in-out infinite; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .m-cta-wave { width: 150px; left: 1%; }
  .m-cta-drone { width: 180px; right: 1%; }
}
@media (max-width: 991px) {
  .m-hero { width: 130px; right: 24px; bottom: calc(100% - 26px); }
  .m-hero-bubble { right: 160px; bottom: calc(100% + 40px); max-width: 190px; font-size: .8rem; }
  .m-faq-wrap { height: 200px; margin-top: 1.4rem; }
  .m-faq { width: 150px; }
  .m-faq-bubble { left: 150px; }
  .m-cta-wave, .m-cta-drone { display: none; }
  .m-review { display: none; }
}
@media (max-width: 640px) {
  .m-hero { width: 96px; right: 10px; bottom: calc(100% - 18px); }
  .m-hero-bubble { right: 106px; bottom: calc(100% + 18px); max-width: 170px; padding: .55rem .75rem; font-size: .76rem; }
  .window { margin-top: 110px; }
  .m-point { display: none; }
  .why-card .mascot { width: 104px; }
  .why-card.lime .mascot { width: 160px; }
  .why-card .mascot, .why-card.lime .mascot { transform: translateY(14px); }
  .why-card p, .why-card.wide p, .why-card.lime p { max-width: calc(100% - 84px); }
}
@media (hover: none) { .why-card .mascot, .why-card.lime .mascot { transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) {
  .mascot, .mascot img, .bubble { animation: none !important; transition: none !important; }
}

/* ==== Shared: a guide in each bottom corner of a .cta box ==== */
.m-cta-l { left: 3%; bottom: -16px; width: 180px; z-index: -1; }
.m-cta-r { right: 3%; bottom: -10px; width: 190px; z-index: -1; }
@media (max-width: 1180px) { .m-cta-l { width: 140px; left: 1%; } .m-cta-r { width: 150px; right: 1%; } }
@media (max-width: 991px) { .m-cta-l, .m-cta-r { display: none; } }
.m-row--center { justify-content: center; }
.m-swap img { animation: m-pop .5s cubic-bezier(.3,1.5,.5,1) both; }

/* ==== Blog index hero ==== */
.bl-hero .wrap { position: relative; }
.bl-hero-m { position: absolute; right: 0; bottom: -40px; width: 230px; height: 230px; }
.bl-m { right: 0; bottom: 0; width: 230px; animation: m-bob 5s ease-in-out infinite; }
@media (max-width: 1180px) { .bl-hero-m { display: none; } }

/* ==== Blog post ==== */
.bp-side-cta { position: relative; margin-top: 64px; }
.bp-side-m { right: 12px; bottom: 100%; width: 84px; height: 62px; overflow: hidden; }
.bp-side-m img { transform: translateY(20px); filter: none; transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.bp-side-cta:hover .bp-side-m img { transform: translateY(2px); }
.bp-inline-cta { position: relative; }
.bp-inline-m { position: relative; flex: none; width: 110px; align-self: flex-end; margin: -40px -10px -27px -14px; }
.bp-body .mascot img { border: 0; border-radius: 0; }
@media (max-width: 760px) { .bp-inline-m { display: none; } }

/* ==== Street View quiz: a guide who reacts ==== */
.gd-result-row { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.gd-result-row .gd-result { flex: 1; margin-top: 0; }
.gd-quiz-m { position: relative; flex: none; width: 110px; z-index: auto; }
.st-feat-col { position: relative; }
.st-feat-col .st-feat-m { z-index: 5; }
.st-feat-m { left: -86px; bottom: -34px; width: 160px; animation: m-bob 4.5s ease-in-out infinite; }
@media (max-width: 1180px) { .st-feat-m { left: -30px; width: 120px; } }
@media (max-width: 640px) { .gd-quiz-m { width: 78px; } .st-feat-m { width: 96px; left: -8px; bottom: -28px; } }

/* ==== Presentation ==== */
.pr-screen { position: relative; }
.pr-host-wrap { position: absolute; right: -96px; bottom: 10px; width: 170px; height: 230px; z-index: 4; pointer-events: none; }
.pr-host { left: 0; bottom: 0; width: 160px; }
.pr-host-bubble { right: 70px; bottom: 214px; }
@media (max-width: 1220px) { .pr-host-wrap { display: none; } }
.pr-slide--quiz { position: relative; }
.pr-fit-m { right: 18px; top: 18px; width: 120px; transform: scale(0) rotate(-12deg); transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.3,1.5,.5,1); }
.pr-slide.is-fit .pr-fit-m { transform: none; }
@media (max-width: 640px) { .pr-fit-m { width: 84px; right: 8px; top: 8px; } }

/* ==== Reviews hero ==== */
.rv-hero-grid { position: relative; }
.rv-m-wrap { position: absolute; right: 436px; bottom: -40px; width: 150px; height: 190px; z-index: 3; }
.rv-m { left: 0; bottom: 0; width: 150px; }
.rv-bubble { left: -6px; bottom: 236px; white-space: nowrap; }
@media (max-width: 1180px) { .rv-m-wrap { display: none; } }

/* ==== Employment ==== */
.em-done-m { position: relative; width: 140px; margin: 0 auto 1rem; z-index: auto; animation: m-pop .6s cubic-bezier(.3,1.5,.5,1) both; }

/* ==== Batch B: new poses ==== */
/* Homepage scanner: the guide turns detective while a scan runs */
.m-hero--sleuth, .m-hero-bubble--sleuth { display: none; }
#scan[data-scan-state="scanning"] .m-hero:not(.m-hero--sleuth),
#scan[data-scan-state="scanning"] .m-hero-bubble:not(.m-hero-bubble--sleuth) { display: none; }
#scan[data-scan-state="scanning"] .m-hero--sleuth { display: block; animation: m-pop .5s cubic-bezier(.3,1.5,.5,1) both; }
#scan[data-scan-state="scanning"] .m-hero-bubble--sleuth { display: block; }
#scan[data-scan-state="done"] .m-hero-bubble { display: none; }

/* Centered heroes: guide in the bottom-right of the hero wrap */
.aw-m-wrap, .fq-m-wrap, .hub-m-wrap, .i3-m-wrap { position: absolute; right: -70px; bottom: -40px; width: 180px; height: 220px; pointer-events: none; }
:is(.gd-hero, .wy-hero, .hub-hero, .i3-hero) > .wrap { position: relative; }
.aw-m, .fq-m, .hub-m, .i3-m { right: 0; bottom: 0; width: 180px; animation: m-bob 5s ease-in-out infinite; }
.aw-m-bubble, .fq-m-bubble, .hub-m-bubble, .i3-m-bubble { right: 168px; bottom: 70px; white-space: nowrap; max-width: none; }
.wy-hero .fq-m-bubble { bottom: 150px; }
@media (max-width: 1400px) { .aw-m-bubble, .fq-m-bubble, .hub-m-bubble, .i3-m-bubble { display: none; } }
@media (max-width: 1300px) { .aw-m-wrap, .fq-m-wrap, .hub-m-wrap, .i3-m-wrap { display: none; } }

/* Fraud */
.fr-call { position: relative; }
.fr-call .mascot img { aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 0; filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); }
.fr-stop-m { left: -70px; bottom: -40px; width: 170px; z-index: 4; animation: m-bob 4.5s ease-in-out infinite; }
@media (max-width: 991px) { .fr-stop-m { left: auto; right: -6px; width: 110px; bottom: -30px; } }

/* Prep: clipboard guide beside the dial */
.pp-side { position: sticky; }
.pp-dial-m { right: -34px; top: -46px; width: 96px; z-index: 3; }
@media (max-width: 991px) { .pp-dial-m { right: 6px; top: -30px; width: 84px; } }
.pp-big-wrap { position: relative; }
.pp-big-m { position: relative; float: right; width: 120px; margin: -10px 0 8px 18px; z-index: auto; shape-outside: margin-box; }
@media (max-width: 640px) { .pp-big-m { width: 86px; } }

/* State map */
.st-map-m { left: -56px; bottom: 150px; width: 130px; z-index: 5; }
@media (max-width: 991px) { .st-map-m { left: -6px; width: 100px; bottom: -30px; } }

/* Holiday */
.hv-hero-grid { position: relative; }
.hv-gift-m { right: -92px; top: -74px; width: 140px; z-index: 5; animation: m-bob 4.5s ease-in-out infinite; }
@media (max-width: 991px) { .hv-gift-m { right: -4px; top: -60px; width: 104px; } }
.hv-quote { position: relative; }
.hv-quote-m { right: -46px; top: -86px; width: 124px; }
@media (max-width: 760px) { .hv-quote-m { width: 90px; right: 10px; top: -60px; } }

/* Eligible */
.el-door { position: relative; }
.el-door-m { right: -40px; bottom: -36px; width: 160px; z-index: 4; }
@media (max-width: 991px) { .el-door-m { right: 0; width: 110px; } }
.el-card--no { position: relative; }
.el-no-m { right: 14px; top: -54px; width: 96px; }

/* Hire: guide sits on top of the credential card */
.tr-card-wrap { position: relative; }
.tr-sit-m { left: 40%; top: -118px; width: 120px; z-index: 6; }
@media (max-width: 640px) { .tr-sit-m { width: 96px; top: -94px; right: 18px; } }

/* VS: guide sits on the compare frame */
.vs-compare { position: relative; }
.vs-hero .vs-compare { margin-top: 7rem; }
.vs-sit-m { right: 70px; top: -104px; width: 110px; z-index: 6; }
@media (max-width: 640px) { .vs-hero .vs-compare { margin-top: 4.5rem; } .vs-sit-m { width: 84px; top: -80px; right: 14px; } }

/* 404: a shrug next to the viewfinder */
.nf-shrug { right: -20px; bottom: -30px; width: 140px; z-index: 4; }
@media (max-width: 760px) { .nf-shrug { width: 96px; right: -6px; bottom: -24px; } }

/* Mobile: guides that would cover content */
@media (max-width: 760px) {
  .fr-stop-m, .hv-gift-m { display: none; }
}
@media (max-width: 991px) { .tr-card-wrap { margin-top: 96px; } }
