/* ── Interactions (desktop-safe + mobile enhanced) ── */

/* Buttons & CTAs — filter only on desktop to avoid breaking absolute layout */
.interactive-btn,
.calculator-btn,
.link,
.link2,
.link3,
.link4,
.link5,
.link7,
.link9,
.input2,
.nav-toggle {
  cursor: pointer;
  transition:
    filter 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.interactive-btn:hover,
.calculator-btn:hover,
.link:hover,
.link2:hover,
.link3:hover,
.link4:hover,
.link5:hover,
.input2:hover {
  filter: brightness(1.08);
}

.interactive-btn:active,
.calculator-btn:active,
.link:active,
.link2:active,
.link3:active,
.link4:active,
.link5:active,
.input2:active,
.interactive-btn.is-pressed,
.calculator-btn.is-pressed {
  filter: brightness(0.92);
}

.interactive-btn:focus-visible,
.calculator-btn:focus-visible,
.loan-type-card:focus-visible,
.service-card:focus-visible,
.interactive-link:focus-visible {
  outline: 2px solid rgba(229, 190, 1, 0.75);
  outline-offset: 3px;
}

/* Loan & service cards — selection via shadow/filter on desktop */
.loan-type-card,
.service-card {
  cursor: pointer;
  transition: box-shadow 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.loan-type-card.is-selected {
  box-shadow:
    0 0 0 2px rgba(229, 190, 1, 0.9),
    0 8px 28px rgba(0, 0, 0, 0.4);
  filter: brightness(1.12);
  z-index: 3;
}

.service-card.is-active {
  box-shadow:
    0 0 0 2px rgba(229, 190, 1, 0.65),
    0 8px 24px rgba(0, 0, 0, 0.35);
  filter: brightness(1.06);
}

.interactive-link {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.interactive-link:hover {
  opacity: 0.8;
}

/* Nav & footer links */
.frame-nav .link-home,
.frame-nav .button-menu-pages,
.frame-nav .button-menu-more-pages,
.frame-nav .button-menu-information,
.frame-nav .button-menu-information2,
.frame-nav .button-menu-information3,
.frame-nav .button-menu-information4,
.frame-nav .button-menu-information5,
.footer-links-grid > div,
.section .link-home-1,
.section .link-home-2,
.section .link-home-3,
.section .link-features-1,
.section .link-features-2,
.section .link-features-3,
.section .link-pricing,
.section .link-customers,
.section .link-about-1,
.section .link-about-2,
.section .link-about-3,
.section .link-request-demo,
.section .link-blog,
.section .link-contact,
.section .link-linkedin,
.section .link-bluesky,
.section .link-instagram,
.section .link-x-twitter {
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.frame-nav .link-home:hover,
.frame-nav .button-menu-pages:hover,
.frame-nav .button-menu-more-pages:hover,
.frame-nav .button-menu-information:hover,
.frame-nav .button-menu-information2:hover,
.frame-nav .button-menu-information3:hover,
.frame-nav .button-menu-information4:hover,
.frame-nav .button-menu-information5:hover {
  color: #e5be01 !important;
  opacity: 1;
}

/* Footer links — dark hover/active on gold background */
.footer-links-grid > div:hover,
.section .link-home-1:hover,
.section .link-home-2:hover,
.section .link-home-3:hover,
.section .link-features-1:hover,
.section .link-features-2:hover,
.section .link-features-3:hover,
.section .link-pricing:hover,
.section .link-customers:hover,
.section .link-about-1:hover,
.section .link-about-2:hover,
.section .link-about-3:hover,
.section .link-request-demo:hover,
.section .link-blog:hover,
.section .link-contact:hover,
.section .link-linkedin:hover,
.section .link-bluesky:hover,
.section .link-instagram:hover,
.section .link-x-twitter:hover {
  color: #12121d !important;
  opacity: 1;
  font-weight: 500;
}

.frame-nav .nav-link-active {
  color: #e5be01 !important;
}

.footer-links-grid > div.nav-link-active,
.section .link-home-1.nav-link-active,
.section .link-home-2.nav-link-active,
.section .link-home-3.nav-link-active,
.section .link-features-1.nav-link-active,
.section .link-features-2.nav-link-active,
.section .link-features-3.nav-link-active,
.section .link-pricing.nav-link-active,
.section .link-customers.nav-link-active,
.section .link-about-1.nav-link-active,
.section .link-about-2.nav-link-active,
.section .link-about-3.nav-link-active,
.section .link-request-demo.nav-link-active,
.section .link-blog.nav-link-active,
.section .link-contact.nav-link-active,
.section .link-linkedin.nav-link-active,
.section .link-bluesky.nav-link-active,
.section .link-instagram.nav-link-active,
.section .link-x-twitter.nav-link-active {
  color: #0b132b !important;
  font-weight: 600;
}

/* Calculator inputs */
.calc-control {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #e0e0e0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  outline: none;
  box-sizing: border-box;
}

.calc-control::placeholder {
  color: rgba(224, 224, 224, 0.45);
  font-size: 16px;
}

.calculator-input {
  transition: box-shadow 0.2s ease;
}

.calculator-input:focus-within {
  box-shadow: 0 0 0 2px rgba(229, 190, 1, 0.45);
}

.calculator-input--select {
  padding: 0 10px !important;
}

.calc-select {
  appearance: none;
  cursor: pointer;
  height: 100%;
  padding: 0 24px 0 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e5be01' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.calc-affix {
  flex-shrink: 0;
  color: rgba(224, 224, 224, 0.75);
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.calc-affix--suffix {
  color: rgba(224, 224, 224, 0.65);
  font-size: 16px;
  white-space: nowrap;
}

/* Summary animation — safe on desktop (inside calculator panel) */
.calculator-panel--summary.is-updated {
  animation: summaryPulse 0.55s ease;
}

.calculator-panel--summary.is-updated ._0-weekly {
  animation: countPop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes summaryPulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 190, 1, 0.35); }
  70% { box-shadow: 0 0 0 12px rgba(229, 190, 1, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 190, 1, 0); }
}

@keyframes countPop {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Ripple — do not override position; breaks AutoHTML absolute buttons */
.ripple-host {
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(229, 190, 1, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(2.8); opacity: 0; }
}

/* Toast */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 9999;
  max-width: min(90vw, 420px);
  padding: 14px 22px;
  border-radius: 10px;
  background: rgba(5, 9, 21, 0.96);
  border: 1px solid rgba(229, 190, 1, 0.45);
  color: #e0e0e0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.app-toast.is-showing {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.footer-email-input {
  width: 100%;
  height: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: none;
  background: transparent;
  color: #12121d;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  outline: none;
}

.footer-email-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.section .input:focus-within {
  box-shadow: 0 0 0 2px rgba(229, 190, 1, 0.4);
}

/* ── Motion — premium fintech feel (engaging, not gimmicky) ── */
:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-duration: 0.7s;
  --motion-distance: 22px;
}

/* Parallax */
.motion-parallax,
.motion-hero-media {
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  will-change: transform;
}

/* Hero load sequence */
.motion-hero-item {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

body.motion-ready .motion-hero-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.65s var(--motion-ease),
    transform 0.65s var(--motion-ease);
  transition-delay: var(--motion-delay, 0s);
}

.motion-hero-logo {
  opacity: 0;
  transform: scale(0.96) translate3d(0, 16px, 0);
}

body.motion-ready .motion-hero-logo {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
  transition:
    opacity 0.8s var(--motion-ease),
    transform 0.8s var(--motion-ease);
  transition-delay: var(--motion-delay, 0s);
}

.motion-hero-media {
  opacity: 0;
  transform: translate3d(32px, 36px, 0);
}

body.motion-ready .motion-hero-media {
  opacity: 1;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  transition:
    opacity 0.85s var(--motion-ease),
    transform 0.85s var(--motion-ease);
  transition-delay: var(--motion-delay, 0s);
}

/* Hero image carousel */
.hero-carousel {
  position: absolute;
  left: 863px;
  right: 0;
  top: 159px;
  height: 448px;
  z-index: 6;
}

.hero-carousel__viewport {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 11%,
    #000 74%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 11%,
    #000 74%,
    transparent 100%
  );
}

.hero-carousel__track {
  display: flex;
  gap: 16px;
  height: 100%;
  will-change: transform;
}

.hero-carousel__track.is-auto-scroll {
  animation: heroCarouselScroll var(--carousel-duration, 36s) linear infinite;
}

@keyframes heroCarouselScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--carousel-loop-width, 1856px)), 0, 0);
  }
}

