/* =========================================================
   Home (index.html) — Figma 48:3378 (desktop), 49:3764 (mobile)
   ========================================================= */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.d-block { display: block; }

/* ---------- Hero: full-bleed video, words on a scrim, live product pieces ----------
   Video is a licensed stand-in (Pexels) until the "Already done" shoot (07 §8).
   Words sit on the video since 16 Nov 2026 (03 §8). Scrim keeps Paper text at AA. */
/* H2 (chosen 17 Nov 2026, Figma W01): the film sits in a rounded card under the solid nav, 12px below it and 24px from each side,
   as tall as the screen allows (the words stay their desktop size on very big screens) */
.hero--video {
  --hero-h: calc(100svh - var(--nav-h) - 24px); /* fills the screen at any size, like lassie.ai; 800px at 1440×900 */
  position: relative; z-index: 1; isolation: isolate; overflow: clip visible; /* the address list may drop below the hero (js/address-field.js) */
  min-height: max(600px, var(--hero-h)); margin: 12px 24px 0; border-radius: 28px;
  padding: 72px var(--pad-x) 96px;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); background: var(--ink); text-align: center;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 6s var(--ease-out); }
.is-loaded .hero__video { transform: none; }
/* Ink scrim: even dim, deeper at the top (nav) and bottom (form) */
.hero__scrim { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, color-mix(in srgb, var(--ink) 30%, transparent), transparent 75%),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 50%, transparent) 0%, transparent 24%, transparent 60%, color-mix(in srgb, var(--ink) 55%, transparent) 100%),
    color-mix(in srgb, var(--ink) 52%, transparent); }

.hero__inner { position: relative; width: 100%; max-width: 980px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero__badge { background: color-mix(in srgb, var(--paper) 16%, transparent); color: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero__title {
  font-weight: 400; /* 07 §6: step up from light on a deep ground */
  font-size: clamp(56px, 7.4vw, 104px); line-height: .98; letter-spacing: -.035em; text-wrap: balance;
  text-shadow: 0 2px 24px color-mix(in srgb, var(--ink) 35%, transparent);
}
/* Human mark (07 §7), as a low Sun swipe under the phrase so Paper text stays readable */
.hero__mark { padding: 0 .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 94% / 0% .07em;
  transition: background-size 900ms var(--ease-out) 900ms; }
.is-loaded .hero__mark { background-size: 100% .07em; }
.hero__lead { max-width: 600px; font-size: 20px; line-height: 30px; font-weight: 400; letter-spacing: -.1px; color: color-mix(in srgb, var(--paper) 86%, transparent); }

/* Live status pill (product). Rows crossfade and slide up; 3.2s each */
.hero__status {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px 0 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 38%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  font-size: 14px; line-height: 20px; color: var(--paper);
}
.hero__status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lawn); flex-shrink: 0; box-shadow: 0 0 0 0 color-mix(in srgb, var(--lawn) 60%, transparent); animation: hero-pulse 3.2s var(--ease-out) infinite; }
@keyframes hero-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lawn) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.hero__status-rows { position: relative; display: grid; overflow: hidden; height: 20px; text-align: left; }
.hero__status-row { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(100%);
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); }
.hero__status-row.is-active { opacity: 1; transform: none; }
.hero__status-row.is-leaving { opacity: 0; transform: translateY(-100%); }

/* Address pill on the video (Figma W01 132:29, W01·L 145:25): frosted glass over the scrim, Paper words,
   one white "Find my home" button. Paper and Ink are fixed here because the video is always under an Ink scrim.
   Once the answer shows, the pill turns into the solid Paper card so the result reads at AA. */
.hero--video .addr { width: 640px; max-width: 100%; margin-top: 8px; padding: 8px; border-radius: 999px;
  color: var(--paper); background: color-mix(in srgb, var(--paper) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper) 32%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 18%, transparent);
  transition: border-color var(--dur-ui) ease, background-color 300ms var(--ease-out), border-radius 300ms var(--ease-out); }
