/* ==========================================================================
   Opt Digital homepage rebuild
   One-for-one recreation of optdigital.io (WordPress + Elementor) as a
   hand-written static page with cleaner, clearer animations.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Bethany Elingston";
  src: url("../fonts/bethany-elingston.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --yellow: #F7EB2A;
  --yellow-deep: #EFE118;
  --ink: #0A0D14;
  --ink-2: #171717;
  --ink-3: #2A2A2A;
  --text-grey: #595959;
  --text-grey-2: #414141;
  --grey-bg: #F2F2F2;
  --dark: #171717;
  --border-dark: #3C3C3C;
  --border-light: #E4E4E4;
  --white: #fff;
  --white-84: rgba(255, 255, 255, .84);

  --display: "Bethany Elingston", "Playfair Display", Georgia, serif;
  --body: "Instrument Sans", "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: "Satoshi", "Instrument Sans", system-ui, sans-serif;

  --container: 1340px;
  --pad: 50px;
  --header-h: 110px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --reveal-dur: .9s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--yellow); }

.container { width: 100%; max-width: calc(var(--container) + var(--pad) * 2); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.center { text-align: center; }
.dark { background: var(--dark); color: var(--white); }
.grey { background: var(--grey-bg); }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--ink);
}
.dark .h2 { color: var(--white); }
.h2 em, .hero-title em, .quote em { font-style: italic; font-weight: 400; }
.intro { font-size: 16px; line-height: 1.5; color: var(--text-grey); }
.dark .intro { color: var(--white-84); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 20px 30px; border-radius: 1000px;
  font-weight: 600; font-size: 18px; line-height: 1.5;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn-yellow { background: var(--yellow); color: #131414; }
.btn-yellow:hover { background: var(--yellow-deep); transform: translateY(-3px); box-shadow: 0 12px 28px -10px rgba(247, 235, 42, .55); }
.btn-yellow:active { transform: translateY(-1px); }
.btn-outline { background: var(--ink); color: var(--yellow); border: 1px solid var(--yellow); }
.btn-outline:hover { background: var(--yellow); color: #131414; transform: translateY(-3px); }
.btn-block { width: 100%; }

/* "LEARN MORE ↗" style link */
.link-more {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--label); font-weight: 900; font-size: 15px; line-height: 1.5;
  text-transform: uppercase; letter-spacing: .02em; color: var(--white);
}
.link-more > span { position: relative; padding-bottom: 2px; }
.link-more > span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform-origin: left; transition: transform .45s var(--ease-out);
}
.link-more svg { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.link-more:hover > span::after, .svc-card:hover .link-more > span::after { transform: scaleX(0); transform-origin: right; animation: underline-in .55s var(--ease-out) .25s forwards; }
.link-more:hover svg, .svc-card:hover .link-more svg { transform: translate(3px, -3px); }
@keyframes underline-in { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--reveal-dur) var(--ease-out), transform var(--reveal-dur) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  transition: box-shadow .3s, height .3s;
}
.header-inner {
  height: var(--header-h);
  padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: height .35s var(--ease-soft);
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 10px 30px -18px rgba(0,0,0,.25); }
.site-header.scrolled .header-inner { height: 88px; }
.logo img { width: 100px; height: 100px; transition: transform .35s var(--ease-soft); }
.site-header.scrolled .logo img { transform: scale(.82); transform-origin: left center; }

.nav { justify-self: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: 18px; color: #101828; position: relative;
}
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav-item:hover > .nav-link::after, .nav-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-link .chev { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.nav-item:hover .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 6px); left: 50%;
  min-width: 300px; padding: 10px;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.05);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility 0s .28s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
.mega-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 10px; color: var(--ink); font-size: 16px; font-weight: 500;
  transition: background-color .25s;
}
.mega-item:hover { background: #F7F7F5; }
.mega-icon { position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--grey-bg); transition: background-color .3s; }
.mega-icon img { width: 22px; height: 22px; position: absolute; inset: 0; margin: auto; transition: opacity .3s, transform .3s var(--ease-out); }
.mega-icon .hov { opacity: 0; transform: scale(.7); }
.mega-item:hover .mega-icon { background: var(--yellow); }
.mega-item:hover .mega-icon img:not(.hov) { opacity: 0; transform: scale(.7); }
.mega-item:hover .mega-icon .hov { opacity: 1; transform: scale(1); }
.mega-label { position: relative; }
.mega-label::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.mega-item:hover .mega-label::after { transform: scaleX(1); }

.header-cta { justify-self: end; padding: 20px 35px; }
.burger { display: none; width: 44px; height: 44px; justify-self: end; color: var(--ink); }
.burger svg { width: 26px; height: 26px; margin: auto; }

/* Off-canvas (mobile) */
.offcanvas { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.offcanvas.open { visibility: visible; }
.offcanvas-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .4s; }
.offcanvas.open .offcanvas-backdrop { opacity: 1; }
.offcanvas-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--white); padding: 12px 30px 40px;
  transform: translateX(100%); transition: transform .5s var(--ease-out);
  overflow-y: auto; display: flex; flex-direction: column;
}
.offcanvas.open .offcanvas-panel { transform: none; }
.offcanvas-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.offcanvas-top .logo img { width: 80px; height: 80px; }
.offcanvas-close { width: 44px; height: 44px; color: var(--ink); }
.offcanvas-close svg { width: 24px; height: 24px; margin: auto; }
.offcanvas-list > li { border-bottom: 1px solid transparent; }
.offcanvas-list a, .acc-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 0; font-family: "General Sans", var(--body); font-size: 20px; color: var(--ink); text-align: left; }
.acc-btn .chev { width: 20px; height: 20px; transition: transform .3s var(--ease-out); }
.acc.open .acc-btn .chev { transform: rotate(180deg); }
/* accordion: the whole panel collapses (the old 0fr grid only collapsed its first link, leaving four showing) */
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease-out); }
.acc.open .acc-panel { max-height: 400px; }
.acc-panel > a { font-size: 16px; padding: 10px 0 10px 12px; justify-content: flex-start; gap: 12px; min-height: 44px; opacity: 0; transform: translateY(-6px); transition: opacity .22s ease, transform .3s var(--ease-out); }
.acc.open .acc-panel > a { opacity: 1; transform: none; }
.acc.open .acc-panel > a:nth-child(2) { transition-delay: .03s; }
.acc.open .acc-panel > a:nth-child(3) { transition-delay: .06s; }
.acc.open .acc-panel > a:nth-child(4) { transition-delay: .09s; }
.acc.open .acc-panel > a:nth-child(5) { transition-delay: .12s; }
.acc.open .acc-panel > a:nth-child(6) { transition-delay: .15s; }
.acc-panel > a img { width: 22px; height: 22px; }
.offcanvas .btn-block { margin-top: 24px; }
body.no-scroll { overflow: hidden; }
.offcanvas-panel:focus { outline: none; }  /* body only: locking html as well unsticks the header's pill */

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(to bottom, #fff 0, #fff calc(100% - 140px), var(--grey-bg) 100%);
  padding-top: 50px;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: 70px; line-height: 1.3; letter-spacing: -1.75px; color: #000;
  max-width: 700px;
}
/* lines rise and fade in without a clipping mask, so descenders and the italic never get cut */
.hero-title .line { display: block; padding: 0 .08em; }
.hero-title .line-in { display: block; opacity: 0; transform: translateY(26px); animation: line-up 1.1s cubic-bezier(.2,.75,.2,1) forwards; }
.hero-title .line:nth-child(2) .line-in { animation-delay: .14s; }
@keyframes line-up { to { opacity: 1; transform: none; } }
@media (min-width: 1025px) {
  body.flighty .hero-title { font-size: 84px; max-width: 860px; letter-spacing: -2.2px; line-height: 1.18; }
  body.flighty .hero-sub { font-size: 18.5px; max-width: 660px; margin-top: 16px; }
}