.hero-carousel__slide {
  flex: 0 0 448px;
  width: 448px;
  height: 448px;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 991px) {
  .section2 .hero-carousel {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    order: 4 !important;
    width: 100% !important;
    max-width: 340px;
    height: auto !important;
    margin: 0 auto !important;
    z-index: 1;
  }

  .section2 .hero-carousel__viewport {
    mask-image: none;
    -webkit-mask-image: none;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .section2 .hero-carousel__track {
    height: 100%;
  }

  .section2 .hero-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  .motion-hero-item,
  .motion-hero-logo,
  .motion-hero-media {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Testimonial carousel */
@media (min-width: 992px) {
  .section6 .testimonial-carousel {
    position: absolute !important;
    left: 262px;
    right: 266px;
    top: 551px;
    z-index: 6;
    width: auto;
    height: auto;
  }
}

.testimonial-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

@media (min-width: 992px) {
  .testimonial-carousel__viewport {
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 7%,
      #000 82%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 7%,
      #000 82%,
      transparent 100%
    );
  }
}

.testimonial-carousel__track {
  display: flex;
  gap: 24px;
  will-change: transform;
}

@media (min-width: 992px) {
  .testimonial-carousel__track {
    gap: 105px;
  }
}

.testimonial-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}

@media (min-width: 992px) {
  .testimonial-carousel__slide {
    flex: 0 0 516px;
    width: 516px;
  }
}

.testimonial-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
  padding: 22px 28px 28px;
  border: 1px solid #e5be01;
  border-radius: 20px;
  background: rgba(5, 9, 21, 0.35);
}

