/* ---------------------------------------------------------------
   PTB MED — motion layer (from homepage prototype v5, 29.10.2026)
   Hand-authored. Do NOT run through build-scoped-css.php.
   Enqueued last (after ptb-med-templates). Every rule starts with
   body.ptb-med.ptb-med = the design layer's (0,3,x) level.

   Switched on per element by hook classes (Elementor → Advanced →
   CSS Classes). Full list: the "PTB MED — Motion system: WordPress
   rollout" doc. Motion runs only under html.lv-motion, which the
   head flag adds unless reduced motion / Elementor preview.

   No blur in motion. Reading text never animates.
   --------------------------------------------------------------- */

:root {
  --lv-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lv-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --lv-reveal: 1000ms;
  --lv-hover: 420ms;
  --lv-spot-color: rgba(42, 156, 220, 0.09);
}

@property --lv-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes lv-fade-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes lv-settle {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: none; }
}

/* ============ 0. Calmer interaction timing (global) ============ */

body.ptb-med.ptb-med :is(.path-card, .specialty-cell, .roster-card, .article-card, .trust-strip, .filter-chip, .secondary-action, .lv-spot) {
  transition-duration: var(--lv-hover);
}

body.ptb-med.ptb-med :is(.path-link .material-symbols-rounded, .specialty-arrow, .roster-link i, .article-card i, .text-link .material-symbols-rounded, .elementor-button-icon) {
  transition: transform var(--lv-hover) var(--lv-ease), color var(--lv-hover) ease;
}

/* ============ 1. Header — lv-header ============ */

body.ptb-med.ptb-med .lv-header {
  transition: box-shadow 600ms ease, background-color 600ms ease, min-height 600ms var(--lv-ease);
}

body.ptb-med.ptb-med .lv-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 34px rgba(10, 11, 27, 0.06);
}

@media (min-width: 861px) {
  body.ptb-med.ptb-med .lv-header.is-scrolled { --min-height: 70px; }
  body.ptb-med.ptb-med .lv-header .header-inner { transition: min-height 600ms var(--lv-ease); }
  body.ptb-med.ptb-med .lv-header.is-scrolled .header-inner { min-height: 70px; }
}

/* ============ 2. Hero — lv-hero (canvas) + lv-sequence (order) ============ */

body.ptb-med.ptb-med .lv-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.ptb-med.ptb-med .lv-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(21, 124, 173, 0.26) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(60% 75% at 22% 18%, #000 0%, transparent 72%);
  mask-image: radial-gradient(60% 75% at 22% 18%, #000 0%, transparent 72%);
  opacity: 0.6;
  content: "";
  pointer-events: none;
}

body.ptb-med.ptb-med .lv-hero-glow {
  position: absolute;
  z-index: -1;
  top: 4%;
  right: 2%;
  width: min(620px, 50vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 156, 220, 0.2) 0%, rgba(42, 156, 220, 0) 68%);
  filter: blur(12px); /* static, never animated */
  pointer-events: none;
}

html.lv-motion body.ptb-med.ptb-med .lv-hero.lv-inview .lv-hero-glow {
  animation: lv-drift 24s ease-in-out infinite alternate;
}

@keyframes lv-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-7%, 9%, 0) scale(1.1); }
}

/* lv-sequence: its direct children play in order, 140 ms apart.
   Works for Elementor boxed (.e-con-inner) and full-width containers. */
html.lv-motion body.ptb-med.ptb-med :is(.lv-sequence > .e-con-inner, .lv-sequence:not(:has(> .e-con-inner))) > :not(.lv-words) {
  animation: lv-fade-in 1100ms var(--lv-ease) both;
  animation-delay: 100ms;
}