.hero-sub { max-width: 615px; margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.hero-sub[data-reveal] { transition-delay: .35s; }

/* Logo marquee */
.marquee {
  width: 950px; max-width: 100%; height: 119px; margin-top: 40px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
  display: flex; align-items: center;
}
.marquee[data-reveal] { transition-delay: .5s; }
.marquee-track { display: flex; align-items: center; gap: 80px; width: max-content; padding-right: 80px; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 46px; width: auto; flex: none; opacity: .95; }
.marquee-track img[src$="logo-jsw.webp"] { height: 52px; }
.marquee-track img[src$="logo-flowpro.webp"] { height: 50px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 3D phone composition */
.hero-visual { width: 600px; max-width: 100%; height: 450px; margin-top: 0; perspective: 900px; position: relative; }
.hero-stage {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s linear;
}
.frame { position: absolute; top: 0; left: 0; width: 100%; will-change: transform, opacity; }
.frame img { width: 100%; height: auto; }
.frame.f3 { padding-left: 30px; }
.frame.f1 { z-index: 2; } .frame.f2 { z-index: 4; } .frame.f3 { z-index: 5; }
.frame.f4, .frame.f5, .frame.f6, .frame.f7 { z-index: 1; }

/* entrance: phone rises, cards slide in with stagger; then everything floats */
.frame { opacity: 0; transform: translate3d(50px, 24px, 0) scale(.92); }
.frame.phone { transform: translate3d(0, 40px, 0) scale(.96); }
.hero-visual.is-in .frame {
  animation: frame-in 1s var(--ease-out) var(--d) forwards;
}
.hero-visual.is-in.floating .frame { animation: none; opacity: 1; transform: none; }
.hero-visual.is-in.floating .frame img {
  animation: float var(--fl, 7s) ease-in-out infinite;
  transform: translate3d(calc(var(--mx, 0) * var(--depth, 0) * 1px), calc((var(--my, 0) + var(--sy, 0)) * var(--depth, 0) * 1px), 0);
}
@keyframes frame-in { to { opacity: 1; transform: none; } }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
.frame.phone img { animation-duration: 9s; }
.hero-visual.is-in.floating .frame img { transition: transform .35s var(--ease-soft); }

/* Quote cards (straddle the hero / grey boundary) */
.quotes {
  position: relative; z-index: 2;
  margin-top: 150px; margin-bottom: -123px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.quote-card {
  background: var(--white); border-radius: 10px;
  padding: 40px 20px; text-align: center;
  box-shadow: 0 0 33px rgba(0,0,0,.05);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.quote-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -22px rgba(0,0,0,.22), 0 0 33px rgba(0,0,0,.05); }
.quote { font-size: 24px; font-weight: 600; line-height: 1.5; color: var(--ink-3); }
.quote em { font-family: var(--display); font-weight: 400; font-size: 1.14em; color: var(--ink-3); }
.quote-logo { height: 40px; width: auto; margin-top: 0; filter: grayscale(1); opacity: .9; transition: filter .5s, opacity .5s; }
.quote-card:hover .quote-logo { filter: grayscale(0); opacity: 1; }

/* ==========================================================================
   What every service business really wants
   ========================================================================== */
.wants { background: var(--grey-bg); padding: 200px 0 80px; }
.wants .h2 { max-width: 742px; margin: 0 auto; }
.wants-copy { max-width: 522px; margin: 44px auto 0; color: var(--ink-3); }
.wants-copy p + p { margin-top: 16px; }

/* ==========================================================================
   What we offer
   ========================================================================== */
.offer { padding: 112px 0 120px; }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.split-head .h2 { font-size: 58px; }
.split-head .intro { max-width: 660px; margin-top: 34px; }
.offer-h2 { line-height: 1.5; letter-spacing: -2px; }
.offer .split-head .intro { max-width: 605px; margin-top: 44px; }

.offer-grid { margin-top: 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc-card {
  position: relative; display: block; min-height: 550px; overflow: hidden; isolation: isolate;
  border-radius: 20px; border: 1px solid var(--border-dark); padding: 40px; color: var(--white);
  background: #111;
  transition: border-color .5s, transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.svc-card.wide { grid-column: 1 / -1; }
.svc-card:hover { border-color: #6a6a6a; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.svc-bg, .svc-art { position: absolute; inset: 0; background-repeat: no-repeat; background-size: cover; z-index: 0; }
.svc-bg { background-position: bottom center; transition: filter .8s var(--ease-soft), transform .8s var(--ease-soft); }
.svc-art { transition: transform .9s var(--ease-out); transform-origin: 60% 100%; }
.svc-card:hover .svc-bg { filter: brightness(1.18); }
.svc-card:hover .svc-art { transform: scale(1.045) translateY(-6px); }
.svc-body { position: relative; z-index: 1; display: block; }
.svc-body h3 { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: -1px; margin-bottom: 24px; transition: transform .6s var(--ease-out); }
.svc-body p { color: var(--white-84); margin-bottom: 24px; }
.svc-card:hover .svc-body h3 { transform: translateY(-2px); }

.svc-local-seo .svc-bg { background-image: url("../img/svc-local-seo-bg.webp"); }
.svc-local-seo .svc-art { background-image: url("../img/svc-local-seo.webp"); background-position: bottom left; }
.svc-local-seo .svc-body { max-width: 584px; }

.svc-audits .svc-bg { background-image: url("../img/svc-audits-bg.webp"); }
.svc-audits .svc-art { background-image: url("../img/svc-audits.webp"); background-position: bottom left; }
.svc-audits .svc-body { max-width: 292px; padding-top: 104px; }

.svc-webdev .svc-bg { background-image: url("../img/svc-webdev-bg.webp"); background-position: top center; }
.svc-webdev .svc-art { background-image: url("../img/svc-webdev.webp"); background-position: center right; }
.svc-webdev .svc-body { max-width: 629px; padding-top: 104px; }

.svc-lsa .svc-bg { background-image: url("../img/svc-lsa-bg.webp"); background-position: top right; }
.svc-lsa .svc-art { background-image: url("../img/svc-lsa.webp"); background-position: bottom right; }
.svc-lsa .svc-body { max-width: 292px; padding-top: 104px; }

.svc-cro .svc-bg { background-image: url("../img/svc-cro-bg.webp"); background-position: bottom right; }
.svc-cro .svc-art { background-image: url("../img/svc-cro.webp"); background-position: bottom center; }
.svc-cro .svc-body { max-width: 584px; }

/* ==========================================================================
   Mid CTA
   ========================================================================== */
.cta-mid { padding: 80px 0; }
.cta-mid .container { display: flex; flex-direction: column; align-items: center; }
.cta-h2 { font-size: 65px; line-height: 1.3; letter-spacing: -1px; max-width: 615px; margin-bottom: 20px; }
.cta-p { font-size: 20px; line-height: 1.5; color: var(--white-84); max-width: 735px; margin-bottom: 36px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding: 120px 0; background: var(--white); }
.testimonials .h2 { max-width: 700px; margin: 0 auto 28px; }
.section-sub { max-width: 770px; margin: 0 auto; color: var(--text-grey); }

.testi-wrap { position: relative; margin: 60px -20px 0; padding: 12px 20px 0; overflow: hidden; transition: max-height .9s var(--ease-soft); }
.testi-wrap.collapsed { max-height: 1000px; }
.testi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.testi-col { display: flex; flex-direction: column; gap: 20px; }
.testi-card {
  background: var(--white); border: 1px solid var(--border-light); border-radius: 20px; padding: 30px;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(0,0,0,.25); border-color: #D6D6D6; }
.testi-card header { padding-bottom: 20px; border-bottom: 1px solid var(--border-light); margin-bottom: 20px; }
.testi-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--ink-2); margin-bottom: 8px; }
.stars { display: flex; gap: 4px; }
.stars i { width: 14px; height: 14px; background: #F2B01E; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.5l-5.9 3.1 1.2-6.5L2.5 9.5l6.6-.9z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.5l-5.9 3.1 1.2-6.5L2.5 9.5l6.6-.9z'/%3E%3C/svg%3E") center / contain no-repeat; }
.stars.small i { width: 13px; height: 13px; }
.testi-text { color: var(--text-grey); }
.testi-text p + p { margin-top: 24px; }

.testi-video {
  position: relative; height: 417px; border-radius: 20px; overflow: hidden; background: #000; isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.testi-video:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(0,0,0,.4); }
.testi-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-name { position: absolute; top: 42px; left: 36px; z-index: 2; font-size: 18px; font-weight: 600; color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,.35); transition: opacity .4s; }
.play-btn {
  position: absolute; z-index: 2; top: 50%; left: 50%; width: 75px; height: 75px; margin: -37px 0 0 -37px;
  border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
  transition: transform .4s var(--ease-out), opacity .35s, background-color .3s;
}
.play-btn svg { width: 26px; height: 26px; margin-left: 4px; }
.play-btn:hover { transform: scale(1.1); background: var(--yellow-deep); }
.testi-video.playing .play-btn, .testi-video.playing .video-name { opacity: 0; pointer-events: none; }
.testi-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,0) 45%); z-index: 1; pointer-events: none; transition: opacity .4s; }
.testi-video.playing::after { opacity: 0; }

.testi-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 280px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--white) 72%);
  transition: opacity .6s;
}
.testi-wrap.expanded .testi-fade { opacity: 0; }

