/* ==========================================================================
   מ.א. אינסטלציה ושיפוצים — Glassmorphism design system
   Light theme only, by design: tuned for outdoor / direct-sunlight legibility.
   Body text is #0F172A / #1E293B on ≥72% white glass, AAA contrast (≥ 7:1).
   ========================================================================== */

:root {
  /* ink */
  --ink: #0F172A;
  --ink-2: #1E293B;
  --ink-3: #334155;          /* secondary text, 10.3:1 on white */

  /* atmosphere */
  --bg: #EEF6FC;
  --bg-ice: #E0F2FE;

  /* glass */
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --glass-blur: blur(16px) saturate(180%);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 16px 48px 0 rgba(31, 38, 135, 0.14), 0 2px 6px rgba(15, 23, 42, 0.08);

  /* water identity */
  --accent: #0284C7;
  --accent-2: #0369A1;
  --accent-ink: #075985;     /* links / text accent, AAA on white */

  /* actions */
  --wa: #25D366;
  --wa-hover: #1EBE5A;
  --wa-ink: #052E16;         /* 9.9:1 on --wa */
  --call: #FBBF24;
  --call-hover: #F59E0B;
  --call-ink: #0F172A;       /* 10.7:1 on --call */

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: 16px;
  --cta-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: linear-gradient(180deg, #F8FCFF 0%, var(--bg) 40%, var(--bg-ice) 100%);
  padding-bottom: calc(var(--cta-h) + var(--safe-b) + 24px);
  overflow-x: hidden;
}
/* soft static colour fields so the frosted glass has something to refract */
body::before {
  content: "";
  position: fixed;
  inset: -10vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 85% 5%, rgba(56, 189, 248, 0.28), transparent 60%),
    radial-gradient(35vmax 35vmax at 0% 35%, rgba(2, 132, 199, 0.16), transparent 60%),
    radial-gradient(38vmax 38vmax at 100% 75%, rgba(134, 221, 185, 0.22), transparent 60%),
    radial-gradient(30vmax 30vmax at 20% 100%, rgba(251, 191, 36, 0.12), transparent 60%);
}

img, video, svg { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
h1 { font-size: clamp(1.85rem, 6.2vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 4.4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
strong { color: var(--ink); }
.muted { color: var(--ink-3); }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

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

.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 880px; }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* --------------------------------------------------------------- glass */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
  border-radius: var(--radius);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.94); }
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.3em;
  border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn--lg { min-height: 58px; font-size: 1.12rem; padding-inline: 1.6em; }
.btn--sm { min-height: 44px; font-size: 0.98rem; padding: 0.5em 1em; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35); }
.btn--wa:hover { background: var(--wa-hover); }
.btn--call { background: var(--call); color: var(--call-ink); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.32); }
.btn--call:hover { background: var(--call-hover); }

/* --------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 30; padding-top: 10px; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 8px; padding-inline: 14px 8px;
  border-radius: 999px;
  background: var(--glass-strong);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1rem; }
.brand img { border-radius: 10px; }
.site-header .btn--sm { white-space: nowrap; flex: none; }
.site-header [data-phone-text] { direction: ltr; unicode-bidi: isolate; }
.brand__text strong { font-weight: 800; }
.site-nav { display: none; gap: 4px; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
}
.site-nav a:hover { background: rgba(2, 132, 199, 0.1); color: var(--accent-ink); }
@media (min-width: 960px) { .site-nav { display: flex; } }
@media (max-width: 380px) { .brand__text { font-size: 0.9rem; } .site-header .btn--sm span { display: none; } }

/* --------------------------------------------------------------- hero */
.hero { padding-block: 32px 8px; text-align: center; }
.hero__grid { display: grid; gap: 24px; justify-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: center; max-width: 860px; }
@media (min-width: 960px) { .hero { padding-block: 72px 24px; } }
.eyebrow {
  display: inline-block; margin: 0 0 12px;
  font-size: 0.92rem; font-weight: 700; color: var(--accent-ink);
  background: rgba(2, 132, 199, 0.1); padding: 4px 12px; border-radius: 999px;
}
.h1-accent {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-ink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.08rem, 2.6vw, 1.25rem); color: var(--ink-2); max-width: 52ch; margin-inline: auto; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block: 20px; width: 100%; max-width: 560px; }
.hero__ctas .btn { flex: 1 1 220px; }   /* two equal buttons side by side, stacked on phones */

.trust-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.trust-chips li {
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  padding: 6px 14px 6px 12px; border-radius: 999px;
}
.trust-chips li::before { content: "✓"; color: var(--accent-ink); font-weight: 800; margin-inline-end: 6px; }