html.lv-motion body.ptb-med.ptb-med :is(.lv-sequence > .e-con-inner, .lv-sequence:not(:has(> .e-con-inner))) > :nth-child(2) { animation-delay: 240ms; }
html.lv-motion body.ptb-med.ptb-med :is(.lv-sequence > .e-con-inner, .lv-sequence:not(:has(> .e-con-inner))) > :nth-child(3) { animation-delay: 780ms; }
html.lv-motion body.ptb-med.ptb-med :is(.lv-sequence > .e-con-inner, .lv-sequence:not(:has(> .e-con-inner))) > :nth-child(4) { animation-delay: 920ms; }
html.lv-motion body.ptb-med.ptb-med :is(.lv-sequence > .e-con-inner, .lv-sequence:not(:has(> .e-con-inner))) > :nth-child(5) { animation-delay: 1060ms; }
html.lv-motion body.ptb-med.ptb-med :is(.lv-sequence > .e-con-inner, .lv-sequence:not(:has(> .e-con-inner))) > :nth-child(6) { animation-delay: 1200ms; }
html.lv-motion body.ptb-med.ptb-med :is(.lv-sequence > .e-con-inner, .lv-sequence:not(:has(> .e-con-inner))) > :nth-child(n + 7) { animation-delay: 1340ms; }

/* lv-words: headline word by word. Hidden until the script splits it;
   if the script never runs it fades in whole after 2.5 s (failsafe). */
html.lv-motion body.ptb-med.ptb-med .lv-words:not(.lv-split) {
  animation: lv-fade-in 900ms var(--lv-ease) 2500ms both;
}

body.ptb-med.ptb-med .lv-word {
  display: inline-block;
}

/* lv-words on an image-box hero (title + lead in one widget, the PTB
   convention): only the title is split; the lead fades in at its own slot. */
html.lv-motion body.ptb-med.ptb-med .elementor-widget-image-box.lv-words .elementor-image-box-description {
  animation: lv-fade-in 1100ms var(--lv-ease) 780ms both;
}

html.lv-motion body.ptb-med.ptb-med .lv-word {
  animation: lv-fade-in 1100ms var(--lv-ease) both;
  animation-delay: calc(var(--lv-w, 0) * 140ms + 260ms);
}

/* hero photo settles; floats arrive after the copy and stay still */
html.lv-motion body.ptb-med.ptb-med .lv-hero .lv-photo img {
  animation: lv-settle 1600ms var(--lv-ease) 250ms both;
}

html.lv-motion body.ptb-med.ptb-med .lv-float {
  animation: lv-fade-in 1100ms var(--lv-ease) 1300ms both;
}

html.lv-motion body.ptb-med.ptb-med .lv-float ~ .lv-float {
  animation-delay: 1500ms;
}

/* ============ 3. Pill, floats, avatars (static look) ============ */

body.ptb-med.ptb-med .lv-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