.hero--video .addr:focus-within { border-color: color-mix(in srgb, var(--paper) 72%, transparent); }
.hero--video .addr.is-invalid { border-color: var(--attention); }
.hero--video .addr__row { padding-left: 24px; }
.hero--video .addr__input { font-size: 18px; line-height: 24px; color: var(--paper); }
.hero--video .addr__input::placeholder { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.hero--video .addr__go { height: 56px; padding: 0 32px; border-radius: 999px; border: 0;
  background: var(--paper); color: var(--ink); font-size: 17px; line-height: 24px; font-weight: 500;
  transition: background-color var(--dur-ui) ease, transform 160ms var(--ease-out); }
.hero--video .addr__go:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .hero--video .addr__go:hover { background: var(--mist); } }
.hero--video .addr.is-result { border-radius: 32px; color: var(--foreground); background: var(--background); border-color: transparent; }
.hero--video .addr.is-result .addr__input { color: var(--foreground); }
.hero--video .addr.is-result .addr__go { background: transparent; color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border); }
@media (prefers-reduced-motion: reduce) { .hero--video .addr__go:active { transform: none; } }
/* "Text Mr Frank ›" under the address pill (04 ACT-8; Figma W13, W01 hero): Paper on the hero, centred like the column (left on a phone) */
.hero__tlink { align-self: center; color: var(--paper); }
.hero__note { font-size: 12px; line-height: 16px; color: color-mix(in srgb, var(--paper) 80%, transparent); }

/* Product: on-the-way text card (H-10), slides in from the right after the words land */
.hero__sms {
  position: absolute; right: 56px; top: calc(50% + 40px); width: 280px; text-align: left;
  padding: 12px 14px 14px; border-radius: 18px; color: var(--foreground);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--ink) 70%, transparent);
  opacity: 0; transform: translateX(24px) scale(.97); transform-origin: right bottom;
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out);
}
.hero__sms.is-in { opacity: 1; transform: none; }
.hero__sms-app { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.hero__sms-icon { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--brand); color: var(--brand-foreground); font-weight: 500; font-size: 13px; line-height: 1; }
.hero__sms-body { margin-top: 6px; font-size: 14px; line-height: 20px; }

/* Pause control (WCAG 2.2.2: moving content longer than 5s can be paused) */
.hero__pause {
  position: absolute; right: min(var(--pad-x), 40px); bottom: 40px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--paper);
  background: color-mix(in srgb, var(--ink) 38%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color var(--dur-ui) ease, transform var(--dur-press) var(--ease-out);
}
.hero__pause svg { fill: currentColor; }
.hero__pause .is-play, .hero.is-paused .hero__pause .is-pause { display: none; }
.hero.is-paused .hero__pause .is-play { display: block; }
.hero__pause:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .hero__pause:hover { background: color-mix(in srgb, var(--ink) 58%, transparent); } }

