:root {
  --motion-ease: cubic-bezier(.2, .75, .24, 1);
  --motion-edge: #8daee2;
}

/* Keep the existing blue palette and surfaces. */
.about-scene, .contact-scene {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.about-scene::before, .contact-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 80% 14%, #719ad735, transparent 56%);
}
.contact-scene::before {
  background: radial-gradient(ellipse at 24% 22%, #9ab8e646, transparent 64%);
}
.contact-scene .form {
  box-shadow: 0 18px 45px #102c5417, inset 0 1px #ffffffc9;
}
.contact-scene :is(input, select, textarea) {
  box-shadow: inset 0 1px 3px #112d5612;
}
.hero-gallery:not([hidden]), .hero-scroll {
  box-shadow: inset 0 1px #ffffff25, 0 6px 20px #020b2630;
}
.stats strong { font-variant-numeric: tabular-nums; }

.strip .wrap {
  font-size: clamp(1.0625rem, 1.45vw, 1.3125rem);
  line-height: 1.4;
  gap: .55rem clamp(1rem, 3vw, 2.75rem);
}
.strip .wrap > span { display: block; }

#umzugsreinigung > div:not(.photo) { max-width: 46rem; min-width: 0; }
#umzugsreinigung h2 { white-space: nowrap; }
#umzugsreinigung h2 span {
  display: block;
  color: var(--film-steel);
  margin-top: .12em;
  white-space: normal;
}
#umzugsreinigung .photo img { object-position: 68% center; }

@media (min-width: 851px) and (max-width: 1100px) {
  header .navlinks { gap: clamp(.6rem, 1.55vw, 1.25rem); }
}