@media (min-width: 992px) {
  .testimonial-card {
    min-height: 661px;
    padding: 24px 32px 32px;
  }
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.testimonial-card__quote {
  width: 33px;
  height: 32px;
  object-fit: contain;
}

.testimonial-card__stars {
  width: 100px;
  height: 19px;
  object-fit: contain;
}

.testimonial-card__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 406 / 261;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}

.testimonial-card__text {
  margin: 0 0 20px;
  color: #e0e0e0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  flex: 1;
}

@media (min-width: 992px) {
  .testimonial-card__text {
    font-size: 17.6px;
    line-height: 1.45;
  }
}

.testimonial-card__footer {
  margin-top: auto;
}

.testimonial-card__author {
  display: block;
  color: #e5be01;
  font-family: Inter, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.3;
}

.testimonial-card__role {
  display: block;
  color: #e0e0e0;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 2px;
}

.testimonial-card__date {
  display: block;
  margin-top: 6px;
  color: rgba(224, 224, 224, 0.65);
  font-size: 16px;
  line-height: 1.4;
}

.testimonial-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  position: relative;
  z-index: 8;
  pointer-events: auto;
}

.testimonial-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  background: rgba(254, 250, 243, 0.35);
  transition:
    transform 0.3s var(--motion-ease),
    background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.testimonial-carousel__dot::before {
  content: "";
  position: absolute;
  inset: -10px;
}

.testimonial-carousel__dot.is-active {
  background: #e5be01;
  transform: scale(1.15);
}