@media (min-width: 961px) { .hero__mark { white-space: nowrap; } }
@media (max-width: 1240px) { .hero__sms { display: none; } }
@media (max-width: 960px) {
  .hero--video { --hero-h: calc(100svh - var(--nav-h) - 16px); min-height: max(560px, var(--hero-h)); margin: 8px 12px 0; border-radius: 20px; padding: 40px 16px 72px; align-items: flex-end; }
  .hero--video { text-align: left; }
  .hero__inner { gap: 18px; align-items: flex-start; }
  .hero__tlink { align-self: flex-start; }
  .hero--video .addr { width: 100%; }
  .hero__title { font-size: 48px; line-height: 50px; letter-spacing: -1.4px; }
  .hero__lead { font-size: 16px; line-height: 24px; }
  .hero__status { height: 36px; font-size: 13px; max-width: 100%; }
  .hero__status-rows { height: 20px; min-width: 0; }
  .hero__status-row { overflow: hidden; text-overflow: ellipsis; }
  .hero__pause { right: 16px; bottom: 16px; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { transform: none !important; transition: none; }
  .hero__status-dot { animation: none; }
  .hero__status-row { transform: none !important; }
  .hero__sms { transform: none; }
  .hero__mark { transition: none; background-size: 100% .07em; }
}

/* Address entry (Figma Web / Address entry: Empty → Filled → Result) */
.addr {
  width: 720px; max-width: 100%; text-align: left;
  background: var(--background); border: 1px solid var(--border); border-radius: 32px; padding: 8px;
  box-shadow: 0 2px 2px rgba(0,0,0,.1), 0 4px 3px rgba(0,0,0,.1);
  transition: border-color var(--dur-ui) ease;
}
.addr:focus-within { border-color: var(--foreground); }
.addr.is-invalid { animation: nudge 320ms var(--ease-out); border-color: var(--attention); }
.addr__row { display: flex; align-items: center; gap: 12px; padding-left: 20px; }
.addr__field { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; cursor: text; }
.addr__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.addr__input {
  width: 100%; border: 0; outline: 0; padding: 0; background: transparent;
  font: inherit; font-size: 14px; line-height: 20px; color: var(--foreground); text-overflow: ellipsis;
}
.addr__input::placeholder { color: var(--muted-foreground); opacity: 1; }
.addr__go { flex-shrink: 0; }
.addr__go [data-addr-label] { display: inline-block; }

.addr__result { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--ease-out); }
.addr__result > .addr__result-inner { overflow: hidden; min-height: 0; }
.addr__result-inner > * { opacity: 0; transform: translateY(8px); transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out); }
.addr__home { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 18px 6px 0 20px; border-top: 1px solid var(--border-subtle); }
.addr__price-row { display: flex; align-items: center; gap: 16px; margin: 16px 0 14px 20px; }
.addr__price { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.addr.is-result .addr__result { grid-template-rows: 1fr; }
.addr.is-result .addr__result-inner > * { opacity: 1; transform: none; }
.addr.is-result .addr__home { transition-delay: 120ms; }
.addr.is-result .addr__price-row { transition-delay: 200ms; }
.addr.is-busy .addr__go { pointer-events: none; }

/* ---------- Photo story (Figma Web / Photo story) ---------- */
.story { position: relative; display: block; width: 100%; height: 640px; border-radius: 16px; overflow: hidden; color: var(--background); text-align: left; -webkit-tap-highlight-color: transparent; }
.story__photo { position: absolute; inset: 0; display: block; overflow: hidden; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__caption {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(20,20,18,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  white-space: nowrap; font-size: 14px; line-height: 20px;
  transition: transform 500ms var(--ease-out);
}
.story__text strong { font-weight: 500; margin-right: 2px; }
.story__text span { opacity: .72; }
.story__btn { background: var(--background); color: var(--foreground); border-radius: 999px; padding: 8px 14px; font-weight: 500; transition: background-color var(--dur-ui) ease; }
@media (hover: hover) and (pointer: fine) {
  .story:hover .story__caption { transform: translateX(-50%) translateY(-4px); }
  .story:hover .story__btn { background: color-mix(in srgb, var(--secondary) 92%, var(--foreground)); }
}
.story-band { display: flex; justify-content: center; padding: 24px var(--pad-x) 120px; }

/* ---------- Photo card with dark caption (Services, People) ---------- */
.photo-card { position: relative; border-radius: 20px; overflow: hidden; }
.photo-card > img { width: 100%; height: 100%; object-fit: cover; }
.photo-card__caption {
  position: absolute; left: 20px; bottom: 20px; width: 420px; max-width: calc(100% - 40px);
  display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-radius: 16px;
  background: rgba(20,20,20,.82); color: #fff;
}
.photo-card__caption strong { font-weight: 500; font-size: 14px; line-height: 20px; }
.photo-card__caption span { font-size: 12px; line-height: 16px; color: rgba(255,255,255,.72); }

/* ---------- The list (mess → one plan) ---------- */
.list { --k: 1; position: relative; height: calc(900px * var(--k)); background: var(--muted); overflow: hidden; }
.list__stage {
  position: absolute; top: 0; left: 50%; width: 1440px; height: 900px;
  transform: translateX(-50%) scale(var(--k)); transform-origin: top center;
}
.list__item {
  --tx: 0px; --ty: 0px; --rot: var(--r1); --sc: 1; --op: 1;
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h, auto);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; overflow: hidden;
  background: var(--paper); border-radius: 2px; box-shadow: var(--shadow-md);
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(var(--sc));
  opacity: var(--op);
  will-change: transform, opacity;
}
.list__sticky p, .list__polaroid p, .list__ink { font-family: "Caveat", cursive; line-height: 1.05; color: var(--ink); }
.list__sticky p { font-size: 30px; }
.list__sticky--yellow { background: var(--sun); }
.list__sticky--pink { background: var(--gulf-wash); }
.list__text { padding: 14px; gap: 6px; border-radius: 18px; }
.list__bubble { width: 100%; background: var(--line-subtle); border-radius: 16px; padding: 10px 12px; }
.list__paper > i { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.list__calendar .t-label, .list__text .t-label { color: var(--muted-foreground); }
.list__grid { position: relative; width: 224px; height: 120px; display: grid; grid-template-columns: repeat(7, 30px); grid-auto-rows: 28px; gap: 2px; }
.list__grid i { border: 1px solid var(--line); }
.list__ink { position: absolute; width: 60px; font-size: 22px; }
.list__ink--red { color: var(--ember); }
.list__payment { border-radius: 12px; }
.list__polaroid img { width: 154px; height: 150px; object-fit: cover; }
.list__polaroid p { font-size: 24px; }
.list__hanger { background: var(--lawn-wash); }

.list__msg {
  position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; white-space: nowrap;
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out);
}
.list__msg--mess { top: 399px; }
.list__msg--one { top: 150px; opacity: 0; transform: translateY(16px); }

.list__plan {
  --ptx: -8.6px; --pty: 181.3px; --prot: 3deg; --psc: .96;
  position: absolute; left: 720px; top: 478.5px; width: 440px;
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  background: var(--background); border-radius: 16px; box-shadow: var(--shadow-lg);
  transform: translate(-50%, -50%) translate(var(--ptx), var(--pty)) rotate(var(--prot)) scale(var(--psc));
  opacity: 0;
}
.list__plan-head, .list__plan-row { display: flex; align-items: center; gap: 12px; }
.list__avatars { position: relative; width: 64px; height: 40px; flex-shrink: 0; }
.list__avatars img { position: absolute; top: 0; width: 40px; height: 40px; border-radius: 50%; }
.list__avatars img + img { left: 24px; }
.list__plan-rule { height: 1px; background: var(--border-subtle); }
.list__plan-price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }

/* Step: intro (before the section is seen) */
.js [data-step="intro"] .list__item { --ty: 28px; --op: 0; }
.js [data-step="intro"] .list__msg--mess { opacity: 0; transform: translateY(12px); }

/* Step: enter — papers land in place, one after another */
[data-step="enter"] .list__item {
  transition: transform 900ms var(--ease-out) calc(var(--i) * 70ms + 120ms), opacity 600ms var(--ease-out) calc(var(--i) * 70ms + 120ms);
}

/* Step: drift — everything slides a little, slowly, as if loosening */
[data-step="drift"] .list__item {
  --tx: var(--dx); --ty: var(--dy); --rot: var(--r2);
  transition: transform 1800ms var(--ease-in-out) calc(var(--i) * 40ms), opacity 400ms var(--ease-out);
}

/* Step: one — papers gather to the centre and vanish; the plan card settles in */
[data-step="one"] .list__item {
  --tx: calc(720px - var(--x)); --ty: calc(510px - var(--y)); --rot: 0deg; --sc: .92; --op: 0;
  transition: transform 900ms var(--ease-in-out) calc(var(--i) * 50ms), opacity 450ms var(--ease-out) calc(var(--i) * 50ms + 480ms);
}
[data-step="one"] .list__msg--mess { opacity: 0; transform: translateY(-12px); transition: opacity 350ms var(--ease-out), transform 450ms var(--ease-out); }
[data-step="one"] .list__msg--one { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out) 700ms, transform 900ms var(--ease-out) 700ms; }
[data-step="one"] .list__plan {
  --ptx: 0px; --pty: 0px; --prot: 0deg; --psc: 1; opacity: 1;
  transition: transform 1000ms var(--ease-out) 560ms, opacity 500ms var(--ease-out) 560ms;
}

