body { margin: 0; font-family: Arial, sans-serif; color: #222; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
header { background: #1f3a2e; color: white; padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
header strong { font-size: 18px; }
nav a { color: white; text-decoration: none; margin-left: 20px; }
nav a:hover { text-decoration: underline; }
.hero { background: #eef3ef; padding: 80px 32px; text-align: center; }
.hero h1 { font-size: 36px; margin: 0 0 16px; color: #1f3a2e; }
.hero p { max-width: 640px; margin: 0 auto 24px; font-size: 18px; }
.button { display: inline-block; background: #1f3a2e; color: white; padding: 12px 28px; text-decoration: none; border-radius: 4px; }
.content { max-width: 800px; margin: 0 auto; padding: 48px 32px; }
.content h1 { color: #1f3a2e; }
footer { background: #1f3a2e; color: white; text-align: center; padding: 20px; font-size: 14px; margin-top: auto; }
.stage-wrap { padding: 32px 16px 8px; background: #fff; }
.stage { position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 8 / 3; overflow: hidden; border-radius: 8px; background: linear-gradient(#dfeee6 76%, #8b6b4a 76%); }
.stage-note { text-align: center; font-size: 12px; color: #666; margin: 8px 0 24px; }
.scene { position: absolute; inset: 0; opacity: 0; animation: fade 42s infinite; }
.scene svg { width: 100%; height: 100%; display: block; }
@keyframes fade { 0% { opacity: 0; } 1.5% { opacity: 1; } 12.8% { opacity: 1; } 14.3% { opacity: 0; } 100% { opacity: 0; } }
.bob { animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-30px); } 50% { transform: translateY(0); } }
.dig { transform-origin: 350px 180px; animation: dig 2.4s ease-in-out infinite; }
@keyframes dig { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(14deg); } }
.pile { transform-origin: 600px 228px; animation: pile 2.4s ease-in-out infinite; }
@keyframes pile { 0%, 100% { transform: scale(0.7); } 50% { transform: scale(1); } }
.ripple { transform-origin: 370px 255px; animation: ripple 2s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(7); opacity: 0; } }
.bend { transform-origin: 301px 190px; animation: bend 1.4s ease-in-out infinite; }
@keyframes bend { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(28deg); } }
.flow { stroke-dasharray: 14 10; animation: flow 0.8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -48; } }
.grow { transform-origin: 452px 228px; animation: grow 42s var(--d) infinite both; }
@keyframes grow { 0% { transform: scaleY(0); } 9%, 100% { transform: scaleY(1); } }
.rise { animation: rise 42s infinite both; animation-delay: calc(var(--d) + var(--o)); }
@keyframes rise { 0% { transform: scaleY(0); } 2.5%, 100% { transform: scaleY(1); } }
.sway { transform-origin: 470px 44px; animation: sway 2s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.hop { animation: hop 0.9s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.cheer { animation: cheer 0.8s ease-in-out infinite; }
@keyframes cheer { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-16deg); } }
.twinkle { transform-box: fill-box; transform-origin: center; animation: tw 1.4s ease-in-out infinite; }
@keyframes tw { 0%, 100% { transform: scale(0.4); opacity: 0.4; } 50% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .scene, .scene * { animation: none !important; }
  .scene { opacity: 0; }
  .scene:last-child { opacity: 1; }
}

/* Right-to-left (Arabic) */
[dir="rtl"] nav a { margin-left: 0; margin-right: 20px; }
[dir="rtl"] .stage { direction: ltr; }

footer a { color: white; }

a[href^="mailto:"] { overflow-wrap: anywhere; }
