/* ==========================================================================
   AAPRO — Motion system: scroll reveals, parallax, hover micro-interactions
   ========================================================================== */

/* ---- Scroll reveal (paired with IntersectionObserver in animations.js) --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-luxury), transform 0.9s var(--ease-luxury);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="right"].is-visible { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].is-visible { transform: scale(1); }

[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Parallax layers (transform set via JS on scroll) ---- */
[data-parallax] { will-change: transform; }

/* ---- Underline sweep for text links ---- */
.link-sweep {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
}
.link-sweep::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-luxury);
}
.link-sweep:hover::after { transform: scaleX(0); transform-origin: left; }

/* ---- Gold shimmer for eyebrow / accents ---- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(90deg, var(--color-burgundy) 0%, var(--color-sage) 25%, var(--color-burgundy) 50%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}

/* ---- Image reveal mask (curtain wipe on entrance) ---- */
.img-reveal { position: relative; overflow: hidden; }
.img-reveal::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--color-sage);
  transform-origin: left;
  z-index: 2;
  transition: transform 0.9s var(--ease-luxury);
}
.img-reveal.is-visible::before { transform: scaleX(0); }
.img-reveal img { transform: scale(1.08); transition: transform 1.2s var(--ease-luxury); }
.img-reveal.is-visible img { transform: scale(1); }

/* ---- Fade-in page transition on load ---- */
body { animation: pageFade 0.6s var(--ease-soft) both; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Button ripple-free luxury hover for text CTA arrows ---- */
.arrow-link { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.arrow-link svg { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-luxury); }
.arrow-link:hover svg { transform: translateX(6px); }

/* ---- Counting number animation trigger class (JS toggles textContent) --- */
.count-up { font-variant-numeric: tabular-nums; }

/* ---- Marquee for press/as-featured strip ---- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee__track {
  display: inline-flex;
  gap: var(--space-2xl);
  animation: marqueeScroll 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
