/* LeadFix V2 — light, warm, residential. Heebo (headings) + Assistant (everything else). */
@font-face{font-family:'Heebo';font-style:normal;font-weight:500 800;font-display:swap;src:url(/assets/fonts/heebo-var-hebrew.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Heebo';font-style:normal;font-weight:500 800;font-display:swap;src:url(/assets/fonts/heebo-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Assistant';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/assistant-var-hebrew.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Assistant';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/assistant-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --paper: #FBF9F5;
  --white: #FFFFFF;
  --stone: #F3EEE6;
  --stone-2: #EAE3D8;
  --line: #E4DCCF;
  --line-2: #D2C7B6;
  --ink: #141B33;
  --ink-2: #30384F;
  --muted: #5C6276;
  --navy: #002584;      /* logo */
  --navy-hover: #0A33A6;
  --azure: #008BFF;     /* logo */
  --azure-soft: #E5F1FF;
  --hero: #0A1A45;
  --wa: #1DA851;
  --err: #B3261E;
  --ok: #1E7A46;

  --f-head: 'Heebo', 'Assistant', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --f-body: 'Assistant', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 4.6vw, 64px);
  --bleed: max(var(--gutter), (100vw - var(--maxw)) / 2);
  --header-h: 76px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-1: 0 1px 2px rgb(20 27 51 / .05), 0 10px 28px -14px rgb(20 27 51 / .16);
  --shadow-2: 0 2px 6px rgb(20 27 51 / .06), 0 28px 56px -28px rgb(20 27 51 / .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sec-y: clamp(72px, 8.5vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font: 400 1.125rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: .2em; text-decoration-thickness: from-font; }
a:hover { color: var(--navy-hover); }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
::selection { background: #CFE3FF; color: var(--ink); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
bdi { unicode-bidi: isolate; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ───────── Type ───────── */
h1, h2, h3, .h2, .h3 { font-family: var(--f-head); color: var(--ink); margin: 0; text-wrap: balance; }
.h2 { font-weight: 600; font-size: clamp(1.95rem, 1.25rem + 1.9vw, 2.9rem); line-height: 1.14; letter-spacing: -0.015em; }
.h2 > span { display: inline-block; }
.h3 { font-weight: 600; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.6; color: var(--ink); }
strong { font-weight: 700; color: var(--ink); }

/* ───────── Buttons ───────── */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 700 1.0625rem/1.2 var(--f-body); cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { --bg: var(--navy-hover); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(-3px); }
.btn--primary { box-shadow: 0 10px 24px -14px rgb(0 37 132 / .7); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .975rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn--light { --bg: #fff; --fg: var(--navy); padding-inline: 26px 8px; gap: 18px; box-shadow: 0 16px 36px -18px rgb(0 0 0 / .55); }
.btn--light:hover { --bg: #F2F6FF; --fg: var(--navy); }
.btn__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; }
.btn__arrow .icon { width: 20px; height: 20px; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ───────── Header ───────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -18px rgb(20 27 51 / .35); }
.site-header__in { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; }
.brand img { height: 54px; width: auto; }
.nav { flex: 1; display: flex; align-items: center; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav ul a { position: relative; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 1rem; padding-block: 8px; }
.nav ul a::after { content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--azure); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease); }
.nav ul a:hover { color: var(--navy); }
.nav ul a:hover::after { transform: scaleX(1); }
.nav__cta { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.hphone { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 1rem; }
.hphone .icon { width: 20px; height: 20px; }
.hphone__num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.menu-btn { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.menu-btn path { transition: transform .25s var(--ease), opacity .2s; transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

/* ───────── Hero ───────── */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--hero); color: #fff;
  min-height: clamp(560px, calc(100svh - var(--header-h)), 780px); display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 55%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left, rgb(10 26 69 / .96) 0%, rgb(10 26 69 / .9) 30%, rgb(10 26 69 / .66) 46%, rgb(10 26 69 / .16) 62%, rgb(10 26 69 / 0) 74%); }
.hero__in { padding-block: clamp(48px, 7vh, 96px); }
.hero__copy { max-width: 600px; }
.hero__kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: #CFE4FF; font-size: 1.0625rem; font-weight: 600; }
.hero__kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--azure); }
.hero h1 { color: #fff; font-weight: 600; font-size: clamp(2.45rem, 1.1rem + 3.7vw, 4.4rem); line-height: 1.07; letter-spacing: -0.022em; }
.hero h1 span { display: block; }
.hero__lede { margin: 24px 0 0; max-width: 31em; color: rgb(255 255 255 / .88); font-size: clamp(1.125rem, 1.02rem + .4vw, 1.3rem); line-height: 1.6; }
.terms { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 22px 0 0; font-size: 1rem; font-weight: 600; }
.hero .terms { color: rgb(255 255 255 / .9); }
.terms__sep { width: 1px; height: 1em; background: currentColor; opacity: .45; }
.terms bdi { font-variant-numeric: tabular-nums; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.wa-link { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; text-decoration: none; padding-block: 8px; border-bottom: 1px solid rgb(255 255 255 / .35); }
.wa-link:hover { color: #fff; border-bottom-color: #fff; }
.wa-link .icon { color: #4ADE80; width: 22px; height: 22px; }

/* ───────── Sections ───────── */
.sec { padding-block: var(--sec-y); }
.sec__title { margin-bottom: clamp(32px, 4vw, 52px); }

/* Problem */
.problem { overflow-x: clip; }
.problem__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.problem__copy { max-width: 540px; }
.problem__copy .h2 { margin-bottom: 28px; }
.problem__q { margin-block: 28px !important; padding-block: 24px; border-block: 1px solid var(--line); color: var(--ink); font-size: clamp(1.2rem, 1.1rem + .45vw, 1.4rem) !important; line-height: 1.55; font-weight: 600; }
.problem__end { color: var(--ink); }
.problem__fig { margin: 0; margin-inline-end: calc(-1 * var(--bleed)); }
.problem__fig img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; object-position: 62% 40%; border-start-start-radius: var(--r-lg); border-end-start-radius: var(--r-lg); }

/* Solution */
.solution { background: var(--white); }
.solution__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.solution__copy { max-width: 560px; }
.solution__copy .h2 { margin-bottom: 24px; }
.solution__copy .lead { margin-bottom: 20px; }
.stage { grid-column: 2; grid-row: 1; margin: 0; position: relative; }
.solution__copy { grid-column: 1; grid-row: 1; }


.screen { grid-column: 1 / -1; grid-row: 2; margin-top: clamp(16px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; gap: 20px clamp(32px, 4vw, 64px); align-items: center; padding-block: clamp(28px, 3.4vw, 44px); border-block: 1px solid var(--line); }
.screen__title { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.45rem, 1.2rem + .8vw, 1.95rem); line-height: 1.2; color: var(--navy); margin: 0; }
.screen__body p { margin-bottom: .4em; }

/* Projects */
.vids { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.vcard { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: start; cursor: pointer; }
.vcard__media { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--stone-2); aspect-ratio: 4 / 5; box-shadow: var(--shadow-1); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.vcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 26 69 / .32), rgb(10 26 69 / 0) 45%); }
.vcard__play { position: absolute; z-index: 1; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .94); color: var(--navy); box-shadow: 0 12px 30px -10px rgb(0 0 0 / .45); transition: transform .3s var(--ease); }
.vcard__play .icon { width: 24px; height: 24px; margin-inline-end: -3px; }
.vcard:hover .vcard__media img { transform: scale(1.03); }
.vcard:hover .vcard__play { transform: scale(1.07); }
.vcard__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 4px 0; }
.vcard__title { font-weight: 700; font-size: 1.125rem; color: var(--ink); }
.vcard__dur { font-size: .9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.ba-block { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 420px); justify-content: center; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(24px, 3.4vw, 48px); border-radius: var(--r-lg); background: var(--stone); }
.ba-block__copy .h3 { margin-bottom: 18px; }
.ba-tabs { display: flex; gap: 14px; }
.ba-tab { display: grid; gap: 10px; width: 128px; padding: 0; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--ink-2); text-align: start; }
.ba-tab img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s, opacity .2s; opacity: .72; }
.ba-tab:hover img { opacity: 1; }
.ba-tab[aria-pressed="true"] { color: var(--navy); font-weight: 700; }
.ba-tab[aria-pressed="true"] img { outline-color: var(--navy); opacity: 1; }
.ba-hint { margin-top: 22px; color: var(--muted); font-size: 1rem; }
.ba { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--stone-2); box-shadow: var(--shadow-1); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 0 0 var(--pos)); }
.ba__tag { position: absolute; top: 14px; z-index: 2; padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--ink); font-size: .875rem; font-weight: 700; }
.ba__tag--before { right: 14px; }
.ba__tag--after { left: 14px; }
.ba__handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px -6px rgb(0 0 0 / .45); }
.ba__handle span::before, .ba__handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: solid var(--navy); border-width: 0 0 2px 2px; }
.ba__handle span::before { left: 12px; transform: rotate(45deg); }
.ba__handle span::after { right: 12px; transform: rotate(-135deg); }
.ba__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba__range:focus-visible + * , .ba:focus-within .ba__handle span { outline: 3px solid var(--azure); outline-offset: 2px; }