/* the status inside the pill: light glass, hairline edge, no fill colour */
body.ptb-med.ptb-med .lv-pill .lv-status-badge {
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(21, 124, 173, 0.08);
  padding: 4px 12px 4px 10px;
  color: var(--grey, #4b4c52);
  font-weight: 500;
}

body.ptb-med.ptb-med .lv-pill .lv-status-badge.is-open {
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink-soft, #2c2d38);
}

body.ptb-med.ptb-med .lv-pill .lv-status-badge i {
  width: 7px;
  height: 7px;
}

body.ptb-med.ptb-med .lv-float {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 18px 44px rgba(10, 11, 27, 0.13);
}

body.ptb-med.ptb-med .lv-avatars {
  display: flex;
}

body.ptb-med.ptb-med .lv-avatars :is(img, .lv-avatar-more) {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  margin-left: -12px;
  object-fit: cover;
}

body.ptb-med.ptb-med .lv-avatars :is(img, .lv-avatar-more):first-child,
body.ptb-med.ptb-med .lv-avatars > .elementor-element:first-child img {
  margin-left: 0;
}

/* ============ 4. Open status — lv-status ============ */

body.ptb-med.ptb-med .lv-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--paper, #f2f6f8);
  padding: 4px 12px 4px 10px;
  color: var(--grey, #4b4c52);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

body.ptb-med.ptb-med .lv-status-badge.is-open {
  background: var(--green-wash, #f2f8e8);
  color: var(--green-ink, #4a7a0d);
}

body.ptb-med.ptb-med .lv-status-badge i {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9a9ba3;
}

body.ptb-med.ptb-med .lv-status-badge.is-open i,
body.ptb-med.ptb-med .lv-status-badge.is-open i::after {
  background: var(--green, #8cc63f);
}

body.ptb-med.ptb-med .lv-status-badge.is-open i::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  content: "";
}

html.lv-motion body.ptb-med.ptb-med .lv-status-badge.is-open i::after {
  animation: lv-ping 2.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes lv-ping {
  75%, 100% { opacity: 0; transform: scale(2.6); }
}

body.ptb-med.ptb-med .lv-status:empty,
body.ptb-med.ptb-med .lv-status .elementor-heading-title:empty {
  display: none;
}

/* ============ 5. Marquee — lv-marquee ============ */

body.ptb-med.ptb-med .lv-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

body.ptb-med.ptb-med .lv-marquee-track {
  display: flex;
  width: max-content;
}

body.ptb-med.ptb-med .lv-marquee-track > * {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  width: max-content;
  margin: 0;
  padding: 0 12px 0 0;
  list-style: none;
}

body.ptb-med.ptb-med .lv-marquee-track .jet-listing-grid__item {
  flex: none;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}

html.lv-motion body.ptb-med.ptb-med .lv-marquee-track {
  animation: lv-marquee 80s linear infinite;
}

/* 02.11: the band keeps moving under the pointer (Strahil); it only rests off screen */
html.lv-motion body.ptb-med.ptb-med .lv-marquee:not(.lv-inview) .lv-marquee-track {
  animation-play-state: paused;
}

@keyframes lv-marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

/* no motion: one static, wrapped row */
html:not(.lv-motion) body.ptb-med.ptb-med .lv-marquee {
  -webkit-mask-image: none;
  mask-image: none;
}

html:not(.lv-motion) body.ptb-med.ptb-med .lv-marquee-track {
  width: auto;
  justify-content: center;
}

html:not(.lv-motion) body.ptb-med.ptb-med .lv-marquee-track > * {
  flex-wrap: wrap !important;
  justify-content: center;
  width: auto;
}

html:not(.lv-motion) body.ptb-med.ptb-med .lv-marquee-track > [aria-hidden="true"] {
  display: none !important;
}

/* ============ 6. Reveals — lv-reveal, lv-stagger, lv-photo ============ */

html.lv-motion body.ptb-med.ptb-med.lv-reveal-ready [data-lv] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity var(--lv-reveal) var(--lv-ease) var(--lv-delay, 0ms),
    transform var(--lv-reveal) var(--lv-ease) var(--lv-delay, 0ms);
}

html.lv-motion body.ptb-med.ptb-med.lv-reveal-ready [data-lv].lv-in {
  opacity: 1;
  transform: none;
}

html.lv-motion body.ptb-med.ptb-med.lv-reveal-ready [data-lv].lv-photo img,
html.lv-motion body.ptb-med.ptb-med.lv-reveal-ready [data-lv] .lv-photo img {
  transform: scale(1.02);
  transition: transform 1600ms var(--lv-ease) var(--lv-delay, 0ms);
}

html.lv-motion body.ptb-med.ptb-med.lv-reveal-ready .lv-in:is(.lv-photo, :has(.lv-photo)) img {
  transform: none;
}

/* items re-rendered by JetSmartFilters / load more */
html.lv-motion body.ptb-med.ptb-med .lv-enter {
  animation: lv-fade-in 800ms var(--lv-ease) both;
  animation-delay: var(--lv-delay, 0ms);
}

/* ============ 7. Count-up — lv-count ============ */

body.ptb-med.ptb-med .lv-num {
  display: inline-block;
  color: inherit;
  font: inherit;
  text-align: left;
}

body.ptb-med.ptb-med .lv-sr {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============ 8. Cursor spotlight — lv-spot ============ */

@media (hover: hover) and (pointer: fine) {
  body.ptb-med.ptb-med .lv-spot-card {
    position: relative;
    isolation: isolate;
  }

  body.ptb-med.ptb-med .lv-spot-card::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(300px circle at var(--lv-x, 50%) var(--lv-y, 50%), var(--lv-spot-color), transparent 70%);
    opacity: 0;
    transition: opacity 700ms ease;
    content: "";
    pointer-events: none;
  }

  body.ptb-med.ptb-med .lv-spot-card:hover::after {
    opacity: 1;
  }

  /* cards on dark or saturated fills */
  body.ptb-med.ptb-med :is(.path-card-primary, .equip-card, .lv-spot-light).lv-spot-card {
    --lv-spot-color: rgba(255, 255, 255, 0.12);
  }
}

/* ============ 9. Decorations injected by the script ============ */
/* Hosts get position/isolation so the injected layer sits behind content. */

body.ptb-med.ptb-med :is(.lv-glow, .lv-floor, .lv-beam, .lv-ripples) {
  position: relative;
  isolation: isolate;
}

body.ptb-med.ptb-med :is(.lv-glow, .lv-floor, .lv-ripples) {
  overflow: hidden;
}

/* lv-glow — breathing light on a saturated card */
body.ptb-med.ptb-med .lv-glow-orb {
  position: absolute;
  z-index: -1;
  top: -40%;
  right: -30%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 65%);
  pointer-events: none;
}

html.lv-motion body.ptb-med.ptb-med .lv-glow.lv-inview .lv-glow-orb {
  animation: lv-drift 16s ease-in-out infinite alternate;
}

/* lv-floor — perspective grid floor on a blue-ink band */
body.ptb-med.ptb-med .lv-floor-grid {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 55%;
  overflow: hidden;
  perspective: 420px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 90%);
  mask-image: linear-gradient(to top, #000 0%, transparent 90%);
  pointer-events: none;
}

body.ptb-med.ptb-med .lv-floor-grid > span {
  position: absolute;
  right: -50%;
  bottom: 0;
  left: -50%;
  height: 200%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.09) 1px, transparent 0),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1px, transparent 0);
  background-size: 72px 72px;
  transform: rotateX(70deg);
  transform-origin: center bottom;
}

