/* Scoped progressive enhancement: the unenhanced footer is fully visible. */
[data-estate-footer-reveal] .footer-intro { --footer-x: -50px; --footer-y: 40px; --footer-delay: 0ms; --footer-duration: 1150ms; }
[data-estate-footer-reveal] nav.footer-column { --footer-x: -38px; --footer-y: 52px; --footer-delay: 150ms; --footer-duration: 1150ms; }
[data-estate-footer-reveal] .footer-contact { --footer-x: -34px; --footer-y: 55px; --footer-delay: 300ms; --footer-duration: 1150ms; }
[data-estate-footer-reveal] .footer-column:not(nav):not(.footer-contact) { --footer-x: -30px; --footer-y: 48px; --footer-delay: 450ms; --footer-duration: 1050ms; }
[data-estate-footer-reveal] .footer-bottom > * { --footer-x: -5px; --footer-y: 22px; --footer-delay: 1000ms; --footer-duration: 1000ms; }
[data-estate-footer-reveal] .footer-bottom > :nth-child(2) { --footer-delay: 1040ms; }
[data-estate-footer-reveal] .footer-bottom > :nth-child(3) { --footer-delay: 1080ms; }
/* The temporary outer clip contains transformed content without changing layout. */
[data-estate-footer-reveal].estate-footer-ready { clip-path: inset(0); }
[data-estate-footer-reveal].estate-footer-ready .footer-main > *,
[data-estate-footer-reveal].estate-footer-ready .footer-bottom > * {
  opacity: 0;
  transform: translate(var(--footer-x), var(--footer-y));
  clip-path: inset(0 12% 20% 0);
}
[data-estate-footer-reveal].estate-footer-revealed .footer-main > *,
[data-estate-footer-reveal].estate-footer-revealed .footer-bottom > * {
  animation: estate-footer-enter var(--footer-duration) cubic-bezier(.25, .75, .35, 1) var(--footer-delay) both;
}
/* Temporarily paint the existing 1px border as a scalable rule in its exact position.
   Its original border box stays in place; no extra HTML, line or spacing is added. */
[data-estate-footer-reveal].estate-footer-ready .footer-bottom {
  position: relative;
  border-top-color: transparent;
}
[data-estate-footer-reveal].estate-footer-ready .footer-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
[data-estate-footer-reveal].estate-footer-revealed .footer-bottom::before {
  animation: estate-footer-rule 900ms cubic-bezier(.25, .75, .35, 1) 600ms both;
}
@keyframes estate-footer-rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes estate-footer-enter {
  from { opacity: 0; transform: translate(var(--footer-x), var(--footer-y)); clip-path: inset(0 12% 20% 0); }
  40% { opacity: .75; }
  70% { opacity: .98; }
  85% { clip-path: inset(0); }
  to { opacity: 1; transform: translate(0, 0); clip-path: none; }
}
@media (max-width: 768px) {
  [data-estate-footer-reveal] .footer-intro { --footer-x: -28px; --footer-y: 30px; }
  [data-estate-footer-reveal] nav.footer-column { --footer-x: -24px; --footer-y: 38px; }
  [data-estate-footer-reveal] .footer-contact { --footer-x: -22px; --footer-y: 42px; }
  [data-estate-footer-reveal] .footer-column:not(nav):not(.footer-contact) { --footer-x: -20px; --footer-y: 35px; }
  [data-estate-footer-reveal] .footer-bottom > * { --footer-x: -3px; --footer-y: 18px; }
}
/* Keyboard focus never has to wait for motion. */
[data-estate-footer-reveal].estate-footer-ready:focus-within,
[data-estate-footer-reveal].estate-footer-ready:focus-within .footer-main > *,
[data-estate-footer-reveal].estate-footer-ready:focus-within .footer-bottom > * {
  animation: none; opacity: 1; transform: none; clip-path: none;
}
[data-estate-footer-reveal].estate-footer-ready:focus-within .footer-bottom { border-top-color: var(--line); }
[data-estate-footer-reveal].estate-footer-ready:focus-within .footer-bottom::before { content: none; }
@media (prefers-reduced-motion: reduce) {
  [data-estate-footer-reveal].estate-footer-ready,
  [data-estate-footer-reveal].estate-footer-ready .footer-main > *,
  [data-estate-footer-reveal].estate-footer-ready .footer-bottom > * {
    animation: none; opacity: 1; transform: none; clip-path: none;
  }
  [data-estate-footer-reveal].estate-footer-ready .footer-bottom { border-top-color: var(--line); }
  [data-estate-footer-reveal].estate-footer-ready .footer-bottom::before { content: none; }
}