/* Testimonials */
.voices { background: var(--stone); }
.voices__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.car { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.tcard { display: flex; flex-direction: column; min-width: 0; padding: clamp(26px, 2.6vw, 36px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(20 27 51 / .04); }
.tcard__mark { width: 34px; height: 27px; fill: var(--azure); opacity: .9; margin-bottom: 20px; }
.tcard__q { margin: 0; flex: 1; color: var(--ink); font-size: 1.0625rem; line-height: 1.72; text-wrap: pretty; }
.tcard__more { align-self: flex-start; margin-top: 14px; padding: 6px 0; border: 0; background: none; color: var(--navy); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.tcard__more:hover { color: var(--navy-hover); }
.tcard__who { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.tcard__who b { font-weight: 700; color: var(--ink); font-size: 1.0625rem; }
.tcard__who span { color: var(--muted); font-size: .9375rem; }
.car-nav, .car-dots { display: none; }
.car-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); cursor: pointer; }
.car-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.car-btn:disabled { opacity: .4; cursor: default; }
.greviews { margin: clamp(20px, 2.4vw, 28px) 0 0; color: var(--muted); font-size: .9375rem; text-align: center; }
.greviews__link { font-weight: 700; }

/* About */
.about__grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__fig { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.about__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-1); }
.about__copy { max-width: 640px; }
.about__copy .h2 { margin-bottom: 22px; }
.about__copy .lead { margin-bottom: 18px; }
.about__sign { margin-top: 26px !important; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 700; color: var(--navy); font-size: 1.125rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; cursor: pointer; font-weight: 700; font-size: 1.125rem; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--navy); }
.qa__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa[open] .qa__icon { border-color: var(--navy); }
.qa__a { padding: 0 2px 24px; max-width: 62ch; }

