/* ============================================================
   EXPLORE EGYPT — MOTION
   CSS-only keyframes + scroll/view driven reveals
   ============================================================ */

@keyframes kenburns {
  from { transform: scale(1) translate3d(0,0,0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Opacity + transform only — compositor-friendly, no blur repaint */
@keyframes revealUp {
  from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.99); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes growLine {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

@keyframes heroShade {
  from { opacity: 0; }
  to   { opacity: .72; }
}

@keyframes progressGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes cuePulse {
  0%, 100% { transform: scaleY(.5); opacity: .4; }
  50%      { transform: scaleY(1); opacity: 1; }
}

@keyframes dockReveal {
  from { opacity: 0; transform: translate3d(-50%, 22px, 0) scale(.96); }
  to   { opacity: 1; transform: translate3d(-50%, 0, 0) scale(1); }
}

@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(228,182,108,.28), 0 0 0 20px rgba(228,182,108,.10); }
  50%      { box-shadow: 0 0 0 14px rgba(228,182,108,.20), 0 0 0 32px rgba(228,182,108,.04); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Pharaonic founders card: slow light sweep + corner shimmer */
@keyframes pharaohSweep {
  from { transform: rotate3d(0, 0, 1, 0deg); }
  to   { transform: rotate3d(0, 0, 1, 360deg); }
}

@keyframes stateFadeBase { from { opacity: .55; } to { opacity: 1; } }
@keyframes stateFadeEn   { from { opacity: .55; } to { opacity: 1; } }
@keyframes stateFadeDark { from { opacity: .55; } to { opacity: 1; } }
@keyframes stateFadeEnDark { from { opacity: .55; } to { opacity: 1; } }

@keyframes switchGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228,182,108,0); }
  50%      { box-shadow: 0 0 0 5px rgba(228,182,108,.22); }
}

@keyframes headerCompact {
  from { padding-block: 18px; }
  to   { padding-block: 10px; }
}
@keyframes headerFade {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes headerSolid {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cornerGlow {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}

@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

/* Entrance choreography */
.hero .eyebrow      { animation: fadeUp .9s .18s var(--ease) both; }
.hero h1            { animation: fadeUp 1.2s .32s var(--ease) both; }
.hero .hero-rule    { animation: growLine 1.1s .72s var(--ease) both; }
.hero .hero-lead    { animation: fadeUp 1s .62s var(--ease) both; }
.hero .hero-meta    { animation: fadeUp 1s .9s var(--ease) both; }
.scroll-cue         { animation: fadeIn 1.2s 1.6s both; }

.page-hero .breadcrumb { animation: fadeUp .7s .1s var(--ease) both; }
.page-hero .eyebrow    { animation: fadeUp .8s .22s var(--ease) both; }
.page-hero h1          { animation: fadeUp 1s .34s var(--ease) both; }
.page-hero p           { animation: fadeUp .9s .55s var(--ease) both; }

/* Lightbox: target reveal with animation */
.lightbox:target { animation: fadeIn .35s ease-out both; }
.lightbox:target figure { animation: revealUp .5s var(--ease) both; }

/* Gentle floating detail */
.float-soft { animation: floatSoft 7s ease-in-out infinite; }

/* Gold shimmer on highlighted text */
.shimmer {
  background: linear-gradient(100deg, var(--gold-deep) 20%, var(--gold-2) 45%, var(--gold-deep) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}

/* Reduced motion — respect the user */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