/* static mascot only when WebGL / motion is unavailable */
.hero-fallback { display: none; position: relative; margin: 0; overflow: hidden; padding: 0; width: 100%; max-width: 720px; }
.no-mascot .hero-fallback { display: block; }
.hero-fallback img { width: 100%; height: auto; }
.hero-fallback__bubble {
  position: absolute; left: 66%; right: 8%; top: 7%; bottom: 72%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 800; color: var(--ink); font-size: clamp(0.62rem, 1.6vw, 1rem); line-height: 1.25;
}

/* --------------------------------------------------------------- sections */
.section { padding-block: 40px; }
@media (min-width: 960px) { .section { padding-block: 64px; } }
.section__head { margin: 0 auto 24px; max-width: 760px; text-align: center; }
.section__sub { color: var(--ink-3); max-width: 60ch; margin-inline: auto; }

.services { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service { padding: 24px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift), inset 0 1px 0 var(--glass-edge); }
.service p { color: var(--ink-2); flex: 1; }
.service__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #38BDF8, var(--accent-2));
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service__link { font-weight: 700; text-decoration: none; padding-block: 6px; }
.service__link:hover { text-decoration: underline; }

/* --------------------------------------------------------------- before / after */
.ba {
  position: relative; overflow: hidden; padding: 0;
  aspect-ratio: 4 / 3;
  touch-action: pan-y;               /* vertical scroll stays native, horizontal drags compare */
  user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px;
  transform: translateX(-50%); background: #fff; box-shadow: 0 0 12px rgba(15, 23, 42, 0.35);
  pointer-events: none;
}
.ba__knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-lift);
}
.ba__knob svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba:has(.ba__range:focus-visible) .ba__knob { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.ba__label {
  position: absolute; top: 14px; z-index: 1; pointer-events: none;
  font-weight: 800; font-size: 0.95rem; color: var(--ink);
  background: rgba(255, 255, 255, 0.85); padding: 4px 14px; border-radius: 999px;
}
.ba__label--after { left: 14px; }
.ba__label--before { right: 14px; }
.ba__range {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 1px;
  opacity: 0; margin: 0; pointer-events: none;
}

/* --------------------------------------------------------------- gallery */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.filters > :first-child { margin-inline-start: auto; }
.filters > :last-child { margin-inline-end: auto; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  font: inherit; font-weight: 600; color: var(--ink);
  background: var(--glass); border: 1px solid rgba(15, 23, 42, 0.12); cursor: pointer;
}
.chip.is-active { background: var(--accent-ink); color: #fff; border-color: transparent; }

/* --------------------------------------------------------------- 3D portfolio carousel */
/* Cylinder geometry (radius, card width, perspective) is computed in js/carousel/Carousel3D.js
   and handed over as --card-w / --ring-perspective. Only .ring__spinner's transform changes per
   frame; cards get opacity + a discrete blur step (data-depth) so nothing repaints continuously. */
.section--ring { overflow-x: clip; }                 /* side cards may extend past the viewport */
.anchor-alias { display: block; height: 0; }
.ring { position: relative; margin-block: 4px 18px; outline: none; }
.ring:focus-visible .ring__stage { outline: 3px solid var(--accent-2); outline-offset: -3px; border-radius: var(--radius); }
.ring__stage {
  --card-h: calc(var(--card-w, 300px) * 1.28);
  position: relative;
  height: calc(var(--card-h) + 40px);
  perspective: var(--ring-perspective, 1500px);
  perspective-origin: 50% 45%;
  touch-action: pan-y;                                 /* vertical page scroll stays native */
  user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.ring.is-dragging .ring__stage { cursor: grabbing; }
.ring__spinner {
  position: absolute; top: 18px; left: 50%;
  width: var(--card-w, 300px); height: var(--card-h);
  margin-left: calc(var(--card-w, 300px) / -2);
  transform-style: preserve-3d;
  will-change: transform;
}
.ring__card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, 0.92);           /* no backdrop-filter inside 3D: too costly */
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 22px 48px -12px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: filter 0.35s ease, box-shadow 0.35s ease;
}
.ring__card[data-depth="1"] { filter: blur(1px) saturate(0.9); }
.ring__card[data-depth="2"] { filter: blur(2.5px) saturate(0.8); }
.ring__card.is-active { box-shadow: 0 28px 60px -14px rgba(3, 105, 161, 0.38), 0 0 0 2px rgba(255, 255, 255, 0.9); }
.ring__card:not(.is-active) { cursor: pointer; }
.ring__card:not(.is-active) video { pointer-events: none; }

.ring__media { position: relative; flex: 1; min-height: 0; background: #DBEAFE; }
.ring__media > img, .ring__media > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ring__badge {
  position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 2; pointer-events: none;
  font-size: 0.78rem; font-weight: 800; color: #fff;
  background: rgba(7, 89, 133, 0.9); padding: 3px 10px; border-radius: 999px;
}
.ring__badge--demo { inset-inline-start: auto; inset-inline-end: 10px; background: rgba(120, 53, 15, 0.88); }
.ring__meta { padding: 12px 16px 14px; }
.ring__cat {
  display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--accent-ink);
  background: rgba(2, 132, 199, 0.1); padding: 2px 10px; border-radius: 999px;
}
.ring__title { margin: 6px 0 0; font-size: 1.05rem; }
.ring__place { margin: 2px 0 0; font-size: 0.9rem; color: var(--ink-3); }

/* before/after inside a card: only the handle drags (the image area belongs to the carousel) */
.ba--card { position: absolute; inset: 0; aspect-ratio: auto; cursor: inherit; }
.ba--card .ba__divider { pointer-events: auto; touch-action: none; cursor: ew-resize; }
.ba--card .ba__divider::before { content: ""; position: absolute; inset: 0 -22px; }  /* 47px-wide grab zone */
.ring__card:not(.is-active) .ba__divider { pointer-events: none; }
.ba--card .ba__knob {
  width: 48px; height: 48px; background: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: transform 0.15s ease;
}
.ba.is-comparing .ba__knob { transform: translate(-50%, -50%) scale(1.1); }
.ba--card .ba__label { top: 10px; font-size: 0.82rem; padding: 3px 10px; }
.ba--card .ba__label--after { left: 10px; }
.ba--card .ba__label--before { right: 10px; }

.ring__caption {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 18px 20px;
}
.ring__caption h3 { margin: 0; font-size: 1.15rem; }
.ring__caption p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.ring__caption p:empty { display: none; }
.ring__count {
  order: -1; font-size: 0.85rem; font-weight: 800; color: var(--accent-ink);
  background: rgba(2, 132, 199, 0.1); padding: 2px 12px; border-radius: 999px;
  font-variant-numeric: tabular-nums; direction: ltr;
}
.ring__caption-text { display: grid; gap: 4px; justify-items: center; }
@media (prefers-reduced-motion: reduce) { .ring__card { transition: none; } }


/* --------------------------------------------------------------- gallery CTA + gallery page */
.section--tight { padding-block: 8px; }
.gallery-cta {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 22px 20px; text-decoration: none; color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift), inset 0 1px 0 var(--glass-edge); }
.gallery-cta__icon {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #38BDF8, var(--accent-2)); box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}
.gallery-cta__icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-cta__text { display: grid; gap: 2px; justify-items: center; }
.gallery-cta__text strong { font-size: 1.2rem; font-weight: 800; }
.gallery-cta__text span { color: var(--ink-3); font-size: 0.95rem; }
.gallery-cta__arrow {
  font-size: 1rem; font-weight: 800; color: #fff; background: var(--accent-ink);
  padding: 6px 18px; border-radius: 999px;
}
.gallery-cta__arrow::before { content: "לגלריה "; }

.section--page-head { padding-block: 24px 0; }
.section--page-head .container { text-align: center; }
.back-link { display: inline-block; font-weight: 700; text-decoration: none; margin-bottom: 10px; }
.page-title { font-size: clamp(1.9rem, 6vw, 3rem); margin-bottom: 6px; }
.page-jump { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.page-jump .chip { text-decoration: none; display: inline-flex; align-items: center; }
.ring-empty { padding: 20px; text-align: center; margin: 0; }
.ring__media > video { background: #0F172A; }

/* --------------------------------------------------------------- areas */
.areas { padding: 28px 20px; display: grid; gap: 20px; justify-items: center; text-align: center; }
@media (min-width: 900px) { .areas { padding: 40px; } }
.areas p { max-width: 62ch; margin-inline: auto; }
.area-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; max-width: 720px; }
.area-list li {
  font-weight: 700; color: var(--accent-ink);
  background: rgba(2, 132, 199, 0.09); border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 6px 14px; border-radius: 999px;
}

/* --------------------------------------------------------------- faq */
.faq { display: grid; gap: 10px; }
.faq details { padding: 0; border-radius: var(--radius-sm); }
.faq summary {
  position: relative; cursor: pointer; list-style: none; padding: 16px 52px; min-height: 56px;
  font-weight: 700; color: var(--ink); display: flex; justify-content: center; align-items: center; text-align: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 18px; top: 50%; translate: 0 -50%; font-size: 1.4rem; color: var(--accent-ink); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 18px; margin: 0; text-align: center; }

/* --------------------------------------------------------------- footer */
.site-footer { padding-block: 24px 8px; }
.site-footer__inner { padding: 24px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.site-footer__inner p { margin: 0; }

/* --------------------------------------------------------------- floating CTA bar */
.cta-bar {
  position: fixed; z-index: 50;
  inset-inline: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + var(--safe-b));
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 -8px 32px rgba(31, 38, 135, 0.1);
}
.cta-bar__btn { min-height: 56px; border-radius: 16px; font-size: 1.1rem; }
@media (min-width: 900px) {
  .cta-bar {
    inset-inline: auto; left: 50%; bottom: 20px; transform: translateX(-50%);
    width: min(520px, calc(100% - 48px));
    padding: 8px; border-radius: 999px;
    border: 1px solid var(--glass-border);
  }
  .cta-bar__btn { border-radius: 999px; }
}

/* --------------------------------------------------------------- 3D mascot overlay */
/* Layer order (bottom → top): page 0–30 · CTA bar 50 · mascot canvas 60 · hit-box 61 · bubble 62.
   The mascot renders ABOVE the bar so it never clips behind buttons or labels, while the canvas
   itself is click-through: taps on the buttons underneath always land. */
#mascot-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 60;
  pointer-events: none;
  opacity: 0; transition: opacity 0.6s ease;
}
#mascot-canvas.is-ready { opacity: 1; }

.mascot-hit:active { cursor: grabbing; }
.mascot-hit {
  position: fixed; left: 0; top: 0; z-index: 61;
  width: 0; height: 0; padding: 0; margin: 0; border: 0;
  background: transparent; cursor: grab;
  pointer-events: auto; touch-action: none; /* horizontal drag rotates the mascot instead of scrolling */
  -webkit-tap-highlight-color: transparent;
}

.mascot-bubble {
  --bubble-accent: var(--accent);
  position: fixed; left: 0; top: 0; z-index: 62;
  text-decoration: none; cursor: pointer;
  max-width: min(250px, 72vw);
  padding: 12px 16px;
  font-weight: 800; font-size: 1rem; line-height: 1.35; color: var(--ink); text-align: center;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow: var(--shadow-lift), inset 0 1px 0 var(--glass-edge);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.35s ease;
}
.mascot-bubble::after {
  content: ""; position: absolute; bottom: -9px; left: var(--tail, 50%);
  width: 18px; height: 18px; transform: translateX(-50%) rotate(45deg);
  background: inherit; border-right: inherit; border-bottom: inherit;
  border-radius: 0 0 4px 0;
}
.mascot-bubble.is-visible { opacity: 1; pointer-events: auto; }
.mascot-bubble::before {           /* accent stripe tells WhatsApp / call / FAQ apart at a glance */
  content: ""; position: absolute; inset-inline: 14px; top: 0; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--bubble-accent);
}
.mascot-bubble--wa { --bubble-accent: var(--wa); }
.mascot-bubble--call { --bubble-accent: var(--call-hover); }
.mascot-bubble--hint, .mascot-bubble--faq { --bubble-accent: var(--accent); }
.no-mascot #mascot-canvas, .no-mascot .mascot-bubble, .no-mascot .mascot-hit { display: none; }

@media print {
  .cta-bar, #mascot-canvas, .mascot-bubble, .mascot-hit, .site-header { display: none !important; }
  body { padding: 0; background: #fff; }
  .glass { box-shadow: none; border: 1px solid #ccc; background: #fff; }
}

/* --------------------------------------------------------------- Firestore media (async) */
.ring__media img.is-loading, .ba__img.is-loading { opacity: 0; }
.ring__media img, .ba__img { transition: opacity 0.35s ease; }
.ring__video { position: absolute; inset: 0; background: #0F172A; }
.ring__video > img, .ring__video > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ring__video > video { object-fit: contain; }
.ring__play {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); color: var(--accent-ink);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  transition: transform 0.15s ease;
}
.ring__play:active { transform: scale(0.94); }
.ring__play svg { width: 30px; height: 30px; fill: currentColor; margin-inline-start: 4px; }
.ring__video.is-busy .ring__play { animation: ring-pulse 0.9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes ring-pulse { to { transform: scale(0.86); opacity: 0.7; } }
.ring__card:not(.is-active) .ring__play { pointer-events: none; }
