/* VEYMEER - Animation Physics & Transitions
   Ticker, scroll reveals, card hovers and the page-transition curtain
*/

/* ==========================================================================
   TICKER / MARQUEE ANIMATION
   ========================================================================== */

.ticker-strip {
  width: 100%;
  overflow: hidden;
  background: var(--bg-surface, #141417);
  color: var(--ink-secondary, #D4D4D8);
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  display: flex;
  user-select: none;
}

.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: tickerScroll 24s linear infinite;
}

.ticker-strip:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.ticker-item .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald, #10B981);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.ticker-item .dot-orange {
  background: var(--accent-amber, #F59E0B);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   REVEAL & SCROLL ANIMATIONS
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Micro-Pulse for Live Indicators */
.pulse-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-emerald, #10B981);
  border-radius: 50%;
  position: relative;
}

.pulse-live::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-emerald, #10B981);
  animation: pulseRing 1.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Node Acceptance Flash */
@keyframes acceptFlash {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); border-color: #10B981; }
  100% { transform: scale(1); }
}

/* Luxury Interactive Card Hover (Quiet Specular Bloom) */
.interactive-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.interactive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
/* ==========================================================================
   HAUTE HORLOGERIE LUXURY PAGE TRANSITIONS (SEAMLESS BOTTOM-IN, TOP-OUT CURTAIN)
   ========================================================================== */

/* Fullscreen Obsidian Transition Curtain */
#page-transition-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0A0A0C;
  z-index: 99998;
  pointer-events: none;
  transform: translateY(100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: transform;
}

/* Leading Specular Laser Edge */
.curtain-specular-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.95) 50%, transparent 100%);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.95), 0 0 6px #FFFFFF;
}

/* Subtle Architectural Grid Texture */
#page-transition-curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Brand Lockup inside Curtain */
.curtain-brand-lockup {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
}

.curtain-logo-svg {
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.75));
  animation: curtainLogoPulse 2s ease-in-out infinite alternate;
}

@keyframes curtainLogoPulse {
  0% {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.5));
    transform: scale(0.98);
  }
  100% {
    filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.95));
    transform: scale(1.02);
  }
}

.curtain-brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.42em;
  color: #FFFFFF;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
  margin-left: 0.42em;
  font-weight: 700;
}

.curtain-brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* Transition Kinematics */
#page-transition-curtain.slide-in-bottom,
#page-transition-curtain.is-active {
  pointer-events: all;
  transform: translateY(0%) !important;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#page-transition-curtain.slide-out-top,
#page-transition-curtain.is-leaving {
  pointer-events: all;
  transform: translateY(-100%) !important;
  transition: transform 0.42s cubic-bezier(0.76, 0, 0.24, 1) !important;
}

/* Ultra-fine Specular Progress Hairline */
#nav-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 4px #FFFFFF;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
}

#nav-progress-bar.is-active {
  opacity: 1;
}

/* Page content wrapper transitions */
.page-content-wrapper {
  will-change: opacity, transform;
}

.page-content-wrapper.is-swapping-out {
  opacity: 0 !important;
  pointer-events: none;
}

.page-content-wrapper.is-swapping-in {
  opacity: 1 !important;
}

/* Body transition state classes for verified DOM state */
body.page-is-exiting {
  pointer-events: none;
}

body.page-is-entering {
  pointer-events: all;
}