/* Step: mess — the loop resets: the plan fades, the papers scatter back out */
[data-step="mess"] .list__item {
  transition: transform 1000ms var(--ease-out) calc(var(--i) * 45ms + 250ms), opacity 400ms var(--ease-out) calc(var(--i) * 45ms + 250ms);
}
[data-step="mess"] .list__plan { transition: transform 400ms var(--ease-out), opacity 300ms var(--ease-out); }
[data-step="mess"] .list__msg--one { transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out); }
[data-step="mess"] .list__msg--mess { transition: opacity 600ms var(--ease-out) 450ms, transform 700ms var(--ease-out) 450ms; }

.list__toggle {
  position: absolute; right: max(24px, calc((100% - 1440px) / 2 + 24px)); bottom: 24px; z-index: 2; /* stays at the stage corner on big screens */
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 80%, transparent); color: var(--muted-foreground);
  font-size: 12px; line-height: 16px; font-weight: 500;
  transition: color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
@media (hover: hover) and (pointer: fine) { .list__toggle:hover { color: var(--foreground); border-color: var(--foreground); } }

/* ---------- Services ---------- */
.services { padding-top: 72px; }
.services .section-head { gap: 14px; }
.services__body { display: flex; gap: 80px; align-items: flex-start; width: 100%; }
.services__photo { width: 480px; height: 640px; flex-shrink: 0; }
.services__list { flex: 1 1 0; min-width: 0; }
.service { display: flex; align-items: flex-start; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border-subtle); }
.service .svc-tile { --sz: 44px; margin-top: -6px; }
.service__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.service__freq { width: 180px; flex-shrink: 0; text-align: right; }
.services__note { padding-top: 18px; }

