/* Inquiry fields must be available before Elementor and when JavaScript is off. */
.pwd-fx-inquiry-form.elementor-widget {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}
/* Stop the previous opacity/transform transitions when a legacy target is adopted or exposed. */
html[data-pwd-project-motion] .pwd-v3 .pwd-reveal[data-pwd-motion-legacy] {
  transition-property: color, background-color, border-color, box-shadow !important;
  transition-delay: 0s !important;
}
html[data-pwd-project-motion] [data-pwd-motion-static]:is(.elementor-invisible, .animated, .pwd-fx-inquiry-form),
html[data-pwd-project-motion] [data-pwd-motion-static] :is(.elementor-invisible, .animated) {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}
/* Fexora animates the split characters with inline GSAP styles. Honor either visitor preference. */
html[data-pwd-project-motion].pwd-a11y-reduce-motion .pwd-v3 .pwd-reveal,
html[data-pwd-project-motion].pwd-a11y-reduce-motion .at-animation-heading-style-3 .split-line,
html[data-pwd-project-motion].pwd-a11y-reduce-motion .at-animation-heading-style-3 .split-line * {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html[data-pwd-project-motion] .pwd-v3 .pwd-reveal,
  html[data-pwd-project-motion] .at-animation-heading-style-3 .split-line,
  html[data-pwd-project-motion] .at-animation-heading-style-3 .split-line * {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
  }
}

html[data-pwd-motion-version="3"] .pwdm-text-part,
html[data-pwd-motion-version="3"] .pwdm-word {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  vertical-align: baseline !important;
}
html[data-pwd-motion-version="3"] .pwdm-text-part { display: inline !important; }
html[data-pwd-motion-version="3"] .pwdm-word { display: inline-block !important; }

/* Elementor otherwise reapplies fadeInUp after the section becomes visible. */
html[data-pwd-project-motion] .elementor-widget[data-pwd-native-entrance] {
  animation: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* The first paint is readable even when Elementor or the motion bundle arrives late. */
:is(.pwd-home-v6, .pwd-fx-contact-page) .elementor-widget.elementor-invisible[data-settings*="fadeInUp"],
html.pwd-motion-ready .pwd-v3 .pwd-reveal:not(.pwd-in-view),
.pwd-motion-ready .pwd-v3 .pwd-reveal:not(.pwd-in-view) {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

html[data-pwd-motion-version="3"] .pwd-home-hero-heading h1 > span {
  display: inline-block;
}
html[data-pwd-motion-version="3"] .pwd-home-v6 #pricing-preview {
  position: relative;
}
html[data-pwd-motion-version="3"] .pwd-home-pricing-rule {
  position: absolute;
  left: clamp(22px, 4.65vw, 90px);
  top: -1px;
  width: clamp(70px, 12vw, 170px);
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #cff85e, #78954a);
  transform-origin: left center;
  pointer-events: none;
}
/* The page's own desktop hover scales the Flex frame, even with JS motion disabled.
   Keep every part of these transparent desktop/phone composites inside its layout. */
html:root #recent-project a.pwd-browser-window,
html:root #recent-project .pwd-browser-screen,
html:root .pwd-home-v6 .pwd-project-gallery .pwd-project-card,
html:root .pwd-home-v6 .pwd-browser-capture,
html:root .pwd-home-v6 .pwd-browser-capture :is(.elementor-widget-container, a, picture, img) {
  transform: none !important;
  scale: none !important;
  translate: none !important;
  clip-path: none !important;
  mask-image: none !important;
  overflow: visible !important;
}
html:root .pwd-home-v6 .pwd-browser-capture img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1600 / 1088 !important;
  contain: none !important;
  contain-intrinsic-size: none !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}
