/* EhabSAT shared motion layer v1 (animations only: no colours, fonts or layout).
   Immutable cache: any change = eh-motion_v2.css + update the pages. */
:root {
  --eh-ease-out: cubic-bezier(.23, 1, .32, 1);
  --eh-ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --eh-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --eh-d-fast: 140ms;
  --eh-d-base: 240ms;
  --eh-d-slow: 640ms;
}

/* Hero entrance: children rise in sequence */
@keyframes eh-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.eh-stagger > * { animation: eh-rise var(--eh-d-slow) var(--eh-ease-out) both; }
.eh-stagger > *:nth-child(1) { animation-delay: 0ms; }
.eh-stagger > *:nth-child(2) { animation-delay: 70ms; }
.eh-stagger > *:nth-child(3) { animation-delay: 140ms; }
.eh-stagger > *:nth-child(4) { animation-delay: 210ms; }
.eh-stagger > *:nth-child(5) { animation-delay: 280ms; }
.eh-stagger > *:nth-child(n+6) { animation-delay: 350ms; }

/* Scroll reveal (class added by eh-motion_v1.js only to below-the-fold items,
   and removed again after the transition so hover effects keep working) */
.eh-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--eh-d-slow) var(--eh-ease-out), transform var(--eh-d-slow) var(--eh-ease-out) !important;
}
.eh-reveal.eh-in { opacity: 1; transform: none; }

/* Interaction easing: same colours/shadows as before, only the curve changes */
.btn-primary-glow, .btn-secondary-glass, .btn-signin, .nav-item,
.shortcut-card, .bento-card, .hero-sat-card, .hero-sat-card .option-btn, .btn-cycle-drill {
  transition-timing-function: var(--eh-ease-out);
}
.btn-primary-glow:active, .btn-secondary-glass:active, .btn-signin:active {
  transform: scale(.97);
  transition-duration: var(--eh-d-fast);
  transition-timing-function: var(--eh-ease-spring);
}

/* Pointer-reactive line art (hero) */
.eh-art {
  position: absolute; top: 0; left: 0; right: 0; height: min(100%, 620px); z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent);
  pointer-events: none; overflow: hidden;
  opacity: 0; animation: eh-fade 1200ms var(--eh-ease-out) 300ms forwards;
}
.eh-art svg { width: 100%; height: 100%; }
.eh-art .eh-stroke { fill: none; stroke: var(--accent-gold, #f59e0b); stroke-width: 1; vector-effect: non-scaling-stroke; }
.eh-art .eh-grid { stroke-opacity: .10; }
.eh-art .eh-curve { stroke-opacity: .32; }
.eh-art .eh-tan { stroke-opacity: .45; }
.eh-art .eh-dot { fill: var(--accent-gold, #f59e0b); }
@keyframes eh-fade { to { opacity: 1; } }
.hero-section > .container { position: relative; z-index: 1; }

@media (hover: none), (max-width: 760px) { .eh-art { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .eh-stagger > * { animation: none; }
  .eh-reveal { opacity: 1; transform: none; transition: none !important; }
  .eh-art { animation: none; opacity: 1; }
}