/* ---------- The people ---------- */
.people .section-head { gap: 14px; }
.people__row { display: flex; gap: 24px; width: 100%; }
.people__card { flex: 1 1 0; height: 600px; position: relative; }
/* Product: the app's "your pro" card on the photo. Pops in after the photo reveals */
.pro-chip {
  position: absolute; left: 20px; top: 20px; z-index: 2; width: 280px;
  display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 10px; align-items: center;
  padding: 12px; border-radius: 16px; background: var(--card); color: var(--foreground); text-align: left;
  box-shadow: 0 16px 32px -18px color-mix(in srgb, var(--ink) 70%, transparent);
  opacity: 0; transform: translateY(10px) scale(.97); transform-origin: left top;
  transition: opacity 500ms var(--ease-out) 450ms, transform 600ms var(--ease-out) 450ms;
}
.people__card.is-in .pro-chip { opacity: 1; transform: none; }
.pro-chip__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pro-chip__who { display: flex; flex-direction: column; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.pro-chip__who strong { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--foreground); }
.pro-chip__next { grid-column: 1 / -1; padding: 6px 10px; border-radius: 10px; background: var(--info-subtle); color: var(--info); font-size: 12px; line-height: 16px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .people__card.is-settled:hover .pro-chip { transform: translateY(-3px); transition-delay: 0ms; } }
@media (max-width: 960px) { .pro-chip { left: 12px; top: 12px; width: min(260px, calc(100% - 24px)); } }
@media (prefers-reduced-motion: reduce) { .pro-chip { transform: none !important; } }

/* ---------- Prices ---------- */
.prices-block .section-head { gap: 14px; }

/* ---------- Visit day ---------- */
.visit__split { display: flex; align-items: center; gap: 80px; width: 100%; }
.visit__copy { flex: 1 1 0; min-width: 0; gap: 24px; }
.visit__media { position: relative; width: 520px; height: 560px; flex-shrink: 0; border-radius: 16px; overflow: hidden; }
.visit__photo { width: 100%; height: 100%; object-fit: cover; }
.visit__cards { position: absolute; left: 0; right: 0; bottom: 40px; width: 320px; margin: 0 auto; }
.vcard {
  position: absolute; left: 0; bottom: 0; width: 100%;
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 2px 2px rgba(0,0,0,.1), 0 4px 3px rgba(0,0,0,.1);
  opacity: 0; transform: translateY(12px);
  transition: opacity 300ms var(--ease-out), transform 450ms var(--ease-out);
}
.vcard.is-active { opacity: 1; transform: none; transition-delay: 160ms; }
.js .visit__media:not(.is-in) .vcard.is-active { opacity: 0; transform: translateY(20px); }
.js .visit__media.is-in .vcard.is-active { transition: opacity 500ms var(--ease-out) 450ms, transform 800ms var(--ease-out) 450ms; }
.js .visit__media.is-cycling .vcard.is-active { transition: opacity 300ms var(--ease-out) 160ms, transform 450ms var(--ease-out) 160ms; }
.vcard__when { display: flex; align-items: flex-start; }
.vcard__when > span:first-child { flex: 1 1 0; }
.vcard__pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--success-subtle); color: var(--success); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.vcard__service { display: flex; align-items: flex-start; gap: 12px; }
.vcard__copy { flex: 1 1 0; min-width: 0; }
.vcard__after { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.vcard__rule { height: 1px; background: var(--border-subtle); }
.vcard__foot { display: flex; align-items: center; gap: 12px; }
.vcard__avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--success-subtle); font-size: 12px; line-height: 16px; font-weight: 500; }
.vcard__who { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; }
.vcard__rating { display: flex; align-items: center; gap: 4px; }
.vcard__note { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border-radius: var(--radius-sm); background: var(--success-subtle); }