@media (max-width: 680px) {
  .strip .wrap {
    display: grid;
    justify-content: center;
    text-align: left;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .scroll-reveal {
    opacity: .65;
    transform: translateY(clamp(10px, 1.6vw, 23px));
    transition: opacity .56s ease, transform .68s var(--motion-ease);
    transition-delay: var(--delay, 0ms);
  }
  .motion-ready .scroll-reveal.in-view { opacity: 1; transform: none; }
  .motion-ready .strip .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .motion-ready .strip .scroll-reveal > span {
    transition: opacity .45s ease, transform .56s var(--motion-ease);
  }
  .motion-ready .strip .scroll-reveal:not(.in-view) > span {
    opacity: 0;
    transform: translateY(18px);
  }
  .motion-ready .strip .scroll-reveal.in-view > span:nth-child(2) { transition-delay: .14s; }
  .motion-ready .strip .scroll-reveal.in-view > span:nth-child(3) { transition-delay: .28s; }
  .motion-ready .scroll-reveal:not(.in-view):is(.cargo-gallery-tile, .cargo-team-portrait) {
    transform: translateY(10px) scale(.98);
  }
  .motion-ready .scroll-reveal:not(.in-view) .eyebrow::before {
    scale: 0 1;
  }
  .motion-ready .scroll-reveal .eyebrow::before {
    transform-origin: left center;
    transition: scale .8s var(--motion-ease);
  }
  .service-stories .detail > div:not(.photo) h2 {
    transition: translate .74s var(--motion-ease), opacity .5s ease;
  }
  .service-stories .scroll-reveal:not(.in-view) h2 {
    translate: 0 .23em;
    opacity: .55;
  }
  .service-stories .photo {
    background: linear-gradient(115deg, #071426, #132b48);
  }
  .service-stories .photo img {
    opacity: 1;
    transition: opacity .5s ease, transform 1.15s var(--motion-ease);
  }
  .service-stories .photo img[data-loading] { opacity: 0; }
  .service-stories .detail::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    transform: scaleX(.05);
    transform-origin: left;
    background: linear-gradient(90deg, transparent, var(--motion-edge), transparent);
    transition: transform 1.25s var(--motion-ease);
    pointer-events: none;
  }
  .service-stories .detail:has(.in-view)::after { transform: scaleX(1); }
  .contact-scene .form::before {
    content: "";
    position: absolute;
    inset: -3px 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #4776b6, #b8d0f5, #557fb7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s var(--motion-ease);
    pointer-events: none;
  }
  .contact-scene .form { position: relative; }
  .contact-scene .form.in-view::before { transform: scaleX(1); }

  .hero-optics::before {
    content: "";
    position: absolute;
    top: 16%;
    right: -12%;
    width: min(58vw, 58rem);
    aspect-ratio: 2;
    border: 1px solid #a9c6fa25;
    border-radius: 50%;
    background: radial-gradient(ellipse, #93b7f328, transparent 68%);
    transform: rotate(-28deg);
    animation: hero-drift 4.8s var(--motion-ease) both;
  }
  @keyframes hero-drift {
    0% { opacity: 0; transform: translate(3%, 9%) rotate(-28deg); }
    100% { opacity: 1; transform: translate(-2%, 0) rotate(-28deg); }
  }

  @supports (animation-timeline: view()) {
    .about-scene::before, .contact-scene::before {
      animation: background-drift linear both;
      animation-timeline: view();
    }
    @keyframes background-drift {
      from { transform: translateY(-5%) scale(1.13); opacity: .55; }
      to { transform: translateY(5%) scale(1.13); opacity: 1; }
    }
    @media (min-width: 851px) {
      .service-stories .detail .photo img {
        transition: opacity .5s ease;
        animation: service-parallax linear both;
        animation-timeline: view();
      }
      @keyframes service-parallax {
        from { transform: translateY(-2.4%) scale(1.065); }
        to { transform: translateY(2.4%) scale(1.065); }
      }
    }
  }
  @media (max-width: 850px) {
    .motion-ready .scroll-reveal { transition-delay: 0ms; }
    .hero-optics::before { opacity: .7; animation: none; }
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero-gallery:not([hidden]) { backdrop-filter: blur(8px); }
  .navlinks > a:not(.btn) { position: relative; }
  .navlinks > a:not(.btn)::after {
    content: "";
    position: absolute;
    inset: auto 0 -.38rem;
    height: 1px;
    background: var(--motion-edge);
    scale: 0 1;
    transform-origin: left;
  }
  .navlinks > a:not(.btn):is(:hover, :focus-visible)::after { scale: 1; }
  .btn, .cleaning-directory-group, .cargo-team-portrait {
    transition: translate .24s var(--motion-ease), box-shadow .24s ease, background-color .24s ease;
  }
  .btn:hover {
    translate: 0 -2px;
    box-shadow: 0 9px 22px #07163133;
  }
  .btn:active { translate: 0 0; }
  .cleaning-directory-group:hover, .cargo-team-portrait:hover {
    translate: 0 -3px;
    box-shadow: 0 14px 30px #06142d20;
  }
  .whatsapp-contact svg, .hero-scroll span, .cargo-gallery-zoom {
    transition: scale .24s var(--motion-ease);
  }
  :is(.whatsapp-contact:hover svg, .hero-scroll:hover span, .cargo-gallery-tile:hover .cargo-gallery-zoom) {
    scale: 1.15;
  }
  @media (prefers-reduced-motion: no-preference) {
    .navlinks > a:not(.btn)::after { transition: scale .32s var(--motion-ease); }
    .hero-pointer-light {
      position: absolute;
      width: 19rem;
      aspect-ratio: 1;
      top: 0;
      left: 0;
      opacity: 0;
      background: radial-gradient(circle, #c6defb35, transparent 65%);
      transition: opacity .35s ease;
      pointer-events: none;
    }
    .hero-optics.pointer-active .hero-pointer-light { opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cleaning-directory-group, .cargo-team-portrait,
  .whatsapp-contact svg, .hero-scroll span, .cargo-gallery-zoom {
    translate: none !important;
    scale: 1 !important;
    transition: none !important;
  }
}