/* Lead form */
.leadsec { background: var(--stone); }
.lead__grid { display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.lead__intro { grid-column: 1; grid-row: 1; }
.fcard { grid-column: 2; grid-row: 1 / span 2; }
.lead__direct { grid-column: 1; grid-row: 2; align-self: start; }
.lead__intro .h2 { margin-bottom: 18px; }
.lead__intro .h2 { font-size: clamp(1.95rem, 1.3rem + 1.6vw, 2.6rem); }
.lead__intro .h2 > span { display: block; }
.lead__direct { list-style: none; margin: 8px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 14px; }
.lead__direct a { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); text-decoration: none; }
.lead__direct a:hover { color: var(--navy); }
.lead__direct .icon { width: 22px; height: 22px; color: var(--navy); }
.lead__direct .icon--wa { color: var(--wa); }
.fcard { position: relative; padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-2); }
#lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full, .hp, .turnstile-slot, .fcard__submit { grid-column: 1 / -1; }
.turnstile-slot:empty { display: none; }
.field label, .field legend { display: block; margin-bottom: 8px; padding: 0; font-weight: 700; color: var(--ink); font-size: 1rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper);
  font: 400 1rem/1.4 var(--f-body); color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #666B7D; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgb(0 139 255 / .18); }
.field input[dir="ltr"] { text-align: right; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chip { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 52px; height: 100%; padding: 8px 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); text-align: center; font-weight: 600; font-size: .975rem; line-height: 1.3; color: var(--ink-2); transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { border-color: var(--navy); background: var(--azure-soft); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.chip input:focus-visible + span { outline: 3px solid var(--azure); outline-offset: 2px; }
.field__err { display: none; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--err); font-size: .9375rem; font-weight: 600; }
.field__err .icon { width: 18px; height: 18px; }
.has-error .field__err { display: flex; }
.has-error input, .has-error textarea, .has-error .chip span { border-color: var(--err) !important; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.fcard, #lead-form { position: relative; }
.fcard__submit { display: grid; gap: 14px; margin-top: 6px; }
.terms--form { justify-content: center; margin: 0; color: var(--ink); font-size: .975rem; }
.terms--form .terms__sep { opacity: .3; }
.consent { margin: 0; text-align: center; font-size: .9375rem; color: var(--muted); line-height: 1.55; }
.form-status { display: none; margin-bottom: 18px; padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; font-size: .975rem; }
.form-status.is-error { display: block; background: #FCEDEC; color: var(--err); }
.form-status.is-info { display: block; background: var(--azure-soft); color: var(--navy); }
.draft-clear { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-weight: 700; }
.success { display: none; text-align: center; padding-block: 40px; }
.success__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #E6F4EC; color: var(--ok); margin-bottom: 18px; }
.success__icon .icon { width: 34px; height: 34px; }
.success .h3 { margin-bottom: 10px; }
.success__id { margin-top: 16px !important; color: var(--muted); font-size: .9375rem; }
.fcard.is-success .fcard__form { display: none; }
.fcard.is-success .success { display: block; }

/* Footer */
.site-footer { padding-block: 56px 32px; background: var(--paper); border-top: 1px solid var(--line); font-size: 1rem; }
.foot__top { display: grid; grid-template-columns: auto 1fr auto auto; gap: 24px 56px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot__brand img { width: 112px; height: auto; }
.foot__contact, .foot__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot__contact a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.foot__contact a:hover, .foot__legal a:hover { color: var(--navy); text-decoration: underline; }
.foot__contact .icon { width: 19px; height: 19px; color: var(--navy); }
.foot__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.foot__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--navy); background: var(--white); transition: background-color .2s, color .2s; }
.foot__social a:hover { background: var(--navy); color: #fff; }
.foot__social .icon { width: 20px; height: 20px; }
.about__toggle { display: none; }
.foot__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.credit a { display: inline-block; padding-block: 12px; }
.tcard__more { min-height: 44px; }
.foot__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; font-size: .9375rem; color: var(--muted); }
.foot__bottom p { margin: 0; }
.credit a { color: var(--ink-2); font-weight: 600; }
.staging-badge { padding: 3px 12px; border-radius: 999px; background: #FFF4D6; color: #6B4A00; font-size: .875rem; font-weight: 700; }

/* Floating WhatsApp */
.wa-float { position: fixed; z-index: 40; inset-inline-end: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 26px -10px rgb(0 0 0 / .45); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { color: #fff; background: #17944A; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }

/* Dialogs */
dialog { border: 0; padding: 0; background: transparent; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgb(10 16 36 / .9); }
.sheet__in { position: relative; width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px); overflow: auto; padding: 40px clamp(24px, 4vw, 44px) 36px; border-radius: var(--r-lg); background: var(--white); }
.sheet__who { margin: 0 0 16px; font-weight: 700; color: var(--navy); }
.sheet__text { margin: 0; color: var(--ink); font-size: 1.125rem; line-height: 1.75; }
.sheet__close, .player__close { position: absolute; top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--stone); color: var(--ink); cursor: pointer; }
.sheet__close .icon, .player__close .icon { width: 26px; height: 26px; }
.player__in { width: min(520px, calc(100vw - 24px), calc((100svh - 110px) * .8)); }
.player__bar { position: relative; display: flex; align-items: center; min-height: 56px; padding-inline-end: 56px; }
.player__title { margin: 0; color: #fff; font-weight: 700; font-size: 1.125rem; }
.player__close { top: 6px; inset-inline-end: 0; background: rgb(255 255 255 / .14); color: #fff; }
.player video { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--r-md); background: #000; }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .hphone__num { display: none; }
  .hphone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .brand img { height: 44px; }
  .site-header__in { gap: 12px; }
  .site-header__actions { gap: 8px; }
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 100%; inset-inline: 0; display: none; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgb(20 27 51 / .4); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 2px; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 12px; }

  .hero { display: block; min-height: 0; background: var(--hero); }
  .hero__media { position: relative; inset: auto; height: clamp(230px, 56vw, 420px); }
  .hero__media img { object-position: 30% 58%; }
  .hero::before { inset: 0 0 auto; height: clamp(230px, 56vw, 420px); background: linear-gradient(to top, var(--hero) 0%, rgb(10 26 69 / .55) 18%, rgb(10 26 69 / 0) 42%); }
  .hero__in { position: relative; margin-top: -36px; padding-block: 0 44px; }

  .problem__grid, .solution__grid, .about__grid, .faq__grid, .lead__grid { grid-template-columns: minmax(0, 1fr); }
  .problem__fig { order: -1; margin-inline: calc(-1 * var(--gutter)); }
  .problem__fig img { aspect-ratio: 4 / 3.2; border-radius: 0; object-position: 60% 35%; }
  .problem__copy, .solution__copy, .about__copy { max-width: none; }
  .stage { grid-column: auto; grid-row: auto; order: 3; }
  .screen { grid-column: auto; grid-row: auto; order: 2; margin-top: 0; }
  .solution__copy { grid-column: auto; grid-row: auto; }
  .screen { grid-template-columns: minmax(0, 1fr); }
  .screen__cta { justify-self: start; }

  .vids { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
  .vids::-webkit-scrollbar { display: none; }
  .vids > li { flex: 0 0 min(76%, 340px); scroll-snap-align: start; }
  .ba-block { grid-template-columns: minmax(0, 1fr); }
  .ba { width: 100%; max-width: 440px; justify-self: center; }

  .car { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .car::-webkit-scrollbar { display: none; }
  .tcard { flex: 0 0 min(86%, 440px); scroll-snap-align: start; }
  .car-nav { display: flex; gap: 10px; }
  .car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .car-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background-color .2s, width .2s; }
  .car-dots span.is-on { width: 22px; border-radius: 6px; background: var(--navy); }

  .about__fig { position: static; width: 100%; max-width: 300px; margin-inline: auto; }
  .stage { max-width: 600px; width: 100%; justify-self: center; }
  .lead__grid { grid-template-rows: none; }
  .lead__intro, .fcard, .lead__direct { grid-column: auto; grid-row: auto; }
  .lead__direct { padding-top: 20px; }
  .leadsec { padding-top: 48px; }
  .about__grid { row-gap: 0; }
  .about__copy { display: contents; }
  .about__copy .h2 { order: 1; margin-bottom: 24px; }
  .about__fig { order: 2; margin-bottom: 28px; }
  .about__copy > :not(.h2) { order: 3; }
  .js .about__toggle { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--navy); font-weight: 700; font-size: 1.0625rem; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
  .js .about__toggle[aria-expanded="true"] { display: none; }
  .js .about__more:not(.is-open) { display: none; }
  .foot__top { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .ba-tab { width: 92px; font-size: .975rem; }
  .problem { padding-top: 0; }
  .terms--form { flex-direction: column; gap: 2px; }
  .terms--form .terms__sep { display: none; }
  .hcta { min-height: 44px; padding: 0 14px; font-size: .9375rem; }
  .terms.terms--form { margin: 0; }
  .hero__kicker { font-size: .975rem; margin-bottom: 12px; }
  .hero__lede { margin-top: 16px; }
  .terms { font-size: .9375rem; margin-top: 16px; }
  .hero__actions { margin-top: 22px; gap: 10px 20px; }
  .hero .btn--lg { min-height: 54px; font-size: 1.0625rem; }
  #lead-form { grid-template-columns: minmax(0, 1fr); }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voices__head { align-items: center; }
  .wa-float { width: 52px; height: 52px; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .brand img { height: 40px; }
  .hcta { padding: 0 12px; font-size: .875rem; }
  .menu-btn, .hphone { width: 44px; height: 44px; }
  .site-header__actions { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* QA round 1: form/control borders ≥3:1 on white, light focus ring on dark surfaces */
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea, .chip span { border-color: #A89A84; }
.car-btn { border-color: #A89A84; }
.hero :focus-visible, .player :focus-visible, .wa-float:focus-visible { outline-color: #fff; }

[hidden] { display: none !important; }

/* Google rating badge (hero) + Google review cards */
.gbadge { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .22); color: #fff; text-decoration: none; font-size: .975rem; line-height: 1.2; }
.gbadge:hover { color: #fff; background: rgb(255 255 255 / .16); }
.gbadge__g { width: 18px; height: 18px; background: #fff; border-radius: 50%; padding: 2px; }
.gbadge__star svg { width: 16px; height: 16px; fill: #FBBC05; }
.gbadge__num { font-weight: 700; font-variant-numeric: tabular-nums; }
.gbadge__count { color: rgb(255 255 255 / .85); }
.tcard__gtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; min-height: 27px; }
.gstars { display: inline-flex; gap: 2px; }
.gstars svg { width: 18px; height: 18px; fill: #F4B400; }
.tcard__src { font-size: .875rem; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.tcard__q.is-clamped p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; }
.tcard__who a { color: var(--muted); font-size: .9375rem; }
/* Desktop carousel once Google reviews add more than three cards */
@media (min-width: 981px) {
  .car.is-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .car.is-scroll::-webkit-scrollbar { display: none; }
  .car.is-scroll .tcard { flex: 0 0 calc((100% - 2 * clamp(16px, 2vw, 28px)) / 3); scroll-snap-align: start; }
  .voices.has-scroll .car-nav { display: flex; gap: 10px; }
  .voices.has-scroll .car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .voices.has-scroll .car-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background-color .2s, width .2s; }
  .voices.has-scroll .car-dots span.is-on { width: 22px; border-radius: 6px; background: var(--navy); }
}

/* ═════════ Solution story (r2) — ONE frame, 4 scenes, all content overlaid on the photos ═════════
   1 couple + questions (uncertainty) → 2 same room, frosted "LeadFix world" + logo (matching)
   → 3 veil thins, room starts to come into focus + checks (screening) → 4 room in focus + 3 contractors (result).
   JS advances [data-scene] 0→4; no attribute = final scene (no-JS / reduced motion). CSS owns all motion. */
.story { --gold: #E3A72F; position: relative; display: grid; }
.story:focus { outline: none; }
.story__frame { position: relative; display: grid; overflow: hidden; isolation: isolate; aspect-ratio: 10 / 9;
  border-radius: var(--r-lg); background: var(--stone); box-shadow: var(--shadow-2); container-type: inline-size; contain: layout paint; }
.story__frame > * { grid-area: 1 / 1; min-width: 0; }

/* Photos (stacked: blurred world → sharp room → couple on top) */
.story__media { position: relative; overflow: hidden; clip-path: inset(0 round var(--r-lg)); }   /* clip-path stops scaled layers bleeding 1px past the rounded edge */
.story__bg, .story__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.story__bg img { object-fit: cover; }
.story__bg--blur img { object-position: 62% 50%; transform: scale(1.12); }
.story__bg--b { transition: opacity 1.2s var(--ease); }
.story__bg--b img { object-position: 62% 50%; transform-origin: 50% 50%; transition: transform 3.6s cubic-bezier(.2, .6, .2, 1); }
.story__bg--a { transition: opacity 1.1s var(--ease); }
.story__bg--a img { object-position: 86% 50%; transform-origin: 66% 44%; }
.story__veil { position: absolute; inset: -2px; opacity: 0; will-change: opacity;   /* overscan: fractional frame offsets otherwise leave a 1px unveiled row */ transition: opacity 1.2s var(--ease);
  background: radial-gradient(85% 65% at 50% 40%, rgb(251 249 245 / .62), rgb(251 249 245 / .5) 60%, rgb(243 238 230 / .72)); }
.story__media::after { content: ""; position: absolute; inset: -2px; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease);
  background: linear-gradient(180deg, rgb(20 27 51 / .14), rgb(20 27 51 / .04) 50%, rgb(20 27 51 / .22)); }

/* Shared enter/exit: exits are immediate and simultaneous; delays live only on entering states */
.story__q, .story__brand > *, .story__check, .story__result, .story__head, .story__card, .story__note, .story__end {
  opacity: 0; transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s var(--ease); transition-delay: 0s; }

/* Scene 1 — questions on the quiet wall (desktop) */
.story__qs { list-style: none; margin: 0; padding: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  align-self: start; justify-self: end; margin-block-start: 4.5%; margin-inline-end: 4%; }
.story__q { transform: translate3d(0, -8px, 0) scale(.97); filter: blur(6px); }
.story__q:nth-child(1) { margin-inline-end: 24px; --r: -1.6deg; }
.story__q:nth-child(2) { margin-inline-end: 6px; --r: 1.2deg; }
.story__q:nth-child(3) { margin-inline-end: 0; --r: -.8deg; }
.story__q span { display: inline-flex; padding: 9px 17px; border-radius: 999px; white-space: nowrap; transform: rotate(var(--r));
  background: rgb(255 255 255 / .94); border: 1px solid rgb(255 255 255 / .8); box-shadow: var(--shadow-1);
  font: 600 .98rem/1.25 var(--f-body); color: var(--ink-2); }

/* Scene 2 — LeadFix enters: logo + promise, centred in the frosted room */
.story__brand { z-index: 2; align-self: start; justify-self: center; display: grid; justify-items: center; text-align: center;
  width: min(86%, 440px); margin-block-start: 11%; --drop: 18cqw; transition: transform .9s cubic-bezier(.45, 0, .2, 1); }
.story[data-scene="2"] .story__brand { transform: translate3d(0, var(--drop), 0); }
.story__logo { width: auto; height: 92px; margin-bottom: 14px; clip-path: circle(0% at 50% 34%);
  transition: opacity .45s var(--ease), clip-path .9s cubic-bezier(.65, 0, .35, 1); }
.story__title { margin: 0; font: 600 1.5rem/1.22 var(--f-head); color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
.story__brand > .story__title, .story__brand > .story__sub { transform: translate3d(0, 8px, 0); }
.story__sub { margin: 6px 0 0; font: 400 1.04rem/1.45 var(--f-body); color: var(--ink-2); text-wrap: balance; }
.story__scan { position: relative; width: 132px; height: 3px; margin-top: 18px; border-radius: 3px; background: rgb(0 37 132 / .12); overflow: hidden; }
.story__scan::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--azure), var(--navy));
  transform: scaleX(0); transform-origin: right; transition: transform 2.1s cubic-bezier(.45, 0, .25, 1); }

/* Scene 3 — screening checks, lower half of the frosted room */
.story__checks { list-style: none; margin: 0 0 9%; padding: 0; z-index: 2; align-self: end; justify-self: center;
  display: grid; gap: 10px; width: min(74%, 330px); }
.story__check { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: var(--r-sm);
  background: rgb(255 255 255 / .96); box-shadow: var(--shadow-1); font: 600 1.02rem/1.25 var(--f-body); color: var(--navy); transform: translate3d(0, 12px, 0); }
.story__check svg, .story__ok { width: 24px; height: 24px; flex: none; overflow: visible; }
.story__check circle, .story__ok circle { fill: var(--azure-soft); stroke: rgb(0 139 255 / .35); stroke-width: 1; transition: stroke .35s var(--ease); }
.story__check path, .story__ok path { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .38s cubic-bezier(.65, 0, .35, 1); }

/* Scene 4 — the result sheet, resting on the lower part of the finished room */
.story__result { z-index: 2; align-self: end; margin: 16px; padding: 16px 18px; border-radius: var(--r-md); text-align: center;
  background: rgb(251 249 245 / .95); box-shadow: var(--shadow-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translate3d(0, 18px, 0); }
.story__head { display: flex; align-items: center; justify-content: center; gap: 14px; transform: translate3d(0, 8px, 0); }
.story__mark { width: auto; height: 40px; flex: none; }
.story__title--result { font-size: 1.36rem; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); text-align: start; }
.story__cards { list-style: none; margin: 14px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.story__card { position: relative; display: grid; justify-items: center; gap: 5px; padding: 14px 8px 12px; border-radius: var(--r-sm);
  background: linear-gradient(180deg, #fff, #FDFCFA); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(20 27 51 / .04), 0 10px 22px -16px rgb(20 27 51 / .28); transform: translate3d(0, 16px, 0) scale(.97); }
.story__card::before { content: ""; position: absolute; inset: 0 24% auto; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, var(--azure), var(--navy)); opacity: .85; }
.story__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--azure-soft); color: var(--navy); }
.story__avatar .icon { width: 23px; height: 23px; }
.story__name { font: 600 1.02rem/1.2 var(--f-head); color: var(--ink); }
.story__stars { display: block; width: 84px; height: 15px; background: var(--gold); opacity: 0; transition: opacity .5s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 15'%3E%3Cpath d='M8.5 .6l2.2 4.6 5 .6-3.7 3.4 1 5-4.5-2.5L4 14.2l1-5L1.3 5.8l5-.6z'/%3E%3C/svg%3E") 0 0 / 16.8px 15px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 15'%3E%3Cpath d='M8.5 .6l2.2 4.6 5 .6-3.7 3.4 1 5-4.5-2.5L4 14.2l1-5L1.3 5.8l5-.6z'/%3E%3C/svg%3E") 0 0 / 16.8px 15px repeat-x; }
.story__ok { position: absolute; top: 8px; inset-inline-start: 8px; width: 20px; height: 20px; }
.story__ok circle { fill: #E3F2EA; stroke: rgb(30 122 70 / .3); }
.story__ok path { stroke: var(--ok); }
.story__note { margin: 0 0 4px; font: 600 .78rem/1.3 var(--f-body); color: var(--muted); }
.story__end { margin: 0; font: 700 1.06rem/1.3 var(--f-body); color: var(--navy); transform: translate3d(0, 6px, 0); }

/* Replay: small, appears only after the sequence; overlays a quiet corner so the page never shifts */
.story__replay { position: absolute; z-index: 3; top: 12px; inset-inline-start: 12px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid rgb(255 255 255 / .8); border-radius: 50%; background: rgb(255 255 255 / .82); color: var(--navy); cursor: pointer;
  box-shadow: 0 4px 14px -6px rgb(20 27 51 / .35);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s, background-color .2s; }
.story__replay::after { content: ""; position: absolute; inset: -4px; }   /* 44px target */
.story__replay:hover { background: #fff; }
.story__replay .icon { width: 17px; height: 17px; }
.story.is-done .story__replay { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s, background-color .2s; }
html:not(.js) .story__replay { display: none; }
/* during a replay the button stays (keeps focus) but recedes until the result is back */
.story.is-done:is([data-scene="0"], [data-scene="1"], [data-scene="2"], [data-scene="3"]) .story__replay { opacity: .35; }

/* ── States ── final scene is the default */
.story:is([data-scene="0"], [data-scene="1"], [data-scene="2"], [data-scene="3"]) .story__bg--b { opacity: 0; }
.story:is([data-scene="0"], [data-scene="1"], [data-scene="2"], [data-scene="3"]) .story__bg--b img { transform: scale(1.12); }   /* same as blur layer: no double image */
.story:not([data-scene]) .story__bg--a, .story:is([data-scene="2"], [data-scene="3"], [data-scene="4"]) .story__bg--a { opacity: 0; }
.story[data-scene="0"] .story__bg--a img { transform: scale(1); transition: none; }
.story:is([data-scene="1"], [data-scene="2"]) .story__bg--a img { transform: scale(1.07); transition: transform 4.5s cubic-bezier(.33, .1, .4, 1); }
.story:is([data-scene="0"], [data-scene="1"]) .story__media::after { opacity: 1; }

.story:not([data-scene]) :is(.story__result, .story__head, .story__card, .story__note, .story__end),
.story[data-scene="4"] :is(.story__result, .story__head, .story__card, .story__note, .story__end) { opacity: 1; transform: none; }
.story:not([data-scene]) .story__stars, .story[data-scene="4"] .story__stars { opacity: 1; }
.story:not([data-scene]) .story__ok path, .story[data-scene="4"] .story__ok path { stroke-dashoffset: 0; }

/* Scene 1 */
.story[data-scene="1"] .story__q { opacity: 1; transform: none; filter: none;
  transition-duration: .8s; transition-delay: calc(250ms + var(--i) * 560ms - var(--i) * var(--i) * 40ms); }
.story:is([data-scene="1"], [data-scene="2"]) .story__q span { animation: story-drift 4.2s ease-in-out calc(var(--i) * -1.3s) infinite alternate; }
@keyframes story-drift { from { translate: 0 -3px; } to { translate: 0 4px; } }
.story[data-scene="2"] .story__q { transform: translate3d(0, -10px, 0) scale(.96); filter: blur(8px); transition-duration: .5s; }

/* Scene 2: the couple dissolves into the frosted room; LeadFix arrives */
.story[data-scene="2"] .story__veil { opacity: .85; }
.story[data-scene="2"] .story__bg--b { opacity: .12; transition-duration: 1.6s; }   /* the room is already there, softly */
.story:is([data-scene="2"], [data-scene="3"]) .story__brand > * { opacity: 1; transform: none; transition-duration: .6s; }
.story[data-scene="2"] .story__logo { clip-path: circle(75% at 50% 34%); transition-delay: .45s; }
.story[data-scene="2"] .story__brand > .story__title { transition-delay: .75s; }
.story[data-scene="2"] .story__brand > .story__sub { transition-delay: .9s; }
.story[data-scene="2"] .story__brand > .story__scan { transition-delay: 1s; }
.story[data-scene="3"] .story__logo { clip-path: circle(75% at 50% 34%); }

/* Scene 3: veil thins and the room begins to come into focus while the checks land */
.story[data-scene="3"] .story__veil { opacity: .7; transition-duration: 2.2s; }
.story[data-scene="3"] .story__bg--b { opacity: .3; transition-duration: 2.2s; }
.story[data-scene="3"] .story__scan::after { transform: scaleX(1); transition-delay: .1s; }
.story[data-scene="3"] .story__check { opacity: 1; transform: none; transition-duration: .55s; transition-delay: calc(150ms + var(--i) * 620ms); }
.story[data-scene="3"] .story__check circle { stroke: var(--azure); transition-delay: calc(330ms + var(--i) * 620ms); }
.story[data-scene="3"] .story__check path { stroke-dashoffset: 0; transition-delay: calc(420ms + var(--i) * 620ms); }

/* Scene 4: veil lifts, room in focus, result sheet */
.story[data-scene="4"] .story__result { transition-duration: .7s; transition-delay: .5s; }
.story[data-scene="4"] .story__head { transition-duration: .6s; transition-delay: .62s; }
.story[data-scene="4"] .story__card { transition-duration: .65s; transition-delay: calc(850ms + var(--i) * 140ms - var(--i) * var(--i) * 14ms); }
.story[data-scene="4"] .story__stars { transition-delay: calc(1200ms + var(--i) * 130ms); }
.story[data-scene="4"] .story__ok path { transition-delay: calc(1350ms + var(--i) * 130ms); }
.story[data-scene="4"] .story__note { transition-duration: .5s; transition-delay: 1.15s; }
.story[data-scene="4"] .story__end { transition-duration: .6s; transition-delay: 1.75s; }

.story.is-reset, .story.is-reset * { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .story__q span { animation: none !important; } }

/* Narrower desktop frames (≈981–1250px viewports): keep the questions on the wall, clear of the faces */
@container (max-width: 600px) {
  .story__qs { margin-inline-end: 2.5%; gap: 9px; }
  .story__q:nth-child(1) { margin-inline-end: 10px; }
  .story__q:nth-child(2) { margin-inline-end: 2px; }
  .story__q span { font-size: .86rem; padding: 7px 13px; }
  .story__result { margin: 12px; padding: 12px 14px; }
  .story__cards { margin: 10px 0 8px; gap: 8px; }
  .story__card { padding: 10px 6px 9px; gap: 3px; }
  .story__avatar { width: 34px; height: 34px; }
  .story__title--result { font-size: 1.18rem; }
  .story__mark { height: 34px; }
}

/* ── Phone: still ONE frame (portrait), overlays re-placed for the portrait crops; no band below ── */
@media (max-width: 640px) {
  .story__frame { aspect-ratio: 4 / 5.25; border-radius: var(--r-md); box-shadow: var(--shadow-1); }
  .story__media { clip-path: inset(0 round var(--r-md)); }
  .story__bg--a img { object-position: 90% 50%; transform-origin: 56% 36%; }
  .story__bg--b img, .story__bg--blur img { object-position: 60% 50%; }
  /* scene 1: questions sit on the laptop/table, below the faces */
  .story__qs { align-self: end; justify-self: center; align-items: center; margin: 0 0 7%; gap: 8px; }
  .story__q:nth-child(1) { margin-inline: 0 26px; }
  .story__q:nth-child(2) { margin-inline: 22px 0; }
  .story__q:nth-child(3) { margin-inline: 0 8px; }
  .story__q span { font-size: .92rem; padding: 8px 15px; }
  /* scenes 2–3 */
  .story__brand { width: 88%; margin-block-start: 8%; --drop: 37cqw; }
  .story__logo { height: 64px; margin-bottom: 10px; }
  .story__title { font-size: 1.22rem; }
  .story__sub { font-size: .95rem; margin-top: 4px; }
  .story__scan { width: 108px; margin-top: 12px; }
  .story__checks { width: 82%; gap: 8px; margin-bottom: 7%; }
  .story__check { padding: 10px 14px; font-size: .98rem; }
  .story__check svg { width: 22px; height: 22px; }
  /* scene 4 */
  .story__result { margin: 10px; padding: 12px 10px; }
  .story__head { gap: 10px; }
  .story__mark { height: 42px; }
  .story__title--result { font-size: 1.05rem; padding-inline-start: 10px; }
  .story__cards { gap: 6px; margin: 10px 0 8px; }
  .story__card { padding: 11px 4px 9px; gap: 4px; }
  .story__avatar { width: 34px; height: 34px; }
  .story__avatar .icon { width: 19px; height: 19px; }
  .story__name { font-size: .9rem; }
  .story__stars { width: 64px; height: 11.5px; -webkit-mask-size: 12.8px 11.5px; mask-size: 12.8px 11.5px; }
  .story__ok { top: 6px; inset-inline-start: 6px; width: 16px; height: 16px; }
  .story__note { font-size: .8rem; }
  .story__end { font-size: .95rem; }
  .story__replay { inset-inline-start: auto; inset-inline-end: 10px; top: 10px; }
}
