/* ============================================
   EYEKONIKA — Page Slide Transitions
   index.html ↔ journey.html
   ============================================ */

/* === bfcache restore: instant reset (no visible slide-back) === */
body.is-restoring,
body.is-restoring * {
  transition: none !important;
  animation: none !important;
}

/* === Exit animations === */

@keyframes slideUpExit {
  from { transform: translateY(0);      opacity: 1; }
  to   { transform: translateY(-100vh); opacity: 0.4; }
}

@keyframes slideDownExit {
  from { transform: translateY(0);     opacity: 1; }
  to   { transform: translateY(100vh); opacity: 0.4; }
}

body.slide-up-exit {
  animation: slideUpExit 0.7s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  pointer-events: none;
  overflow: hidden !important;
}

body.slide-down-exit {
  animation: slideDownExit 0.7s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  pointer-events: none;
  overflow: hidden !important;
}

/* === Journey.html entry animation === */

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

body.is-journey {
  animation: journeyFadeIn 0.5s ease both;
}

/* ============================================
   JOURNEY GATEWAY — static section in page flow
   Lives inside #wrapper, below all content.
   Provides clear dead-space so the arrows never
   overlap the gallery or any other section.
   ============================================ */

#journey-gate {
  background: #030712;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(96, 165, 250, 0.08);
}

.journey-gate-btn {
  background: linear-gradient(
    160deg,
    rgba(14, 22, 45, 0.9) 0%,
    rgba(8, 14, 30, 0.95) 100%
  );
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.6rem 3rem;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.04),
    0 0 48px rgba(96, 165, 250, 0.1),
    0 4px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: gateBtnPulse 3s ease-in-out infinite;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  outline: none;
  position: relative;
}

.journey-gate-btn:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.08),
    0 0 72px rgba(96, 165, 250, 0.22),
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  animation: none;
}

.journey-gate-btn:focus-visible {
  outline: 1px solid rgba(96, 165, 250, 0.5);
  border-radius: 100px;
}

@keyframes gateBtnPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.04), 0 0 32px rgba(96, 165, 250, 0.07), 0 4px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.07); }
  50%       { box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.08), 0 0 60px rgba(96, 165, 250, 0.16), 0 4px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.07); }
}

/* ============================================
   JOURNEY GATEWAY — fixed div (auto-fire only)
   No longer shows any visual content.
   journey-gateway.js fires the transition when
   the user reaches the absolute page bottom.
   ============================================ */

#journey-gateway {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  pointer-events: none;
  /* hidden permanently — visual handled by #journey-gate above */
  display: none;
}

/* .gateway-inner kept for JS compatibility but never shown */
.gateway-inner {
  opacity: 0;
  pointer-events: none;
}

.gateway-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.journey-gate-btn:hover .gateway-text {
  color: #fff;
}

.gateway-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.gateway-arrows svg {
  width: 16px;
  height: 16px;
  color: #60a5fa;
  display: block;
  stroke-width: 2;
}

/* Staggered cascade down */
.gateway-arrows svg:nth-child(1) {
  animation: gatewayPulse 1.6s ease-in-out infinite 0s;
}
.gateway-arrows svg:nth-child(2) {
  animation: gatewayPulse 1.6s ease-in-out infinite 0.28s;
}

@keyframes gatewayPulse {
  0%, 100% { opacity: 0.2; transform: translateY(-2px); }
  50%       { opacity: 1;   transform: translateY(3px); }
}