html[data-pwd-motion-version="3"] .pwd-step-num { position: relative; }
html[data-pwd-motion-version="3"] .pwd-home-step-rule {
  position: absolute;
  left: calc(100% + 9px);
  top: calc(50% - 1px);
  width: clamp(26px, 4.5vw, 68px);
  height: 2px;
  background: linear-gradient(90deg, #cff85e, #839654);
  transform-origin: left center;
  pointer-events: none;
}
@media (max-width: 767px) {
  html[data-pwd-motion-version="3"] .pwd-home-step-rule {
    top: calc(100% + 4px);
    rotate: 90deg;
    width: 13px;
    height: 2px;
    left: 50%;
    background: #a7bc75;
    transform-origin: left center;
  }
}

/* The phone in these composite images reaches the canvas edges. A zoom or moving mask
   cuts off the actual device. Apply to standalone previews as well as the gallery grid. */
html:root :is(.pwpg-card, .pwpg-visual, .pwpg-image-area, .pwpg-image-area img,
  .pwd-feature-preview .pwd-browser-frame, .pwd-feature-preview .pwd-project-preview img,
  .pwd-feature-preview .pwd-card-media img, .pwd-collection-projects .pwd-project-card,
  .pwd-collection-projects .pwd-card-media img, .pwd-project-main-image, .pwd-project-main-image img) {
  transform: none !important;
  translate: none !important;
  scale: none !important;
  transform-origin: center !important;
  clip-path: none !important;
  mask-image: none !important;
}
html:root :is(.pwpg-visual, .pwpg-image-area,
  .pwd-feature-preview .pwd-browser-frame, .pwd-collection-projects .pwd-card-media) {
  overflow: visible !important;
}
/* The numerical ratio also reserves the image box before a lazy srcset loads.
   Chromium uses a 3000 × 1500 intrinsic placeholder for automatic sizes. */
html:root .pwpg-paired > .pwpg-image-area {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 1088;
}
html:root .pwpg-paired > .pwpg-image-area > img.pwpg-composite {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  aspect-ratio: 1600 / 1088 !important;
  contain-intrinsic-size: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}
html:root :is(.pwpg-desktop, .pwpg-phone img, .pwd-project-main-image img,
  .pwd-feature-preview .pwd-card-media img, .pwd-feature-preview .pwd-project-preview img,
  .pwd-collection-projects .pwd-card-media img) { object-fit: contain !important; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html[data-pwd-motion-version="3"]:not(.pwd-a11y-reduce-motion) .pwpg :is(.pwpg-details, .pwpg-visit) > span {
    display: inline-block;
    transition: translate .26s ease-out;
  }
  html[data-pwd-motion-version="3"]:not(.pwd-a11y-reduce-motion) .pwpg .pwpg-details:is(:hover,:focus-visible) > span { translate: 3px 0; }
  html[data-pwd-motion-version="3"]:not(.pwd-a11y-reduce-motion) .pwpg .pwpg-visit:is(:hover,:focus-visible) > span { translate: 2px -2px; }
}

html[data-pwd-motion-version="3"] .pwd-feature-row { position: relative; }
html[data-pwd-motion-version="3"] .pwd-feature-divider-accent {
  position: absolute;
  inset: 0 auto auto 0;
  width: clamp(34px, 4vw, 64px);
  height: 2px;
  background: #bada75;
  transform-origin: left center;
  pointer-events: none;
}

html[data-pwd-motion-version="3"] .pwd-pricing-phrase {
  display:inline-block;
  max-width:100%;
  vertical-align:baseline;
}
html[data-pwd-motion-version="3"] .pwd-pricing-v5.pwd-price-enhanced .pwd-price-panel:not([hidden]) {
  animation:none;
}

/* Reserve the source canvas before WordPress lazy loading or motion initialization. */
:is(.pds-page .ps-browser img, .pds-page .ps-feature-photo img, .pwd-evidence-section .pwd-feature-image img) {
  height: auto;
  aspect-ratio: var(--pwd-decoded-ratio, var(--pwd-source-ratio, var(--pwd-markup-ratio, auto))) !important;
  contain-intrinsic-size: none;
}
.pds-page .ps-browser img[src*="/flex-realty-az-homepage-preview"] {
  --pwd-source-ratio: 1330 / 748;
}
.pds-page .ps-browser img:is([src*="/doggedly-devoted-homepage"], [src*="/robert-welch-university-homepage"]),
.pds-page .ps-feature-photo img[src*="/feasterville-dentistry-homepage"] {
  --pwd-source-ratio: 1080 / 607;
}
.pwd-evidence-section .pwd-feature-image img:is([src*="/flex-realty.jpg"], [src*="/jims-auto-clinic.jpg"]) {
  --pwd-source-ratio: 1170 / 800;
}

html[data-pwd-motion-version="3"] .pds-page .ps-step {
  position: relative;
}
html[data-pwd-motion-version="3"] .pwd-motion-process-ink {
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(36px, 5vw, 70px);
  height: 2px;
  background: linear-gradient(90deg, #cff85e, #a7c65c 65%, transparent);
  transform-origin: left center;
  opacity: .65;
  pointer-events: none;
}
html[data-pwd-motion-version="3"] :is(.pds-page .ps-progress i, .pds-page .ps-type-line) {
  transform-origin: left center;
}
/* The screenshots retain their complete source proportions through hover and focus. */
html[data-pwd-motion-version="3"] :is(.pds-page .ps-browser, .pds-page .ps-feature-photo,
  .pwd-evidence-section .pwd-project-feature-media, .pwd-evidence-section .pwd-feature-image,
  .pwd-evidence-section .pwd-feature-image a) {
  overflow: visible;
}
html[data-pwd-motion-version="3"] .pwd-v3 .pwd-evidence-section .pwd-project-feature-media {
  padding: 0 !important;
  border: 0;
  background: transparent;
}
html[data-pwd-motion-version="3"] :is(.pds-page .ps-browser img, .pds-page .ps-feature-photo img,
  .pwd-evidence-section .pwd-feature-image img) {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
}
html[data-pwd-motion-version="3"] :is(.pds-page .ps-browser, .pds-page .ps-feature-photo,
  .pwd-evidence-section .pwd-project-feature-media, .pwd-evidence-section .pwd-feature-image,
  .pwd-evidence-section .pwd-feature-image a, .pds-page .ps-browser img,
  .pds-page .ps-feature-photo img, .pwd-evidence-section .pwd-feature-image img) {
  scale: none !important;
  transform: none !important;
  translate: none !important;
  rotate: none !important;
  clip-path: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
html[data-pwd-motion-version="3"] .pwd-google-badge .pwd-stars {
  display: inline-block;
}
/* The process title holds its column as the individual numbered steps pass. */
@media (min-width: 1025px) and (min-height: 650px) and (prefers-reduced-motion: no-preference) {
  html[data-pwd-motion-version="3"]:not(.pwd-a11y-reduce-motion) .pds-page .ps-process-title {
    position: sticky;
    top: max(90px, 10vh);
    align-self: start;
  }
}

.pwd-motion-v3 .pwd-home-hero-heading h1 > span { display:inline-block; }
.pwd-motion-v3 .pwd-rule-host { position:relative; }
.pwd-motion-v3 .pwd-motion-stroke {
    position:absolute; inset:auto auto 0 0; display:block; width:min(2.75rem,24%); height:2px;
    border-radius:1px; background:linear-gradient(90deg,#c9ef64,#84973e);
    transform-origin:left; pointer-events:none;
}
.pwd-motion-v3 [data-pwd-scene="step"] > .pwd-motion-stroke { width:min(2.15rem,30%); }
.pwd-motion-v3 .pwd-step-num > .pwd-motion-stroke { left:calc(100% + 9px); bottom:50%; width:clamp(24px,4vw,65px); }
.pwd-motion-v3 [data-pwd-scene="card"] > .pwd-motion-stroke { inset:0 auto auto 12px; width:clamp(28px,12%,72px); }
.pwd-motion-v3 .fx-case :is(.fx-device,.fx-feature-grid,.fx-discovery) { animation:none!important; translate:none!important; transform:none!important; }
@media (prefers-reduced-motion: no-preference) {
    .pwd-motion-v3:not(.pwd-a11y-reduce-motion) :is(.pwd-motion-control,summary) { transition:color .17s ease,border-color .17s ease; }
    .pwd-motion-v3:not(.pwd-a11y-reduce-motion) .pwd-motion-control:not(.elementor-button):is(:hover,:focus-visible) { text-decoration:underline; text-underline-offset:.18em; }
}
@media (prefers-reduced-motion: reduce) {
    .pwd-motion-v3 :is([data-dm-reveal],.fx-case [class*="fx-"]) { animation:none!important;transition:none!important; }
}
.pwd-motion-v3.pwd-a11y-reduce-motion :is([data-dm-reveal],.fx-case [class*="fx-"]) { animation:none!important;transition:none!important; }
.pwd-motion-v3.pwd-a11y-reduce-motion [data-dm-reveal] { opacity:1!important;transform:none!important; }
.pwd-motion-v3 :is(.pwd-portfolio-hero,.fx-case .fx-hero) h1 span[data-pwd-scene="title"] { display:inline-block; max-inline-size:100%; }

/* The service switchers already implement radio and keyboard selection. Each native
   display:none-to-visible transition starts the animation on the incoming contents.
   All motion is confined to the contents, away from frames and input targets. */
@media (prefers-reduced-motion: no-preference) {
    html.pwd-motion-v3:not(.pwd-a11y-reduce-motion) .ps-showcase .ps-view .ps-case-caption {
        animation: pwd-editorial-caption 260ms cubic-bezier(.2,.68,.24,1);
    }
    html.pwd-motion-v3:not(.pwd-a11y-reduce-motion) .ps-showcase .ps-view .ps-browser img {
        animation: pwd-editorial-image 180ms ease-out;
    }
    html.pwd-motion-v3:not(.pwd-a11y-reduce-motion) .ps-search-stage .ps-result {
        animation: pwd-editorial-result 300ms cubic-bezier(.2,.68,.24,1);
    }
    html.pwd-motion-v3:not(.pwd-a11y-reduce-motion) .ps-mobile-stage .ps-phone-inside {
        animation: pwd-editorial-booking 260ms cubic-bezier(.2,.68,.24,1);
    }
    html.pwd-motion-v3 .ps-mobile-stage[data-pwd-booking-direction="back"] {
        --pwd-booking-offset: -8px;
    }
    html.pwd-motion-v3:not(.pwd-a11y-reduce-motion) .ps-mobile-stage .ps-progress i {
        transform-origin: left center;
        animation: pwd-editorial-progress 280ms ease-out;
    }
    html.pwd-motion-v3:not(.pwd-a11y-reduce-motion) body[data-pwd-editorial] :is(.ps-faq-item[open] .ps-answer, .pwd-gcard details[open] blockquote) {
        animation: pwd-editorial-answer 160ms ease-out;
    }
    html.pwd-motion-v3:not(.pwd-a11y-reduce-motion) body[data-pwd-editorial="sitemap"] .sm-shell :target {
        animation: pwd-editorial-anchor 440ms ease-out;
    }
}
html.pwd-motion-v3 .ps-access-stage .ps-reader {
    transition: none;
}
html.pwd-motion-v3 body[data-pwd-editorial] :is(.pwd-copy a:not(.elementor-button), .ps-text-link, .sm-shell a):is(:hover,:focus-visible) {
    text-decoration: underline;
    text-decoration-thickness: .1em;
    text-underline-offset: .18em;
}
@keyframes pwd-editorial-caption {
    from { translate: 0 6px; }
    to { translate: 0 0; }
}
@keyframes pwd-editorial-image {
    from { opacity: .82; }
    to { opacity: 1; }
}
@keyframes pwd-editorial-result {
    from { translate: 6px 0; }
    to { translate: 0 0; }
}
@keyframes pwd-editorial-booking {
    from { translate: var(--pwd-booking-offset, 8px) 0; }
    to { translate: 0 0; }
}
@keyframes pwd-editorial-progress {
    from { scale: .55 1; }
    to { scale: 1 1; }
}
@keyframes pwd-editorial-answer {
    from { opacity: .84; }
    to { opacity: 1; }
}
@keyframes pwd-editorial-anchor {
    from { box-shadow: inset 3px 0 0 currentColor; }
    to { box-shadow: inset 0 0 0 transparent; }
}

/* Reading pages use a content-sized lead. The top inset clears the fixed desktop
   navigation. Long titles, text enlargement, and translations can expand it. */
@media (min-width: 1025px) {
    html.pwd-motion-v3 body:is([data-pwd-editorial="index"], [data-pwd-editorial="guide"]) .pwd-v3 .pwd-editorial-hero {
        --min-height: 0;
        --padding-top: clamp(118px, 9vw, 140px);
        --padding-bottom: clamp(22px, 2vw, 36px);
        min-height: auto;
        padding-block: var(--padding-top) var(--padding-bottom) !important;
    }
    html.pwd-motion-v3 body:is([data-pwd-editorial="index"], [data-pwd-editorial="guide"]) .pwd-v3 .pwd-editorial-hero > .e-con-inner {
        --gap: 8px;
        row-gap: 8px !important;
    }
    html.pwd-motion-v3 body:is([data-pwd-editorial="index"], [data-pwd-editorial="guide"]) .pwd-v3 .pwd-editorial-hero h1 {
        font-size: clamp(46px, 4.3vw, 65px) !important;
        line-height: 1.08 !important;
    }
    html.pwd-motion-v3 body:is([data-pwd-editorial="index"], [data-pwd-editorial="guide"]) .pwd-v3 .pwd-editorial-section {
        --padding-top: clamp(32px, 3.2vw, 56px);
        --padding-bottom: var(--padding-top);
        padding-block: var(--padding-top) var(--padding-bottom) !important;
    }
}

/* Only the connector moves. Keep the step number and its card in their final positions. */
html.pwd-motion-v3 .pwd-step-list .pwd-step-num[data-pwd-scene="step"]::after {
    content: none;
}
html.pwd-motion-v3 .pwd-step-list .pwd-step-num > .pwd-motion-stroke {
    width: clamp(26px, 4.5vw, 68px);
    top: calc(50% - 1px);
    bottom: auto;
}
@media (max-width: 767px) {
    html.pwd-motion-v3 .pwd-step-list .pwd-step-num > .pwd-motion-stroke {
        top: calc(100% + 4px);
        left: 50%;
        width: 13px;
        rotate: 90deg;
    }
}

/* Keep section strokes clear of descenders without affecting title line height. */
html.pwd-motion-v3 :is(.pwd-home-why, #pricing-preview, .pwp-head, .pwp-lead-copy, #website-estimate, #working-together, .pwd-fx-form-panel) :is(h2,h3) > .pwd-motion-stroke,
html.pwd-motion-v3 :is(.pdm-patient-items, #start-with-a-practical-brief, .pwd-pricing-v5 .pwd-card:not(.pwd-plan-card)) h3 > .pwd-motion-stroke {
    bottom: -.13em;
}

html.pwd-motion-v3 :is(.pdm-pricing-line,.pdm-support-list article,[id="dental-medical-websites"] .dm-project-info) > .pwd-motion-stroke {
    inset-inline-start: 0;
}

html.pwd-motion-v3 .pwd-home-portfolio .pwd-project-card:focus-within .pwd-project-name .elementor-heading-title,
html.pwd-motion-v3 .pwd-dm-practice .pdm-link:focus-visible,
html.pwd-motion-v3 .p1-about .pwd-contact-topic a:focus-visible {
    text-decoration: underline;
    text-underline-offset: .18em;
}

@media (hover: hover) and (pointer: fine) {
    html.pwd-motion-v3 .pwd-home-portfolio .pwd-project-card:hover .pwd-project-name .elementor-heading-title {
        text-decoration: underline;
        text-underline-offset: .18em;
    }
}

@media (prefers-reduced-motion: no-preference) {
    /* Native details keeps its existing semantics, geometry and focus on summary. */
    html.pwd-motion-v3:not(.pwd-a11y-reduce-motion) :is(.pdm-faq details, .pwd-pricing-v5 .pwd-faq-item, .pwd-home-review-more)[open] > :not(summary) {
        animation: pwd-core-disclosure .16s ease-out;
    }
    html.pwd-motion-v3:not(.pwd-a11y-reduce-motion) .pdm-faq summary::after {
        transition: transform .16s ease-out;
    }
}

@keyframes pwd-core-disclosure {
    from { opacity: .84; }
    to { opacity: 1; }
}