html.lv-motion body.ptb-med.ptb-med .lv-floor.lv-inview .lv-floor-grid > span {
  animation: lv-grid 10s linear infinite;
}

@keyframes lv-grid {
  to { background-position: 0 72px; }
}

/* lv-ecg — ECG line drawn once, then a slow pulse */
body.ptb-med.ptb-med .lv-ecg-svg {
  display: block;
  width: 100%;
  height: 72px;
  overflow: visible;
}

body.ptb-med.ptb-med .lv-ecg-svg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.ptb-med.ptb-med .lv-ecg-base {
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

body.ptb-med.ptb-med .lv-ecg-pulse {
  stroke: #fff;
  stroke-width: 2.5;
  stroke-dasharray: 0.07 0.93;
  stroke-dashoffset: 1;
  opacity: 0;
}

html.lv-motion body.ptb-med.ptb-med .lv-ecg .lv-ecg-base {
  transition: stroke-dashoffset 3000ms var(--lv-ease-io);
}

html.lv-motion body.ptb-med.ptb-med .lv-ecg:not(.lv-drawn) .lv-ecg-base {
  stroke-dashoffset: 1;
}

html.lv-motion body.ptb-med.ptb-med .lv-ecg.lv-drawn.lv-inview .lv-ecg-pulse {
  animation: lv-ecg 6.5s linear 3000ms infinite;
}

@keyframes lv-ecg {
  0% { stroke-dashoffset: 1; opacity: 0; }
  6% { opacity: 1; }
  92% { opacity: 1; }
  100% { stroke-dashoffset: -0.07; opacity: 0; }
}

@media (max-width: 860px) {
  body.ptb-med.ptb-med .lv-ecg { display: none !important; }
}

/* lv-beam — slow light orbit on a card border */
body.ptb-med.ptb-med .lv-beam-line {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--lv-angle),
    transparent 0deg 215deg,
    rgba(207, 233, 249, 0.35) 270deg,
    rgba(255, 255, 255, 0.95) 335deg,
    #fff 350deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
}