/* ---------- Promises (cycling) ---------- */
.promises { align-items: center; gap: 24px; }
.promises__statement { width: 980px; max-width: 100%; text-align: center; color: var(--muted-foreground); }
.promises__statement span { transition: color 600ms ease; }
.promises__statement span.is-on { color: var(--foreground); }

/* ---------- Questions ---------- */
.faq-head { gap: 14px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1360px) {
  .services__photo { width: 40%; height: auto; aspect-ratio: 480 / 640; }
  .services__body, .visit__split { gap: 56px; }
  .visit__media { width: 46%; }
}

@media (max-width: 960px) {
  .addr { border-radius: 24px; }

  .story { height: 480px; }
  .story__caption {
    left: 12px; right: 12px; bottom: 12px; transform: none;
    display: block; padding: 12px 16px; border-radius: 12px; white-space: normal;
    background: rgba(20,20,18,.82);
  }
  .story__text strong { display: block; margin: 0 0 4px; }
  .story__text span { font-size: 12px; line-height: 16px; }
  .story__btn { display: none; }
  @media (hover: hover) and (pointer: fine) { .story:hover .story__caption { transform: translateY(-4px); } }
  .story-band { padding: 16px var(--pad-x) 64px; }

  .services { padding-top: 24px; }
  .services__photo { display: none; }
  .service { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 0; padding: 18px 0; }
  .service .svc-tile { --sz: 40px; margin-top: 0; }
  .service__freq { grid-column: 2; width: auto; text-align: left; margin-top: 4px; }
  /* Figma mobile: title stays 24/30, description drops to Body/S */
  .service .t-h3 { font-size: 24px; line-height: 30px; letter-spacing: -0.3px; }
  .service__text .t-body { font-size: 12px; line-height: 16px; }

  .people__row { flex-direction: column; gap: 16px; }
  .people__card { flex: none; height: 420px; }

  .visit__split { flex-direction: column; align-items: stretch; gap: 28px; }
  .visit__copy { gap: 12px; }
  .visit__media { width: 100%; height: 440px; }
  .visit__cards { bottom: 16px; }

  .promises { align-items: flex-start; gap: 16px; }
  .promises__statement { text-align: left; }

  .list__toggle { right: 12px; bottom: 12px; }
}

@media (max-width: 560px) {
  .addr__row { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 0 0; }
  .addr__field { padding: 0 12px; }
  .addr__go { width: 100%; }
  .addr__home { margin-top: 12px; padding: 16px 12px 0; flex-wrap: wrap; gap: 8px; }
  .addr__price-row { flex-direction: column; align-items: stretch; margin: 16px 0 0; }
  .addr__price-row .btn { width: 100%; }
  .addr__price { padding: 0 12px; }
  .addr.is-result .addr__go { display: none; }
  .hero--video .addr { border-radius: 999px; padding: 6px; }
  .hero--video .addr__row { flex-direction: row; align-items: center; gap: 8px; padding: 0 0 0 16px; }
  .hero--video .addr__field { padding: 0; }
  .hero--video .addr__input { font-size: 16px; line-height: 22px; }
  .hero--video .addr__go { width: auto; height: 52px; padding: 0 22px; font-size: 16px; }
  .hero--video .addr.is-result { border-radius: 24px; }
  .hero--video .addr.is-result .addr__row { padding: 10px 0 0 12px; }
  .addr__result .t-h3 { white-space: nowrap; }

  .story--hero { height: 460px; }
  .story--stories { height: 420px; }
  .story--pros { height: 440px; }
  .vcard { padding: 14px; }
}

/* Reduced motion: keep fades, drop movement and the looping choreography */
@media (prefers-reduced-motion: reduce) {
  .list__stage .list__item { --tx: 0px !important; --ty: 0px !important; --rot: var(--r1) !important; --sc: 1 !important; transition-property: opacity !important; }
  .list__stage .list__plan { --ptx: 0px !important; --pty: 0px !important; --prot: 0deg !important; --psc: 1 !important; transition-property: opacity !important; }
  .list__msg { transform: none !important; }
  .addr__result-inner > *, .vcard { transform: none !important; }
  .addr.is-invalid { animation: none; }
  .story__caption { transition: none; }
}
.pro-chip__avatar { transform: none !important; }