.trust-pill {
  width: 540px; max-width: 100%; margin: 50px auto 0; padding: 12px 14px 12px 14px;
  background: #111; color: var(--white); border-radius: 1000px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.trust-pill:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -22px rgba(0,0,0,.6); }
.trust-left { display: flex; align-items: center; gap: 10px; }
.trust-left img { width: 59px; height: 35px; }
.trust-text { font-size: 18px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.trust-text .short { display: none; }
.trust-left .stars { margin-left: 10px; }
.trust-toggle { font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 6px 16px 6px 6px; color: var(--white); transition: color .3s; }
.trust-toggle:hover { color: var(--yellow); }

/* ==========================================================================
   Data-driven SEO features
   ========================================================================== */
.features { padding: 112px 0 113px; }
.features .split-head .h2 { font-weight: 500; }
.features .split-head .intro { margin-top: 21px; }

/* 3 tracks so row 1 is 787 | 525 and row 2 is 525 | 787 (gmb + links span two tracks) */
.feat-grid { margin-top: 80px; display: grid; grid-template-columns: 525fr 254fr 525fr; grid-template-areas: "gmb gmb onpage" "comp links links" "lead lead lead"; gap: 8px; }
.feat-card {
  position: relative; min-height: 542px; overflow: hidden; isolation: isolate;
  background: var(--white); border: 1px solid var(--border-light); border-radius: 16px; padding: 32px 32px 0;
  transition: box-shadow .6s var(--ease-out), transform .6s var(--ease-out), border-color .5s;
}
.feat-card:hover { box-shadow: 0 30px 60px -34px rgba(0,0,0,.28); border-color: #D9D9D9; }
.feat-gmb { grid-area: gmb; } .feat-onpage { grid-area: onpage; } .feat-comp { grid-area: comp; } .feat-links { grid-area: links; } .feat-lead { grid-area: lead; }
.feat-body { position: relative; z-index: 2; }
.feat-body h3 { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: -2px; color: var(--ink); margin-bottom: 24px; }
.feat-body p { color: var(--text-grey); }
.feat-gmb .feat-body p { max-width: 721px; }
.feat-onpage .feat-body p, .feat-comp .feat-body p { max-width: 459px; }
.feat-links .feat-body p { max-width: 721px; }

.feat-media { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; }
.feat-media img { width: 100%; height: auto; }
.feat-media .after, .comp-badges .after { position: absolute; inset: 0; opacity: 0; }
.hover-swap .before, .hover-swap .after { transition: opacity .7s var(--ease-soft), transform .9s var(--ease-out); }
.hover-swap:hover .before, .hover-swap.is-on .before { opacity: 0; }
.hover-swap:hover .after, .hover-swap.is-on .after { opacity: 1; }
.feat-gmb .feat-media, .feat-onpage .feat-media { transition: transform .9s var(--ease-out); }
.feat-gmb:hover .feat-media, .feat-onpage:hover .feat-media, .feat-gmb.is-on .feat-media, .feat-onpage.is-on .feat-media { transform: translateY(-6px); }
.feat-links .feat-media { top: 7px; bottom: auto; }
.feat-links .feat-body { padding-top: 0; }

/* Competitor audits scene: browser + animated chart + badge */
.feat-comp { padding: 0; display: flex; flex-direction: column; }
.feat-comp .feat-body { padding: 32px 32px 0; }
.comp-scene { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.comp-browser { position: absolute; inset: 0; background: url("../img/feat-comp-bg.webp") bottom center / contain no-repeat; }
/* the chart sits in a skewed layer so it follows the tilted browser; on hover the
   background slides three months to the left (Jan-Apr -> Apr-Jul) */
.comp-chart {
  position: absolute; top: 0; left: 105px; width: 100%; height: 100%; z-index: 1;
  background: url("../img/feat-comp-chart.webp") no-repeat; background-size: 825px auto;
  background-position: -30px 238px;
  transform: skewX(15deg); transform-origin: center;
  transition: background-position 1s var(--ease-soft);
}
.feat-comp:hover .comp-chart, .feat-comp.is-on .comp-chart { background-position: -345px 262px; }
.comp-badges { position: absolute; top: 37px; left: 0; right: 0; z-index: 2; }
.comp-badges img { width: 100%; height: auto; }
.comp-badges .before { position: relative; }
.comp-badges .after { transform: translateY(6px); }
.feat-comp:hover .comp-badges .after, .feat-comp.is-on .comp-badges .after { transform: none; }

/* Lead tracking (row layout with mouse parallax) */
.feat-lead { display: grid; grid-template-columns: 627px 1fr; align-items: start; padding-bottom: 0; }
.feat-lead .feat-body { padding: 190px 0 40px; }
.feat-lead .feat-body p { max-width: 455px; }
.lead-media { position: absolute; right: 0; bottom: 0; left: auto; width: 700px; max-width: 56%; }
.lead-media img { transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 10px), 0); transition: opacity .7s var(--ease-soft), transform .35s var(--ease-soft); }

/* ==========================================================================
   Case studies
   ========================================================================== */
.cases { padding: 112px 0 120px; }
.cases .split-head .h2 { font-weight: 500; max-width: 630px; }
.case-list { margin-top: 79px; display: flex; flex-direction: column; gap: 21px; }
.case {
  display: grid; grid-template-columns: 1fr 1fr; gap: 49px; align-items: center;
  padding: 40px; border: 1px solid var(--border-dark); border-radius: 20px;
  transition: border-color .5s, box-shadow .6s var(--ease-out);
}
.case:hover { border-color: #5A5A5A; box-shadow: 0 30px 60px -40px rgba(0,0,0,.8); }
.case-client { display: flex; align-items: center; gap: 20px; }
.case-name { font-family: var(--display); font-size: 36px; line-height: 1.5; letter-spacing: -2px; color: var(--white); }
.case-sep { width: 1px; height: 30px; background: var(--border-dark); }
.case-logo { height: 43px; width: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.stat {
  border: 1px solid var(--border-dark); border-radius: 15px; padding: 28px 22px; min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  transition: border-color .4s, background-color .4s, transform .5s var(--ease-out);
}
.case:hover .stat { border-color: #5A5A5A; }
.stat:hover { background: rgba(255,255,255,.04); transform: translateY(-3px); }
.stat-num { font-family: var(--display); font-size: 36px; line-height: 1.1; color: var(--white); }
.stat-title { font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--white); }
.case-text { margin-top: 40px; color: var(--white-84); }
.case .link-more { margin-top: 24px; }

.browser { border-radius: 10px; overflow: hidden; background: #2b2b2b; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.browser .toolbar { width: 100%; height: auto; }
.compare { position: relative; overflow: hidden; user-select: none; touch-action: pan-y; cursor: col-resize; --pos: 50%; }
.compare img { width: 100%; height: auto; display: block; }
.cmp-before { position: relative; }
.cmp-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.cmp-after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.cmp-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--white); box-shadow: 0 0 12px rgba(0,0,0,.35); }
.cmp-knob {
  position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: #000;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .35s var(--ease-out), background-color .3s;
}
.cmp-knob svg { width: 22px; height: 22px; }
.compare:hover .cmp-knob, .compare.dragging .cmp-knob { transform: scale(1.12); background: var(--yellow); }
.compare:not(.dragging) .cmp-after, .compare:not(.dragging) .cmp-handle { transition: clip-path .25s var(--ease-soft), left .25s var(--ease-soft); }

.case-actions { margin-top: 80px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta { position: relative; min-height: 832px; overflow: hidden; background: var(--white); }
.final-bg {
  position: absolute; inset: -60px 0 -60px 0; z-index: 0;
  background: url("../img/cta-hand-phone.webp") bottom center / cover no-repeat;
  transform: translate3d(0, var(--ty, 0px), 0) scale(1.03);
  will-change: transform;
}
.final-inner { position: relative; z-index: 1; padding-top: 200px; padding-bottom: 120px; }
.final-h2 { font-size: 85px; font-weight: 500; letter-spacing: -2px; max-width: 700px; color: #0B0B0B; margin-bottom: 28px; }
.final-p { max-width: 600px; color: var(--text-grey-2); margin-bottom: 40px; }
.final-cta .btn { border-radius: 300px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--white); padding: 100px 0 50px; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; padding-bottom: 120px; }
.footer-brand { max-width: 517px; }
.footer-tag { margin-top: 65px; padding-left: 20px; border-left: 1px solid #CFCFCF; }
.footer-tag h2 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.4; letter-spacing: -1px; color: var(--ink); }
.footer-tag p { color: var(--text-grey-2); }
.footer-cols { display: flex; gap: 0; }
.footer-col { width: 222px; padding-right: 50px; }
.footer-col.social { width: 192px; }
.footer-col h6 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.3; letter-spacing: -1px; color: var(--ink); margin-bottom: 20px; }
.footer-col li + li { margin-top: 10px; }
.footer-col.social li + li { margin-top: 12px; }
.footer-col a { color: var(--text-grey-2); display: inline-flex; align-items: center; gap: 10px; position: relative; transition: color .3s; }
.footer-col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.footer-col a:hover { color: var(--ink); }
.footer-col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-col.social svg { width: 18px; height: 18px; color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--text-grey-2); }
.legal { display: flex; gap: 20px; }
.legal a { font-size: 14px; color: #717171; text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.legal a:hover { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  :root { --pad: 40px; }
  .feat-lead { grid-template-columns: 1fr 1fr; }
  .lead-media { max-width: 50%; }
  .comp-chart { background-position: -20px 250px; }
}

@media (max-width: 1024px) {
  :root { --pad: 30px; --header-h: 90px; }
  .nav, .header-cta { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .burger { display: grid; }
  .site-header.scrolled .header-inner { height: 76px; }
  .logo img { width: 80px; height: 80px; }

  .hero-title { font-size: 56px; }
  .split-head { grid-template-columns: 1fr; gap: 20px; }
  .split-head .h2, .h2 { font-size: 48px; }
  .split-head .intro, .offer .split-head .intro { margin-top: 0; max-width: 700px; }
  .offer-h2 { max-width: none; line-height: 1.2; }
  .offer-grid { grid-template-columns: 1fr; }
  .svc-card { min-height: 520px; }
  .svc-audits .svc-body, .svc-lsa .svc-body, .svc-webdev .svc-body { max-width: 60%; padding-top: 40px; }
  .cta-h2 { font-size: 52px; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .testi-col:nth-child(3) { grid-column: 1; }
  .testi-col:nth-child(4) { grid-column: 2; }
  .feat-grid { grid-template-columns: 1fr; grid-template-areas: "gmb" "onpage" "comp" "links" "lead"; }
  /* feature cards stack text above artwork below desktop; the old absolute artwork covered the text on tablets */
  .feat-card, .feat-card.wide { grid-column: auto; min-height: 0; padding: 28px 28px 0; }
  .feat-media, .lead-media { position: relative; inset: auto; top: auto; width: 100%; max-width: none; margin-top: 18px; }
  .feat-links { display: flex; flex-direction: column; }
  .feat-links .feat-body { order: 1; }
  .feat-links .feat-media { order: 2; top: auto; margin-top: -17%; }  /* the artwork's top 31% is transparent; pull it up under the text */
  .feat-lead { display: block; }
  .feat-lead .feat-body { padding: 0; }
  .lead-media { width: min(100%, 440px); margin: 12px 0 0 auto; }
  .feat-comp { padding: 0; }
  .feat-comp .feat-body { padding: 28px 28px 0; }
  /* the competitor scene keeps its desktop composition, scaled to the card and cropped to the artwork */
  .comp-scene { position: relative; inset: auto; width: min(100%, 560px); margin: 0 auto; aspect-ratio: 533 / 392; container-type: inline-size; }
  .comp-browser { inset: auto; left: 0; right: 0; top: -28.14cqw; height: 101.69cqw; }
  .comp-chart { top: -28.14cqw; left: 19.7cqw; height: 101.69cqw; background-size: 154.78cqw auto; background-position: -5.63cqw 44.65cqw; }
  .feat-comp:hover .comp-chart, .feat-comp.is-on .comp-chart { background-position: -64.73cqw 49.16cqw; }
  .comp-badges { top: -21.2cqw; }
  .case { grid-template-columns: 1fr; gap: 32px; }
  .final-h2 { font-size: 64px; }
  .final-inner { padding-top: 120px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { flex-wrap: wrap; gap: 30px 0; }
}

@media (max-width: 767px) {
  :root { --pad: 20px; --header-h: 80px; }
  .h2, .split-head .h2 { font-size: 40px; letter-spacing: -1.5px; }
  .hero { padding-top: 30px; }
  .hero-title { font-size: 46px; letter-spacing: -1px; line-height: 1.2; }
  .hero-sub { font-size: 15px; }
  .marquee { height: 90px; margin-top: 28px; }
  .marquee-track { gap: 48px; animation-duration: 20s; }
  .marquee-track img { height: 36px; }
  .marquee-track img[src$="logo-jsw.webp"] { height: 40px; }
  .marquee-track img[src$="logo-flowpro.webp"] { height: 38px; }
  .hero-visual { height: auto; aspect-ratio: 600 / 420; margin-top: 10px; }

  /* quote cards become a swipe carousel, middle card first */
  .quotes { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 20px; margin: 30px calc(-1 * var(--pad)) -110px; scrollbar-width: none; }
  .quotes::-webkit-scrollbar { display: none; }
  .quote-card { flex: 0 0 82%; scroll-snap-align: center; }
  .quote { font-size: 20px; }

  .wants { padding: 170px 0 60px; }
  .wants-copy { margin-top: 32px; }
  .offer { padding: 70px 0 80px; }
  .offer-grid { margin-top: 40px; }
  .svc-card { min-height: 0; padding: 30px 24px 300px; }
  .svc-body, .svc-audits .svc-body, .svc-lsa .svc-body, .svc-webdev .svc-body { max-width: none; padding-top: 0; }
  .svc-body h3 { font-size: 30px; }
  .svc-local-seo .svc-bg { background-image: url("../img/svc-local-seo-bg-m.webp"); }
  .svc-local-seo .svc-art { background-image: url("../img/svc-local-seo-m.webp"); background-position: bottom right; }
  .svc-audits .svc-bg { background-image: url("../img/svc-audits-bg-m.webp"); }
  .svc-audits .svc-art { background-image: url("../img/svc-audits-m.webp"); background-position: bottom center; background-size: contain; }
  .svc-webdev .svc-bg { background-image: url("../img/svc-webdev-bg-m.webp"); background-position: bottom right; background-size: cover; }
  .svc-webdev .svc-art { background-image: url("../img/svc-webdev-m.webp"); background-position: bottom right; }
  .svc-lsa .svc-bg { background-image: url("../img/svc-lsa-bg-m.webp"); }
  .svc-lsa .svc-art { background-image: url("../img/svc-lsa-m.webp"); background-position: center right; }
  .svc-cro .svc-bg { background-image: url("../img/svc-cro-bg-m.webp"); }
  .svc-cro .svc-art { background-image: url("../img/svc-cro-m.webp"); background-position: bottom right; }

  .cta-mid { padding: 60px 0; }
  .cta-h2 { font-size: 42px; }
  .cta-p { font-size: 17px; }
  .testimonials { padding: 80px 0; }
  .testi-wrap { margin-top: 40px; }
  .testi-wrap.collapsed { max-height: 760px; }
  .testi-grid { grid-template-columns: 1fr; }
  .testi-col:nth-child(n) { grid-column: 1; }
  .trust-pill { width: 100%; padding: 10px 10px 10px 12px; }
  .trust-text { font-size: 15px; }
  .trust-text .long { display: none; }
  .trust-text .short { display: inline; }
  .trust-left .stars { display: none; }
  .trust-toggle { font-size: 15px; }

  .features { padding: 70px 0 80px; }
  .feat-grid { margin-top: 40px; }
  .feat-card, .feat-card.wide { padding: 24px 24px 0; }
  .feat-comp { padding: 0; }
  .feat-comp .feat-body { padding: 24px 24px 0; }
  .feat-body h3 { font-size: 30px; letter-spacing: -1px; }
  .feat-media, .lead-media { margin-top: 14px; }
  .lead-media { width: 86%; }

  .cases { padding: 70px 0 80px; }
  .case-list { margin-top: 40px; }
  .case { padding: 24px; gap: 24px; }
  .case-name { font-size: 28px; letter-spacing: -1px; }
  .case-logo { height: 32px; max-width: 100%; }
  .case-client { flex-wrap: wrap; row-gap: 8px; }  /* name + logo wrap on 320px screens instead of overflowing */
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
  .stat { padding: 18px 12px; min-height: 0; gap: 14px; }
  .stat-num { font-size: 28px; }
  .stat-title { font-size: 12px; }
  .case-text { margin-top: 24px; }
  .case-actions { margin-top: 48px; }
  .case-actions .btn { width: 100%; }

  .final-cta { min-height: 0; }
  .final-bg { background: url("../img/cta-hand-phone-m.webp") bottom right / 300px auto no-repeat; inset: 0; transform: none; }
  .final-inner { padding-top: 80px; padding-bottom: 380px; }
  .final-h2 { font-size: 46px; }
  .site-footer { padding: 70px 0 30px; }
  .footer-top { padding-bottom: 60px; }
  .footer-tag { margin-top: 40px; }
  .footer-col { width: 50%; padding-right: 20px; }
  .footer-col.social { width: 50%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Phone hero variation (phone-hero.html): live activity around the phone
   ========================================================================== */
.hero-variant .hero-title em { position: relative; z-index: 0; }
.hero-variant .hero-title em::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .1em; height: .3em; z-index: -1;
  background: var(--yellow); border-radius: 3px;
  transform: scaleX(0); transform-origin: left; animation: mark-in .7s var(--ease-out) 1.15s forwards;
}
@keyframes mark-in { to { transform: scaleX(1); } }
.hero-variant .hero-cta { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.hero-variant .hero-cta[data-reveal] { transition-delay: .45s; }
.btn-magnet { transition: transform .3s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s; }
.hero-variant .hero-cta .ghost { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.hero-variant .hero-cta .ghost svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.hero-variant .hero-cta .ghost:hover svg { transform: translateY(3px); }
.hero-variant .hero-trust { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--text-grey); }
.hero-variant .hero-trust[data-reveal] { transition-delay: .55s; }
.hero-variant .hero-trust img { width: 59px; height: 35px; }
.hero-variant .hero-trust .stars i { width: 13px; height: 13px; }
.hero-variant .marquee { margin-top: 44px; }

.phone-scene { position: relative; width: 1000px; max-width: 100%; height: 450px; margin-top: 10px; }
.phone-scene .hero-visual { position: absolute; left: 50%; top: 0; transform: translateX(-50%); margin: 0; z-index: 1; }
.phone-dots {
  position: absolute; inset: -40px 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(10,13,20,.16) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, transparent 68%); mask-image: radial-gradient(ellipse at center, #000 15%, transparent 68%);
}
.phone-glow {
  position: absolute; left: 50%; top: 50%; width: 760px; height: 420px; z-index: 0; pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(247,235,42,.55), rgba(247,235,42,.18) 55%, rgba(247,235,42,0) 100%);
  filter: blur(18px); animation: glow-breathe 7s ease-in-out infinite;
}
@keyframes glow-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .85; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }
.phone-shadow {
  position: absolute; left: 50%; top: 76%; width: 440px; height: 80px; z-index: 0; pointer-events: none;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(10,13,20,.3), rgba(10,13,20,0));
  filter: blur(10px); animation: shadow-breathe 9s ease-in-out infinite;
}
@keyframes shadow-breathe { 0%, 100% { transform: translateX(-50%) scale(1); opacity: .9; } 50% { transform: translateX(-50%) scale(.93); opacity: .65; } }

/* floating live cards either side of the phone */
.live {
  position: absolute; z-index: 3; background: #fff; border-radius: 16px;
  box-shadow: 0 18px 44px -18px rgba(10,13,20,.35), 0 0 0 1px rgba(10,13,20,.05);
  opacity: 0; transform: translateY(18px) scale(.96);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.phone-scene.is-in .live { opacity: 1; transform: none; }
.live-rank { left: 0; top: 34px; width: 228px; padding: 18px 20px; transition-delay: 1.2s; }
.lbl { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-grey); display: flex; align-items: center; gap: 7px; }
.lbl i, .feed-title i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.live-rank .big { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; font-family: var(--display); font-size: 42px; line-height: 1; letter-spacing: -1px; color: var(--ink); }
.live-rank .from { font-size: 22px; color: #A3A3A3; text-decoration: line-through; }
.live-rank .arrow { width: 18px; height: 18px; color: #A3A3A3; align-self: center; }
.live-rank .num { display: inline-block; }
.live-rank .num.pop { animation: pop .3s var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.live-rank .bar { height: 6px; border-radius: 6px; background: #EFEFEF; margin-top: 14px; overflow: hidden; }
.live-rank .bar i { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 6px; transition: width 2.2s var(--ease-out) 1.6s; }
.phone-scene.is-in .live-rank .bar i { width: 100%; }
.live-rank .cap { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--text-grey); }
.live-rank .cap b { color: var(--ink); font-weight: 600; }

.live-review { left: 0; top: 268px; width: 240px; padding: 16px 18px; transition-delay: 1.5s; }
.live-review .who { display: flex; align-items: center; gap: 10px; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.live-review .who b { display: block; font-size: 14px; color: var(--ink); }
.live-review .who .stars { margin-top: 3px; }
.live-review .stars i { width: 11px; height: 11px; }
.live-review p { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }

.live-feed { position: absolute; right: 0; top: 46px; width: 256px; height: 250px; z-index: 3; opacity: 0; transition: opacity .8s var(--ease-out) 1.3s; }
.phone-scene.is-in .live-feed { opacity: 1; }
.feed-title { position: absolute; top: -26px; left: 4px; }
.toast {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 16px 40px -18px rgba(10,13,20,.35), 0 0 0 1px rgba(10,13,20,.05);
  transform: translateY(calc(var(--i, 0) * 78px)) scale(calc(1 - var(--i, 0) * .03));
  opacity: calc(1 - var(--i, 0) * .28);
  transition: transform .7s var(--ease-out), opacity .7s var(--ease-out);
  will-change: transform;
}
.toast.enter { transform: translateY(-36px) scale(.9); opacity: 0; transition: none; }
.toast.leave { transform: translateY(calc(var(--i, 0) * 78px + 26px)) scale(.9); opacity: 0; }
.toast .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.toast .ic svg { width: 20px; height: 20px; }
.toast .ic.green { background: #22C55E; }
.toast .ic.yellow { background: var(--yellow); color: var(--ink); }
.toast .ic.blue { background: #2563EB; }
.toast .ic.dark { background: var(--ink); color: var(--yellow); }
.toast b { display: block; font-size: 14px; line-height: 1.25; color: var(--ink); }
.toast small { display: block; font-size: 12px; color: var(--text-grey); margin-top: 2px; }
.toast .t { margin-left: auto; font-size: 11px; color: #A3A3A3; flex: none; }

/* map pins dropping onto the phone screen */
.pin { position: absolute; z-index: 6; width: 22px; height: 30px; margin: -30px 0 0 -11px; opacity: 0; pointer-events: none; }
.pin svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.pin i { position: absolute; left: 50%; bottom: -3px; width: 26px; height: 10px; margin-left: -13px; border-radius: 50%; border: 2px solid rgba(34,197,94,.7); opacity: 0; }
.phone-scene.is-in .pin { animation: pin-drop .7s var(--ease-out) var(--pd, 1.6s) forwards; }
@keyframes pin-drop { 0% { opacity: 0; transform: translateY(-40px) scale(.6); } 60% { opacity: 1; transform: translateY(4px) scale(1.05); } 100% { opacity: 1; transform: none; } }
.phone-scene.is-in .pin i { animation: ripple 2.4s ease-out calc(var(--pd, 1.6s) + .7s) infinite; }
@keyframes ripple { 0% { opacity: .8; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }

@media (max-width: 1024px) {
  .phone-scene { width: 100%; }
  .live-rank, .live-review { display: none; }
  .live-feed { right: 8px; }
}
@media (max-width: 767px) {
  .phone-scene { height: auto; aspect-ratio: 600 / 420; margin-top: 0; }
  .phone-scene .hero-visual { position: relative; left: 0; transform: none; width: 100%; height: auto; aspect-ratio: 600 / 420; }
  .phone-glow { width: 90%; height: 70%; }
  .phone-shadow { display: none; }
  .live-feed { top: auto; bottom: -14px; left: 8px; right: 8px; width: auto; height: 70px; }
  .feed-title { display: none; }
  .hero-variant .hero-cta { gap: 16px; }
  .hero-variant .hero-cta .btn { width: 100%; }
  .hero-variant .quotes { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-glow, .phone-shadow, .lbl i, .feed-title i, .pin i, .live-rank .num.pop { animation: none; }
  .phone-scene .live, .phone-scene .pin, .phone-scene .live-feed { opacity: 1; transform: none; animation: none; }
  .hero-variant .hero-title em::after { animation: none; transform: none; }
}

/* ==========================================================================
   Hero variations 1 to 5 (hero-1.html .. hero-5.html)
   ========================================================================== */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--grey-bg); color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(247,235,42,.35); }
.eyebrow.light { background: rgba(255,255,255,.08); color: #fff; }
.hero-inner .eyebrow { margin-bottom: 22px; }
.hero-variant .hero-title.left { text-align: left; max-width: none; font-size: 64px; line-height: 1.15; }
.hero-variant .hero-cta.left, .hero-variant .hero-trust.left { justify-content: flex-start; }
.hero-v1-copy .eyebrow, .hero-v4-copy .eyebrow { margin-bottom: 22px; }
.hero-v1-copy .hero-sub, .hero-v4-copy .hero-sub { margin-top: 18px; max-width: 520px; }

/* ---- V1 split editorial ---- */
.hero-v1 { padding-top: 40px; overflow-x: clip; }
.hero-v1 .phone-glow { width: 100%; }
.hero-v1-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: 560px; }
.hero-v1 .phone-scene { width: 100%; height: 480px; margin: 0; }
.hero-v1 .phone-scene .hero-visual { top: 14px; }
.hero-v1 .live-feed { left: auto; right: -6px; top: auto; bottom: 8px; width: 250px; height: 70px; }
.hero-v1 .feed-title { display: none; }
.hero-v1 .hero-inner .marquee { margin-top: 24px; }

/* ---- V2 dark spotlight ---- */
.hero-v2 { position: relative; overflow: hidden; padding-top: 60px; color: #fff; background: #0E0E0E; }
.hero-v2::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% -5%, rgba(247,235,42,.3), rgba(247,235,42,0) 70%); pointer-events: none; }
.v2-spot { position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(460px 460px at var(--sx, 50%) var(--sy, 25%), rgba(247,235,42,.18), transparent 70%); }
.v2-grain { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-v2 .hero-inner { position: relative; z-index: 1; }
.hero-v2 .hero-title { color: #fff; }
.hero-v2 .hero-title em { color: var(--yellow); }
.hero-v2 .hero-title em::after { display: none; }
.hero-v2 .hero-sub { color: rgba(255,255,255,.82); }
.hero-v2 .hero-cta .ghost { color: #fff; }
.hero-v2 .hero-trust { color: rgba(255,255,255,.7); }
.hero-v2 .marquee-track img { filter: invert(1) brightness(1.8); opacity: .85; }
.hero-v2 .phone-glow { background: radial-gradient(closest-side, rgba(247,235,42,.5), rgba(247,235,42,.12) 55%, rgba(247,235,42,0) 100%); }
.hero-v2 .phone-dots { background-image: radial-gradient(rgba(255,255,255,.2) 1px, transparent 1.4px); }
.hero-v2 .phone-shadow { background: radial-gradient(closest-side, rgba(247,235,42,.28), rgba(247,235,42,0)); }
.hero-v2 .live, .hero-v2 .toast { background: #1B1B1B; color: #fff; box-shadow: 0 24px 50px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
.hero-v2 .live-rank .big, .hero-v2 .toast b, .hero-v2 .live-review .who b, .hero-v2 .live-rank .cap b { color: #fff; }
.hero-v2 .lbl, .hero-v2 .toast small, .hero-v2 .live-rank .cap, .hero-v2 .live-review p { color: rgba(255,255,255,.65); }
.hero-v2 .live-rank .bar { background: #2A2A2A; }
.hero-v2 .live-rank .from, .hero-v2 .live-rank .arrow, .hero-v2 .toast .t { color: #6B6B6B; }
.hero-v2 .quote-card { box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }

/* ---- V3 rank grid ---- */
.rank-wrap { width: min(620px, 100%); margin: 40px auto 0; text-align: left; }
.rank-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; color: var(--text-grey); }
.rank-head b { color: var(--ink); font-weight: 600; }
.rank-head .state { flex: none; padding: 6px 12px; border-radius: 999px; background: #FEE2E2; color: #991B1B; font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; transition: background-color .6s, color .6s; }
.rank-wrap.after .rank-head .state { background: #DCFCE7; color: #166534; }
.rank-grid {
  position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 16px;
  border-radius: 20px; background: #fff;
  box-shadow: 0 30px 60px -30px rgba(10,13,20,.35), 0 0 0 1px rgba(10,13,20,.05);
  background-image: linear-gradient(rgba(10,13,20,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(10,13,20,.045) 1px, transparent 1px);
  background-size: 34px 34px;
}
.cell {
  position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff; background: #EF4444;
  transition: background-color .45s var(--ease-soft), color .45s;
}
.cell.dark-text { color: var(--ink); }
.cell.center::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid var(--yellow); }
.cell.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.18); } }
.rank-foot { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 12px; color: var(--text-grey); flex-wrap: wrap; }
.rank-foot span { display: inline-flex; align-items: center; gap: 6px; }
.rank-foot i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rank-foot i.you { background: #fff; border: 3px solid var(--yellow); }
.hero-v3 .marquee { margin-top: 44px; }

/* ---- V4 live search ---- */
.hero-v4 { padding-top: 40px; }
.hero-v4-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; min-height: 560px; }
.search-demo { background: #fff; border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(10,13,20,.4), 0 0 0 1px rgba(10,13,20,.06); overflow: hidden; }
.sd-bar { display: flex; align-items: center; gap: 12px; margin: 18px; padding: 14px 18px; border-radius: 999px; box-shadow: 0 1px 6px rgba(32,33,36,.28); font-size: 16px; color: var(--ink); min-height: 52px; }
.sd-bar svg { width: 20px; height: 20px; color: #9AA0A6; flex: none; }
.sd-caret { width: 1.5px; height: 20px; background: var(--ink); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.sd-map { position: relative; height: 170px; margin: 0 18px; border-radius: 14px; overflow: hidden; background: #E9F0E4; }
.sd-map .road { position: absolute; background: #fff; }
.sd-map .road.h { left: 0; right: 0; height: 8px; }
.sd-map .road.v { top: 0; bottom: 0; width: 8px; }
.sd-map .road.d { left: -10%; top: 50%; width: 120%; height: 6px; transform: rotate(-18deg); background: #F7F7F2; }
.sd-pin { position: absolute; width: 24px; height: 32px; margin: -32px 0 0 -12px; transition: left .9s var(--ease-out), top .9s var(--ease-out), transform .6s var(--ease-out); }
.sd-pin.you { width: 34px; height: 46px; margin: -46px 0 0 -17px; z-index: 2; filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); }
.sd-results { position: relative; padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.sd-row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #F6F6F6; transition: transform .75s var(--ease-out), background-color .5s, box-shadow .5s, opacity .4s; }
.sd-results.hidden .sd-row { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.sd-row b { display: block; font-size: 15px; color: var(--ink); }
.sd-row .meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 3px; font-size: 12.5px; color: var(--text-grey); }
.sd-row .meta .r { font-weight: 600; color: var(--ink); }
.sd-row .meta .stars i { width: 11px; height: 11px; }
.sd-row .meta .open { color: #188038; }
.sd-row .call { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; transition: background-color .4s; }
.sd-row .call svg { width: 14px; height: 14px; }
.rank-badge { position: absolute; left: -8px; top: -8px; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 11px; font-weight: 700; transform: scale(0); transition: transform .45s var(--ease-out) .35s; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.sd-row.you.top { background: #FFFBD6; box-shadow: inset 0 0 0 2px var(--yellow); }
.sd-row.you.top .rank-badge { transform: scale(1); }
.sd-row.you.top .call { background: #22C55E; animation: call-pulse 1.6s infinite; }
@keyframes call-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero-v4 .hero-inner .marquee { margin-top: 24px; }

/* ---- V5 before / after ---- */
.v5-stats { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.v5-stat { display: flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(10,13,20,.06), 0 12px 30px -18px rgba(10,13,20,.25); }
.v5-stat .stat-num { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--ink); }
.v5-stat .stat-title { font-size: 13px; font-weight: 500; color: var(--text-grey); }
.v5-proof { width: min(960px, 100%); margin: 30px auto 0; }
.v5-proof .browser { box-shadow: 0 50px 100px -50px rgba(10,13,20,.5), 0 0 0 1px rgba(10,13,20,.06); }
.cmp-tag { position: absolute; top: 14px; z-index: 4; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.cmp-tag.before { left: 14px; background: rgba(10,13,20,.75); color: #fff; }
.cmp-tag.after { right: 14px; background: var(--yellow); color: var(--ink); }
.hero-v5 .marquee { margin-top: 44px; }

@media (max-width: 1024px) {
  .hero-v1-grid, .hero-v4-grid { grid-template-columns: 1fr; gap: 30px; min-height: 0; }
  .hero-variant .hero-title.left { font-size: 52px; }
  .hero-v1 .phone-scene { height: 460px; }
}
@media (max-width: 767px) {
  .hero-variant .hero-title.left { font-size: 42px; text-align: center; }
  .hero-variant .hero-cta.left, .hero-variant .hero-trust.left { justify-content: center; }
  .hero-v1-copy, .hero-v4-copy { text-align: center; }
  .hero-v1-copy .hero-sub, .hero-v4-copy .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-v1 .phone-scene { height: auto; }
  .hero-v1 .live-feed { bottom: -14px; left: 8px; right: 8px; width: auto; }
  .rank-grid { gap: 6px; padding: 12px; }
  .cell { font-size: 12px; }
  .rank-head { flex-direction: column; align-items: flex-start; }
  .sd-map { height: 130px; }
  .sd-row .call { padding: 7px 10px; }
  .sd-row .meta span:nth-child(n+6) { display: none; }
  .v5-stat { padding: 8px 14px; }
  .v5-stat .stat-num { font-size: 22px; }
  .cmp-tag { top: 8px; font-size: 10px; padding: 4px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-caret, .cell.bump, .sd-row.you.top .call { animation: none; }
}

/* ==========================================================================
   Round 2: house-style pieces ported from onboard.optdigital.io
   (grid paper, greeting pill, glass notification cards, yellow glow, rise-in)
   ========================================================================== */
.hero.paper {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(20,22,30,.035) 0 1px, transparent 1px 66px),
    repeating-linear-gradient(90deg, rgba(20,22,30,.035) 0 1px, transparent 1px 66px),
    radial-gradient(1200px 620px at 50% -8%, #fffdf2 0%, #fff 46%, #fbfbf9 100%);
}
.hero.paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px; background: linear-gradient(to bottom, rgba(242,242,242,0), var(--grey-bg)); pointer-events: none; }
.hero.paper > .container { position: relative; z-index: 1; }
.hero.paper .quotes { z-index: 2; }

/* greeting-style pill (replaces the uppercase eyebrow on variant pages) */
.hero-variant .eyebrow {
  background: #fff; border: 1px solid #efe7c2; color: #3b3d44;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
  padding: 7px 15px 7px 11px; box-shadow: 0 8px 24px -14px rgba(180,150,0,.6);
  opacity: 0; transform: translateY(8px) scale(.96);
  animation: popChip .6s cubic-bezier(.34,1.5,.64,1) .9s forwards;
}
.hero-variant .eyebrow i { width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); box-shadow: none; display: grid; place-items: center; }
.hero-variant .eyebrow i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.hero-variant .eyebrow.light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
@keyframes popChip { to { opacity: 1; transform: none; } }

/* centrepiece wrapper: rises in like the onboarding video, glow behind, gentle float */
.piece { position: relative; z-index: 3; width: 680px; max-width: 100%; margin: 30px auto 0; opacity: 0; transform: translateY(34px) scale(.97); }
.piece.rise { animation: videoRise .9s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes videoRise { to { opacity: 1; transform: none; } }
.piece-float { position: relative; animation: floaty 7s ease-in-out 2.4s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.piece-glow { position: absolute; inset: -3px; border-radius: 24px; z-index: -1; background: linear-gradient(135deg, var(--yellow), #fff6c2 40%, #f5c518); filter: blur(22px); opacity: .45; animation: glowPulse 5s ease-in-out infinite; pointer-events: none; }
@keyframes glowPulse { 0%, 100% { opacity: .4; } 50% { opacity: .62; } }

/* ---- lead notification cards (verbatim port of the onboarding .lead) ---- */
.lead-host { position: relative; }
.lead { position: absolute; z-index: 1; width: 240px; }
.lead.floating { animation: leadFloat var(--floatDur, 6s) ease-in-out infinite; animation-delay: var(--floatDelay, 0s); }
.lead.floating:hover { animation-play-state: paused; }
@keyframes leadFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(var(--fx, 0px), var(--fy, -5px)); } }
.lead-inner {
  position: relative; display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,.80); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(20,22,30,.05); border-radius: 14px; padding: 11px 13px;
  box-shadow: 0 18px 40px -22px rgba(20,22,30,.28);
  opacity: 0; transform: rotate(var(--rot, 0deg));
}
.lead.show .lead-inner { animation: leadOut 1s cubic-bezier(.2,.8,.2,1) forwards; }
.lead .ic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 1px 3px rgba(20,22,30,.16), inset 0 0 0 1px rgba(20,22,30,.05); transition: transform .25s cubic-bezier(.34,1.55,.64,1); }
.lead .ic img { display: block; }
.lead .ic img.tile { width: 36px; height: 36px; border-radius: 10px; }
.lead .ic img.glyph { width: 22px; height: 22px; }
.lead .tx { min-width: 0; flex: 1; }
.lead .t1 { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a8d96; }
.lead .t2 { font-size: 12.5px; font-weight: 600; color: #15161a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead .t3 { font-size: 11px; color: #3b3d44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead .time { position: absolute; top: 11px; right: 12px; font-size: 10px; color: #8a8d96; }
@keyframes leadOut {
  0% { opacity: 0; transform: translateX(var(--fromX)) translateY(6px) scale(.95) rotate(var(--rot, 0deg)); }
  22% { opacity: .58; }
  100% { opacity: .58; transform: translateX(0) translateY(0) scale(1) rotate(var(--rot, 0deg)); }
}
.lead-inner.settled { animation: none; opacity: .58; cursor: pointer; transform: rotate(var(--rot, 0deg)); transition: transform .4s cubic-bezier(.34,1.4,.64,1), opacity .3s ease, box-shadow .4s ease, background .3s ease; }
.lead:hover .lead-inner.settled { opacity: 1; background: rgba(255,255,255,.98); transform: translateX(var(--hoverX, 0)) scale(1.05) rotate(0deg); box-shadow: 0 26px 55px -18px rgba(20,22,30,.42); }
.lead:hover .lead-inner.settled .ic { transform: scale(1.1) rotate(-4deg); }

/* dark hero (hero-2) */
.hero-v2 .lead-inner { background: rgba(28,28,28,.82); border-color: rgba(255,255,255,.08); box-shadow: 0 18px 40px -22px rgba(0,0,0,.8); }
.hero-v2 .lead .ic { background: #242424; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.hero-v2 .lead .t2 { color: #fff; }
.hero-v2 .lead .t3 { color: rgba(255,255,255,.7); }
.hero-v2 .lead:hover .lead-inner.settled { background: rgba(34,34,34,.98); }

/* lead cards around the phone artwork (phone-hero, hero-1, hero-2) */
.phone-scene .lead-host { position: absolute; left: 50%; top: 0; width: 600px; height: 450px; margin-left: -300px; }
.phone-scene .lead-host .hero-visual { position: relative; left: 0; top: 0; transform: none; z-index: 2; }
.hero-v1 .phone-scene .lead-host { width: 100%; left: 0; margin-left: 0; }
.hero-v1 .phone-scene .lead-host .hero-visual { margin: 0; }
.hero-v1-grid { grid-template-columns: .95fr 1.05fr; }

/* ---- V6 heatmap phone ---- */
.hm-host { height: 640px; }
.hm-wrap { position: absolute; left: 50%; top: 0; width: 304px; height: 616px; margin-left: -152px; z-index: 2; }
.hm-wrap .piece-glow { inset: 10px 4px; border-radius: 60px; }
.hm-phone {
  position: relative; width: 304px; height: 616px; z-index: 2;
  border-radius: 50px; background: #121212; padding: 11px;
  box-shadow: 0 70px 120px -50px rgba(10,13,20,.6), inset 0 0 0 2px #2c2c2c, inset 0 0 0 4px #0b0b0b;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s linear; will-change: transform;
}
.hm-phone::before { content: ""; position: absolute; left: 50%; top: 22px; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 3; }
.hm-screen { position: relative; width: 100%; height: 100%; border-radius: 40px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.hm-status { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.hm-status .sig { display: flex; gap: 3px; align-items: flex-end; }
.hm-status .sig i { width: 3px; background: var(--ink); border-radius: 1px; }
.hm-search { display: flex; align-items: center; gap: 8px; margin: 10px 14px 8px; padding: 10px 14px; border-radius: 999px; background: #F1F3F4; font-size: 13px; color: var(--ink); }
.hm-search svg { width: 16px; height: 16px; color: #5F6368; }
.hm-map { position: relative; flex: 1; background: #E9F0E4; overflow: hidden; }
.hm-map::before, .hm-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hm-map::before { background-image: linear-gradient(#fff 3px, transparent 3px), linear-gradient(90deg, #fff 3px, transparent 3px); background-size: 58px 58px; background-position: 12px 20px; opacity: .9; }
.hm-map::after { background: linear-gradient(-25deg, transparent 48.5%, #F7F7F2 48.5%, #F7F7F2 51%, transparent 51%); }
.hm-map .rank-grid { position: absolute; inset: 14px 14px 52px; z-index: 1; gap: 6px; padding: 10px; background: rgba(255,255,255,.78); backdrop-filter: blur(2px); border-radius: 18px; box-shadow: 0 10px 30px -14px rgba(10,13,20,.3), 0 0 0 1px rgba(10,13,20,.05); background-image: none; align-content: center; }
.hm-map .cell { font-size: 11px; }
.hm-map .cell.center::after { inset: -4px; border-width: 2px; }
.hm-map .state-pill { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; white-space: nowrap; }
.state-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #FEE2E2; color: #991B1B; font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; transition: background-color .6s, color .6s; }
.after .state-pill { background: #DCFCE7; color: #166534; }
.hm-sheet { position: relative; z-index: 2; padding: 12px 16px 24px; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.08); }
.hm-sheet .grab { width: 36px; height: 4px; border-radius: 4px; background: #E0E0E0; margin: 0 auto 12px; }
.hm-sheet b { display: block; font-size: 15px; color: var(--ink); }
.hm-sheet .meta { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12px; color: var(--text-grey); flex-wrap: wrap; }
.hm-sheet .meta .stars i { width: 11px; height: 11px; }
.hm-sheet .meta .r { font-weight: 600; color: var(--ink); }
.hm-sheet .kpis { display: flex; gap: 8px; margin-top: 10px; }
.hm-sheet .kpi { flex: 1; padding: 8px 10px; border-radius: 12px; background: #F6F6F6; font-size: 11px; color: var(--text-grey); }
.hm-sheet .kpi b { font-size: 15px; margin-top: 2px; transition: color .4s; }
.hm-sheet .acts { display: flex; gap: 8px; margin-top: 10px; }
.hm-sheet .acts span { flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #F1F3F4; color: var(--ink); }
.hm-sheet .acts span.call { background: var(--ink); color: #fff; }

/* ---- V7 laptop heatmap (existing artwork) ---- */
.lap-host { width: 900px; height: 470px; }
.lap-wrap { position: absolute; left: 0; right: 0; top: 0; z-index: 2; }
.lap-wrap .state-pill { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); z-index: 3; }
.lap-media { position: relative; margin-top: 24px; }
.lap-media .piece-glow { inset: 30px 120px 20px; border-radius: 40px; }
.lap-media img { width: 100%; height: auto; position: relative; transition: opacity 1.1s var(--ease-soft); }
.lap-media img.after { position: absolute; inset: 0; opacity: 0; }
.lap-wrap.after img.after { opacity: 1; }
.lap-wrap.after img.before { opacity: 0; }

/* ---- V8 notification centre (no device) ---- */
.nc-host { width: 400px; }
.nc-label { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a8d96; margin-bottom: 12px; }
.nc-stack { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 340px; }
.nc-stack .piece-glow { inset: 20px 30px; border-radius: 40px; }
.lead.nc { position: relative; width: 100%; z-index: 1; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .5s ease; }
.lead.nc .lead-inner { padding: 13px 15px; border-radius: 18px; background: rgba(255,255,255,.92); gap: 13px; }
.lead.nc .ic { flex-basis: 40px; width: 40px; height: 40px; border-radius: 11px; }
.lead.nc .t2 { font-size: 13.5px; }
.lead.nc .t3 { font-size: 11.5px; }
.lead.nc.show .lead-inner { animation: ncIn .7s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes ncIn { 0% { opacity: 0; transform: translateY(-16px) scale(.96); } 100% { opacity: 1; transform: none; } }
.lead.nc .lead-inner.settled { opacity: 1; transform: none; }
.lead.nc:hover .lead-inner.settled { transform: scale(1.03); background: #fff; }
.lead.nc.out { opacity: 0; transform: translateY(12px) scale(.98); }

@media (max-width: 1179px) { .lead:not(.nc) { display: none; } }
@media (max-width: 1024px) {
  .hero-v1 .phone-scene .lead-host { height: 460px; }
}
@media (max-width: 767px) {
  .phone-scene .lead-host { position: relative; left: 0; margin: 0; width: 100%; height: auto; }
  .hm-host { height: 590px; }
  .hm-wrap { width: 270px; height: 560px; margin-left: -135px; }
  .hm-phone { width: 270px; height: 560px; }
  .hm-screen { border-radius: 34px; }
  .hm-sheet .kpis { display: none; }
  .lap-host { height: auto; }
  .lap-wrap { position: relative; }
  .nc-host { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-variant .eyebrow, .piece, .piece.rise { opacity: 1; transform: none; animation: none; }
  .piece-float, .piece-glow, .lead.floating { animation: none; }
  .lead-inner, .lead.nc .lead-inner { opacity: .58; }
  .lead.nc .lead-inner { opacity: 1; }
}

/* ==========================================================================
   Heatmap on the lying-down phone render (phone-hero.html)
   The overlay lives in the render's own pixel space (1057x701) and is scaled
   to the stage; the screen quad is a fitted perspective (matrix3d).
   ========================================================================== */
.ov-scale { position: absolute; left: 0; top: 0; width: 1057px; height: 701px; z-index: 3; pointer-events: none; transform-origin: 0 0; transform: scale(var(--s, .5676)); }
.ov-screen { position: absolute; left: 0; top: 0; width: 300px; height: 650px; transform-origin: 0 0; }
.ov-grid { position: absolute; left: 18px; top: 52px; width: 264px; height: 240px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-content: center; }
.ov-grid .cell { font-size: 12px; opacity: .88; box-shadow: 0 2px 5px rgba(0,0,0,.28), inset 0 0 0 1.5px rgba(255,255,255,.55); }
.ov-pill { transform: translate(-100%, -50%) scale(var(--inv, 1.76)); transform-origin: 100% 50%; }
.ov-grid .cell.center::after { inset: -4px; border-width: 2.5px; }
.ov-pin { position: absolute; width: 30px; height: 41px; margin: -41px 0 0 -15px; opacity: 0; }
.ov-pin svg { width: 100%; height: 100%; filter: drop-shadow(0 5px 7px rgba(0,0,0,.32)); }
.ov-pin i { position: absolute; left: 50%; bottom: -4px; width: 34px; height: 13px; margin-left: -17px; border-radius: 50%; border: 2px solid rgba(34,197,94,.75); opacity: 0; }
.hero-visual.is-in .ov-pin { animation: pin-drop .7s var(--ease-out) var(--pd, 1.6s) forwards; }
.hero-visual.is-in .ov-pin i { animation: ripple 2.4s ease-out calc(var(--pd, 1.6s) + .7s) infinite; }
.ov-pill { position: absolute; transform: translate(-50%, -100%) scale(var(--inv, 1.76)); transform-origin: 50% 100%; white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(20,22,30,.4); opacity: 0; transition: opacity .6s var(--ease-out) 1.4s; }
.hero-visual.is-in .ov-pill { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ov-pin, .hero-visual.is-in .ov-pin { animation: none; opacity: 1; }
  .ov-pin i { animation: none; }
  .ov-pill { opacity: 1; transition: none; }
}

/* ring layout: cards sit behind the phone, tucked under its edges, and slide out from beneath it */
.lead.solid { z-index: 1; }
.lead.solid .lead-inner { background: rgba(255,255,255,.94); box-shadow: 0 22px 44px -20px rgba(20,22,30,.35), 0 0 0 1px rgba(20,22,30,.05); }
.lead.solid.show .lead-inner { animation-name: leadPop; }
@keyframes leadPop {
  0% { opacity: 0; transform: translateX(var(--fromX)) translateY(var(--fromY, 0px)) scale(.7) rotate(var(--rot, 0deg)); }
  60% { opacity: 1; }
  100% { opacity: .94; transform: translateX(0) translateY(0) scale(1) rotate(var(--rot, 0deg)); }
}
.lead.solid .lead-inner.settled { opacity: .94; }
.lead.solid:hover .lead-inner.settled { opacity: 1; transform: translateX(var(--hoverX, 0)) translateY(-2px) scale(1.06) rotate(0deg); }

/* ---- bottom section: hand-held phone, heatmap on its map, rising above the dark section ---- */
.hand-cta { min-height: 520px; overflow: visible; z-index: 2; }
.hand-cta .final-bg { display: none; }
.hand-cta .final-inner { position: relative; z-index: 1; padding-top: 84px; padding-bottom: 70px; }
.hand-cta .final-h2 { font-size: 76px; }
.hand-cta .final-p { max-width: 560px; }
.hand-wrap { position: absolute; right: 40px; bottom: 0; width: 1100px; z-index: 0; pointer-events: none; transform: translate3d(0, var(--ty, 0px), 0); will-change: transform; }
.hand-img { position: relative; width: 100%; aspect-ratio: 1920 / 1029; }
.hand-img img { width: 100%; height: 100%; display: block; }
.hand-ov { position: absolute; left: 0; top: 0; width: 1920px; height: 1029px; transform-origin: 0 0; transform: scale(var(--s, .573)); }
.hand-screen { position: absolute; left: 0; top: 0; width: 300px; height: 650px; transform-origin: 0 0; }
.hand-grid { left: 11px; top: 50px; width: 282px; height: 196px; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.hand-grid .cell { font-size: 14px; }
/* covers the artwork's placeholder listing text with a real listing (same projected screen space) */
.hand-fix { position: absolute; left: 0; width: 300px; padding: 0 14px 0 20px; background: #fff; color: #1f1f1f; font-family: var(--font-sans, "Instrument Sans", system-ui, sans-serif); box-sizing: border-box; }
.hand-fix b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.hand-biz { top: 338px; height: 62px; padding-top: 6px; }
.hand-biz .rate { display: block; font-size: 10.5px; color: #5f6368; margin-top: 4px; }
.hand-biz .rate i { font-style: normal; color: #F2B01E; }
.hand-biz .open { display: block; font-size: 10.5px; color: #188038; margin-top: 2px; }
.hand-site { top: 486px; height: 82px; padding-top: 8px; padding-right: 84px; }
.hand-site b { font-size: 12.5px; }
.hand-site small { display: block; font-size: 9.5px; line-height: 1.35; color: #5f6368; margin-top: 3px; }
.hand-site em { position: absolute; right: 16px; top: 14px; font-style: normal; font-size: 9.5px; font-weight: 600; color: #1a73e8; border: 1px solid #dadce0; border-radius: 999px; padding: 4px 9px; }
@media (max-width: 1280px) { .hand-wrap { width: 960px; right: 20px; } .hand-cta .final-h2 { font-size: 68px; } }
@media (max-width: 1024px) {
  /* tablet: the hand sits in the flow under the copy, cropped to the phone */
  .hand-cta { min-height: 0; display: flex; flex-direction: column; }
  .hand-cta .final-inner { padding-top: 70px; padding-bottom: 0; order: 1; }
  .hand-cta .final-h2 { font-size: 60px; }
  .hand-wrap { position: relative; right: auto; bottom: auto; width: 100%; height: 470px; margin-top: 10px; overflow: hidden; transform: none; order: 2; }
  /* phone centred in the viewport (it sits at 63% of the artwork), edges fade out instead of cutting hard */
  .hand-cta .hand-img { position: absolute; left: calc(50% - 517px); bottom: 0; width: 820px; }
  .hand-cta .hand-wrap { -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
}
@media (max-width: 767px) {
  .hand-cta .final-h2 { font-size: 46px; }
  .hand-cta .final-inner { padding-top: 70px; padding-bottom: 0; }
  .hand-wrap { height: 340px; margin-top: 0; }
  .hand-img { right: -40px; width: 600px; }
}

/* ==========================================================================
   Flighty-style page (hand-hero.html): pill nav, hand-held phone centred with
   notification cards fanned behind it, suburb chips behind a map pin, and the
   lying-down phone with the heatmap as the closing CTA.
   ========================================================================== */
body.flighty .site-header, body.flighty .site-header.scrolled { background: transparent; box-shadow: none; }
/* keep the pill's top margin inside the sticky header; otherwise it collapses away and the pill jumps to the screen edge once stuck */
body.flighty .site-header { display: flow-root; }
body.flighty .header-inner, body.flighty .site-header.scrolled .header-inner {
  height: 64px; max-width: 860px; margin: 24px auto 0; padding: 0 8px 0 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; box-shadow: 0 12px 34px -18px rgba(10,13,20,.35), 0 0 0 1px rgba(10,13,20,.06);
  grid-template-columns: auto 1fr auto;
}
body.flighty .logo img, body.flighty .site-header.scrolled .logo img { width: 56px; height: 56px; transform: none; }
body.flighty .nav-link { font-size: 16px; padding: 8px 14px; }
body.flighty .nav-link::after { left: 14px; right: 14px; }
body.flighty .header-cta { padding: 12px 20px; font-size: 15px; }
body.flighty .mega { top: calc(100% + 14px); }
@media (max-width: 1024px) { body.flighty .header-inner, body.flighty .site-header.scrolled .header-inner { max-width: calc(100% - 32px); height: 60px; margin-top: 18px; } }
@media (max-width: 767px) { body.flighty .header-inner, body.flighty .site-header.scrolled .header-inner { margin-top: 16px; } }

.hero-fl { position: relative; margin-top: calc(-1 * var(--header-h)); padding-top: calc(50px + var(--header-h)); overflow: visible;
  background: linear-gradient(to bottom, rgba(242,242,242,0) calc(100% - 200px), var(--grey-bg) 100%), radial-gradient(1300px 700px at 50% -20%, #fff8d2 0%, rgba(255,248,210,.6) 30%, rgba(255,248,210,.22) 55%, rgba(255,248,210,0) 80%), #fff; }
.hero-fl .hero-inner { position: relative; z-index: 1; }
.hero-fl .marquee { margin-top: 10px; }
.fl-stage { position: relative; width: 1100px; max-width: 100%; height: 640px; margin: 26px auto 0; overflow: hidden; }
.fl-hand { position: absolute; left: 50%; top: -30px; width: 1300px; margin-left: -955px; z-index: 3; opacity: 0; transform: translateY(70px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); pointer-events: none; }
.fl-stage.rise .fl-hand { opacity: 1; transform: none; }
.fl-stage.floating .fl-hand { animation: floaty 8s ease-in-out infinite; }
.fl-hand .hand-img { position: relative; width: 100%; aspect-ratio: 1920 / 1029; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%); mask-image: linear-gradient(to bottom, #000 80%, transparent 99%); }
.fl-cards { position: absolute; inset: 0; z-index: 2; }
.fl-cards .lead { width: 250px; opacity: 0; transform: translateX(var(--ex, 0)) scale(.94); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.fl-cards .lead .lead-inner { opacity: 1; background: rgba(255,255,255,.96); box-shadow: 0 16px 40px -20px rgba(10,13,20,.28), 0 0 0 1px rgba(10,13,20,.05); transform: none; transition: transform .4s var(--ease-out), box-shadow .4s; }
.fl-stage.rise .fl-cards .lead { opacity: var(--o, 1); transform: none; }
.fl-stage.floating .fl-cards .lead { animation: leadFloat var(--floatDur, 6s) ease-in-out infinite; animation-delay: var(--floatDelay, 0s); }
.fl-cards .lead.swap { opacity: 0 !important; transform: translateY(12px) !important; transition-delay: 0s !important; }
.fl-cards .lead:hover { opacity: 1 !important; z-index: 4; }
.fl-cards .lead:hover .lead-inner { transform: scale(1.05); box-shadow: 0 26px 55px -18px rgba(20,22,30,.4); }
.hero-fl .fl-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); z-index: 4; pointer-events: none; }
@media (max-width: 1179px) { .fl-cards .lead { display: block; } }
@media (max-width: 1024px) {
  /* the stage bleeds edge to edge below desktop, so there is no white frame around it (Ben, 13 Sep 2026) */
  .fl-stage { height: 540px; width: calc(100% + 2 * var(--pad, 20px)); max-width: none; margin-left: calc(-1 * var(--pad, 20px)); margin-right: calc(-1 * var(--pad, 20px)); }
  .fl-hand { width: 1000px; margin-left: -735px; top: -10px; }
  .fl-cards .lead { width: 220px; }
  .fl-cards .lead.far { display: none; }
}
@media (max-width: 767px) {
  .fl-stage { height: 420px; margin-top: 12px; }
  .fl-hand { width: 720px; margin-left: -529px; top: 0; }
  /* phones: the near cards sit fully inside the stage and peek out from behind the phone, never cut by the frame */
  .fl-cards .lead { width: 150px; }
  .fl-cards .lead.side-l { left: 12px !important; right: auto !important; }
  .fl-cards .lead.side-r { right: 12px !important; left: auto !important; }
  .fl-cards .lead .lead-inner { padding: 9px 11px; gap: 9px; }
  .fl-cards .lead .ic { flex-basis: 30px; width: 30px; height: 30px; }
  .fl-cards .lead .ic img.tile { width: 30px; height: 30px; border-radius: 8px; }
  .fl-cards .lead .ic img.glyph { width: 19px; height: 19px; }
  .quote-card { flex: 0 0 84%; scroll-snap-align: center; }
  .fl-cards .lead .t3, .fl-cards .lead .time { display: none; }
}
.suburbs { overflow: hidden; }
/* clip sideways only, so the phone can still rise above the dark section */
.iso-cta, .hand-cta { clip-path: inset(-320px 0 0 0); }

/* suburb chips behind a map pin, calls popping from behind it */
.suburbs { padding: 130px 0 110px; text-align: center; background: linear-gradient(to bottom, var(--grey-bg), #fff 90px, #fff calc(100% - 140px), #ECECEC); }
.sub-stage { position: relative; height: 340px; max-width: 1100px; margin: 0 auto 6px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.chip-rows { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-bottom: 70px; }
.chip-row { display: flex; justify-content: center; white-space: nowrap; transform: translateX(var(--off, 0)); }
/* each track holds the cities twice and drifts by half its width, so the loop is seamless */
.chip-track { display: flex; gap: 14px; padding-right: 14px; width: max-content; animation: chip-drift var(--dur, 70s) linear infinite; }
.chip-row:nth-child(2) .chip-track { animation-direction: reverse; }
.sub-stage:hover .chip-track { animation-play-state: paused; }
@keyframes chip-drift { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px; background: #fff; border: 1px solid #ECECEC; box-shadow: 0 8px 18px -12px rgba(10,13,20,.25); font-size: 24px; font-weight: 700; color: #B0B0B0; letter-spacing: -.01em; transition: color .5s; }
.chip i { width: 11px; height: 11px; border-radius: 50%; background: #F87171; box-shadow: 0 0 0 4px rgba(248,113,113,.18); transition: background-color .5s, box-shadow .5s; }
.chip.amber i { background: #FBBF24; box-shadow: 0 0 0 4px rgba(251,191,36,.2); }
.chip.green i { background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.chip.green { color: var(--ink); }
.chip.bump { animation: bump .45s var(--ease-out); }
.big-pin { position: absolute; left: 50%; bottom: 72px; width: 150px; height: 190px; margin-left: -75px; z-index: 2; filter: drop-shadow(0 16px 16px rgba(10,13,20,.22)); opacity: 0; transform: translateY(-70px); transition: opacity .7s var(--ease-out) .3s, transform .9s cubic-bezier(.34,1.4,.64,1) .3s; }
.big-pin svg { width: 100%; height: 100%; }
.sub-stage.rise .big-pin { opacity: 1; transform: none; }
.call-pop { position: absolute; left: 50%; bottom: 130px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 10px 24px -12px rgba(10,13,20,.35), 0 0 0 1px rgba(10,13,20,.05); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; pointer-events: none; animation: call-pop 2.2s var(--ease-out) forwards; }
.call-pop svg { width: 14px; height: 14px; }
@keyframes call-pop { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1); } 70% { opacity: 1; transform: translate(-50%, -70px); } 100% { opacity: 0; transform: translate(-50%, -110px); } }
.suburbs .h2 { max-width: 720px; margin: 0 auto 16px; }
.suburbs .section-sub { margin-bottom: 28px; }
@media (max-width: 767px) { .suburbs { padding: 70px 0; } .sub-stage { height: 250px; } .chip-rows { padding-bottom: 60px; } .big-pin { bottom: 54px; } .chip { font-size: 17px; padding: 9px 14px; gap: 8px; } .chip i { width: 9px; height: 9px; } .big-pin { width: 110px; height: 140px; margin-left: -55px; } .call-pop { bottom: 100px; } }

/* closing CTA: the lying-down phone with the heatmap, rising above the dark section */
.iso-cta { position: relative; min-height: 560px; overflow: visible; z-index: 2; }
.iso-cta .final-bg { display: none; }
.iso-cta .final-inner { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 80px; }
.iso-cta .final-h2 { font-size: 76px; }
.iso-cta .phone-scene { position: absolute; right: 60px; bottom: 20px; width: 700px; height: 520px; margin: 0; z-index: 0; }
.iso-cta .phone-scene .lead-host { width: 700px; height: 520px; margin-left: -350px; }
.iso-cta .hero-visual { width: 700px; height: 520px; }
/* mobile menu cascades down from the pill nav on the Flighty page */
@media (max-width: 1024px) {
  body.flighty .site-header { z-index: 300; }
  body.flighty .burger .x { display: none; }
  body.flighty .burger[aria-expanded="true"] .bars { display: none; }
  body.flighty .burger[aria-expanded="true"] .x { display: block; }
  body.flighty .offcanvas-backdrop { background: rgba(10,13,20,.22); }
  /* stay visible while the close animation runs, then hide */
  body.flighty .offcanvas { transition: visibility 0s linear .34s; }
  body.flighty .offcanvas.open { transition-delay: 0s; }
  body.flighty .offcanvas-panel {
    top: var(--menu-top, 90px); left: 16px; right: 16px; bottom: auto; width: auto;
    max-height: calc(100vh - var(--menu-top, 90px) - 16px); max-height: calc(100dvh - var(--menu-top, 90px) - 16px);
    border-radius: 26px; padding: 8px 22px 22px; overscroll-behavior: contain;
    box-shadow: 0 30px 60px -30px rgba(10,13,20,.35), 0 0 0 1px rgba(10,13,20,.06);
    opacity: 0; transform: translateY(-12px) scale(.98); transform-origin: 50% 0;
    transition: transform .34s var(--ease-out), opacity .24s ease;
  }
  body.flighty .offcanvas.open .offcanvas-panel { opacity: 1; transform: none; }
  body.flighty .offcanvas-top { display: none; }
  body.flighty .offcanvas-list > li, body.flighty .offcanvas .btn-block { opacity: 0; transform: translateY(-10px); transition: opacity .4s var(--ease-out), transform .45s var(--ease-out); }
  body.flighty .offcanvas.open .offcanvas-list > li, body.flighty .offcanvas.open .btn-block { opacity: 1; transform: none; }
  /* every row cascades in order (Careers used to have no delay and appeared first) */
  body.flighty .offcanvas.open .offcanvas-list > li:nth-child(1) { transition-delay: .05s; }
  body.flighty .offcanvas.open .offcanvas-list > li:nth-child(2) { transition-delay: .09s; }
  body.flighty .offcanvas.open .offcanvas-list > li:nth-child(3) { transition-delay: .13s; }
  body.flighty .offcanvas.open .offcanvas-list > li:nth-child(4) { transition-delay: .17s; }
  body.flighty .offcanvas.open .offcanvas-list > li:nth-child(5) { transition-delay: .21s; }
  body.flighty .offcanvas.open .offcanvas-list > li:nth-child(6) { transition-delay: .25s; }
  body.flighty .offcanvas.open .btn-block { transition-delay: .29s; }
  body.flighty .offcanvas-list > li + li { border-top: 1px solid #F0F0F0; }
  body.flighty .offcanvas-list > li > a, body.flighty .acc-btn { padding: 14px 0; font-size: 18px; min-height: 52px; }
  body.flighty .acc-panel > a { padding: 10px 0 10px 4px; }
  body.flighty .acc.open .acc-panel { padding-bottom: 8px; }
  body.flighty .offcanvas .btn-block { margin-top: 16px; }
}

/* softer boundaries between sections on the Flighty page */
body.flighty .offer, body.flighty .cases { position: relative; }
body.flighty .offer::before, body.flighty .cases::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 140px; background: linear-gradient(to bottom, rgba(236,236,236,.55), rgba(23,23,23,0)); pointer-events: none; }
body.flighty .offer > .container, body.flighty .cases > .container { position: relative; }
body.flighty .testimonials { background: linear-gradient(to bottom, #E6E6E6, #fff 160px); }
body.flighty .features { background: linear-gradient(to bottom, #fff, var(--grey-bg) 160px); }
body.flighty .iso-cta { background: linear-gradient(to bottom, #E6E6E6, #fff 180px); }
body.flighty .wants { background: linear-gradient(to bottom, var(--grey-bg), var(--grey-bg)); }
.iso-cta .phone-scene .lead-host { width: 720px; height: 540px; margin-left: -360px; }
.iso-cta .hero-visual { width: 720px; height: 540px; }
.iso-cta .phone-glow { width: 640px; height: 380px; }
@media (max-width: 1280px) { .iso-cta .phone-scene { width: 600px; height: 450px; right: 0; } .iso-cta .phone-scene .lead-host { width: 600px; height: 450px; margin-left: -300px; } .iso-cta .hero-visual { width: 600px; height: 450px; } .iso-cta .final-h2 { font-size: 66px; } }
@media (max-width: 1024px) {
  .iso-cta { min-height: 0; display: flex; flex-direction: column; }
  .iso-cta .final-inner { order: 1; padding-top: 70px; padding-bottom: 10px; }
  .iso-cta .final-h2 { font-size: 60px; }
  .iso-cta .phone-scene { position: relative; right: auto; bottom: auto; width: 100%; height: 480px; order: 2; }
  .iso-cta .phone-scene .lead-host { width: 600px; height: 450px; margin-left: -300px; }
}
@media (max-width: 767px) {
  .iso-cta .final-h2 { font-size: 46px; }
  .iso-cta .phone-glow { width: 90%; height: 70%; }
  .iso-cta .phone-scene { height: auto; padding-bottom: 20px; overflow: hidden; }
  .iso-cta .phone-scene .lead-host { position: relative; left: 0; width: 100%; height: auto; margin: 0; }
  .iso-cta .hero-visual { width: 100%; height: auto; aspect-ratio: 600 / 420; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-stage .fl-hand, .fl-cards .lead, .big-pin, .sub-stage.rise .big-pin { opacity: 1; transform: none; transition: none; animation: none; }
  .fl-cards .lead { opacity: var(--o, 1); }
  .chip.bump, .call-pop { animation: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-title .line-in { animation: none; transform: none; }
  .marquee-track { animation: none; }
  .frame, .hero-visual.is-in .frame { animation: none; opacity: 1; transform: none; }
  .hero-visual.is-in.floating .frame img { animation: none; transform: none; }
  .hero-stage { transform: none; }
  .final-bg { transform: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