html.lv-motion body.ptb-med.ptb-med .lv-beam-line {
  opacity: 1;
  animation: lv-beam 14s linear infinite paused;
}

html.lv-motion body.ptb-med.ptb-med .lv-beam.lv-inview .lv-beam-line {
  animation-play-state: running;
}

@keyframes lv-beam {
  to { --lv-angle: 360deg; }
}

/* lv-ring — rating ring + stars (static when motion is off) */
body.ptb-med.ptb-med .lv-ring {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 232px;
  aspect-ratio: 1;
  padding-bottom: 18px;
}

body.ptb-med.ptb-med .lv-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

body.ptb-med.ptb-med .lv-ring-svg circle {
  fill: none;
  stroke-width: 9;
}

body.ptb-med.ptb-med .lv-ring-track { stroke: var(--line, #e3e4e8); }

body.ptb-med.ptb-med .lv-ring-fill {
  stroke: var(--yellow, #fcc900);
  stroke-linecap: round;
  stroke-dasharray: 552.92;
  stroke-dashoffset: var(--lv-ring-offset, 11.06);
}

html.lv-motion body.ptb-med.ptb-med .lv-ring .lv-ring-fill {
  transition: stroke-dashoffset 2600ms var(--lv-ease);
}

html.lv-motion body.ptb-med.ptb-med .lv-ring:not(.lv-drawn) .lv-ring-fill {
  stroke-dashoffset: 552.92;
}

body.ptb-med.ptb-med .lv-ring-stars {
  position: absolute;
  right: 0;
  bottom: 52px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 3px;
  font-size: 15px;
}

body.ptb-med.ptb-med .lv-ring-stars i {
  color: var(--yellow, #fcc900);
  font-style: normal;
  transition: color 600ms ease;
}

html.lv-motion body.ptb-med.ptb-med .lv-ring:not(.lv-drawn) .lv-ring-stars i { color: var(--line, #e3e4e8); }
html.lv-motion body.ptb-med.ptb-med .lv-ring-stars i:nth-child(1) { transition-delay: 900ms; }
html.lv-motion body.ptb-med.ptb-med .lv-ring-stars i:nth-child(2) { transition-delay: 1100ms; }
html.lv-motion body.ptb-med.ptb-med .lv-ring-stars i:nth-child(3) { transition-delay: 1300ms; }
html.lv-motion body.ptb-med.ptb-med .lv-ring-stars i:nth-child(4) { transition-delay: 1500ms; }
html.lv-motion body.ptb-med.ptb-med .lv-ring-stars i:nth-child(5) { transition-delay: 1700ms; }

/* legacy .trust-score inside a ring: number over "от 5" */
body.ptb-med.ptb-med .lv-ring .trust-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
}

body.ptb-med.ptb-med .lv-ring .trust-score strong {
  font-size: 72px;
}

/* lv-ripples — breathing rings behind the CTA actions */
body.ptb-med.ptb-med .lv-ripples-set {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 13%;
  width: 0;
  height: 0;
  pointer-events: none;
}

body.ptb-med.ptb-med .lv-ripples-set span {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(180px + var(--i) * 140px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  transform: translate(-50%, -50%);
}

html.lv-motion body.ptb-med.ptb-med .lv-ripples.lv-inview .lv-ripples-set span {
  animation: lv-ripple 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 350ms);
}

@keyframes lv-ripple {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.75; }
}

@media (max-width: 860px) {
  body.ptb-med.ptb-med .lv-ripples-set { top: auto; right: 50%; bottom: 0; }
}

/* ============ 10. Button sheen — lv-sheen, lv-sheen-once ============ */
/* The sheen uses ::before: the bridge draws the trailing arrow of
   .ptb-button-arrow / .ptb-button-ne buttons with ::after (fixed 02.11.2026). */

body.ptb-med.ptb-med :is(.lv-sheen .elementor-button, .lv-sheen-once .elementor-button, .button) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body.ptb-med.ptb-med :is(.lv-sheen .elementor-button, .lv-sheen-once .elementor-button, .button)::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-120%);
  content: "";
  pointer-events: none;
}

/* white buttons on blue get a blue sheen */
body.ptb-med.ptb-med :is(.lv-sheen-blue .elementor-button, .diagnostics-section .button, .final-cta .button)::before {
  background: linear-gradient(110deg, transparent 30%, rgba(42, 156, 220, 0.2) 50%, transparent 70%);
}

@media (hover: hover) {
  html.lv-motion body.ptb-med.ptb-med :is(.lv-sheen .elementor-button, .lv-sheen-once .elementor-button, .button):hover::before {
    transform: translateX(120%);
    transition: transform 1100ms var(--lv-ease);
  }
}

html.lv-motion body.ptb-med.ptb-med .lv-sheen-once .elementor-button::before {
  animation: lv-sheen 1600ms var(--lv-ease-io) 2200ms both;
}

@keyframes lv-sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

/* ============ 10b. Swipe row — lv-swipe (filter pills, tablet + phone) ============ */

@media (max-width: 860px) {
  body.ptb-med.ptb-med .lv-swipe-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    margin-inline: calc(50% - 50vw);
    padding: 2px calc(50vw - 50%) 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.ptb-med.ptb-med .lv-swipe-row::-webkit-scrollbar { display: none; }

  body.ptb-med.ptb-med .lv-swipe-row > * {
    flex: none;
    margin: 0 !important;
    white-space: nowrap;
  }

  body.ptb-med.ptb-med .lv-swipe-row.is-scrollable:not(.at-start):not(.at-end) {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  }

  body.ptb-med.ptb-med .lv-swipe-row.is-scrollable.at-start:not(.at-end) {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent 100%);
  }

  body.ptb-med.ptb-med .lv-swipe-row.is-scrollable.at-end:not(.at-start) {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px);
    mask-image: linear-gradient(90deg, transparent 0, #000 64px);
  }
}

/* ============ 11. Responsive ============ */

@media (max-width: 620px) {
  body.ptb-med.ptb-med .lv-float { border-radius: 14px; }
  body.ptb-med.ptb-med .lv-avatars :is(img, .lv-avatar-more) { width: 32px; height: 32px; margin-left: -10px; }
  body.ptb-med.ptb-med .lv-ring { width: 208px; }
  body.ptb-med.ptb-med .lv-ring-stars { bottom: 46px; }
}

/* ============ 12. Reduced motion: finished page ============ */

@media (prefers-reduced-motion: reduce) {
  body.ptb-med.ptb-med :is(.lv-sheen .elementor-button, .lv-sheen-once .elementor-button, .button)::before { display: none; }
}

/* ============ 13. Layout tweaks agreed 02.11.2026 ============ */

/* specialty card titles a step larger on desktop */
@media (min-width: 1181px) {
  body.ptb-med.ptb-med .specialty-cell h3,
  body.ptb-med.ptb-med .lv-spec-title .elementor-heading-title {
    font-size: 25px;
  }
}

/* ============ 13. Homepage hero entrance choreography (02.11.2026, v2) ============
   Four beats instead of twelve. Everything readable is in place by ~1.7 s:
     0 ms     header, canvas, glow and photo together
     300      both floating cards + the hours line, together
     350-610  status pill, then the headline (quick word cascade)
     650      intro text + buttons, together
     800      rating + phone line + specialty band, together
     1300     one sheen across the primary button (flourish, after content)
   Rules kept: no blur, fade + small travel only, reduced motion and the
   editor show the finished page (all of this sits behind html.lv-motion). */

@keyframes lv-drop-in {
  from {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lv-appear {
  from { opacity: 0; }
}

/* beat 1: header, canvas, photo side */
html.lv-motion body.ptb-med.ptb-med.home .lv-header .header-inner {
  animation: lv-drop-in 800ms var(--lv-ease) 0ms both;
}

html.lv-motion body.ptb-med.ptb-med.home .lv-hero::after {
  animation: lv-appear 1000ms ease 0ms both;
}

html.lv-motion body.ptb-med.ptb-med.home .lv-hero .lv-hero-glow,
html.lv-motion body.ptb-med.ptb-med.home .lv-hero.lv-inview .lv-hero-glow {
  animation:
    lv-appear 1200ms ease 0ms both,
    lv-drift 24s ease-in-out 1200ms infinite alternate;
}

html.lv-motion body.ptb-med.ptb-med.home .lv-hero .hero-media .lv-photo img {
  animation: lv-settle 1200ms var(--lv-ease) 0ms both;
}

/* beat 2: cards on the photo + hours line */
html.lv-motion body.ptb-med.ptb-med.home .lv-hero .hero-media > .lv-float,
html.lv-motion body.ptb-med.ptb-med.home .lv-hero .hero-figure > .elementor-widget-icon-list {
  animation: lv-fade-in 900ms var(--lv-ease) 300ms both;
}

/* beats 3-4: copy column */
html.lv-motion body.ptb-med.ptb-med.home .lv-hero .hero-copy > *,
html.lv-motion body.ptb-med.ptb-med.home .lv-hero .lv-word,
html.lv-motion body.ptb-med.ptb-med.home .lv-hero .elementor-widget-image-box.lv-words .elementor-image-box-description {
  animation-duration: 900ms;
}

html.lv-motion body.ptb-med.ptb-med.home .lv-hero .hero-copy > :nth-child(1) {
  animation-delay: 350ms;
}

html.lv-motion body.ptb-med.ptb-med.home .lv-hero .lv-word {
  animation-delay: calc(var(--lv-w, 0) * 70ms + 400ms);
}

html.lv-motion body.ptb-med.ptb-med.home .lv-hero .elementor-widget-image-box.lv-words .elementor-image-box-description,
html.lv-motion body.ptb-med.ptb-med.home .lv-hero .hero-copy > :nth-child(3) {
  animation-delay: 650ms;
}

html.lv-motion body.ptb-med.ptb-med.home .lv-hero .hero-copy > :nth-child(n + 4) {
  animation-delay: 800ms;
}

html.lv-motion body.ptb-med.ptb-med.home .lv-hero > .lv-marquee {
  animation: lv-fade-in 900ms var(--lv-ease) 800ms both;
}

/* flourish */
html.lv-motion body.ptb-med.ptb-med.home .lv-hero .lv-sheen-once .elementor-button::before {
  animation: lv-sheen 1400ms var(--lv-ease-io) 1300ms both;
}

/* Tablet and phone: the photo stacks UNDER the copy, so the copy leads and
   the photo follows; same four beats. */
@media (max-width: 860px) {
  html.lv-motion body.ptb-med.ptb-med.home .lv-hero .hero-copy > :nth-child(1) { animation-delay: 100ms; }
  html.lv-motion body.ptb-med.ptb-med.home .lv-hero .lv-word { animation-delay: calc(var(--lv-w, 0) * 70ms + 150ms); }
  html.lv-motion body.ptb-med.ptb-med.home .lv-hero .elementor-widget-image-box.lv-words .elementor-image-box-description,
  html.lv-motion body.ptb-med.ptb-med.home .lv-hero .hero-copy > :nth-child(3) { animation-delay: 400ms; }
  html.lv-motion body.ptb-med.ptb-med.home .lv-hero .hero-copy > :nth-child(n + 4) { animation-delay: 550ms; }
  html.lv-motion body.ptb-med.ptb-med.home .lv-hero .hero-media .lv-photo img { animation-delay: 500ms; }
  html.lv-motion body.ptb-med.ptb-med.home .lv-hero .hero-media > .lv-float,
  html.lv-motion body.ptb-med.ptb-med.home .lv-hero .hero-figure > .elementor-widget-icon-list,
  html.lv-motion body.ptb-med.ptb-med.home .lv-hero > .lv-marquee { animation-delay: 750ms; }
  html.lv-motion body.ptb-med.ptb-med.home .lv-hero .lv-sheen-once .elementor-button::before { animation-delay: 1000ms; }
}