.testimonial-carousel__dot:focus-visible {
  outline: 2px solid rgba(229, 190, 1, 0.85);
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .section6 .testimonial-carousel {
    order: 4;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 24px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .section6 > .mobile-testimonial-card {
    display: none !important;
  }

  .testimonial-card {
    min-height: 0;
  }
}

/* Nav & sticky header */
.frame-spacer {
  display: none;
  pointer-events: none;
}

.frame {
  transition:
    background 0.45s var(--motion-ease),
    box-shadow 0.45s var(--motion-ease),
    backdrop-filter 0.45s ease,
    height 0.35s var(--motion-ease),
    border-color 0.35s ease;
}

.frame.is-scrolled {
  box-shadow:
    0 1px 0 rgba(229, 190, 1, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.32);
  background: rgba(5, 9, 21, 0.94) !important;
}

@media (min-width: 992px) {
  /* Full-viewport bar — frame content stays zoomed for alignment */
  .frame-sticky-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: calc(72px * var(--fit-scale, calc(100vw / 1920)));
    z-index: 9999;
    pointer-events: none;
    background: rgba(5, 9, 21, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
      height 0.35s var(--motion-ease),
      background 0.45s var(--motion-ease),
      box-shadow 0.45s var(--motion-ease),
      opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .frame-sticky-backdrop.is-active {
    display: block;
  }

  .frame-sticky-backdrop.is-enter {
    animation: headerBackdropIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  @keyframes headerBackdropIn {
    from {
      transform: translate3d(0, -100%, 0);
      opacity: 0.55;
    }
    to {
      transform: translate3d(0, 0, 0);
      opacity: 1;
    }
  }

  .frame-sticky-backdrop.is-scrolled {
    height: calc(64px * var(--fit-scale, calc(100vw / 1920)));
    background: rgba(5, 9, 21, 0.86);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    box-shadow:
      0 1px 0 rgba(229, 190, 1, 0.24),
      0 16px 48px rgba(0, 0, 0, 0.45);
  }

  .frame-sticky-backdrop.is-scrolled::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(229, 190, 1, 0.55) 50%,
      transparent
    );
  }

  .frame.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 1920px !important;
    max-width: none !important;
    zoom: var(--fit-scale, calc(100vw / 1920)) !important;
    transform-origin: top left !important;
    z-index: 10000 !important;
    margin: 0 !important;
    will-change: transform, opacity;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    transition:
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.45s ease,
      background 0.45s var(--motion-ease);
  }

  .frame.is-sticky.is-sticky-enter {
    animation: headerSlideDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  @keyframes headerSlideDown {
    from {
      transform: translate3d(0, -100%, 0);
      opacity: 0.55;
    }
    to {
      transform: translate3d(0, 0, 0);
      opacity: 1;
    }
  }

  .frame.is-sticky.is-scrolled {
    height: 64px !important;
  }

  .frame.is-sticky.is-scrolled .pathfyndr-11-1-photoroom-22 {
    transform: scale(0.9);
    transform-origin: left center;
    transition: transform 0.35s var(--motion-ease);
  }

  .frame-spacer.is-active {
    display: block;
    transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (max-width: 991px) {
  .frame.is-scrolled {
    height: 54px !important;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
    border-bottom-color: rgba(229, 190, 1, 0.24) !important;
  }

  .frame.is-scrolled .pathfyndr-11-1-photoroom-22 {
    height: 44px !important;
    width: auto !important;
    max-width: 100% !important;
    transition: height 0.3s var(--motion-ease);
  }
}

/* Scroll reveals — varied, cohesive */
.reveal-on-scroll {
  transition:
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-on-scroll.reveal-up {
  opacity: 0;
  transform: translate3d(0, var(--motion-distance), 0);
}

.reveal-on-scroll.reveal-headline {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.975);
}

.reveal-on-scroll.reveal-card {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.94);
}

.reveal-on-scroll.reveal-left {
  opacity: 0;
  transform: translate3d(-28px, 20px, 0);
}

.reveal-on-scroll.reveal-right {
  opacity: 0;
  transform: translate3d(28px, 20px, 0);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (min-width: 992px) {
  .loan-type-card.reveal-on-scroll.is-visible {
    transition:
      opacity var(--motion-duration) var(--motion-ease),
      transform 0.45s var(--motion-ease),
      box-shadow 0.45s var(--motion-ease),
      filter 0.45s ease;
  }

  .loan-type-card.reveal-on-scroll.is-visible:hover {
    transform: translate3d(0, -8px, 0) scale(1.02);
    filter: brightness(1.08);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(229, 190, 1, 0.25);
  }

  .loan-type-card.reveal-on-scroll.is-visible.is-selected {
    transform: translate3d(0, -6px, 0) scale(1.01);
  }

  .service-card.reveal-on-scroll.is-visible {
    transition:
      opacity var(--motion-duration) var(--motion-ease),
      transform 0.5s var(--motion-ease),
      filter 0.45s ease,
      box-shadow 0.45s ease;
  }

  .service-card.reveal-on-scroll.is-visible:hover {
    transform: translate3d(0, -5px, 0);
    filter: brightness(1.06);
  }

  .link2.interactive-btn {
    transition:
      filter 0.3s ease,
      box-shadow 0.35s var(--motion-ease),
      transform 0.35s var(--motion-ease);
  }

  .link2.interactive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(229, 190, 1, 0.22);
  }
}

@media (max-width: 991px) {
  .reveal-on-scroll.reveal-left,
  .reveal-on-scroll.reveal-right {
    transform: translate3d(0, 20px, 0);
  }

  .loan-type-card.is-visible:active,
  .service-card.is-visible:active {
    transform: scale(0.98);
  }

  .interactive-btn:hover,
  .calculator-btn:hover,
  .link:hover,
  .link2:hover {
    filter: brightness(1.06);
  }
}

/* Ambient gold blur orbs — slow drift */
@media (min-width: 992px) {
  .ellipse-1,
  .ellipse-2,
  .ellipse-3,
  .ellipse-22 {
    pointer-events: none;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
  }

  .ellipse-1.ambient-orb {
    animation: orbDrift1 32s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  }

  .ellipse-2.ambient-orb {
    animation: orbDrift2 38s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    animation-delay: -12s;
  }

  .ellipse-3.ambient-orb {
    animation: orbDrift3 34s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    animation-delay: -20s;
  }

  .ellipse-22.ambient-orb {
    animation: orbDrift4 36s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    animation-delay: -8s;
  }

  @keyframes orbDrift1 {
    0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
      opacity: 0.92;
    }
    25% {
      transform: translate3d(48px, -36px, 0) scale(1.06);
      opacity: 1;
    }
    50% {
      transform: translate3d(24px, 42px, 0) scale(0.97);
      opacity: 0.88;
    }
    75% {
      transform: translate3d(-32px, 18px, 0) scale(1.03);
      opacity: 0.96;
    }
  }

  @keyframes orbDrift2 {
    0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
      opacity: 0.9;
    }
    20% {
      transform: translate3d(-40px, 28px, 0) scale(1.05);
      opacity: 1;
    }
    55% {
      transform: translate3d(-18px, -44px, 0) scale(0.96);
      opacity: 0.86;
    }
    80% {
      transform: translate3d(36px, -12px, 0) scale(1.02);
      opacity: 0.94;
    }
  }

  @keyframes orbDrift3 {
    0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
      opacity: 0.85;
    }
    30% {
      transform: translate3d(-52px, 24px, 0) scale(1.08);
      opacity: 0.95;
    }
    60% {
      transform: translate3d(-28px, -38px, 0) scale(0.98);
      opacity: 0.8;
    }
    85% {
      transform: translate3d(20px, -20px, 0) scale(1.04);
      opacity: 0.9;
    }
  }

  @keyframes orbDrift4 {
    0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
      opacity: 0.88;
    }
    35% {
      transform: translate3d(44px, 32px, 0) scale(1.07);
      opacity: 0.96;
    }
    65% {
      transform: translate3d(16px, -40px, 0) scale(0.95);
      opacity: 0.82;
    }
    90% {
      transform: translate3d(-24px, 12px, 0) scale(1.02);
      opacity: 0.9;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-parallax,
  .motion-hero-media,
  .motion-hero-item,
  .motion-hero-logo,
  .reveal-on-scroll,
  .loan-type-card,
  .service-card,
  .interactive-btn,
  .calculator-panel--summary.is-updated,
  .scroll-top-btn,
  .frame.is-sticky.is-sticky-enter,
  .frame-sticky-backdrop.is-enter,
  .hero-carousel__track.is-auto-scroll {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    --parallax-x: 0 !important;
    --parallax-y: 0 !important;
  }

  .ellipse-1,
  .ellipse-2,
  .ellipse-3,
  .ellipse-22,
  .ambient-orb {
    animation: none !important;
    transform: none !important;
  }

  .scroll-top-btn:not(.is-visible) {
    pointer-events: none !important;
  }
}

/* Scroll to top */
.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #25231e;
  background: linear-gradient(135deg, #e5be01 0%, #c9a601 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(229, 190, 1, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.scroll-top-btn:hover {
  filter: brightness(1.08);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(229, 190, 1, 0.35);
}

.scroll-top-btn:active {
  transform: translate3d(0, 1px, 0);
  filter: brightness(0.96);
}

.scroll-top-btn.is-busy {
  pointer-events: none;
  opacity: 0.85;
}

.scroll-top-btn:focus-visible {
  outline: 2px solid rgba(229, 190, 1, 0.85);
  outline-offset: 3px;
}

.scroll-top-btn__icon {
  display: block;
}

@media (max-width: 991px) {
  .scroll-top-btn {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
}
